com.atlassian.confluence.macro.xhtml
Interface MacroMigration
- All Known Implementing Classes:
- PlainTextMacroMigration, RichTextMacroMigration, V2MacroToUnmigratedWikiMarkupMacroMigration
public interface MacroMigration
Represents a task that will transform a MacroDefinition for migration.
Two implementations are provided by core:
- Since:
- 4.0.0
migrate
MacroDefinition migrate(MacroDefinition macro,
ConversionContext context)
- Migrates a wiki-markup representation of a macro to XHTML
- Parameters:
macro
- The MacroDefinition
in wiki-markup form.context
- The ConversionContext
to perform the migration under.
- Returns:
- An XHTML representation of the macro.