Skip to content

Non-English translations render escaped HTML as text and wrap bold headings in code blocks #43888

@ff1451

Description

@ff1451

Code of Conduct

What article on docs.github.com is affected?

The following pages are affected when viewed in any non-English language (e.g. Korean, Japanese, Spanish):

[english docs]
Image

[korean(not english) docs ]
Image

[english docs]
Image

[korean(not english) docs ]
Image

What changes are you suggesting?

Two rendering bugs affect all non-English translations of GitHub Actions runner documentation.

Bug 1: Raw HTML tags visible in tables

In translated pages, inline HTML elements such as <code><a href="...">ubuntu-latest</a></code> inside table <td> cells are displayed as literal text (e.g. <code>ubuntu-latest</code>) instead of being rendered as styled code elements.

This happens because the translation pipeline (Crowdin) entity-encodes angle brackets, turning <code> into &lt;code&gt;. The translation correction pipeline in src/languages/lib/correct-translation-content.ts does not unescape these HTML entities.

Bug 2: Bold headings rendered inside code blocks

Between code blocks, bold heading lines (e.g. **Needed for downloading actions:**) are wrapped in bare code fences (```) by the translation pipeline, causing them to render as code blocks instead of formatted headings.

Proposed fix:

Both bugs can be corrected in src/languages/lib/correct-translation-content.ts:

  1. Unescape entity-encoded HTML tags (&lt;code&gt;<code>) when the same tag appears as raw HTML in the English source.
  2. Strip bare code-fence wrapping from lines that contain only a bold heading (**...**).

Additional information

Affected languages: All non-English translations (confirmed in Korean /ko).
Root cause: Crowdin translation pipeline corrupts inline HTML and markdown structure.
Browser: Reproducible in any browser (not a client-side issue).

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamlocalizationIssue or PR relating to translation or localization

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions