Stream: IG creation
Topic: problem with markdown table
Jean Duteau (Feb 15 2022 at 20:02):
This is a pretty basic question. If anyone can look at my source file, I can't get a table that looks correct in markdown to display properly.
https://github.com/HL7/davinci-pas/blob/master/input/pagecontent/specification.md
If you look at this in GitHub, the table actually displays just fine.
If you look at it on the CI site, it doesn't get converted to a table:
http://build.fhir.org/ig/HL7/davinci-pas/specification.html
I'm pulling what little hair I have trying to figure this out and I don't want to revert to an XHTML table unless I have to.
Jose Costa Teixeira (Feb 15 2022 at 20:53):
it is a hairy problem...
Jose Costa Teixeira (Feb 15 2022 at 20:53):
markdown needs its space. Try adding another blank line before the table.
Jose Costa Teixeira (Feb 15 2022 at 20:54):
...or after
Jose Costa Teixeira (Feb 15 2022 at 20:54):
...or both
Jean Duteau (Feb 15 2022 at 20:55):
there was an extra space in the line right after the table. it was <space><cr> and that screwed it up.
Jose Costa Teixeira (Feb 15 2022 at 20:56):
right. space + cr is just the same as space
John Moehrke (Feb 15 2022 at 21:09):
the IG builder uses a different table rendering than github... I would try removing the spaces between your | and your -
John Moehrke (Feb 15 2022 at 21:09):
|------|------|
Eric Haas (Feb 15 2022 at 21:34):
use {:.grid}
after to make pretty grid lines
David Pyke (Feb 15 2022 at 21:35):
Is there a list somewhere of classes that can be applied?
John Moehrke (Feb 15 2022 at 21:37):
yes, so far we have found one class that can be applied and it is .grid... :-)
David Pyke (Feb 15 2022 at 21:37):
I like short lists.
John Moehrke (Feb 15 2022 at 21:42):
note that grid is not needed to get grid lines in a profile/instance description markdown. but is needed in pagecontent
Eric Haas (Feb 16 2022 at 00:56):
David Pyke said:
Is there a list somewhere of classes that can be applied?
any class that is in the css files can be applied. I just go there and look. project.css has all the ones I use like background colors, stu notes, note to balloters etc. should make page in the sample ig to list.
Jose Costa Teixeira (Feb 16 2022 at 10:08):
Eric Haas said:
David Pyke said:
Is there a list somewhere of classes that can be applied?
any class that is in the css files can be applied. I just go there and look. project.css has all the ones I use like background colors, stu notes, note to balloters etc. should make page in the sample ig to list.
Is that a PR I see coming?
Last updated: Apr 12 2022 at 19:14 UTC