Markdown and Razor #109
-
I've read in the documentation that Is there some way this can be done? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
That's correct. The raw The good news is that it's easy to un-escape the Let me know if you have any trouble with that. |
Beta Was this translation helpful? Give feedback.
That's correct. The raw
RenderMarkdown
module has a toggle for this behavior, but in Statiq Web it's configured to HTML escape a single@
symbol since we know Razor will be run on the rendered Markdown afterwards. This is a little tricky because without that escaping we were getting all kinds of problem reports of folks not understanding why things like email addresses in their Markdown were triggering errors when processed by Razor.The good news is that it's easy to un-escape the
@
HTML escaping using\@
in your Markdown. I.e.\@DateTime.Now.ToString()
.Let me know if you have any trouble with that.