We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sourcepos
HtmlBlock
1:1-1:21
1:1-0:0
source:
let text = "<!-- A html block -->"; let arena = Arena::new(); let ast = parse_document(&arena, text, &Options::default()); println!("{:?}", ast);
output:
Node { data: RefCell { value: Ast { value: Document, sourcepos: Sourcepos { start: LineColumn { line: 1, column: 1 }, end: LineColumn { line: 1, column: 21 } }, internal_offset: 0, content: "", open: false, last_line_blank: false, table_visited: false, line_offsets: [] } }, children: [ Node { data: RefCell { value: Ast { value: HtmlBlock(NodeHtmlBlock { block_type: 2, literal: "<!-- A html block -->\n" }), sourcepos: Sourcepos { start: LineColumn { line: 1, column: 1 }, end: LineColumn { line: 0, column: 0 } }, internal_offset: 0, content: "", open: false, last_line_blank: false, table_visited: false, line_offsets: [0] } }, children: [] } ] }
environment:
The text was updated successfully, but these errors were encountered:
<pre> (block_type: 1) may have the same issue.
<pre>
block_type: 1
let text = "<pre>foo</pre>"; let arena = Arena::new(); let ast = parse_document(&arena, text, &Options::default()); println!("{:#?}", ast);
Node { data: RefCell { value: Ast { value: Document, sourcepos: Sourcepos { start: LineColumn { line: 1, column: 1, }, end: LineColumn { line: 1, column: 14, }, }, internal_offset: 0, content: "", open: false, last_line_blank: false, table_visited: false, line_offsets: [], }, }, children: [ Node { data: RefCell { value: Ast { value: HtmlBlock( NodeHtmlBlock { block_type: 1, literal: "<pre>foo</pre>\n", }, ), sourcepos: Sourcepos { start: LineColumn { line: 1, column: 1, }, end: LineColumn { line: 0, column: 0, }, }, internal_offset: 0, content: "", open: false, last_line_blank: false, table_visited: false, line_offsets: [ 0, ], }, }, children: [], }, ], }
Sorry, something went wrong.
No branches or pull requests
1:1-1:21
1:1-0:0
source:
output:
environment:
The text was updated successfully, but these errors were encountered: