• Stars
    star
    91
  • Rank 353,594 (Top 8 %)
  • Language
    Zig
  • License
    MIT License
  • Created over 3 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CommonMark + GFM compatible Markdown parser and renderer

Build status Spec Status: 671/671

Zig port of Comrak. Maintains 100% spec-compatibility with GitHub Flavored Markdown.

Getting started

  • Clone the repository with submodules, as we have quite a few dependencies.

    $ git clone --recurse-submodules https://github.com/kivikakk/koino
  • Follow the libpcre.zig dependency install instructions for your operating system.

  • Build and run the spec suite.

    $ zig build test
    $ make spec
  • Have a look at the bottom of parser.zig to see some test usage.

Usage

Command line:

$ koino --help
Usage: koino [-hu] [-e <EXTENSION>...] [--smart]

Options:
        -h, --help                      Display this help and exit
        -u, --unsafe                    Render raw HTML and dangerous URLs
        -e, --extension <EXTENSION>...  Enable an extension. (table,strikethrough,autolink,tagfilter)
            --smart                     Use smart punctuation.

Library:

Documentation is TODO — see LoLa for an example of use. Note also the build.zig declaration.