Replies: 1 comment 1 reply
-
|
See #857 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello isso'ers!
I noticed that the client-side JS strips newlines from the output in
isso/js/app/template.js.https://github.com/posativ/isso/blob/178912d4426155201a67e0a95cff0ac201494d28/isso/js/app/template.js#L67-L68
This means that comments containing fenced code blocks -- which are rendered server-side as
<pre><code>some code here\nanother new line</code></pre>-- have their\nnewline characters ignored when the client-side JS renders, and so the whole output gets rendered on one line. This makes code blocks hard to read.I'd quite like to keep these newline characters when the comment is rendered. I tried just commenting that newline-stripping line of code, and everything seems to work. Is there a reason for this line being there?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions