Jocasta
Utility to extract a section of a Markdown file and write it into a separate file.
Installation
gem install jocasta
Usage
jocasta [input] [output] [level] [section] [...options]
- input - input markdown file.
- output - Markdown file that will be written.
-
level - Level of the section to be extracted (
# Level1
## Level2
### Level3
) - section - Section to be extracted. It will also extract sub-sections inside this section.
Options:
- --title - Title that will replace the section title in the output file. If none, it will use the same title.
- --out_level - Level of the parent section in the output file. If none, it will keep the same level.
Named after Jocasta Nu from Star Wars. Based on script made by ReSwift