-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Markdown: special handling of DoD links (#2873)
This PR adds a custom transform plugin to convert dod style links (those pointing to #dod-term). It walks the html AST (not the markdown one) and adds the attributes we need and removes the href target. This plugin only applies to SimpleMarkdown, as here the html AST is used. In MarkdownTextWrap we don't go that far in the pipeline and just fetch the markdown AST - for that case we already have a special handling for dod style links in place when we pattern match from markdown AST to IRTokens
- Loading branch information
Showing
4 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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