Hmm, not sure if this is the correct behavior, the markdown module has never
been very well tested.
I would probably use your property hack, you don't have to define it in the pom
though, you can set it inside the template file like:
#set( $H = '###' )
$H
HTH,
-Lukas
On 03/21/2013 01:00 PM, Kevin Minder wrote:
> Just did and that doesn't work. Velocity doesn't remove the line from the
> output
> (which is good) but Markdown for some reason doesn't interpret it as a
> heading
> (which is bad). So I end up with:
>
> ### Section Test
>
> in the HTML instead of a nice shaded box.
>
> On 3/21/13 3:27 AM, Lukas Theussl wrote:
>> Did you try to escape the special character:
>>
>> \#\#\# ?
>>
>> -Lukas
>>
>>
>> On 03/20/2013 08:06 PM, Kevin Minder wrote:
>>> 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]
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]