@progfay/scrapbox-parser@2.3.0で /help/Syntax をパースしたときの全JSONをフラットにしたもの
#scrapbox-parser
「JSONをフラットにするNipp」を利用している。
code:json
{
"title": "Syntax",
"blocks0.indent": 0,
"blocks0.type": "line",
"blocks0.nodes0.type": "image",
"blocks0.nodes0.src": "https://gyazo.com/0f82099330f378fe4917a1b4a5fe8815/thumb/1000",
"blocks0.nodes0.link": "",
"blocks1.indent": 0,
"blocks1.type": "line",
"blocks2.indent": 0,
"blocks2.type": "line",
"blocks3.indent": 0,
"blocks3.type": "line",
"blocks3.nodes0.type": "decoration",
"blocks3.nodes0.decos0": "*-1",
"blocks3.nodes0.nodes0.type": "plain",
"blocks3.nodes0.nodes0.text": "Mouse-based editing",
"blocks4.indent": 0,
"blocks4.type": "line",
"blocks4.nodes0.type": "image",
"blocks4.nodes0.src": "https://gyazo.com/a515ab169b1e371641f7e04bfa92adbc/thumb/1000",
"blocks4.nodes0.link": "",
"blocks5.indent": 0,
"blocks5.type": "line",
"blocks6.indent": 0,
"blocks6.type": "line",
"blocks6.nodes0.type": "strong",
"blocks6.nodes0.nodes0.type": "plain",
"blocks6.nodes0.nodes0.text": "Internal Links",
"blocks6.nodes1.type": "plain",
"blocks6.nodes1.text": " (linking to another page on scrapbox)",
"blocks7.indent": 1,
"blocks7.type": "line",
"blocks7.nodes0.type": "code",
"blocks7.nodes0.text": "link",
"blocks7.nodes1.type": "plain",
"blocks7.nodes1.text": " ⇒ ",
"blocks7.nodes2.type": "link",
"blocks7.nodes2.pathType": "relative",
"blocks7.nodes2.href": "Link",
"blocks8.indent": 0,
"blocks8.type": "line",
"blocks9.indent": 0,
"blocks9.type": "line",
"blocks9.nodes0.type": "strong",
"blocks9.nodes0.nodes0.type": "plain",
"blocks9.nodes0.nodes0.text": "External Links",
"blocks9.nodes1.type": "plain",
"blocks9.nodes1.text": " (linking to another web page)",
"blocks10.indent": 1,
"blocks10.type": "line",
"blocks10.nodes0.type": "code",
"blocks10.nodes0.text": "http://google.com",
"blocks10.nodes1.type": "plain",
"blocks10.nodes1.text": " ⇒ ",
"blocks10.nodes2.type": "link",
"blocks10.nodes2.pathType": "absolute",
"blocks10.nodes2.href": "http://google.com",
"blocks10.nodes2.content": "",
"blocks11.indent": 1,
"blocks11.type": "line",
"blocks11.nodes0.type": "code",
"blocks11.nodes0.text": "Google",
"blocks11.nodes1.type": "plain",
"blocks11.nodes1.text": " ⇒ ",
"blocks11.nodes2.type": "link",
"blocks11.nodes2.pathType": "absolute",
"blocks11.nodes2.href": "http://google.com",
"blocks11.nodes2.content": "Google",
"blocks12.indent": 0,
"blocks12.type": "line",
"blocks12.nodes0.type": "plain",
"blocks12.nodes0.text": "or",
"blocks13.indent": 1,
"blocks13.type": "line",
"blocks13.nodes0.type": "code",
"blocks13.nodes0.text": "Google",
"blocks13.nodes1.type": "plain",
"blocks13.nodes1.text": " ⇒ ",
"blocks13.nodes2.type": "link",
"blocks13.nodes2.pathType": "absolute",
"blocks13.nodes2.href": "http://google.com",
"blocks13.nodes2.content": "Google",
"blocks14.indent": 0,
"blocks14.type": "line",
"blocks15.indent": 0,
"blocks15.type": "line",
"blocks15.nodes0.type": "strong",
"blocks15.nodes0.nodes0.type": "plain",
"blocks15.nodes0.nodes0.text": "Images",
"blocks16.indent": 1,
"blocks16.type": "line",
"blocks16.nodes0.type": "plain",
"blocks16.nodes0.text": "Direct mage link ↓",
"blocks16.nodes1.type": "code",
"blocks16.nodes1.text": "https://gyazo.com/da78df293f9e83a74b5402411e2f2e01.png",
"blocks17.indent": 1,
"blocks17.type": "line",
"blocks17.nodes0.type": "image",
"blocks17.nodes0.src": "https://i.gyazo.com/da78df293f9e83a74b5402411e2f2e01.png",
"blocks17.nodes0.link": "",
"blocks18.indent": 0,
"blocks18.type": "line",
"blocks19.indent": 0,
"blocks19.type": "line",
"blocks19.nodes0.type": "strong",
"blocks19.nodes0.nodes0.type": "plain",
"blocks19.nodes0.nodes0.text": "Clickable Thumbnail Links",
"blocks20.indent": 1,
"blocks20.type": "line",
"blocks20.nodes0.type": "plain",
"blocks20.nodes0.text": "↓ ",
"blocks20.nodes1.type": "code",
"blocks20.nodes1.text": "http://cutedog.com https://i.gyazo.com/da78df293f9e83a74b5402411e2f2e01.png",
"blocks20.nodes2.type": "plain",
"blocks20.nodes2.text": " ",
"blocks21.indent": 1,
"blocks21.type": "line",
"blocks21.nodes0.type": "image",
"blocks21.nodes0.src": "https://i.gyazo.com/da78df293f9e83a74b5402411e2f2e01.png",
"blocks21.nodes0.link": "http://cutedog.com",
"blocks22.indent": 1,
"blocks22.type": "line",
"blocks22.nodes0.type": "plain",
"blocks22.nodes0.text": "Adding the link at the end also works, as before:",
"blocks23.indent": 2,
"blocks23.type": "line",
"blocks23.nodes0.type": "code",
"blocks23.nodes0.text": "https://i.gyazo.com/da78df293f9e83a74b5402411e2f2e01.png http://cutedog.com",
"blocks24.indent": 0,
"blocks24.type": "line",
"blocks25.indent": 0,
"blocks25.type": "line",
"blocks25.nodes0.type": "strong",
"blocks25.nodes0.nodes0.type": "plain",
"blocks25.nodes0.nodes0.text": "Linking to other scrapbox projects",
"blocks26.indent": 1,
"blocks26.type": "line",
"blocks26.nodes0.type": "code",
"blocks26.nodes0.text": "/projectname/pagename",
"blocks26.nodes1.type": "plain",
"blocks26.nodes1.text": " ⇛ ",
"blocks26.nodes2.type": "link",
"blocks26.nodes2.pathType": "root",
"blocks26.nodes2.href": "/icons/check",
"blocks27.indent": 1,
"blocks27.type": "line",
"blocks27.nodes0.type": "code",
"blocks27.nodes0.text": "/projectname",
"blocks27.nodes1.type": "plain",
"blocks27.nodes1.text": " ⇛ ",
"blocks27.nodes2.type": "link",
"blocks27.nodes2.pathType": "root",
"blocks27.nodes2.href": "/icons",
"blocks28.indent": 0,
"blocks28.type": "line",
"blocks29.indent": 0,
"blocks29.type": "line",
"blocks29.nodes0.type": "strong",
"blocks29.nodes0.nodes0.type": "plain",
"blocks29.nodes0.nodes0.text": "Icons",
"blocks30.indent": 1,
"blocks30.type": "line",
"blocks30.nodes0.type": "code",
"blocks30.nodes0.text": "ben.icon",
"blocks30.nodes1.type": "plain",
"blocks30.nodes1.text": " ⇛ ",
"blocks30.nodes2.type": "icon",
"blocks30.nodes2.pathType": "relative",
"blocks30.nodes2.path": "ben",
"blocks31.indent": 1,
"blocks31.type": "line",
"blocks31.nodes0.type": "code",
"blocks31.nodes0.text": "/icons/todo.icon",
"blocks31.nodes1.type": "plain",
"blocks31.nodes1.text": " ⇛ ",
"blocks31.nodes2.type": "icon",
"blocks31.nodes2.pathType": "root",
"blocks31.nodes2.path": "/icons/todo",
"blocks32.indent": 0,
"blocks32.type": "line",
"blocks33.indent": 0,
"blocks33.type": "line",
"blocks33.nodes0.type": "strong",
"blocks33.nodes0.nodes0.type": "plain",
"blocks33.nodes0.nodes0.text": "Bold text",
"blocks34.indent": 1,
"blocks34.type": "line",
"blocks34.nodes0.type": "code",
"blocks34.nodes0.text": "Bold",
"blocks34.nodes1.type": "plain",
"blocks34.nodes1.text": " or ",
"blocks34.nodes2.type": "code",
"blocks34.nodes2.text": "Bold",
"blocks34.nodes3.type": "plain",
"blocks34.nodes3.text": "⇒ ",
"blocks34.nodes4.type": "strong",
"blocks34.nodes4.nodes0.type": "plain",
"blocks34.nodes4.nodes0.text": "Bold",
"blocks35.indent": 0,
"blocks35.type": "line",
"blocks36.indent": 0,
"blocks36.type": "line",
"blocks36.nodes0.type": "strong",
"blocks36.nodes0.nodes0.type": "plain",
"blocks36.nodes0.nodes0.text": "Italic text",
"blocks37.indent": 1,
"blocks37.type": "line",
"blocks37.nodes0.type": "code",
"blocks37.nodes0.text": "italic",
"blocks37.nodes1.type": "plain",
"blocks37.nodes1.text": "⇛ ",
"blocks37.nodes2.type": "decoration",
"blocks37.nodes2.decos0": "/",
"blocks37.nodes2.nodes0.type": "plain",
"blocks37.nodes2.nodes0.text": "italic",
"blocks38.indent": 0,
"blocks38.type": "line",
"blocks39.indent": 0,
"blocks39.type": "line",
"blocks39.nodes0.type": "strong",
"blocks39.nodes0.nodes0.type": "plain",
"blocks39.nodes0.nodes0.text": " Strikethrough text",
"blocks40.indent": 1,
"blocks40.type": "line",
"blocks40.nodes0.type": "code",
"blocks40.nodes0.text": "strikethrough",
"blocks40.nodes1.type": "plain",
"blocks40.nodes1.text": "⇛ ",
"blocks40.nodes2.type": "decoration",
"blocks40.nodes2.decos0": "-",
"blocks40.nodes2.nodes0.type": "plain",
"blocks40.nodes2.nodes0.text": "strikethrough",
"blocks41.indent": 0,
"blocks41.type": "line",
"blocks41.nodes0.type": "image",
"blocks41.nodes0.src": "https://gyazo.com/00ab07461d502db91c8ae170276d1396/thumb/1000",
"blocks41.nodes0.link": "",
"blocks42.indent": 0,
"blocks42.type": "line",
"blocks43.indent": 0,
"blocks43.type": "line",
"blocks43.nodes0.type": "strong",
"blocks43.nodes0.nodes0.type": "plain",
"blocks43.nodes0.nodes0.text": "Bullet points",
"blocks44.indent": 1,
"blocks44.type": "line",
"blocks44.nodes0.type": "plain",
"blocks44.nodes0.text": "Press space or tab on a new line to indent and create a bullet point",
"blocks45.indent": 2,
"blocks45.type": "line",
"blocks45.nodes0.type": "plain",
"blocks45.nodes0.text": "Press backspace to remove the indent / bullet point",
"blocks46.indent": 0,
"blocks46.type": "line",
"blocks47.indent": 0,
"blocks47.type": "line",
"blocks47.nodes0.type": "strong",
"blocks47.nodes0.nodes0.type": "plain",
"blocks47.nodes0.nodes0.text": "Hashtags / internal links",
"blocks48.indent": 1,
"blocks48.type": "line",
"blocks48.nodes0.type": "code",
"blocks48.nodes0.text": "#tag",
"blocks48.nodes1.type": "plain",
"blocks48.nodes1.text": " and ",
"blocks48.nodes2.type": "code",
"blocks48.nodes2.text": "link",
"blocks48.nodes3.type": "plain",
"blocks48.nodes3.text": " work the same to create a link but also define related pages you can find later",
"blocks49.indent": 1,
"blocks49.type": "line",
"blocks49.nodes0.type": "plain",
"blocks49.nodes0.text": "Add links in the middle of a sentence to branch off as you type or add tags at the end to organize.",
"blocks50.indent": 0,
"blocks50.type": "line",
"blocks51.indent": 0,
"blocks51.type": "line",
"blocks51.nodes0.type": "strong",
"blocks51.nodes0.nodes0.type": "plain",
"blocks51.nodes0.nodes0.text": "Block quote",
"blocks52.indent": 0,
"blocks52.type": "line",
"blocks52.nodes0.type": "quote",
"blocks52.nodes0.nodes0.type": "plain",
"blocks52.nodes0.nodes0.text": " use the right arrow ",
"blocks52.nodes0.nodes1.type": "code",
"blocks52.nodes0.nodes1.text": ">",
"blocks52.nodes0.nodes2.type": "plain",
"blocks52.nodes0.nodes2.text": " at the beginning of a line to get a block quote ",
"blocks53.indent": 0,
"blocks53.type": "line",
"blocks54.indent": 0,
"blocks54.type": "line",
"blocks54.nodes0.type": "strong",
"blocks54.nodes0.nodes0.type": "link",
"blocks54.nodes0.nodes0.pathType": "relative",
"blocks54.nodes0.nodes0.href": "Code notation",
"blocks55.indent": 1,
"blocks55.type": "line",
"blocks55.nodes0.type": "plain",
"blocks55.nodes0.text": "Use backquotes or backticks, `, to highlight code ",
"blocks56.indent": 1,
"blocks56.type": "line",
"blocks56.nodes0.type": "plain",
"blocks56.nodes0.text": "e.g. ",
"blocks56.nodes1.type": "code",
"blocks56.nodes1.text": "function() { return true }",
"blocks57.indent": 0,
"blocks57.type": "line",
"blocks58.indent": 0,
"blocks58.type": "line",
"blocks58.nodes0.type": "strong",
"blocks58.nodes0.nodes0.type": "link",
"blocks58.nodes0.nodes0.pathType": "relative",
"blocks58.nodes0.nodes0.href": "Code block notation",
"blocks59.indent": 1,
"blocks59.type": "line",
"blocks59.nodes0.type": "plain",
"blocks59.nodes0.text": "Typing ",
"blocks59.nodes1.type": "code",
"blocks59.nodes1.text": "code:filename.extension",
"blocks59.nodes2.type": "plain",
"blocks59.nodes2.text": "or",
"blocks59.nodes3.type": "code",
"blocks59.nodes3.text": "code:filename",
"blocks59.nodes4.type": "plain",
"blocks59.nodes4.text": "can be used to create a new code snippet and and display it as a block",
"blocks60.indent": 2,
"blocks60.type": "line",
"blocks60.nodes0.type": "plain",
"blocks60.nodes0.text": "Language names may be abbreviated",
"blocks61.indent": 1,
"blocks61.type": "codeBlock",
"blocks61.fileName": "hello.js",
"blocks61.content": "function () {\n alert(document.location.href)\n console.log(\"hello\")\n // You can also write comments!\n}",
"blocks62.indent": 0,
"blocks62.type": "line",
"blocks63.indent": 0,
"blocks63.type": "line",
"blocks63.nodes0.type": "strong",
"blocks63.nodes0.nodes0.type": "link",
"blocks63.nodes0.nodes0.pathType": "relative",
"blocks63.nodes0.nodes0.href": "Tables",
"blocks64.indent": 1,
"blocks64.type": "line",
"blocks64.nodes0.type": "plain",
"blocks64.nodes0.text": "Type table: tablename to create a table",
"blocks65.indent": 1,
"blocks65.type": "line",
"blocks65.nodes0.type": "plain",
"blocks65.nodes0.text": "Use tab to move to the next column, use enter to move to the next row.",
"blocks66.indent": 1,
"blocks66.type": "line",
"blocks66.nodes0.type": "plain",
"blocks66.nodes0.text": "An example:",
"blocks67.indent": 0,
"blocks67.type": "table",
"blocks67.fileName": "hello",
"blocks67.cells000.type": "plain",
"blocks67.cells000.text": "1",
"blocks67.cells010.type": "plain",
"blocks67.cells010.text": "2",
"blocks67.cells020.type": "plain",
"blocks67.cells020.text": "3",
"blocks67.cells100.type": "plain",
"blocks67.cells100.text": "1 ",
"blocks67.cells110.type": "plain",
"blocks67.cells110.text": "2 ",
"blocks67.cells120.type": "plain",
"blocks67.cells120.text": "3",
"blocks67.cells200.type": "plain",
"blocks67.cells200.text": "------",
"blocks67.cells210.type": "plain",
"blocks67.cells210.text": "------",
"blocks67.cells220.type": "plain",
"blocks67.cells220.text": "------",
"blocks67.cells300.type": "plain",
"blocks67.cells300.text": "a",
"blocks67.cells310.type": "plain",
"blocks67.cells310.text": "b",
"blocks67.cells320.type": "plain",
"blocks67.cells320.text": "c"
}