Skip to content

Commit ab04389

Browse files
committed
fix(plugins/notes): add map to yfm_note_close token
1 parent ac31450 commit ab04389

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transform/plugins/notes.ts

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const notes: MarkdownItPluginCb = (md, {lang, path: optPath, log}) => {
8787
}
8888

8989
const newCloseToken = new state.Token('yfm_note_close', 'div', -1);
90+
newCloseToken.map = tokens[closeTokenIdx].map;
9091

9192
// Add extra paragraph
9293
const titleOpen = new state.Token('yfm_note_title_open', 'p', 1);

0 commit comments

Comments
 (0)