mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-24 00:34:10 +00:00
Fixed #127
This commit is contained in:
parent
731d2d3f41
commit
4c6cfda901
|
@ -164,6 +164,9 @@ class DiscussionsFromHellParser:
|
||||||
if "marks" in item:
|
if "marks" in item:
|
||||||
prefix, suffix = self.convert_marks(item["marks"])
|
prefix, suffix = self.convert_marks(item["marks"])
|
||||||
self.markdown_text = "{old}{pre}{text}{suf}".format(old=self.markdown_text, pre=prefix, text=escape_formatting(item["text"]), suf=suffix)
|
self.markdown_text = "{old}{pre}{text}{suf}".format(old=self.markdown_text, pre=prefix, text=escape_formatting(item["text"]), suf=suffix)
|
||||||
|
else:
|
||||||
|
if ctype == "code_block":
|
||||||
|
self.markdown_text += item["text"] # ignore formatting on preformatted text which cannot have additional formatting anyways
|
||||||
else:
|
else:
|
||||||
self.markdown_text += escape_formatting(item["text"])
|
self.markdown_text += escape_formatting(item["text"])
|
||||||
elif item["type"] == "paragraph":
|
elif item["type"] == "paragraph":
|
||||||
|
|
Loading…
Reference in a new issue