koino
所属分类:collect
开发工具:Zig
文件大小:0KB
下载次数:0
上传日期:2023-05-02 05:44:49
上 传 者:
sh-1993
说明: CommonMark+GFM兼容的Markdown解析器和渲染器,
(CommonMark + GFM compatible Markdown parser and renderer,)
文件列表:
LICENSE (1071, 2023-08-28)
Makefile (149, 2023-08-28)
TODO (140, 2023-08-28)
build.zig (1894, 2023-08-28)
flake.lock (1410, 2023-08-28)
flake.nix (787, 2023-08-28)
src/ (0, 2023-08-28)
src/ast.zig (5989, 2023-08-28)
src/autolink.zig (9567, 2023-08-28)
src/html.zig (21226, 2023-08-28)
src/inlines.zig (30595, 2023-08-28)
src/koino.zig (172, 2023-08-28)
src/main.zig (6525, 2023-08-28)
src/nodes.zig (4641, 2023-08-28)
src/options.zig (641, 2023-08-28)
src/parser.zig (42347, 2023-08-28)
src/scanners.zig (16848, 2023-08-28)
src/strings.zig (15550, 2023-08-28)
src/table.zig (5220, 2023-08-28)
vendor/ (0, 2023-08-28)
vendor/cmark-gfm/ (0, 2023-08-28)
vendor/htmlentities/ (0, 2023-08-28)
vendor/libpcre/ (0, 2023-08-28)
vendor/zig-clap/ (0, 2023-08-28)
vendor/zunicode/ (0, 2023-08-28)
# koino
![Build status](https://github.com/kivikakk/koino/workflows/Zig/badge.svg)
![Spec Status: 671/671](https://img.shields.io/badge/specs-671%2F671-brightgreen.svg)
Zig port of [Comrak](https://github.com/kivikakk/comrak). Maintains 100% spec-compatibility with [GitHub Flavored Markdown](https://github.github.com/gfm/).
## Getting started
* Clone the repository with submodules, as we have quite a few dependencies.
```console
$ git clone --recurse-submodules https://github.com/kivikakk/koino
```
* [Follow the `libpcre.zig` dependency install instructions](https://github.com/kivikakk/libpcre.zig/blob/main/README.md) for your operating system.
* Build and run the spec suite.
```console
$ zig build test
$ make spec
```
* Have a look at the bottom of [`parser.zig`](https://github.com/kivikakk/koino/blob/main/src/parser.zig) to see some test usage.
## Usage
Command line:
```console
$ koino --help
Usage: koino [-hu] [-e ...] [--smart]
Options:
-h, --help Display this help and exit
-u, --unsafe Render raw HTML and dangerous URLs
-e, --extension ... Enable an extension. (table,strikethrough,autolink,tagfilter)
--smart Use smart punctuation.
```
Library:
Documentation is TODO — see [LoLa](https://github.com/MasterQ32/LoLa/blob/d02b0e6774fedbe07276d8af51e1a305cc58fb34/src/tools/render-md-page.zig#L157) for an example of use. Note also the [`build.zig`](https://github.com/MasterQ32/LoLa/blob/d02b0e6774fedbe07276d8af51e1a305cc58fb34/build.zig#L41-L50) declaration.
近期下载者:
相关文件:
收藏者: