Guest User

Untitled

a guest
Feb 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. # Mokutter - a Markdown generator for a table of contents (Mokuji)
  2.  
  3. ## Usage
  4.  
  5. ```bash
  6. cat mokuji.txt | python3 mokutter.py | pbcopy
  7. ```
  8.  
  9. ## Example
  10.  
  11. The following is the sample input file, mokuji.txt.
  12.  
  13. ```txt:mokuji.txt
  14. 第Ⅰ部 AAAの原則
  15.  
  16. 1章 AAAのアンチパターン
  17. 1.1 アンチパターン1
  18. 1.1.1 AAAとは
  19. 1.1.2 BBBなツール
  20. 1.2 まとめ
  21.  
  22. 2章 デザインパターン
  23. 2.1 デザインパターン1
  24. 2.1.1 サービスのコンポーネント
  25. 2.2 デザインパターン2
  26. ```
  27.  
  28. Then the tool generates markdown as follows:
  29.  
  30. ```
  31. ## 第Ⅰ部 AAAの原則
  32.  
  33. ## 1章 AAAのアンチパターン
  34. - 1.1 アンチパターン1
  35. - 1.1.1 AAAとは
  36. - 1.1.2 BBBなツール
  37. - 1.2 まとめ
  38.  
  39. ## 2章 デザインパターン
  40. - 2.1 デザインパターン1
  41. - 2.1.1 サービスのコンポーネント
  42. - 2.2 デザインパターン2
  43. ```
Add Comment
Please, Sign In to add comment