Closed d01010101 closed 4 years ago
Can it be an internal inconsistency within Prism.js
- plugin incompatibility, which is somewhat triggered by Codeflask?
I got it now: I do not need to execute prism.js separately, because it is inside codeflask.js.
I have a page where I use prism.css and execute prism.js. It does syntax highlighting of a very simple language and it is all fine:
I thought about making this editable. I started with this in the page header:
downloaded today from
https://unpkg.com/codeflask/build/codeflask.min.js
.It is the only modification, nothing else changed in the page. Yet the syntax highlight within
<code>
stopped to work properly and the following error shows now in the console:The error happens here:
where
PLUGIN_NAME === "line-numbers"
. It looks like Prismjs' issue, but why the error does not show without Codeflask?So, it seems that merely executing
codeflask.js
causes thatPrism.js
no more works properly. Why? Should I execute the script in another way? I have only a basic JS knowledge.I use Prism.js generated with the following options: core, default, clike, line numbers plus some modifications limited to changing keywords and operator regexps, but it seems to work and highlight properly if the Codeflask script is not executed.