aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/iniline_breaks_toc_plugin.mdwn
blob: 1c715221e17ef1759c3cc6eb5dd7ea33b5a090a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Hi, I try to make an example to reproduce some bug with inline and toc plugins.
My friend uses

    \[[inline pages="users/joey" raw="yes"]]

to include common snippets in various pages, and it works as advertised, but if toc plugin is used, page is messed up.

I'll try here to reproduce one example...

You can see that wikilink is rendered in one line and 'here's paragraph' is not a separate paragraph.

All this is displayed correctly if toc is removed.

> Thanks for the clear explanation and example. This is a bug in markdown.
> Version 1.0.1 gets confused by the toc div, which is followed by a few
> lines of markdown, and then by a second div for the inlined page. It
> doesn't convert the markdown in the middle to html.
> 
> I've tested with markdown 1.0.2 and it seems to render this ok. 1.0.2 has
> a much improved parser, which is known to fix several block-related
> problems, including this one. It is currently packaged in experimental in
> Debian, and I suggest you give it a try if you're experiencing this
> problem.
> 
> (Actually, this seems closely related to the problem described
> [here](http://bugs.debian.org/421843).
> 
> I'm going to close this bug report since it's a markdown bug. --[[Joey]]
[[tag done]]

>> thanks, that fixes it.


TEST1
=====

TEST2
-----

bla bla bla

 * bl bla
 * aadsd

[[toc levels=2]]

bla bla

[[table data="""
Customer|Amount
Fulanito|134,34
Menganito|234,56
Menganito|234,56
"""]]


[[wikilink|users]]

Here's a paragraph.


[[inline pages="users/joey" raw="yes"]]

bla bla