Skip to content

Bump AngleSharp and ReverseMarkdown - #38

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/src/Distillate.Core/multi-d6ef9644d4
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/src/Distillate.Core/multi-d6ef9644d4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 2, 2026

Copy link
Copy Markdown

Updated AngleSharp from 1.5.0 to 1.5.2.

Release notes

Sourced from AngleSharp's releases.

1.5.2

Released on Sunday, July 5 2026

  • Fixed NodeIterator pre-removing steps to use the first following node (#​1260) @​ivandrofly
  • Fixed Range.IsCollapsed to also compare offsets (#​1259) @​ivandrofly
  • Fixed swapped comparison in Range.CompareBoundaryTo (#​1258) @​ivandrofly
  • Fixed Range.CopyContent to follow the DOM Standard (#​1257) @​ivandrofly
  • Fixed Range.ExtractContent to follow the DOM Standard (#​1256) @​ivandrofly
  • Added missing media attribute change detection on SVG style elements (#​1261) @​ivandrofly

Commits viewable in compare view.

Updated ReverseMarkdown from 5.0.0 to 6.3.1.

Release notes

Sourced from ReverseMarkdown's releases.

6.3.1

Highlights

Blocks inside a link no longer run together

When a link wraps block elements and the HTML has no whitespace between them, as on minified news pages that wrap each teaser in a link, the texts of those blocks were joined without a separator. They are now separated by a single space, unless whitespace is already there:

Input 6.3.0 6.3.1
<a href="x"><h3>Second headline</h3><p>A summary of it.</p></a> [Second headlineA summary of it.](x) [Second headline A summary of it.](x)
<a href="x"><div>One</div><div>Two</div></a> [OneTwo](x) [One Two](x)
<a href="x"><ul><li>One</li><li>Two</li></ul></a> [OneTwo](x) [One Two](x)

The same applies to other inline elements, such as <del> and <strong>. Pretty-printed HTML converts as before.

No more links to nothing

In flavors that do not keep raw HTML (Default, Slack, Telegram, Pandoc):

  • An <a> without href, such as <a name="top"></a> or <a id="x"></a>, keeps only its content instead of becoming []().
  • A link with nothing visible inside is dropped and its whitespace kept, so x <a href="x"></a> y gives x y. This also removes the [](x) left behind when a <div> inside a link closes the surrounding <p>.
  • A link around only an image is still a link.

time, data, bdi and bdo keep only their text

These tags change nothing visible, but they used to pass through as raw HTML as unknown tags. In the same flavors they now keep only their text, so <time datetime="…">vor 22 Minuten</time> inside a teaser link gives vor 22 Minuten. Tags.PassThrough, Tags.Replacer and custom readers still take precedence.

CommonMark, GitHub and MultiMarkdown still keep empty links, named anchors and these four tags as raw HTML.

Behavior changes

The last two highlights change default output for HTML that relied on the old behavior. To keep one of the four tags as HTML, add it to Tags.PassThrough.

What's Changed

Thanks to @​SommerEngineering for the detailed report in #​440.

Full Changelog: mysticmind/reversemarkdown-net@6.3.0...6.3.1

6.3.0

Highlights

Less memory on real-world pages

The cleanup pass for unclosed <script> and <style> tags copied the rest of the document once per tag, so script-heavy pages paid for it on every conversion. It now runs in linear time.

Measured with BenchmarkDotNet on real-world pages (Wikipedia, framework docs, MDN), 6.2.1 against 6.3.0, three launches each:

Page Allocated Time
github-markdown-complete (420 KB) -58% -15%
mdn-array (230 KB) -55% -1%
react-learn (259 KB) -50% -3%
vuejs-docs (110 KB) -32% -2%
nuxt-example (3.5 KB) -21% -13%
wikipedia-small (162 KB) -20% -1%
wikipedia-largest (1.77 MB) -11% +1%

Allocations drop on every page. Time improves on github-markdown-complete and nuxt-example; on the other pages the change is within run-to-run noise. See the Performance guide for the full results and how to reproduce them.

Write Markdown to a TextWriter

Convert and Render have new overloads that write straight to a file or any other TextWriter, skipping the full-size output string:

  • Convert(html, TextWriter) and Render(document, TextWriter)
  • ConvertAsync(html, TextWriter, CancellationToken) and RenderAsync(...), which await every write, so they work where synchronous I/O is disallowed, such as an ASP.NET Core response body

The output is identical to the string overloads, including trimming and Formatting.OutputLineEnding. With the Slack, CommonMark and GitHub flavors the string is still built internally, so there is no memory saving there. See Writing to a TextWriter.

Other changes

  • Writers that derive from MarkdownWriterBase get a protected WritePostamble hook for content after the body and footnotes. MultiMarkdown abbreviation definitions now use it.
  • Benchmark tooling for contributors: a script to fetch the real-world page set, corpus and throughput benchmarks, and -p:UseLocalReverseMarkdown=true to measure a working tree.

No breaking changes: everything new is additive.

What's Changed

Full Changelog: mysticmind/reversemarkdown-net@6.2.1...6.3.0

6.2.1

Full Changelog: mysticmind/reversemarkdown-net@6.2.0...6.2.1

6.1.1

What's Changed

Full Changelog: mysticmind/reversemarkdown-net@6.1.0...6.1.1

6.1.0

What's Changed

Full Changelog: mysticmind/reversemarkdown-net@6.0.0...6.1.0

6.0.0

v6 is a ground-up rewrite of the conversion engine. HTML is parsed with AngleSharp's HTML5-compliant parser into an intermediate Markdown DOM, which is rendered through per-flavor writers. The result is more correct, faster, leaner, and extensible - while keeping the public API source-compatible with v5.

Engine

  • New AngleSharp HTML5 parser replaces HtmlAgilityPack, so malformed and real-world HTML is parsed the way browsers parse it. The HtmlAgilityPack dependency is removed.
  • Markdown DOM pipeline - HTML is read into a structured, mutable document model (MarkdownDocument) and then rendered, cleanly separating parsing from output.
  • Flavor-agnostic readers, flavor-aware writers - readers always build the richest applicable node; each writer decides how to render or degrade it for its target flavor.

Output flavors

Seven output flavors, selected via the single canonical Flavor enum (MarkdownFlavor):

  • Default - clean, portable Markdown.
  • GitHub - dedicated CommonMark-based GitHub writer; round-trip-faithful and preserves raw HTML.
  • CommonMark - strict CommonMark output.
  • Slack - Slack mrkdwn (single-asterisk bold, • bullets, etc.).
  • Telegram - Telegram MarkdownV2 with its reserved-character escaping and fallbacks.
  • MultiMarkdown - MMD constructs (verified against canonical pandoc). (new in v6)
  • Pandoc - Pandoc Markdown with native spans, fenced divs, and strikeout. (new in v6)

Spec compliance

  • CommonMark round-trips all 651/651 spec examples (HTML → Markdown → HTML) against canonical cmark-gfm.
  • GitHub Flavored Markdown round-trips 672/672.
  • MultiMarkdown and Pandoc output verified against canonical pandoc.

Extensibility

  • Parse() / Render() expose the Markdown DOM directly, so you can traverse and transform the document (headings, lists, tables, links, footnotes, definition lists, math, etc.) before rendering.
  • Custom readers via IMdReader + [MarkdownReader], auto-discovered from additional assemblies passed to the Converter constructor.
  • Rich DOM node set including tables, definition lists, footnotes (definitions + references), fenced divs, line blocks, math, citations, bracketed spans, superscript/subscript, strikethrough, and raw HTML blocks/inlines.

HTML pre-filtering (new)

  • Html.ExcludeSelectors - drop elements by CSS selector before conversion.
  • Html.ElementFilters - drop elements via arbitrary predicates.

Configuration overhaul

  • Options are reorganized into logical groups: Images, Links, Tables, Tags, Html, Formatting, plus the top-level Flavor.
  • Flavor is the single canonical selector. SlackFlavored, TelegramMarkdownV2, and CommonMark are now obsolete aliases that read/write Flavor.
  • All former flat properties remain as [Obsolete] forwarders, so existing v5 code keeps compiling (with guidance warnings).
  • Notable options: base64 image handling (include / skip / save-to-file with custom filenames), lazy-load src fallback attributes, smart href handling, URI-scheme whitelist, header-column-span handling, header-less table strategy, comment removal, <pre>-as-HTML, line-start escaping, configurable line endings, bullet character, and default code-block language.

Framework support

  • Targets netstandard2.0, net8.0, net9.0, net10.0.
  • The netstandard2.0 target restores support for .NET Framework 4.6.1+, .NET Core 2.0+, Mono, and Unity (uses source-only Polyfill; no extra runtime dependency).

Performance
... (truncated)

5.5.0

What's Changed

Full Changelog: mysticmind/reversemarkdown-net@5.4.0...5.5.0

5.4.0

✨ New features

  • Opt-in data-src fallback for lazy-loaded images (#​427). Many sites park the real image URL in a data-* attribute while src holds a placeholder (typically a data: URI). Enable Config.LazyImageSrcFallback (default false) and, when src is empty or a data: placeholder, the converter resolves the URL from the first usable attribute in Config.LazyImageSourceAttributes (defaults: data-src, data-original, data-lazy-src, data-srcset, data-original-src; srcset-style values use their first URL). Default behavior is unchanged.
var converter = new Converter(new Config { LazyImageSrcFallback = true });
// <img src="data:image/png;base64,..." data-src="https://example.com/image.webp">
// → ![](https://example.com/image.webp)

🐛 Bug fixes

  • Square brackets inside code spans in link text are no longer escaped (#​426). [[UnmanagedCallersOnly]](…) previously became
    [\[UnmanagedCallersOnly\]](…). Brackets inside backtick code spans are now left untouched; brackets outside code spans are still escaped.
  • Missing space after inline code in list items with nested lists (#​428). The whitespace normalization before a nested list now trims only trailing whitespace and is scoped to the current item.

🔧 Maintenance

Full Changelog: mysticmind/reversemarkdown-net@5.3.0...5.4.0

5.3.0

What's Changed

Full Changelog: mysticmind/reversemarkdown-net@5.2.1...5.3.0

5.2.1

What's Changed

Full Changelog: mysticmind/reversemarkdown-net@5.2.0...5.2.1

5.2.0

What's Changed

Full Changelog: mysticmind/reversemarkdown-net@5.1.0...5.2.0

5.1.0

What's Changed

  • Add tag aliasing and unknown-tag replacements (Issue #​357)
  • Fix duplicate style keys after trimming in ParseStyle (PR #​416)
  • Improve thread safety by isolating converter context per call (Issue #​415)
  • Handle semantic containers as block wrappers (Issue #​417)
  • Fix HTML entity decoding in backtick spans (Issue #​414)
  • Update README/features documentation

New Contributors

Full Changelog: mysticmind/reversemarkdown-net@5.0.0...5.1.0

Commits viewable in compare view.

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps AngleSharp from 1.5.0 to 1.5.2
Bumps ReverseMarkdown from 5.0.0 to 6.3.1

---
updated-dependencies:
- dependency-name: AngleSharp
  dependency-version: 1.5.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: ReverseMarkdown
  dependency-version: 6.3.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants