FHIR Chat · customize font · shorthand

Stream: shorthand

Topic: customize font


view this post on Zulip 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.

view this post on Zulip 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.

view this post on Zulip 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

view this post on Zulip 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>
    """

view this post on Zulip 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

view this post on Zulip 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.

view this post on Zulip Jose Costa Teixeira (Mar 21 2022 at 17:57):

image.png

view this post on Zulip 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.

view this post on Zulip 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