-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sourcecode highlighting with highlight.js is broken with Asciidoctor.js (node) in 1.0.4 #162
Comments
the two options are required,right? |
Different result in 1.1.0 when executing with Javascript setup:
Clearly a major step forward. Since the readme does not mention that highlightjs has to be enabled explicitly, I had expected highlight.js to be the default highlighter. As long as that is not the case, I'll add a pull request for the readme. |
@keenJoe to patch source code highlighting with highlight.js in 1.0.4 you have to replace the above line in document.jade by:
That way the condition which checks if source-highlighter is highlight.js does not apply, the block will be written and the revealjsdir placeholder will resolve to node_modules/reveal.js. In 1.1.0 the problem is solved in the sense that you must define highlightjs (no dot!) as source-highlighter. |
It probably never worked. Asciidoctor.js / node didn't get very far and didn't have many users. I'm not going to backport a fix in 1.0.x since there are many other things broken with the jade templates. Thanks for PR. |
If the adoc has no option
then sourcecode sections in slides will not be highlighted. Either please document that the option is required or make it the default.
Even with the above option highlighting is broken in 1.0.4, this line in document.jade:
resolves to:
i.e. the revealjsdir placeholder remains unresolved, it should be
node_modules/reveal.js
. No idea if slim would resolve that properly.The text was updated successfully, but these errors were encountered: