Stream: IG creation
Topic: Tables in HL7 Template
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?
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...
Lloyd McKenzie (Dec 12 2019 at 18:43):
(check something in the core spec)
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.
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 :> )
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.
Grahame Grieve (Dec 12 2019 at 19:14):
GFM makes no provision for styling tables.
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
Mark Kramer (Dec 12 2019 at 20:30):
adding this markdown after the table got the grid to show up: {: .grid }
Grahame Grieve (Dec 12 2019 at 20:37):
interesting
Mark Kramer (Dec 12 2019 at 20:38):
Got the idea from here:
https://gist.github.com/tamouse/4204dddabb6b072b0242
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
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