Closed zoickx closed 4 years ago
Probably it's getting stripped off as raw HTML. You could try setting xss-sanitize: no
in the config.
Ah, simple as that, how did I miss it... That works, thank you!
To reformulate my question though, should I expect gitit to always serve htmls exactly as produced by pandoc now that xss-sanitize
is set to no
?
Consider the following piece of markdown displayed through gitit:
Expected result
When processed with
pandoc 2.10
the same markdown results in (note that<summary>
tags are present):Which looks like (this will be correctly displayed on github, but not on gitit)
I am markdown and below should be a spoiler
Summary text.
Inner paragraph.
Actual result
On gitit, installed via
stack install
on checkoutae4f450
, it is displayed as the following HTML (note the lack of<summary>
tags):Here is an example.
Further details
There seems to be no way to display a block like
Spoiler heading
Spoiler contentin gitit right now. "Spoiler heading" becomes part of spoiler text and in its place the word "Details" is put, like so:
Details.
Spoiler heading Spoiler contentI have tested this with different versions of
pandoc
andgitit
+ with different browsers, the problem persists regardless. Also put up an example instance at http://209.250.240.187:5001Is gitit supposed to serve html precisely as produced by pandoc? If so, this looks like a bug.