Skip to content

Utility to extract a section of a Markdown file and write it into a separate file.

License

Notifications You must be signed in to change notification settings

duartepinto/jocasta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jocasta

Gem

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

About

Utility to extract a section of a Markdown file and write it into a separate file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages