kramed
kramed copied to clipboard
A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
As stated in the README, the most basic example ``` js var kramed = require('kramed'); console.log(kramed('I am using __markdown__.')) ``` spits out ``` html I am using markdown. ``` I'm...
Markdown (note the space after `\t`): ``` It defaults to `\r\n\t ` ``` Generated markup: ``` It defaults to \r\n\t ``` The whitespace got removed, although it should be protected...
I've written a markup parser in the past (http://symplewiki.org, based on creole), and found it handy for users to be able to use symbolic links in place of references: ```...
Kramdown supports definition lists in this format: ``` Item : Definition : Definiton Item : Definition : Defintion ``` This isn't supported in kramed, and incorrectly is parsed as: ```...
Given the following input markdown: ``` > Quote! > - Quote speaker ``` The actual outputted kramed HTML is the following: ``` Quote! Quote speaker ``` When Kramdown ends up...
``` 1. list1 2. list2 3. list3 ``` is always parsed like `1. list1 2. list2 3. list3 ` no matter what i do: set `parse_block_html: true` to kramed options...
http://kramdown.gettalong.org/syntax.html#inline-attribute-lists example: ``` A simple paragraph with an ID attribute. {: #para-one} > A blockquote with a title {:title="The blockquote title"} {: #myid} {:.ruby} Some code here ```
take a `sample.md` file with the below content ``` markdown every $\beta_i$ under the basis $\alpha_1,\dots,\alpha_n$ have coordinate: $$\begin{pmatrix} c_{1i} \\ c_{2i} \\ ... \\ c_{ni} \end{pmatrix}$$ transition matrix: $C=(C_{ij})_{n\times...
This ensures unique HTML id's in line with the HTML spec, and allows anchors to always reference the intended header. Fixes #27
The following Markdown will produce `` with identical `id`s. Maybe an internal counter should be kept: ``` markdown Implementation ============ Implementation ============ ``` ``` Implementation Implementation ```