Skip to content
/ gfmc Public

JavaScript pure implementation of GitHub Flavored Markdown (GFM) specification :octocat:

License

Notifications You must be signed in to change notification settings

z0al/gfmc

Repository files navigation

GFM Compiler

Travis npm All Contributors

JavaScript pure implementation of GitHub Flavored Markdown (GFM) specification.

Why?

  • ✅ %100 Specification compliance
  • 🚫 No dependencies
  • 🚀 Works in Node.js, and Browser

Installation

NOTE: I haven't published the npm package yet. It will automatically get published by Travis when all spec tests are passing

$ npm add --save gfmc

Usage

import gfmc from('gfmc')

const markdown = '# This is title  '

console.log(gfmc(markdown))
// =>
// <h1>This is title</h1>

Options

gfmc(src: string, options: Object)
Option Description
renderer {Object} A custom Renderer to be used by the Parser (default: HTMLRenderer)

Progress

The project is still in active development and currently doesn't support:

  • Fenced code blocks
  • HTML blocks
  • Link reference definitions
  • Tables
  • Block quotes
  • Lists
  • Task lists
  • Backslash escapes
  • Code spans
  • Emphasis and strong emphasis
  • Strikethrough
  • Links
  • Images
  • Autolinks
  • Raw HTML
  • Hard line breaks
  • Soft line breaks
  • Textual content

Contributors

Thanks goes to these wonderful people (emoji key):


Ahmed T. Ali

📝 💻 📖 ⚠️

Ashe Connor

💬

This project follows the all-contributors specification. Contributions of any kind welcome!

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Like it?

Give it a star(⭐️) 👆

License

MIT © Ahmed T. Ali

About

JavaScript pure implementation of GitHub Flavored Markdown (GFM) specification :octocat:

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published