Scrapbox Markdown

Posted on  by admin
  1. Scrapbox Markdown Code
  2. Scrapbox Markdown Schedule
  3. Scrapbox Markdown Table
Scrapbox markdown cheat
sb2md.js

Scrapbox Markdown Code

  1. Making item lists with Markdown is not difficult; doing it with Scrapbox mark-up language is easier. Scrapbox render spaces and tabs on the top of a line as itemization. Scrapbox has an additional feature that makes it easy to edit item lists: outline editing.
  2. Revisions Edit Requests Show all likers Show article in Markdown. Help us understand the problem. What is going on with this article? It's illegal (copyright infringement, privacy infringement.

Scrapbox Markdown Schedule

if(!Object.prototype.then){
Object.prototype.then=function(f){returnf.call(null,this);}
}
process.stdin.resume();
process.stdin.setEncoding('utf8');
letinput_string=';
process.stdin.on('data',chunk=>{
input_string+=chunk;
});
process.stdin.on('end',()=>{
consttext=input_string;
console.log(sb2md(text));
});
functionsb2md(text){
// code block
constescapeCodeBlocks=s=>s.replace(
/^code:(.+)$((n^[t].*$)+)/mg,
(_,p1,p2)=>
'```'+p1+p2.replace(/^[t]/mg,').replace(/rnrn/g,'+++')+'+++```'
);
constunescapeCodeBlocks=s=>s.replace(/+{3}/g,'n');
constreplaceLine=line=>
/^`{3}/.test(line) ? line :
// level 2 heading
line.replace(/^[[([^[]]+)]]$/,'## $1')
.replace(/^[*s+(S[^[]]*)]$/,'## $1')
// anchor link
.replace(/[(S.*)s+(https?://S+)]/g,'[$1]($2)')
.replace(/[(https?://S+)s+(S.*)]/g,'[$2]($1)')
// image block
.replace(/^[(https?://S+.(pnggifjpe?g))]$/,'![]($1)')
.replace(/^[(https://gyazo.com/S+)]$/,'![]($1.png)')
// unordered list
.replace(/^s(S.*)$/,'- $1')
.replace(/^s{2}(S.*)$/,' - $1')
.replace(/^s{3}(S.*)$/,' - $1')
// bold text
.replace(/[[([^[]]+)]]/g,'**$1**')
.replace(/[*s+([^[]]+)]/g,'**$1**')
// italic text
.replace(/[/s+([^[]]+)]/g,'*$1*');
returntext
.then(escapeCodeBlocks)
.split(/rnrn/)
// first line is level 1 heading
.then(lines=>[lines[0].replace(/^(.+)$/,'# $1')].concat(lines.slice(1)))
.map(replaceLine)
.join('n')
.then(unescapeCodeBlocks);
}
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Scrapbox parser. GitHub Gist: instantly share code, notes, and snippets. ScrapboxはMarkdownでエクスポートする機能がないので、Scrapboxで書き出したjson形式のデータをmarkdownに変換したい。 obsidian.md scrapbox.io やったこと ページごとにMarkdown風テキストファイルにするスクリプトを書いた。Scrapboxの記法を正規表現で置換することを試み.

I’m nearing the halfway mark on my Markdown journey and today I’m exploring the versatility of my devices and whether or not Markdown can be accessible via my iPad.

I’m writing this post using Writing Kit, and after playing with Byword on the Mac this app has a very different feel…yet can handle Markdown really well.

It does have similar resources to Byword available — by touching the Info button the app opens up a handy Markdown reference guide. The interface is inviting and it does link up with DropBox, so I’m pleased with that as well. Whether or not the app gets used a lot is an entirely different matter.

I often use a combo of Simplenote and BlogPress when drafting up posts on my iPad. Simplenote allows for syncing (via nvALT) should I want to tweak it on my MacBook Air and if I choose to go right to the site with my writing, then I simply copy and paste from Simplenote to BlogPress and publish away. The lack of true multitasking on the iPad is what could hinder my Markdown progress here. That may seem odd, but with little ability to go the CMS directly, it isn’t as friendly as I’d like. A personal preference…but one that changes my perspective on this device. Yet Writing Kit has managed to incorporate a semblance of multitasking into itself that enables me to get my writing done (research, linking and all) without ever leaving the app before completion of said work.

As I make my way through this entry in the series, I have noticed that the shortcuts Writing Kit has to offer make a big difference. Simply by pressing corresponding buttons on the top line of the iPad onscreen keyboard I can enter Markdown syntax quickly.

Sharing via Writing Kit is simple and incredibly diverse. Options include:

  • Posterous
  • Tumblr
  • Email
  • Twitter
  • Evernote
  • Facebook
  • Pastebot/li>
  • Instapaper

The sheer amount of options (all can be turned on and off in Settings) is astounding.

Scrapbox Markdown Table

Another bonus is the Research functionality, allowing me to perform quick searches to support my work. And with a built-in web browser at my fingertips, Writing Kit has done all it can to keep me “in app” while I’m writing away. Pretty darn impressive.

The image embedding isn’t as much of a problem as I first thought, either. That is, as long as you set up an image hosting service preference before getting into your work. Oh, and it has to be through CloudApp. But…once that’s done, adding an image is easy.

I’ve yet to really dive into Elements, mainly because Writing Kit has a lot of what I like built right in. I can even send items to OmniFocus from it…which is something I’ve not seen in this type of app to date. Export options are plentiful— as are the shortcuts. Since I can’t see a reason to switch apps while adapting to Markdown, I’m going to keep playing with Writing Kit until I’ve got it down cold. I’m impressed with it on the whole and it does exactly what I need and more.

That said, I will give other options a go in the future. Then we will see if Writing Kit will be usurped as my Markdown mainstay on my iPad.

Next up: The Journey to Markdown – On the iPhone

Do you want ideas, insights, and information on how to craft your time in just one weekly email?

Then you want ATTN: sent to you.

ATTN: is a weekly digest from Productivityist that delivers a week's worth of content in a nice little package directly to your inbox. Just enter your email to subscribe.