You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(This is the highlight.js output for this code block):
$ ( set -e;false;echo hello ) # exit 1
$ if ( set -e;false;echo hello ) ;thenecho world ;fi# exit 0
hello
world
I would expect Miniflux to display all text from that pre in its reader. But it doesn't, it removes the spans that use the hljs-comment class, so it ends up looking like this in the reader:
$ ( set -e; false; echo hello )
$ if ( set -e; false; echo hello ) ; then echo world ; fi
hello
world
Is this intended behaviour? If not, why could this be? What part of the code filters out spans with that class?
I'm running Miniflux via docker-compose, latest image tag (I pulled the latest version right before writing this).
The text was updated successfully, but these errors were encountered:
The sanitiser is not responsible - I tested it when creating my recent PR. Something else removes the text in those spans (either before, or after calling Sanitize)
Miniflux removes certain elements from
pre
blocks, for some reason.For example, in one of my posts, I have the following HTML:
(This is the highlight.js output for this code block):
I would expect Miniflux to display all text from that
pre
in its reader. But it doesn't, it removes the spans that use thehljs-comment
class, so it ends up looking like this in the reader:Is this intended behaviour? If not, why could this be? What part of the code filters out spans with that class?
I'm running Miniflux via docker-compose,
latest
image tag (I pulled the latest version right before writing this).The text was updated successfully, but these errors were encountered: