Skip to content

kennetpostigo/markdown-reason-react

Repository files navigation

markdown-reason-react

The goal of this library is to create a CLI that will take a directory of markdown files and then spit out those same markdown files as reason-react pages. This library is a work in progress, but is actively being worked on.

Optionally if you're just making a completely static site you can have a directory of just markdown files and nothing else and pass a --static that will generate a SPA.

Remaining Alpha Functionality to Implement

  • Parse top level elements
  • Parse inline/nested elements
  • Generate AST
  • Codegen top level elements
  • Codegen inline elements
  • Refmt generated code
  • Highlight Code Blocks
  • Interpolate ReasonReact components in markdown

Future work after Alpha

  • Markdown Linting with fantastic error messages
  • Implement --static
  • Markdown -> plain html (only requires a different codegen, this is simple)
  • Markdown -> react.js (only requires a different codegen, this is simple)
                                 MARKDOWN-TO-REASON-REACT



SYNOPSIS
       markdown-to-reason-react [OPTION]... DIRECTORY

DESCRIPTION
       markdown-to-reason-react takes a directory of markdown files
       and returns a directory of reason-react pages

ARGUMENTS
       DIRECTORY
           input directories

OPTIONS
       -static
           It will generate a single page application from the directory of
           markdown pages

About

Generate ReasonReact Pages from Markdown

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages