You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lettoken=state.push('html_inline','',0);token.content=match[0];token.map=[startLine,state.line];// treat the following content as `inline` token to be parsed by other inline rulestoken=state.push('inline','',0);token.content=lineText.slice(match[0].length);token.map=[startLine,state.line];token.children=[];
I'm confused about how to use the token in markdown-it-rust. Could you please give me a hand?
The text was updated successfully, but these errors were encountered:
Maybe I'm misrepresenting what I mean. I want to return two Node in an BlockRule run function like the code above. I just found return Some(Node, XX) is just push one Node into the state.node. So I have no idea how to implement same function。
The project is really awesome! I'm going to implement
@mdit-vue/plugin-component
into Rust. When I checked the source code of@mdit-vue/plugin-component
, I found some code as follows.https://github.com/mdit-vue/mdit-vue/blob/main/packages/plugin-component/src/html-block-rule.ts#L111
I'm confused about how to use the
token
in markdown-it-rust. Could you please give me a hand?The text was updated successfully, but these errors were encountered: