X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/f05c13f931f419d745bd1c868a858fc776261c77..4729ff0812c1f3d06d98524e2fec232d3bf90513:/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn diff --git a/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn b/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn index b40d5d0ff..3928c2192 100644 --- a/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn +++ b/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn @@ -1,26 +1,38 @@ I'm trying to put a list of tags in a table, so I carefully make a newline-free taglist.tmpl and then do: -
-| [ [!inline pages="link(/category/env)" feeds=no archive=yes sort=title template=taglist] ] |
-
+ | \[[!inline pages="link(/category/env)" feeds=no archive=yes sort=title template=taglist]] | -but there's a line in
inline.pm
that does: -
-        return "<div class=\"inline\" id=\"$#inline\"></div>\n\n";
-
+but there's a line in `inline.pm` that does: + + return "<div class=\"inline\" id=\"$#inline\"></div>\n\n"; And the extra newlines break the table. Can they be safely removed? > If you want an HTML table, I would suggest using an HTML table, which -> should pass through Markdown without being interpreted further: +> should pass through Markdown without being interpreted further. To +> avoid getting the `
` inside the `` you can use: +> +> \[[!inline pages="link(/category/env)" feeds=no archive=yes sort=title template=tagtable]] > +> where tagtable.tmpl looks like +> +> >
-> \[[!inline pages="link(/category/env)" feeds=no archive=yes sort=title template=tagtd]] ->
+> > -> where tagtd.tmpl is of the form `your markup here`. +> your tag here +> +> +> +> > > I don't think you're deriving much benefit from Markdown's table syntax -> here, if you have to mix it with HTML::Template and ikiwiki directives, +> if you have to mix it with HTML::Template and ikiwiki directives, > and be pathologically careful with whitespace. "Right tool for the job" -> and all that :-) --[[smcv]] +> and all that :-) +> +> When I edited this page I was amused to find that you used HTML, +> not Markdown, as its format. It seems oddly appropriate to my answer, but +> I've converted it to Markdown and adjusted the formatting, for easier +> commenting. +> --[[smcv]]