synzen / MonitoRSS

MonitoRSS RSS bot (formerly known as Discord.RSS) with customizable feeds. https://monitorss.xyz
https://monitorss.xyz
MIT License
1.05k stars 237 forks source link

html to markdown: `<pre><code>` #373

Closed m417z closed 2 months ago

m417z commented 2 months ago

Feed URL https://mods.windhawk.net/updates.atom

Describe the issue I have a feed item with the following HTML content:

<pre><code>sfc /scanfile=c:\windows\system32\shellstyle.dll</code></pre>

<pre><code> is recommended for code blocks.

This results in the following markdown:

````sfc /scanfile=c:\windows\system32\shellstyle.dll````

And in turn, in a slightly broken post: image

Expected behavior Have three, not four backticks in the resulting markdown.

Screenshots See above.

Branch (please specify one): public bot

If referencing the public bot, then specify public bot.

synzen commented 2 months ago

Thanks for the report - this should be updated to have the expected behavior in https://github.com/synzen/MonitoRSS/commit/3182972dd9a7edb2278a9798edaec02490fd1286, and is currently in the process of being deployed (give or take ~15 minutes). Feel free to re-open if you continue to face issues.