From: smcv <smcv@web> Date: Tue, 9 Sep 2014 17:46:48 +0000 (-0400) Subject: rename bugs/Inlining_adds_newlines_which_can_break_markdown.html to bugs/Inlining_add... X-Git-Tag: 3.20140916~73 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/f05c13f931f419d745bd1c868a858fc776261c77 rename bugs/Inlining_adds_newlines_which_can_break_markdown.html to bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn --- diff --git a/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.html b/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.html deleted file mode 100644 index b40d5d0ff..000000000 --- a/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.html +++ /dev/null @@ -1,26 +0,0 @@ -I'm trying to put a list of tags in a table, so I carefully make a newline-free taglist.tmpl and then do: - -<pre> -| [ [!inline pages="link(/category/env)" feeds=no archive=yes sort=title template=taglist] ] | -</pre> - -but there's a line in <pre>inline.pm</pre> that does: -<pre> - return "<div class=\"inline\" id=\"$#inline\"></div>\n\n"; -</pre> - -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: -> -> <table><tr> -> \[[!inline pages="link(/category/env)" feeds=no archive=yes sort=title template=tagtd]] -> </tr></table> -> -> where tagtd.tmpl is of the form `<td>your markup here</td>`. -> -> 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, -> and be pathologically careful with whitespace. "Right tool for the job" -> and all that :-) --[[smcv]] diff --git a/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn b/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn new file mode 100644 index 000000000..b40d5d0ff --- /dev/null +++ b/doc/bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn @@ -0,0 +1,26 @@ +I'm trying to put a list of tags in a table, so I carefully make a newline-free taglist.tmpl and then do: + +<pre> +| [ [!inline pages="link(/category/env)" feeds=no archive=yes sort=title template=taglist] ] | +</pre> + +but there's a line in <pre>inline.pm</pre> that does: +<pre> + return "<div class=\"inline\" id=\"$#inline\"></div>\n\n"; +</pre> + +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: +> +> <table><tr> +> \[[!inline pages="link(/category/env)" feeds=no archive=yes sort=title template=tagtd]] +> </tr></table> +> +> where tagtd.tmpl is of the form `<td>your markup here</td>`. +> +> 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, +> and be pathologically careful with whitespace. "Right tool for the job" +> and all that :-) --[[smcv]]