]> sipb.mit.edu Git - ikiwiki.git/commitdiff
another possibility
authorsmcv <smcv@web>
Tue, 9 Sep 2014 17:52:21 +0000 (13:52 -0400)
committeradmin <admin@branchable.com>
Tue, 9 Sep 2014 17:52:21 +0000 (13:52 -0400)
doc/bugs/Inlining_adds_newlines_which_can_break_markdown.mdwn

index 47027c3498b799d0a3892f59fd1a44406811bb6b..eb71994e54a35637bee58ce037b9a9bc243dda7e 100644 (file)
@@ -15,10 +15,24 @@ And the extra newlines break the table.  Can they be safely removed?
 >     \[[!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>`.
+> where tagtd.tmpl is of the form `<td>your markup here</td>`; or even just
+>
+>     \[[!inline pages="link(/category/env)" feeds=no archive=yes sort=title template=tagtable]]
+>
+> where tagtable.tmpl looks like
+>
+>     <TMPL_IF FIRST>
+>     <table><tr>
+>     </TMPL_IF>
+>
+>     <td>your tag here</td>
+>
+>     <TMPL_IF LAST>
+>     </tr></table>
+>     </TMPL_IF>
 >
 > 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 :-)
 >