Using Markdown
Last updated
Last updated
Markdown is a simple formatting tool that allows you to create text links and lists as well as apply bold, italics, font sizes, and other formatting edits to text. CiviForm Admin can use Markdown to format text in six key places within CiviForm:
Program descriptions
Custom confirmation screen messages
Static question text
Regular question text (Note: For regular question text, please limit formatting to bold, italics and text links only. Changing font size or making other edits that alter the flow of text can make question text hard to read)
Question help text
Question options (Note: Markdown only works for checkbox and radio type question options, not for dropdown options. Line breaks and lists do not work for question options at this time)
Fields where some or all markdown is allowed will be marked with an indicator:
The formatting options currently supported by CiviForm are outlined in the table below along with how to use them. If you would like a formatting option that we do not currently support, let us know!
Header syntax can be used to change font size. We currently support three font sizes - large, regular, and small. Starting a line with #
or ##
will create an "h2" size header, which is the largest text possible. Using 3 (###
) or 4 (####
) hashes will result in regular sized text. Using 5 (#####
) or 6 hashes (######
) will result in the smallest text.
Accessibility Note: Generally, more hashes indicates less important text. Folks who are visually impaired often rely on the header tag to let them know the relative importance of text on the page since they might not be able to see differences in font size.
Urls that start with http://
or https://
will be automatically detected as links and have the appropriate formatting applied. Urls that do NOT start with http://
or https://
will not be detected as links. All links are set to automatically link out to a new page.
Urls used within text links must also include http://
or https://
to link out correctly. Examples:
Correct: [This link will work!](https://www.example.com)
Incorrect: [This link will not work](www.example.com)
Email addresses (Eg. test@example.com
) are automatically detected as links and formatted accordingly. Clicking on an email address will open the local email program (Eg. Outlook) and create a new email to that address.
You can also use email addresses in text links by adding mailto:
and the email address in the parentheses after the text. Example:
[Send email](mailto:test@example.com)