Skip to content

Replace Markdown inside HTML#215

Open
junaga wants to merge 1 commit into
screeps:masterfrom
junaga:agent/replace-markdown-inside-html
Open

Replace Markdown inside HTML#215
junaga wants to merge 1 commit into
screeps:masterfrom
junaga:agent/replace-markdown-inside-html

Conversation

@junaga

@junaga junaga commented Jul 20, 2026

Copy link
Copy Markdown

What changed

Replace every Markdown image, link, and code span nested inside paired HTML elements with equivalent HTML. This covers the invader, mineral, commodity, event-log, reaction, and parameter tables plus the PTR callout and inline HTML wrappers.

Hexo {% resource %} tags and ordinary Markdown outside HTML are deliberately unchanged.

Why

Markdown parsing inside raw HTML blocks is renderer-specific. The current custom renderer expands it, but CommonMark-compatible consumers treat it as literal text. Making each HTML block self-contained preserves the layout while making the source portable.

Validation

  • Generated both docs and API output with the repository's Node 10 build environment
  • Compared every affected generated page to the pre-change output; content is unchanged apart from generated timestamps and source whitespace
  • Scanned all docs and API Markdown files; no Markdown images, links, or code spans remain inside paired HTML elements
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants