feat: add an expressive-code plugin to support marks in code block#62
Merged
Lancern merged 9 commits intocppdoc-cc:mainfrom Dec 9, 2025
Merged
feat: add an expressive-code plugin to support marks in code block#62Lancern merged 9 commits intocppdoc-cc:mainfrom
Lancern merged 9 commits intocppdoc-cc:mainfrom
Conversation
|
@Sudrut is attempting to deploy a commit to the microcber's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
|
Could you also update the development documentation at |
Contributor
Author
Ok I will try to add instructions to that page in a section named "Code block inline markers". I couldn't figure out a better name for it. |
Contributor
Author
|
The documentation is added. Sorry I'm terribly sick and will be unable to work for a period of time. |
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.
With the plugin one can specify part of code block as "is a syntax notion", "is exposition only", or "is optional" rendered in cppref style.
Enable this feature by adding
cxx-markafter the language name of code block's opening fence. When enabled, inside the code block type /*$s:content*/ for syntax notation, /*$expos:content*/ for exposition-only things and /*$opt*/ for an optional mark. The syntax /*$...*/ above is chosen just for convenience.For example, provided the following
DeclDoccomponent:Output: