Class RichTextMacroMigration
- java.lang.Object
-
- com.atlassian.confluence.macro.xhtml.RichTextMacroMigration
-
- All Implemented Interfaces:
MacroMigration
public class RichTextMacroMigration extends Object implements MacroMigration
Takes a macro with wiki-markup in its body and converts it to XHTML storage format. All wiki markup in the body of the macro is rendered withRenderMode.ALL
. If you need to migrate the body of your macro with a different render mode flag, please write and specify your own macro migration task.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description RichTextMacroMigration(MacroManager xhtmlMacroManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MacroDefinition
migrate(MacroDefinition macroDefinition, ConversionContext conversionContext)
Migrates a wiki-markup representation of a macro to XHTML
-
-
-
Constructor Detail
-
RichTextMacroMigration
public RichTextMacroMigration(MacroManager xhtmlMacroManager)
-
-
Method Detail
-
migrate
public MacroDefinition migrate(MacroDefinition macroDefinition, ConversionContext conversionContext)
Description copied from interface:MacroMigration
Migrates a wiki-markup representation of a macro to XHTML- Specified by:
migrate
in interfaceMacroMigration
- Parameters:
macroDefinition
- TheMacroDefinition
in wiki-markup form.conversionContext
- TheConversionContext
to perform the migration under.- Returns:
- An XHTML representation of the macro.
-
-