You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add bold/italic emphasis and code-fence language support for XML doc, Doxygen (C++/VHDL) - #63
Converts emphasis (/, \b/\em/\e/\a/\c/\p) in C# XML docs, C++ Doxygen and VHDL comments to Markdown, and tags fenced code blocks with a language (lang/language attribute, csharp/cpp/vhdl defaults).
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Three moderate issues remain: nested same-family tags are mismatched, nested mixed emphasis can lose styling, and the Clang test guard does not match parser discovery behavior.
This pull request adds Markdown emphasis conversion and language-aware fenced code blocks across .NET XML documentation, C++/Doxygen, and VHDL documentation processing. It also updates emitters, tests, requirements, design documentation, verification records, and user guides.
Changes:
Converts emphasis syntax to Markdown bold, italic, and inline-code spans.
Adds sanitized language hints and defaults for fenced code blocks.
Extends parser models and C++ emitters to propagate example languages.
Adds tests and updates related project documentation.
This pull request requires changes.
File
Summary
test/ApiMark.Vhdl.Tests/VhdlAstParserTests.cs
Tests VHDL emphasis conversion and language-tagged fences.
test/ApiMark.DotNet.Tests/XmlDocReaderTests.cs
Tests XML emphasis rendering and code-language handling.
test/ApiMark.Cpp.Tests/ClangAstParserTests.cs
Tests C++ emphasis, code hints, and clang-path discovery.
src/ApiMark.Vhdl/VhdlAst/VhdlAstParser.cs
Converts VHDL emphasis and adds language hints to fences.
src/ApiMark.DotNet/XmlDocReader.cs
Renders XML emphasis and language-aware fenced code blocks.
src/ApiMark.Cpp/CppEmitterSingleFile.cs
Emits C++ examples using their parsed language.
src/ApiMark.Cpp/CppEmitterGradualDisclosure.cs
Propagates example languages through gradual-disclosure output.
src/ApiMark.Cpp/CppEmitter.cs
Provides C++ example-language access.
src/ApiMark.Cpp/CppAst/CppAstModel.cs
Adds ExampleLanguage to C++ documentation models.
src/ApiMark.Cpp/CppAst/ClangAstParser.cs
Converts C++ emphasis and extracts sanitized code languages.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Active correctness, API-compatibility, rendering, test-alignment, and documentation issues remain unresolved, including a critical public constructor/deconstruction break and multiple nesting-handling defects.
This design description says unclosed HTML emphasis tags are “closed at the end,” but the implementation removes their opening markers in CloseUnterminatedTags, so the content is emitted without emphasis (as the new unclosed bold assertion expects). Please describe the actual behavior to avoid documenting a closing marker that is never emitted.
CodeSpanRegex only recognizes spans delimited by exactly one backtick. Markdown also permits multi-backtick delimiters, so text such as @b kept is split into empty one-backtick segments and the @b inside the code span is converted to emphasis. That violates the documented guarantee that commands inside backtick spans remain untouched; the span parser needs to preserve variable-length backtick delimiters.
* Sync shared agents, skills, and standards from Agents main
Copies Agents #60 (docdown wording), #62 (orchestrator Pull Requests,
planning Feasibility and Delivery), and #64 (SysML2 one package per
file). AGENTS.md gains the Project Scripts section and drops the
scripts from the protected list.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Sync reference template: yamlfix comments, script headers, tool pins
- .yamlfix.toml: comments_require_starting_space = false and the
template notes for it and the no-limit line_length (Agents #61, #59)
- .yamllint.yaml: no-limit line-length comment (Agents #59)
- build.ps1, lint.ps1, fix.ps1: CUSTOMIZATION headers replace the
MODIFICATION POLICY text; steps unchanged (Agents #63)
- LintMark 0.1.0-beta.3, TextLint 0.1.0-beta.5, yamllint 1.38.0
(Agents #58, #59)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Apply fix.ps1: unwrap folded YAML plain scalars
Mechanical yamlfix output under the no-limit line_length policy. Parsed
YAML is identical before and after for all 54 files.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Calm the README hero and make it the H1
- Tagline: plain statement 'Markdown API reference / from .NET, C++
and VHDL.' (36px, solid colors, no gradient text)
- Body and footnote state facts (output layout, doc coverage, CLI or
MSBuild; .NET 10 and 11 on Windows, Linux, macOS)
- The PDF card is labelled as made downstream by Pandoc
- README: the hero is the H1 with the badges under it (Agents #66)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Record the legacy SysML2 package layout as a standards exception
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* CI: install a pinned modern clang (LLVM 21)
The Windows runner image now ships Visual Studio 18.12, whose C++ standard library headers reject the runner's preinstalled clang (STL1000), so the C++ parser tests failed. Install LLVM 21 with KyleMayes/install-llvm-action in the build and integration-test jobs on every OS.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* README: keep the hero H1 alt text to the name and tagline
The hero image is the H1, so its alt text is the page title for screen readers; the details are in the README text below.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* CI: install the pinned clang on Windows only, outside the checkout
On macOS the action's DYLD_LIBRARY_PATH made dotnet crash; Linux and macOS already have a working system clang.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Test: show every clang error when the fixture headers fail to parse
Assert.Empty truncated the message to the start of a Visual Studio header path, hiding the actual diagnostic.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* CI: pin clang 22.1.8 on Windows
The runner's Visual Studio 18.12 standard library (MSVC 14.52) requires clang 22 or newer (STL1000). The action's asset list stops at 21.x for Windows x64, so download the LLVM 22.1.8 release archive directly.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* CI: point ApiMark at the pinned clang with APIMARK_CLANG_PATH
LLVM 22.1.8 installed, but discovery still resolved the runner's older clang, which the MSVC 14.52 standard library rejects.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* CI: locate the pinned clang.exe inside the extracted archive
The LLVM release archive extracts under a versioned top-level folder, so LLVM_PATH\bin\clang.exe did not exist.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* CI: use the LLVM Windows installer for the pinned clang
On Windows install-llvm-action extracts with 7-Zip, which unpacks the .exe installer directly but only decompresses the .tar.xz to a .tar.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Malcolm Nixon <Malcolm.Nixon@hiarc.inc>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
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.
Converts emphasis (/, \b/\em/\e/\a/\c/\p) in C# XML docs, C++ Doxygen and VHDL comments to Markdown, and tags fenced code blocks with a language (lang/language attribute, csharp/cpp/vhdl defaults).