Matik now supports rich text formatting within your dynamic content. With rich text formatting, you can use tags to change the various formatting aspects of the text inserted into your presentation.
This can be useful if you wish to insert Text Dynamic Content with variable formatting, such as bolding or underlining certain words. This also means Matik can support rich text from data sources such as Gainsight that pass rich text data into Matik and preserve the formatting.
Currently, rich text is only supported on Google Slides templates and is incompatible with PowerPoint.
Tagging Overview
Rich text tagging is uses tags within text to define various formatting aspects, similar to HTML. A tag is a string of text encased in <x>
with ‘x’ being a code to define what formatting should be applied. Most tags need to be closed out when the formatting is no longer desired using the same tag with a backslash included after the < like </x>
.
For example, the italic tag is 'em'. I can make this sentence italicized by including the em
tags at the start and finish of it.
Resulted from: <em>I can make this sentence italicized by including the em tags at the start and finish of it.</em>
I can make only the word “italic” bold by surrounding the word only with the <b></b> tags: The word italic is italic because of tags.
Resulted from: The word <em>italic</em> is italic because of tags.
See below for the full list of tags supported by Matik.
Using Rich Text Formatting in Matik
Matik will automatically format any dynamic content containing rich text tagging in your presentations. To use rich text, simply ensure your dynamic content outputs tagged text. Matik will format the text when inserting it into your presentation. Note that when you test your dynamic content, unformatted rich text with tags will be displayed.
Bulleted Lists
Bulleted lists can be created with rich text tagging using the <ul>
and <li>
tags. To create a bulleted list, open and close your dynamic content with the <ul>
tag. Wrap each line item in a <li>
tag.
For example, the following dynamic content:
Inserted into this template:
...produces a bulleted slide from only one tag.
Hyperlinks
Hyperlinks can be inserted into presentations using the <a>
tag. Your dynamic content should return text in the following format: <a href="Matik.io">Matik Website</a>
where "Matik.io" is the desired link and "Matik Website" is the link text you want to be displayed in your presentation. Adding the attribute target="_blank"
will open the link in a new tab so your user doesn't leave the presentation. <a href="Matik.io" target="_blank">Matik Website</a>
Limitations
See below for a full list of supported tags in Matik. Any unsupported tags will be passed through to your final presentation, so be sure to thoroughly test your rich text output to ensure only supported tagging is being used.
Matik will also ignore any styling variables. Text will only be styled based on the tag itself and any existing styling applied to the tag text in the presentation.
Rich text is currently only supported on Google Slides templates.
Supported Tags
The following tags are supported by Matik. Note that any unsupported tags in your dynamic content will be passed through into your final presentation.
Formatting | Tag |
bold | b or strong |
line break | br |
italic | em |
paragraph | p |
line item (bullet) | li |
hyperlink | a |
no action | span or ul |
description term | dt |
description list | dl |
description list item |
dd |
Additionally, the following special characters are supported:
Character | Rich Text |
ampersand & | & |
line_break | |
greater_than > | --> |
less_than < | --< |
Using rich text when it doesn’t originate from your data source
If your data source isn’t returning rich text, you will need to include logic within your dynamic content to add it in manually. How this is accomplished will vary based on your specific use case. In general, you will have to concatenate the tags into your desired text.
For example, if you wanted to insert a bolded full name in your presentation but exclude any prefix from being bold, you could use the following formula in Google Sheets. The CONCATENATE formula joins strings of text together. By wrapping the name in the <b></b> tag, the name will appear bold.
Comments
0 comments
Please sign in to leave a comment.