Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: Add new function "remarkGfmHighlight" for modifying "blockquo…
…te" nodes This commit introduces a new function called "remarkGfmHighlight" in a TypeScript file. The function utilizes the "visit" function to traverse a syntax tree and make modifications to specific nodes. In this case, it targets "blockquote" nodes and checks for "strong" nodes within them. If the starting column position of the "strong" node is 3, it further processes the node. It then compares the text value of the "strong" node with a predefined set of values ('Note', 'Tip', 'Important', 'Warning', 'Caution'). If there is a match, the "strong" node is replaced with a "text" node, and the value of the "text" node is set to a corresponding value from the "gfmHighlight" array. The changes are made to enhance the functionality of the code by adding support for modifying "blockquote" nodes based on specific conditions.
- Loading branch information