is an option for Cell that can be set to a list of rules specifying how the contents of the cell are to be converted to external formats.
ConversionRules
is an option for Cell that can be set to a list of rules specifying how the contents of the cell are to be converted to external formats.
Details
- Typical elements in the list have the form "TeX"->data.
- Settings for ConversionRules do not affect the display of cells in the standard Wolfram System notebook front end.
- ConversionRules can be used to save the original form of a cell that has been converted from an external format.
Examples
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 ConversionRules for "MyStyle":
ExportString[nb, "HTML"]See Also
Tech Notes
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), ConversionRules, Wolfram Language function, https://reference.wolfram.com/language/ref/ConversionRules.html.
CMS
Wolfram Language. 1996. "ConversionRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ConversionRules.html.
APA
Wolfram Language. (1996). ConversionRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ConversionRules.html
BibTeX
@misc{reference.wolfram_2026_conversionrules, author="Wolfram Research", title="{ConversionRules}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ConversionRules.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_conversionrules, organization={Wolfram Research}, title={ConversionRules}, year={1996}, url={https://reference.wolfram.com/language/ref/ConversionRules.html}, note=[Accessed: 13-June-2026]}