In an Apache Velocity template, double hashtag (i.e. ##
) means comment, but I want to add ##
literals into the template. How can I do that?
The reason is that I want to make a template for Github wiki, and the template includes h2
's
After some research I found this:
#set ( $double_hash = '##' )
${double_hash}
I've even double the stuff in my jira release template that produce markdown...
#set ( $simple_hash = '#' )
#set ( $double_hash = '##' )
Thx for the hint !!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With