Rich text & html
Insert rich text in html format into your template
Ideal for user-generated content: enables you to add style and formatting to create your pdf.
Your docx should contain the text: {~html}.
Any tag starting with
~is used for inline HTML, such as :{~html}or {~inlineComment} which will use the "inlineComment" dataAny tag starting with
~~is used for block HTML, such as :{~~html}or {~~styledTable} which will use the "styledTable" data
To be clear :
The
{~inline}tag is used when you want to replace part of a paragraph. For example you can write :
My product is {~blueText} and costs ...The tag is inline, there is other text in the paragraph. In this case, you can only use inline HTML elements (<span> , <b> , <i>, <u>\, …)
The
{~~block}tag is used when you want to replace a whole paragraph, and you want to insert multiple elements
{~~block}The tag is block, there is no other text in the paragraph. In this case, you can only use block HTML elements (<p>, <ul>, <table>, <ol>, <h1>)
Last updated