public class V2MacroToUnmigratedWikiMarkupMacroMigration extends Object implements MacroMigration
Takes a MacroDefinition
that represents the state of v2 macro and serializes it to wiki markup. After
serialization, wrap the result in an XHTML wiki markup macro.
Respects inline and block output types by migrating to an appropriate inline or block version of the wiki markup macro.
TokenType.INLINE_BLOCK
represents v2 macros that can be positioned either inline or own their own.
Conservatively migrate these as inline wiki markup macros.
For unknown v2 macros, convert to inline wiki markup also.
Constructor and Description |
---|
V2MacroToUnmigratedWikiMarkupMacroMigration(com.atlassian.renderer.v2.macro.MacroManager v2MacroManager) |
Modifier and Type | Method and Description |
---|---|
MacroDefinition |
migrate(MacroDefinition macroDefinition,
ConversionContext conversionContext)
Migrates a wiki-markup representation of a macro to XHTML
|
public V2MacroToUnmigratedWikiMarkupMacroMigration(com.atlassian.renderer.v2.macro.MacroManager v2MacroManager)
public MacroDefinition migrate(MacroDefinition macroDefinition, ConversionContext conversionContext)
MacroMigration
migrate
in interface MacroMigration
macroDefinition
- The MacroDefinition
in wiki-markup form.conversionContext
- The ConversionContext
to perform the migration under.Copyright © 2003–2016 Atlassian. All rights reserved.