Skip to content

Instantly share code, notes, and snippets.

@rayepeng
Created June 8, 2023 05:06
Show Gist options
  • Select an option

  • Save rayepeng/dfcb67088f8f87f9ef5be9801413411c to your computer and use it in GitHub Desktop.

Select an option

Save rayepeng/dfcb67088f8f87f9ef5be9801413411c to your computer and use it in GitHub Desktop.

Revisions

  1. rayepeng created this gist Jun 8, 2023.
    35 changes: 35 additions & 0 deletions AST demo.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    {
    "type":"Block",
    "nodes":[
    {
    "type":"Tag",
    "name":"h1",
    "selfClosing":false,
    "block":{
    "type":"Block",
    "nodes":[
    {
    "type":"Code",
    "val":"msg",
    "buffer":true,
    "mustEscape":true,
    "isInline":true,
    "line":1,
    "column":3
    }
    ],
    "line":1
    },
    "attrs":[

    ],
    "attributeBlocks":[

    ],
    "isInline":false,
    "line":1,
    "column":1
    }
    ],
    "line":0
    }