Skip to content

Commit c5015e2

Browse files
committed
adding meta to the new node from markdown-it meta #38
1 parent 3cc6da9 commit c5015e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/util/tokensToAST.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import getTokenTypeByToken from './getTokenTypeByToken';
33

44
/**
55
*
6-
* @param {{type: string, tag:string, content: string, children: *, attrs: Array}} token
6+
* @param {{type: string, tag:string, content: string, children: *, attrs: Array, meta}} token
77
* @param {number} tokenIndex
88
* @return {{type: string, content, tokenIndex: *, index: number, attributes: {}, children: *}}
99
*/
@@ -25,6 +25,7 @@ function createNode(token, tokenIndex) {
2525
return {
2626
type,
2727
sourceType: token.type,
28+
meta: token.meta,
2829
key: getUniqueID(),
2930
content,
3031
tokenIndex,

0 commit comments

Comments
 (0)