chore(deps): update dependency fsdocs-tool to v22#36
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
cd67c1f to
b6c9f71
Compare
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.
This PR contains the following updates:
19.1.1→22.0.1Release Notes
fsprojects/FSharp.Formatting (fsdocs-tool)
v22.0.1Changed
Regexinstances to module-level singletons (withRegexOptions.Compiled) inPageContentList,HtmlFormatting,Formatting,Menu, andLlmsTxt. Previously a new, uncompiledRegexwas constructed on every call (once per page heading, once per HTML page, once per menu item, once per llms.txt entry), incurring repeated JIT overhead. The patterns are now compiled once at module load and reused across all calls.System.Net.WebClientwithSystem.Net.Http.HttpClientin the image downloader used by--saveimages. Removes the#nowarn "44"suppression.Newtonsoft.Jsontransitive-dependency pin from 13.0.3 to 13.0.4.System.Memorytransitive-dependency pin from 4.5.5 to 4.6.3.0VersionOverride="43.12.201"on theFSharp.Compiler.Servicereference inFSharp.Formatting.Markdown.fsproj; the package now uses the central pin (43.12.202) fromDirectory.Packages.props, eliminating the NU1605 build warning.Enumerable.Cast<XAttribute>(LINQ) withSeq.cast<XAttribute>(idiomatic F#) inMarkdownUtils.fs, removing theopen System.Linqimport.Fixed
Markdown.ToMdserialising table data rows with a hardcoded\nline separator instead of the configured newline. On Windows (whereEnvironment.NewLineis\r\n) this produced mixed line endings in the output. Each data row is now yielded separately, consistent with how every other paragraph type works. The trailing blank line after a table was also emitting a literal"\n"string instead of the standard""empty-line sentinel.Markdown.ToFsxhardcoding a\nnewline in the(* output: ...)comment wrapper around code-cell outputs. The configuredctx.Newlineis now used, ensuring consistent line endings on Windows.Markdown.ToMdsilently dropping YAML frontmatter when serialising a parsedMarkdownDocumentback to Markdown text. Frontmatter is now preserved with its---delimiters.Markdown.ToMdconverting tight lists (no blank lines between items) into loose lists by emitting a blank line after every item. Tight lists now round-trip correctly without inter-item blank lines.Markdown.ToMdserialisingHardLineBreakas a bare newline instead of two trailing spaces + newline. The correct CommonMark representation" \n"is now emitted, so hard line breaks survive a round-trip throughToMd.Markdown.ToMdserialisingHorizontalRuleas 23 hyphens regardless of the character used in the source. It now emits exactly three characters matching the parsed character (---,***, or___), giving faithful round-trips.printfndebug output emitted to stdout whenMarkdown.ToMdencountered an unrecognised paragraph type.Markdown.ToLatexproducing invalid LaTeX output for level-6 (and deeper) headings. Previously the LaTeX command was an empty string, resulting in bare{content}without a command prefix. Headings at level 6+ are now serialised as\subparagraph{...}, which is the deepest sectioning command available in LaTeX.Markdown.ToMdsilently droppingEmbedParagraphsnodes: the serialiser now delegates to the node'sRender()method and formats the resulting paragraphs, consistent with the HTML and LaTeX back-ends.Markdown.ToMddropping link titles inDirectLinkandDirectImagespans. Links with a title attribute (e.g.[text](url "title")) now round-trip correctly; without this fix the title was silently discarded on serialisation.Markdown.ToMdserialising inline code spans that contain backtick characters. Previously,InlineCodewas always wrapped in single backticks, producing syntactically incorrect Markdown when the code body contained backticks. Now the serialiser selects the shortest backtick fence that does not collide with the body content (e.g. a double-backtick fence for bodies containing single backticks, triple for double, etc.), matching the CommonMark spec.Markdown.ToMdmulti-paragraph blockquote round-trip. The old code emitted a bare blank line between inner paragraphs, which CommonMark parses as closing the blockquote, resulting in multiple separate blockquotes on re-parse. Paragraph separators inside a blockquote are now emitted as>(an empty blockquote continuation line) so the round-trip preserves a singleQuotedBlock.Markdown.ToMdserialising unresolved indirect links as[body](key)(treating the reference key as a URL) instead of the correct[body][key]form. Unresolved indirect links are now preserved in their original indirect-reference form, consistent with how unresolved indirect images are handled.Markdown.ToMdsilently droppingAnchorLinkspans. Named anchors (used by the API documentation generator to create in-page navigation targets) are now serialised as<a name="..."></a>inline HTML, so they survive a round-trip and remain functional when the output is later converted to HTML.Added
--panel-backgroundand--panel-borderCSS custom properties infsdocs-default.css. These decouple panel/component colours (copy-code button, blockquotes, sidebar, page menu, dialogs, tooltips, API tables) from--header-background/--header-border. Both variables default to the header values, so existing themes are unaffected; themes that need a different colour for content panels can now override--panel-backgroundand--panel-borderindependently. #1156Markdown.ToFsx(direct serialisation to F# script format), which previously had no unit test coverage.Markdown.ToPynb(direct serialisation to Jupyter notebook format), which previously had no unit test coverage.HardLineBreakandHorizontalRulecharacter preservation inMarkdown.ToMd.Markdown.ToLatex, which previously had no unit test coverage. Tests cover headings (all six levels), inline formatting (bold, italic, inline code), links, images with captions, lists (ordered and unordered), code blocks, blockquotes, tables with bold headers, horizontal rules, LaTeX special character escaping, inline math, and display math.v22.0.0Fixed
'fsi' is not definederror during literate script type-checking when scripts usefsi.AddPrinteror related APIs. TheFSharp.Compiler.Interactive.Settings.dllreference is now explicitly added to the type-checker options. #1139(**blocks when the markdown text contained nested(*** ... ***)references (e.g. in backtick-quoted command examples), causing subsequent content to be silently dropped from HTML output.[<Test>]attribute onCan include-output-and-ittest so it is executed by the test runner.failwith "tbd - IndirectImage") whenMarkdown.ToMdis called on a document containing reference-style images with bracket syntax. The indirect image is now serialised aswhen the reference is resolved, or in bracket notation when it is not. #1094Markdown.ToMdserialising italic spans with asterisks incorrectly as bold spans. #1102Markdown.ToMdserialising ordered list items with incorrect numbering and formatting. #1102Markdown.ToMdnot preserving indented code blocks: bare code output was re-parsed as a paragraph. Indented code blocks are now serialised as fenced code blocks, which round-trip correctly.Markdown.ToMdserialising*emphasis*(italic) spans as**...**(bold) instead of*...*. #1102Markdown.ToMdserialising ordered list items with 0-based numbering and no period (e.g.0 first) instead of 1-based with a period (e.g.1. first). #1102HtmlElementSVG serialisation:LinearGradientnow renders as<linearGradient>andRadialGradientnow renders as<radialGradient>— both previously emitted the invalid tag<radient>.Changed
fsdocs buildnow pre-computes the navigation menu structure (filter/group/sort) once per build rather than once per output page, reducing work from O(n²) to O(n) for sites with n pages. The filesystem check for custom menu templates is also cached per build. #1129v21.0.0Changed
v20.0.1Changed
v20.0.0Changed
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.