[0.9.1]
This commit is contained in:
parent
0144d046aa
commit
1113b2da9f
|
@ -6,5 +6,11 @@ Tyto - Littérateur
|
|||
- Changelog: https://git.a-lec.org/echolib/tyto-litterateur/-/blob/master/CHANGELOG.md
|
||||
- License: https://git.a-lec.org/echolib/tyto-litterateur/-/blob/master/LICENSE
|
||||
|
||||
## [0.9.1]
|
||||
- wip: tabulation when using `<hr />`
|
||||
- wip: inline quote markers `@_myquote_@`
|
||||
- wip: inline italic marker `:_maybe_:`
|
||||
- wip: fix data retreive in complete quote
|
||||
|
||||
## [0.9.0]
|
||||
- Last testings before final
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
# Version: 0.9.0
|
||||
# Version: 0.9.1
|
||||
# Tyto - Littérateur
|
||||
#
|
||||
# Copyright (C) 2023 Cyrille Louarn <echolib+tyto@a-lec.org>
|
||||
|
|
|
@ -109,10 +109,10 @@ words_tags = [
|
|||
('*_', '_*', '<strong class="strong">', '</strong>', 'strongs', 'w'),
|
||||
('+_', '_+', '<b class="bold">', '</b>', 'bolds', 'w'),
|
||||
('/_', '_/', '<em class="em">', '</em>', 'emphasis', 'w'),
|
||||
('[_', '_]', '<i class="italic">', '</i>', 'italics', 'w'),
|
||||
(':_', '_:', '<i class="italic">', '</i>', 'italics', 'w'),
|
||||
('~_', '_~', '<del class="del">', '</del>', 'dels', 'w'),
|
||||
('._', '_.', '<u class="underline">', '</u>', 'underlines', 'w'),
|
||||
(':_', '_:', '<cite class="cite">', '</cite>', 'cites', 'w'),
|
||||
('@_', '_@', '<cite class="cite">', '</cite>', 'cites', 'w'),
|
||||
('%_', '_%', '<span class="custom">', '</span>', 'customs', 'w'),
|
||||
('{_', '_}', '<code class="icode">', '</code>', 'codes', 'w'),
|
||||
('((', '))', '<p class="%s">', '</p>', 'paragraphs', 't'),
|
||||
|
|
|
@ -467,7 +467,7 @@ def wip_images():
|
|||
def quote_params(qline):
|
||||
for tag in tyto.quote_tags:
|
||||
if qline.startswith(tag[0]):
|
||||
globals()[tag[1]] = qline.rsplit(' ',1)[1].lstrip()
|
||||
globals()[tag[1]] = qline.rsplit('%s '%tag[0])[1].lstrip()
|
||||
return(True)
|
||||
|
||||
#==========================#
|
||||
|
@ -953,7 +953,8 @@ def wip_tabs():
|
|||
|
||||
elif line.startswith('<h'):
|
||||
get_tab = line[2]
|
||||
tab = tabs_hX[get_tab]
|
||||
try: tab = tabs_hX[get_tab]
|
||||
except: tab = 8
|
||||
if not article_temp:
|
||||
article_temp = '%s%s'%(int(tab) * ' ', line)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue