Skip to content

agnoster/markdownstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarkDownStream build status

Streaming markdown parser that will allows round-tripping and patching

WARNING: Only for parsing code blocks currently

Ever wanted to parse a markdown file, and just fix certain things? Like maybe extract all the code segments, or add numbering to the headers, or fix all the numberings of ordered lists?

Well, now you can.

...

Actually, right now you can't, because I'm still working on it.

What you can do right now:

  • Stream through a file
  • Capture all code blocks, both in raw and parsed form
  • Re-render code blocks, switch from fenced to unfenced
  • Automatically render code blocks as fenced if tags are given

What is planned

  • Detect and expose other chunk types (headers, lists, paragraphs, etc.)
  • Cleaner parsing

About

Streaming markdown parser that allows round-tripping and patching

Resources

Stars

Watchers

Forks

Packages

No packages published