NISHIO Hirokazu[Translate]
Denoでscrapbox-parserを使う
hello.ts
import { parse } from "https://deno.land/x/scrapbox_parser@0.0.1/src/index.ts"; console.log(parse("\nhello[a link]world"));
output
$ deno run hello.ts Check file:///Users/nishio/scaffold_network/hello.ts [ { type: "title", text: "" }, { indent: 0, type: "line", nodes: [ { type: "plain", raw: "hello", text: "hello" }, { type: "link", raw: "[a link]", pathType: "relative", href: "a link", content: "" }, { type: "plain", raw: "world", text: "world" } ] } ]


"Engineer's way of creating knowledge" the English version of my book is now available on [Engineer's way of creating knowledge]

(C)NISHIO Hirokazu / Converted from [Scrapbox] at [Edit]