https://www.paypal.me/barkinet?locale.x=en_MA&country.x=MA

Star0
Fork 4 barkinet/zmarkdown
forked from zestedesavoir/zmarkdown
Code Pull requests 0 Projects 0 Wiki Pulse Graphs Settings
https://zestedesavoir.github.io/zmark… Edit
Add topics
73 commits
3 branches
0 releases
4 contributors
JavaScript 95.5% HTML 4.2% CSS 0.3%
JavaScript HTML CSS
Clone or download Create new file Upload files Find file Branch: master New pull request
Pull request Compare This branch is even with zestedesavoir:master.
Latest commit fe404ac 4 days ago artragis committed with vhf Create video plugin (#34) …
bin Rework entry point; add bin 19 days ago
packages Create video plugin (#34) 4 days ago
public use CSS to align elements 5 days ago
test Create video plugin (#34) 4 days ago
.eslintignore Web bundle! (#20) 18 days ago
.eslintrc.json init 22 days ago
.gitignore Subsuperscript (#28) 14 days ago
.hound.yml Give hound eslint config 19 days ago
.nvmrc add nvmrc 20 days ago
.travis.yml Coverage setup; badges 20 days ago
README.md Fix coverage badge 15 days ago
config.js Create video plugin (#34) 4 days ago
index.js Create video plugin (#34) 4 days ago
package.json New katex option for inline displaymath w/ packages upgrade 8 days ago
wip.js Configurable processor 4 days ago
yarn.lock New katex option for inline displaymath w/ packages upgrade 8 days ago
README.md

zmarkdown

zmarkdown is remark-based reimplementation of Python-ZMarkdown.

Install

This project requires node >= 6.

clone
$ yarn or npm install
npm run test
Contribute

Make an existing skipped test pass

Enable a test by remove its .skip.
Run tests, see how it fails.
Write a plugin solving the issue or fix the test fixture. Each plugin is a packages/ subfolder.
You can inspect the AST at various transform stages, see index.js
Once you wrote a plugin, use() it in index.js.
Make sure tests are still passing and coverage isn’t going down.
Have a live view of what you’re working on

Take a look at wip.js
It’s easy to edit it, and if you:
npm run wip, it’ll auto-reload wip.js when you modify anything in the project and display in your terminal the HTML render and the AST!
diff

link title, link URL encoding

input:

[link]( “my title”)

diff:

link
+

link
list item indented code block

diff:

* list item

  • indented code

+ indented code
list items with list children are wrapped

input:

  • foo
    • bar

* baz
diff:

    • foo

    +

    foo

      • bar

      +

      bar

      • baz

hard wrap is Commonmark compliant

input:

This short paragraph is wrapped at 40
columns and a line which starts with eg
1. does not render as a list. It’s much
better that way.

An asterisk followed by a space should

  • create a list anyway! That’s what we

want.
diff:

This short paragraph is wrapped at 40
columns and a line which starts with eg
1. does not render as a list. It’s much
better that way.

An asterisk followed by a space should

-* create a list anyway! That’s what we
-want.

+

  • create a list anyway! That’s what we
    +want.

del is consistent

input:

~~foo~~

bar ~~~~ baz
diff:

foo

bar ~~~~ baz

+

bar baz

new blockquote after blank line

input:

> foo

> bar
diff:

foo

+

+

bar