Use alternative level 1 format for titles and partitions for markdown
This commit is contained in:
@@ -113,7 +113,12 @@ class ToMarkdown(Tokenizer):
|
||||
tTemp = self._formatText(tText, tFormat, mTags).replace("\n", " \n")
|
||||
lines.append(f"{tTemp}\n\n")
|
||||
|
||||
elif tType in (BlockTyp.TITLE, BlockTyp.PART, BlockTyp.HEAD1):
|
||||
elif tType in (BlockTyp.TITLE, BlockTyp.PART):
|
||||
tHead = tText.replace("\n", " - ")
|
||||
lines.append(f"{tHead}\n")
|
||||
lines.append("="*len(tHead) + "\n\n")
|
||||
|
||||
elif tType == BlockTyp.HEAD1:
|
||||
tHead = tText.replace("\n", " - ")
|
||||
lines.append(f"# {tHead}\n\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user