Skip to content
This repository was archived by the owner on May 18, 2023. It is now read-only.
This repository was archived by the owner on May 18, 2023. It is now read-only.

Markdown guides: language syntax highlighting not in place #303

Open
@SueChaplain

Description

@SueChaplain

Describe the bug

Adding syntax highlighting for xml files in markdown source does not render any colour in the built HTML.

For example:

<!-- OpenLiberty runtime -->
<liberty.groupId>io.openliberty</liberty.groupId>
<liberty.artifactId>openliberty-runtime</liberty.artifactId>
<version.openliberty-runtime>19.0.0.8</version.openliberty-runtime>
<http.port>9080</http.port>
<https.port>9443</https.port>
<packaging.type>usr</packaging.type>
<app.name>${project.artifactId}</app.name>
<package.file>${project.build.directory}/${app.name}.zip</package.file>

Text is just orange and not a combination of green and orange as generated when built from AsciiDoc. The HTML source is marked up, so possibly a CSS issue.

<div class="language-xml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c">&lt;!-- OpenLiberty runtime --&gt;</span>
  | <span class="nt">&lt;liberty.groupId&gt;</span>io.openliberty<span class="nt">&lt;/liberty.groupId&gt;</span>

Expected behavior

Code highlighted in green and orange

Actual behavior

Code only highlighted in orange

Steps to reproduce the bug

Add the example above into a markdown guide and build locally.

Environment where the bug occurred

  • Firefox (Desktop)
  • Safari (Desktop)
  • Chrome (Desktop)
  • Internet Explorer (Desktop)
  • iOS (Mobile)
  • Android (Mobile)

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions