Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18213

asciidoctor-maven-plugin attribute sourceHighlighter should be source-highlighter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 29.0.0.Final
    • None
    • Documentation
    • None

      pom.xml currently contains the following config for asciidoctor-maven-plugin:

      <plugin>
                          <groupId>org.asciidoctor</groupId>
                          <artifactId>asciidoctor-maven-plugin</artifactId>
                          <version>${version.asciidoctor.plugin}</version>
                          <configuration>
                              <attributes>
                                  <sourceHighlighter>coderay</sourceHighlighter>
      

       
      As per Asciidoctor-maven-plugin 2.x.x migration guide,

      The configuration option sourceHighlighter has been removed in favor of setting it as an attribute. If you are using it, you will need to set it as follows:

      new configuration

      <configuration>
          <attributes>
              <source-highlighter>coderay</source-highlighter> 
          </attributes>
      </configuration>
      

      Note the attribute contains a hyphen.

            cfang@redhat.com Cheng Fang
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: