Open humanismusic opened 4 months ago
I'm testing turndown on a page that includes sample python code with comments, example:
<span class="comment"># here's a comment</span>.
There are no pre or code tags used in the HTML. Every time it results in h1 output like so:
here's a comment
Can't reproduce it, can you please make up a complete input that reproduce the problem?
Hi,
I'm testing turndown on a page that includes sample python code with comments, example:
<span class="comment"># here's a comment</span>.
There are no pre or code tags used in the HTML. Each time I run turndown, it results in this line being output as is and displaying like an H1:
here's a comment
Here is the rule I'm using to attempt to excude these:
I also tried escaping etc before deciding to try remove the # all together. Despite this, the text within these tags is still being treated as headers in the resulting markdown.
Could you help identify why this rule isn't working as intended?