@progfay/scrapbox-parser@2.3.0で /help/Syntax をパースしたときの全JSON
#scrapbox-parser
フラットにしたもの: 「@progfay/scrapbox-parser@2.3.0で /help/Syntax をパースしたときの全JSONをフラットにしたもの」
code:json
{
"title": "Syntax",
"blocks": [
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "image",
"src": "https://gyazo.com/0f82099330f378fe4917a1b4a5fe8815/thumb/1000",
"link": ""
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "decoration",
"decos": [
"*-1"
],
"nodes": [
{
"type": "plain",
"text": "Mouse-based editing"
}
]
}
]
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "image",
"src": "https://gyazo.com/a515ab169b1e371641f7e04bfa92adbc/thumb/1000",
"link": ""
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Internal Links"
}
]
},
{
"type": "plain",
"text": " (linking to another page on scrapbox)"
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "link"
},
{
"type": "plain",
"text": " ⇒ "
},
{
"type": "link",
"pathType": "relative",
"href": "Link"
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "External Links"
}
]
},
{
"type": "plain",
"text": " (linking to another web page)"
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "http://google.com"
},
{
"type": "plain",
"text": " ⇒ "
},
{
"type": "link",
"pathType": "absolute",
"href": "http://google.com",
"content": ""
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "Google"
},
{
"type": "plain",
"text": " ⇒ "
},
{
"type": "link",
"pathType": "absolute",
"href": "http://google.com",
"content": "Google"
}
]
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "or"
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "Google"
},
{
"type": "plain",
"text": " ⇒ "
},
{
"type": "link",
"pathType": "absolute",
"href": "http://google.com",
"content": "Google"
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Images"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Direct mage link ↓"
},
{
"type": "code",
"text": "https://gyazo.com/da78df293f9e83a74b5402411e2f2e01.png"
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "image",
"src": "https://i.gyazo.com/da78df293f9e83a74b5402411e2f2e01.png",
"link": ""
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Clickable Thumbnail Links"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "↓ "
},
{
"type": "code",
"text": "http://cutedog.com https://i.gyazo.com/da78df293f9e83a74b5402411e2f2e01.png"
},
{
"type": "plain",
"text": " "
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "image",
"src": "https://i.gyazo.com/da78df293f9e83a74b5402411e2f2e01.png",
"link": "http://cutedog.com"
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Adding the link at the end also works, as before:"
}
]
},
{
"indent": 2,
"type": "line",
"nodes": [
{
"type": "code",
"text": "https://i.gyazo.com/da78df293f9e83a74b5402411e2f2e01.png http://cutedog.com"
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Linking to other scrapbox projects"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "/projectname/pagename"
},
{
"type": "plain",
"text": " ⇛ "
},
{
"type": "link",
"pathType": "root",
"href": "/icons/check"
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "/projectname"
},
{
"type": "plain",
"text": " ⇛ "
},
{
"type": "link",
"pathType": "root",
"href": "/icons"
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Icons"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "ben.icon"
},
{
"type": "plain",
"text": " ⇛ "
},
{
"type": "icon",
"pathType": "relative",
"path": "ben"
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "/icons/todo.icon"
},
{
"type": "plain",
"text": " ⇛ "
},
{
"type": "icon",
"pathType": "root",
"path": "/icons/todo"
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Bold text"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "Bold"
},
{
"type": "plain",
"text": " or "
},
{
"type": "code",
"text": "Bold"
},
{
"type": "plain",
"text": "⇒ "
},
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Bold"
}
]
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Italic text"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "italic"
},
{
"type": "plain",
"text": "⇛ "
},
{
"type": "decoration",
"decos": [
"/"
],
"nodes": [
{
"type": "plain",
"text": "italic"
}
]
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": " Strikethrough text"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "strikethrough"
},
{
"type": "plain",
"text": "⇛ "
},
{
"type": "decoration",
"decos": [
"-"
],
"nodes": [
{
"type": "plain",
"text": "strikethrough"
}
]
}
]
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "image",
"src": "https://gyazo.com/00ab07461d502db91c8ae170276d1396/thumb/1000",
"link": ""
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Bullet points"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Press space or tab on a new line to indent and create a bullet point"
}
]
},
{
"indent": 2,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Press backspace to remove the indent / bullet point"
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Hashtags / internal links"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "code",
"text": "#tag"
},
{
"type": "plain",
"text": " and "
},
{
"type": "code",
"text": "link"
},
{
"type": "plain",
"text": " work the same to create a link but also define related pages you can find later"
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Add links in the middle of a sentence to branch off as you type or add tags at the end to organize."
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "plain",
"text": "Block quote"
}
]
}
]
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "quote",
"nodes": [
{
"type": "plain",
"text": " use the right arrow "
},
{
"type": "code",
"text": ">"
},
{
"type": "plain",
"text": " at the beginning of a line to get a block quote "
}
]
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "link",
"pathType": "relative",
"href": "Code notation"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Use backquotes or backticks, `, to highlight code "
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "e.g. "
},
{
"type": "code",
"text": "function() { return true }"
}
]
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "link",
"pathType": "relative",
"href": "Code block notation"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Typing "
},
{
"type": "code",
"text": "code:filename.extension"
},
{
"type": "plain",
"text": "or"
},
{
"type": "code",
"text": "code:filename"
},
{
"type": "plain",
"text": "can be used to create a new code snippet and and display it as a block"
}
]
},
{
"indent": 2,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Language names may be abbreviated"
}
]
},
{
"indent": 1,
"type": "codeBlock",
"fileName": "hello.js",
"content": "function () {\n alert(document.location.href)\n console.log(\"hello\")\n // You can also write comments!\n}"
},
{
"indent": 0,
"type": "line",
"nodes": []
},
{
"indent": 0,
"type": "line",
"nodes": [
{
"type": "strong",
"nodes": [
{
"type": "link",
"pathType": "relative",
"href": "Tables"
}
]
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Type table: tablename to create a table"
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "Use tab to move to the next column, use enter to move to the next row."
}
]
},
{
"indent": 1,
"type": "line",
"nodes": [
{
"type": "plain",
"text": "An example:"
}
]
},
{
"indent": 0,
"type": "table",
"fileName": "hello",
"cells": [
[
[
{
"type": "plain",
"text": "1"
}
],
[
{
"type": "plain",
"text": "2"
}
],
[
{
"type": "plain",
"text": "3"
}
]
],
[
[
{
"type": "plain",
"text": "1 "
}
],
[
{
"type": "plain",
"text": "2 "
}
],
[
{
"type": "plain",
"text": "3"
}
]
],
[
[
{
"type": "plain",
"text": "------"
}
],
[
{
"type": "plain",
"text": "------"
}
],
[
{
"type": "plain",
"text": "------"
}
]
],
[
[
{
"type": "plain",
"text": "a"
}
],
[
{
"type": "plain",
"text": "b"
}
],
[
{
"type": "plain",
"text": "c"
}
]
]
]
}
]
}