forked from mirrors/bookwyrm
Only modify pound symbols at the start of a word
This commit is contained in:
parent
c022debee9
commit
e26ba3857c
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ def _wrapped(text):
|
|||
def to_markdown(content):
|
||||
"""catch links and convert to markdown"""
|
||||
content = format_links(content)
|
||||
content = content.replace("#", "\\#")
|
||||
content = re.sub(r"\B#", "\\#", content)
|
||||
content = markdown(content)
|
||||
# sanitize resulting html
|
||||
sanitizer = InputHtmlParser()
|
||||
|
|
Loading…
Reference in a new issue