bug fix. Remove the indentation at the beginning #3370
Unanswered
TheOnlyFastCoder2
asked this question in
Q&A
Replies: 1 comment
-
Prism (without any plugins) guarantees that the If you want Prism to remove/normalize the indentation of the input code, checkout the Normalize Whitespace plugin and its I also want to point out that your example is incomplete. We need to be able to see the HTML code of the code block with the bug. We cannot reproduce and fix any issues otherwise. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Step 1)
Open the file prism.js and looking for ( ctrl + F ) innerHTML and add method trim() to the variable
Step 2)
Open the css file with styles for prism and looking for pre[class*=language-] and add option "white-space: nowrap;"
Example bug:
Beta Was this translation helpful? Give feedback.
All reactions