You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hagbarddenstore has kindly reported "Escaped # not rendered in headings when it's last character" at gohugoio/hugo#879 as a Hugo issue, though it belongs to the realm of Blackfriday. I have reproduced @hagbarddenstore's report verbatim below:
Example Markdown:
# Broken heading \#
This produces the following HTML:
<h1>Broken heading</h1>
But if I add something after the escaped # it will be rendered.
# Working heading \# with escaped signs...
And this renders the following HTML:
<h1>Working heading # with escaped signs...</h1>
Escaping the # sign works everywhere else, but not as the last character.
The bug can be avoided by simply appending a space as the last character, but that's kind of icky.
The text was updated successfully, but these errors were encountered:
The problem was in a loop that skipped the optional closing hashes in a
heading like this:
### This is an H3 ###
Now it checks to see if a hash is escaped and if it is, treats it as a
rightmost character of the heading text, like this:
### This is an H3 #\## ==> ### This is an H3 ##
Fixes issue russross#146.
@hagbarddenstore has kindly reported "Escaped # not rendered in headings when it's last character" at gohugoio/hugo#879 as a Hugo issue, though it belongs to the realm of Blackfriday. I have reproduced @hagbarddenstore's report verbatim below:
Example Markdown:
This produces the following HTML:
But if I add something after the escaped # it will be rendered.
And this renders the following HTML:
Escaping the # sign works everywhere else, but not as the last character.
The bug can be avoided by simply appending a space as the last character, but that's kind of icky.
The text was updated successfully, but these errors were encountered: