-
Notifications
You must be signed in to change notification settings - Fork 736
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
Upgrade Asciidoctor Maven Plugin so that syntax highlighting can be enabled using an attribute #620
Conversation
Thanks for the suggestion. The loss of syntax highlighting is caused by a bug in the version of the Asciidoctor Maven Plugin that's being used. Rather than working around the bug by declaring the source highlighter in XML, I think it would be better to upgrade to the latest 1.5.x version of the Maven plugin. Would you like to update this pull request to do that instead? It'd be great if you could make the same update to the documentation as well. |
Hi @wilkinsona. Would be great to fix it with a plugin version update. But I tried to use
|
1.6 of the plugin doesn't work as it pulls in a version of AsciidoctorJ that contains breaking changes. See #581 for details. I tried the Data REST sample with 1.5.8 of the Asciidoctor Maven Plugin and the syntax highlighting worked. How did you try it? |
In my own example, I had an empty line between top-line header and attributes. So, not a plugin issue. I updated pom.xml and docs, ready for merge |
Thanks very much, @gavvvr. The proposed changes are now in 1.2.x and master. |
Unlike Gradle, when building with Maven plugin the
:source-highlighter: highlightjs
attribute in*.adoc
files does not work (it can be even removed). You should explicitly specifysourceHighlighter
in Maven plugin configuration, see https://asciidoctor.org/docs/asciidoctor-maven-plugin/#configuration-2