Repository navigation
Wiki pages render their markdown - #53
Merged
Merged
Conversation
The generator put each wiki page's markdown into the page as it was,
turning only backticks into code. Everything else showed as written:
links as [Here](https://...), bold as **...**, headings as ##, and the
whole Home page as one paragraph of raw markdown. Code blocks were not
escaped either, so the browser took a type argument for a tag:
`expr.Compile<float, float>("x")` read `expr.Compile ("x")` on
Compilation, and `AsyncLocal<T>` read `AsyncLocal` on Multithreading. The
single-backtick rule also broke F#'s ``d/dx`` names, inside code blocks
too.
The pages are now rendered with Markdig, the way GitHub renders the
wiki, with HTML passed through. A link to another page of the wiki,
written `[Expressions](Expressions)` as GitHub expects, points at
Expressions.html. Inline code keeps the site's `cw` style, and code
blocks carry no language class, as before, because the site's
highlight.js has no F# and would leave such a block unhighlighted.
Against a build of master, the visible text changes only where markdown
was showing or a code sample was cut. Pages are taller, because a blank
line in the wiki now starts a paragraph. No wiki page overflows at 320px
or 390px.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The generator put each wiki page's markdown into the page unrendered, turning only backticks into code. So on the site:
[Here](https://…)on Expressions and Terminal;**…**and headings as##, on Home and Parsing expression from string;expr.Compile<float, float>("x")asexpr.Compile ("x"), Multithreading showedAsyncLocal<T>asAsyncLocal, and Parsing showedSwitch<object>(asSwitch (;``d/dx``names, in code blocks as well as in the text.The pages are now rendered with Markdig, as GitHub renders the wiki, with the HTML in them passed through.
[Expressions](Expressions)the way GitHub expects, points atExpressions.html.cwstyle.Markdig is BSD-2-Clause, and at 1.4.0 (2026-09-20) has no known vulnerabilities.
Checked on a local build, against a build of master:
One fix in the wiki itself: Simplification's heading "Conditions on the answer: `provided`" was an HTML
<h2>with backticks inside it. Markdown is not read inside an HTML block, so GitHub showed the backticks, and so would this renderer. It is a markdown heading now (asc-community/AngouriMath.wiki@ada796f).🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura