Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Mokutter - a Markdown generator for a table of contents (Mokuji)
- ## Usage
- ```bash
- cat mokuji.txt | python3 mokutter.py | pbcopy
- ```
- ## Example
- The following is the sample input file, mokuji.txt.
- ```txt:mokuji.txt
- 第Ⅰ部 AAAの原則
- 1章 AAAのアンチパターン
- 1.1 アンチパターン1
- 1.1.1 AAAとは
- 1.1.2 BBBなツール
- 1.2 まとめ
- 2章 デザインパターン
- 2.1 デザインパターン1
- 2.1.1 サービスのコンポーネント
- 2.2 デザインパターン2
- ```
- Then the tool generates markdown as follows:
- ```
- ## 第Ⅰ部 AAAの原則
- ## 1章 AAAのアンチパターン
- - 1.1 アンチパターン1
- - 1.1.1 AAAとは
- - 1.1.2 BBBなツール
- - 1.2 まとめ
- ## 2章 デザインパターン
- - 2.1 デザインパターン1
- - 2.1.1 サービスのコンポーネント
- - 2.2 デザインパターン2
- ```
Add Comment
Please, Sign In to add comment