Socket
Socket
Sign inDemoInstall

markdownstream

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdownstream

Streaming markdown parser that allows round-tripping and patching


Version published
Maintainers
1
Created

Changelog

Source

0.0.1

  • Pass-through of files as a read-write stream
  • Detecting code blocks, both indented and fenced, plus fence tags
  • Re-rendering code blocks (switching indent/fenced modes, changing content, changing tags)
  • Testing with fakeStreams, node-tap, and on travis-ci for node 0.6 and 0.8

Readme

Source

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

Keywords

FAQs

Package last updated on 09 Aug 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc