[repo-assist] tests: add ToLatex coverage for OtherBlock and InlineHtmlBlock - #1299
Draft
github-actions[bot] wants to merge 1 commit into
Draft
Conversation
Repo Assist: adds test coverage for two previously-untested paragraph
rendering paths in Markdown.ToLatex — OtherBlock (raw content wrapped
in \begin{lstlisting}) and InlineHtmlBlock (verbatim passthrough).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
17 tasks
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 was created by Repo Assist, an automated AI assistant.
Summary
Adds unit test coverage for two
Markdown.ToLatexparagraph-rendering cases that previously had no direct tests:OtherBlock(raw/non-code paragraph content, which must be wrapped in\begin{lstlisting}/\end{lstlisting}likeCodeBlock) andInlineHtmlBlock(written verbatim, unescaped, straight through to the LaTeX output).This follows on from the existing
## Markdown.ToLatex: direct unit testssection intests/FSharp.Markdown.Tests/Markdown.fs, which already exercised most other paragraph kinds (headings, lists, tables, images, math, etc.) but not these two.Changes
tests/FSharp.Markdown.Tests/Markdown.fs— 2 new tests:ToLatex renders OtherBlock content wrapped in lstlisting,ToLatex renders InlineHtmlBlock content verbatim.RELEASE_NOTES.md— changelog entry under a newUnreleasedsection.Test Status
dotnet test tests/FSharp.Markdown.Tests/FSharp.Markdown.Tests.fsproj --configuration Release— 370/370 pass (368 existing + 2 new).dotnet fantomas tests/FSharp.Markdown.Tests/Markdown.fs(formatted, verified re-run of tests afterwards).No production code was changed; this is test-only.
Add this agentic workflow to your repo
To install this agentic workflow, run