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)
July 19, 2023, 9:08am
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