FHIR Chat · Tables in HL7 Template · IG creation

Stream: IG creation

Topic: Tables in HL7 Template


view this post on Zulip Mark Kramer (Dec 12 2019 at 18:39):

Another formatting issue in the HL7 IG Template... Is it intentional not to include grid lines? pasted image Is there a way to balance the column width?

view this post on Zulip Lloyd McKenzie (Dec 12 2019 at 18:43):

You can declare a class on your table if you want grid lines - don't remember off the top of my head what it is...

view this post on Zulip Lloyd McKenzie (Dec 12 2019 at 18:43):

(check something in the core spec)

view this post on Zulip Chris Moesel (Dec 12 2019 at 18:48):

I think that's a markdown table, so it sounds like we might need to author tables in HTML to apply that style class? I suppose that would also give us more control over column widths. It's just more of a pain in the neck to edit.

view this post on Zulip Lloyd McKenzie (Dec 12 2019 at 19:01):

I can't speak to how things work for markdown. (We have differing opinions about what's a pain in the neck :> )

view this post on Zulip Mark Kramer (Dec 12 2019 at 19:14):

Can we add something to the CSS? If so, then we can create a custom format. But maybe this can be avoided if the default in the template CSS were to include the gridlines.

view this post on Zulip Grahame Grieve (Dec 12 2019 at 19:14):

GFM makes no provision for styling tables.

view this post on Zulip Grahame Grieve (Dec 12 2019 at 19:16):

I don't think it's right to fix this by changing the default for all tables. Though I do wonder why it's not the default to have lines

Still, that won't fix your width issues. I think that table might have to be HTML

view this post on Zulip Mark Kramer (Dec 12 2019 at 20:30):

adding this markdown after the table got the grid to show up: {: .grid }

view this post on Zulip Grahame Grieve (Dec 12 2019 at 20:37):

interesting

view this post on Zulip Mark Kramer (Dec 12 2019 at 20:38):

Got the idea from here:
https://gist.github.com/tamouse/4204dddabb6b072b0242

view this post on Zulip Eric Haas (Dec 12 2019 at 22:23):

Kramdown uses that notation to apply classes and ids and styles to markdown files. The igs I’ve worked are peppered with it. Just read the kramdown docs

view this post on Zulip Eric Haas (Dec 12 2019 at 22:30):

However, there’s a point where you got to cry uncle and mix in html. To mix markdown inside html tags use the attribute markdown=“1”


Last updated: Apr 12 2022 at 19:14 UTC