Point of clarification. Velocity is eating the ### Sub-heading line
because from its perspective this is a comment and doesn't belong in the
rendered output.
On 3/20/13 3:04 PM, Kevin Minder wrote:
Hi Everyone,
I'm using Markdown formatting to create my site docs. I'm also using
Velocity templating to pass some version information from the pom to
the md.vm files. Lets assume that I have a md.vm file like this:
Heading
------
### Sub-heading
Big long hairy code block with some nasty XML like this
<message>Java failed, error
message[\${wf:errorMessage(wf:lastErrorNode())}]</message>
I have two issues.
1. Velocity is eating the ### Sub-heading so my html doesn't have
these section header. I worked around this BTW by defining a property
<HHH>###</HHH> in my POM and then using ${HHH} in my md.vm but this is
a bit of a hack and hurts the readability of the raw file.
2. I can't figure out how to hide the code block from Velocity and it
is choking on the nasty XML it.
I was hoping to be able to do this.
Heading
------
#[[###]]# Sub-heading
#[[
Big long hairy code block with some nasty XML like this
<message>Java failed, error
message[\${wf:errorMessage(wf:lastErrorNode())}]</message>
]]#
It looks like Velocity doesn't remove the #[[[[# markup from its
rendered output so then Markdown chokes on the #[[.
Anyone have any other ideas?
Kevin.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]