({{, (RefLink[ConversionRules, paclet:ref/ConversionRules])
is an option for (RefLink[Cell, paclet:ref/Cell]) that can be set to a list of rules specifying how the contents of the cell are to be converted to external formats. }})

OpenersNotesSection(Spacer1)Details

Typical elements in the list have the form (StringTypeLink["TeX", paclet:ref/format/TeX])->data.

Settings for (RefLink[ConversionRules, paclet:ref/ConversionRules]) do not affect the display of cells in the standard Wolfram System notebook front end.

(RefLink[ConversionRules, paclet:ref/ConversionRules]) can be used to save the original form of a cell that has been converted from an external format.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create a style with embedded HTML conversion rules:

mystyle=Notebook[{Cell[StyleData["MyStyle"],ConversionRules->{"HTML"->{{"<myinline>","</myinline>"},{"<myblock>","</myblock>"}}}]}];

Create a document using "MyStyle":

nb=CreateDocument[{TextCell["text","MyStyle"],TextCell[Row[{"abc ",ExpressionCell[inline,"MyStyle"]," def"}],"Text"]},StyleDefinitions->mystyle];

The exported HTML uses the tags given in the (RefLink[ConversionRules, paclet:ref/ConversionRules]) for "MyStyle":

ExportString[nb,"HTML"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CellTags, paclet:ref/CellTags])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Options for Cells, paclet:tutorial/OptionsForCells])}})}})