Stream: shorthand
Topic: customize font
Catherine Hosage Norman (Mar 19 2022 at 19:14):
Is there a way to customize the font of the ^definition = "...". We are adding definitions for our elements and they do not stand out on the Detailed Descriptions page. Anything, bolding, color or font size would help to highlight them.
Jose Costa Teixeira (Mar 20 2022 at 22:36):
@Catherine Hosage Norman ElementDefinition.definition is of type markdown, so you can just add markdown as **bold text**
or *italic*
or pretty much anything that can be done in plain markdown.
Jose Costa Teixeira (Mar 20 2022 at 22:37):
you can add tables and I presume images etc.
Just don't add headings like ###
because that will likely mess up your IG numbering sequence
Jose Costa Teixeira (Mar 20 2022 at 22:38):
@Chris Moesel or others: if we want to introduce some html inside markdown, does sushi allow us to escape quotes? e.g. this:
* element ^definition = """
**bold** or *italic* formatting, or even <span style="color:red">another color</span>
"""
Chris Moesel (Mar 21 2022 at 16:07):
@Jose Costa Teixeira - Yes.
If you use the multi-line """
delimiters (as in your example above), you can use a "
without escaping it (as in your example above).
If you use normal single-quote "
delimiters, then you need to escape any quotes inside the string. E.g.:
* element ^definition = "<span style=\"color:red\">another color</span>"
Here's a FSH Online snippet showing both approaches working: https://fshschool.org/FSHOnline/#/share/37OqFwo
Jose Costa Teixeira (Mar 21 2022 at 17:56):
Ok, thanks.
I tried that but it didn't work, I thought it could be sushi, but it seems to be the publisher/template that does not allow that kind of content inside a description.
Jose Costa Teixeira (Mar 21 2022 at 17:57):
Catherine Hosage Norman (Mar 22 2022 at 19:38):
I tried too. I think this is a limitation. I don't even want the unused elements displayed and had a discussion with Lloyd, but he does not share my opinion.
Jose Costa Teixeira (Mar 22 2022 at 20:56):
@Catherine Hosage Norman so, bold, italic (hopefully underline) should work. Seems font color will not work
Last updated: Apr 12 2022 at 19:14 UTC