Scenario:
I want to have a watched word, say GET
(no quotes) and I want to replace it with ## GET
to make it an H2 header. I create that watched word and its replacement, but when I compose a message with GET
, and hit save, my post returns this:
It seems that it should be rendering this as markdown.
1 like
Canapin
(Coin-coin le Canapin)
19 juli 2023 om 09:08
2
I can repro. Markdown and HTML as well arenāt parsed in replacement strings.
1 like
I think you may be able to achieve this using HTML now:
discourse:main
ā discourse:replace-watched-words-with-html
opened 01:58PM - 06 May 24 UTC
This adds support for Watched Words to allow replacement with HTML content rathe⦠r than always replacing with text.
Can be useful when automatically replacing with the `<abbr>` tag for example.
Discussion - https://meta.discourse.org/t/replace-text-with-more-than-just-links/305672
(Replace text with more than just links? - #23 by zogstrip )
You can now select āOutputs HTML in the replacementā as an option for each Watched Word in Replace and Link.
Markdown is still not supported, but I think thatās more of a feature request as well, so Iāll slide this over.
2 likes