public class InlineBodyMacroFixingTransformer extends Object implements Transformer
For example:
<p>foo<p> <ac:macro ac:name="highlight"> <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter> </ac:macro>To:
<p>foo <ac:macro ac:name="highlight"> <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter> </ac:macro> </p>A user can mark a macro as one that outputs INLINE markup by toggling the INLINE button. This will set a macro parameter named atlassian-macro-output-type to the value
Macro.OutputType#INLINE
.
This transformer will only target <ac:macro> fragments that have this property.
Constructor and Description |
---|
InlineBodyMacroFixingTransformer(XmlOutputFactory xmlFragmentOutputFactory,
XmlEventReaderFactory xmlEventReaderFactory,
XMLEventFactoryProvider xmlEventFactoryProvider) |
Modifier and Type | Method and Description |
---|---|
String |
transform(Reader input,
ConversionContext conversionContext) |
public InlineBodyMacroFixingTransformer(XmlOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, XMLEventFactoryProvider xmlEventFactoryProvider)
public String transform(Reader input, ConversionContext conversionContext) throws XhtmlException
transform
in interface Transformer
XhtmlParsingException
- if there is a problem parsing the input parameter.XhtmlException
- for all other errors that may occur during transformation.Copyright © 2003–2015 Atlassian. All rights reserved.