Repository navigation
feat: add Markdown rendering package - #35
Merged
Merged
Conversation
Add ShinyPDF.Markdown, a separate package with a Markdown() element that parses Markdown with Markdig and composes it from existing elements. Supports headings, paragraphs, bold, italic, strikethrough, inline code, code blocks, links, nested bullet and numbered lists, blockquotes and horizontal rules. Styling is configurable through MarkdownOptions. Raw HTML is shown as text, images as alt text. The publish workflow now builds and packs both packages with the same version. Closes #33 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
InDieTasten
approved these changes
Oct 5, 2026
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.
Closes #33
What
New package
ShinyPDF.Markdownwith aMarkdown()extension onIContainer(namespaceShinyPDF.Fluent):Markdown is parsed with Markdig and composed from existing elements (Column, Row, Text, Border, Line), so it wraps and pages like any other content.
Supported: headings, paragraphs, hard line breaks, bold, italic, strikethrough, inline code, code blocks, links and autolinks, nested bullet and numbered lists, blockquotes, horizontal rules. Raw HTML is rendered as plain text (never interpreted), images as their alt text. Tables and task lists are left for later.
MarkdownOptionscovers base font size, spacing, list indent, link/code/quote/rule colors and a heading style override.Why a separate package
The core
ShinyPDFpackage keeps zero new dependencies; only consumers who want Markdown pull in Markdig.Release impact
feat:commit: merging releases 2.1.0.publish.yamlnow builds and packs both projects with the same version.ShinyPDF.Markdowndepends onShinyPDFat that version and on Markdig 1.4.0.ShinyPDF.Markdown: please check the NuGet trusted publishing setup allows it.Verification
MarkdownTests, asserting on the composed element tree and styles, plus a full PDF generation).MarkdownExamples) checked visually, image added to the docs.dotnet packinspected: nuspec dependencies, icon, readme and license are correct.Docs
docs/how-to/render-markdown.md🤖 Generated with Claude Code