I have a user macro meant to wrap the metadata macro, and am trying to pass $body to the macro. It basically works, except that no matter whether I choose rendered or unrendered, I get visible (evidently escaped) HTML in the output, and the actual body (which is a short bit of plain text) is surrounded by visible HTML p and span tags, so it looks like this:
<p><span>This part should be visible, but those tags either shouldn't be there or should be rendered as HTML</span></p>
The macro code I'm using is below. (I've tried various permutations, leaving out the plain-text-body or the CDATA tags, and all of them gave me no output.)
## @param term:title=Term|type=string|required=true|desc=The term you are defining. <ac:macro ac:name="metadata"><ac:parameter ac:name="0">glossry $paramterm</ac:parameter> <ac:plain-text-body> <![CDATA[$body]]></ac:plain-text-body></ac:macro>
I ended up using string functions to remove the extra tags from $body. I'd still love to know why they were showing up.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.