0.0.1 • Published 3 years ago
scrapbox-to-markdown v0.0.1
scrapbox-to-markdown
A CLI application to convert Scrapbox text to Markdown using progfay/scrapbox-parser.
Install & Usage
Clone this repo and then execute the following commands.
pnpm global-install
scrapbox-to-markdown examples/example.txtor
pnpm tsc
node build/index.js examples/example.txts2m is an alias for scrapbox-to-markdown.
For Obsidian markdown:
scrapbox-to-markdown examples/example.txt --obsidianIf you want to output to a file:
scrapbox-to-markdow examples/example.txt -o examples/example.mdExample
example.txt based on https://scrapbox.io/help/syntax is converted to example.md as follows:
Syntax
[https://gyazo.com/0f82099330f378fe4917a1b4a5fe8815]
[[Internal Links]] (linking to another page on scrapbox)
`[link]` ⇒ [Link]
[[External Links]] (linking to another web page)
`http://google.com` ⇒ http://google.com
`[http://google.com Google]` ⇒ [http://google.com Google]
or
`[Google http://google.com]` ⇒ [Google http://google.com]
...is converted to
# Syntax

**Internal Links** (linking to another page on scrapbox)
- `[link]` ⇒ [Link](Link)
**External Links** (linking to another web page)
- `http://google.com` ⇒ [](http://google.com)
- `[http://google.com Google]` ⇒ [Google](http://google.com)
or
- `[Google http://google.com]` ⇒ [Google](http://google.com)
...0.0.1
3 years ago