diff --git a/README.md b/README.md index dc938e4..78819bc 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,32 @@ - - -# Description +# [markdown2bootstrapのコードブロックが残念だったので修正した - Qiita](http://qiita.com/tukiyo3/items/2243ea8c17fcdf2b6d10) -Converts a markdown file to a bootstrap-styled web page with a table of contents. It will figure out sections based on the headings used and calculate section numbers. +markdown2bootstrapのコードブロックが残念だったので修正した -From this: +ちょっと頑張ったけど全然ダメな箇所もあって力尽きた。 - +* [成果物 download](https://github.com/tukiyo/markdown2bootstrap) -To this: +## 修正内容 - + -# Installing - $ npm install markdown2bootstrap -# Usage +# オリジナルの使い方 - $ node_modules/.bin/markdown2bootstrap doc1.md doc2.md ... - Converted doc1.md to doc1.html - Converted doc2.md to doc2.html - ... - $ cp -a node_modules/markdown2bootstrap/bootstrap ./ +* [renier/markdown2bootstrap](https://github.com/renier/markdown2bootstrap) -Notice that you can convert multiple files by specifying them on the command line. +```bash:インストール +npm install markdown2bootstrap +``` -Now open `doc1.html` in a web browser. You will notice that section numbers are automatically added along with a floating table of contents bootstrap-style. If you want to **turn off section numbering** use the `-n` option: +```bash:markdown->html変換 +cp -a node_modules/markdown2bootstrap/bootstrap . +node_modules/.bin/markdown2bootstrap doc1.md +``` - $ node_modules/.bin/markdown2bootstrap -n doc.md +doc1.htmlが生成される。 -The table of contents will still be created. - -You can also **turn on a bootstrap page header** by passing `-h`. The header uses a title and a subtitle. You can specify them in the markdown document like this: - - - - -You should at least specify a title to give the webpage a proper html `
(.*)?<\/p>/; + var replacement = '
/g, ''). + replace(//g, ''). + // + replace(//g, ''). + replace(/<\/code>/g, ''). + // + replace(/```bash:/g, '
'). + replace(/'). + // replace(/".*mailto%3a(.*)"/, function(match, p1) { return "\"mailto:" + p1 + "\""; }); diff --git a/parts/bottom.html b/parts/bottom.html index 930b4b3..9ce2f76 100644 --- a/parts/bottom.html +++ b/parts/bottom.html @@ -12,5 +12,8 @@ + + +```<\/p>/g, '