Skip to content

fix: render MantisHub page content as markdown in HTML mode - #102

Merged
vboctor merged 1 commit into
mainfrom
fix-mantishub-pages-markdown
Apr 26, 2026
Merged

vboctor merged 1 commit into
mainfrom
fix-mantishub-pages-markdown

Conversation

@vboctor

@vboctor vboctor commented Apr 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • MantisHub wiki pages store content as raw markdown, but renderPageHtml was calling textToHtml which only escapes/linkifies — it does not parse markdown syntax
  • Switch to markdownToHtml so headings, bold, lists, code blocks, etc. are properly rendered
  • Add 3 tests covering markdown rendering (headings, bold, issue-ref linkification) for page HTML output

Closes #101

Test plan

  • bun test packages/crawlers/src/mantishub/__tests__/theme.test.ts — all 19 tests pass
  • New tests: page content with ## heading renders <h2>, **bold** renders <strong>, #100 linkifies correctly

🤖 Generated with Claude Code

textToHtml only escapes and linkifies; it does not parse markdown.
Page content is stored as raw markdown, so switch renderPageHtml to
use markdownToHtml so headings, bold, lists, etc. are rendered.

Fixes #101

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vboctor
vboctor merged commit 187b7d1 into main Apr 26, 2026
1 check passed
@vboctor
vboctor deleted the fix-mantishub-pages-markdown branch April 26, 2026 18:49
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.

fix: MantisHub page content not rendered as markdown in HTML mode

1 participant