Markdown options for read-only text
Enable markdown formatting for ReadOnlyText components in ServiceNow CPQ layouts to enhance text presentation. Use syntax for bold, italics, lists, links, images, and dynamic field values to create clear, engaging, and context-aware display text in configurations.
This article describes the markdown syntax and behaviors available to administrators when a text field is defined on a native ServiceNow CPQ UI layout with component display type ReadOnlyText. For a broader discussion of layout options, see CSV layout upload.
To apply markdown formatting to a ReadOnlyText component:
- In the layout editor, open the field properties (button with cog icon)
- Add the following as the raw value:
{ "enableMarkdown": true } - Use the following markdown syntax in the text field value.
| Formatting Option | Syntax | Output | Notes |
|---|---|---|---|
| Bold | **this will be bold** | bold text | A double underscore instead of the double * will also work |
| Italics | *this will be italic* | italic text | A single underscore instead of the single * will also work |
| Unordered List | Item\r- Item\r- Item |
|
|
| Ordered List | 1.Item\r2. Item\r3. Item |
|
|
| Newline | \n | ||
| Link | [link display text] (https://www.example.com) | link display text | Any JavaScript entered will be sanitized |
| Image |  | N/A | |
| Dynamic Text | {{fieldVariableName}} | Outputs the value of the selected field in the text | |
| Dynamic Non- Field Text | {{txn#rowNumber}} |
Outputs the value of the dynamic text based on context Currently, only rowNumber in a txn line is supported |
This markdown syntax is the same as that available for field help popups.