gettalong/kramdown — pull request #23 by tomtung (2012-10-17 06:06:25+00:00)
Title: Fix bug: handle "|" in $$..$$ or <code>..</code>

Given the following input kramdown input:

```
Codeblock:

code|block

Inline code: some|code

Code in table:

| this | is | a | test|

Formula:

$$ P(x) = \sum_z P(x|z)P(z) $$

Inline formula: $$ P(x) = \sum_z P(x|z)P(z) $$

Formula in table:

| $$P(x|y)$$ | $$P(y|z)$$|
```

Previously, kramdown would give the wrong output:

```HTML

Codeblock:

code|block

Inline code: some|code

Code in table:

this | is
a | test

Formula:

$$ P(x) = \sum_z P(x
z)P(z) $$

Inline formula: $$ P(x) = \sum_z P(x
z)P(z) $$

Formula in table:

$$P(x
y)$$
$$P(y
z)$$

```

After the bugfix, the output is:

```HTML

Codeblock:

code|block

Inline code: some|code

Code in table:

this | is
a | test

Formula:

Inline formula:

Formula in table:

```