Stream: IG creation
Topic: Bug? Escaping needed after SD rendering
Brian Reinhold (Sep 24 2018 at 10:35):
This seems like a strange bug, but I don't know what is causing it. I have a markdown file which is being converted to html. The page is accessed by clicking on some link. If I do not create a structure definition in the page, the page renders fine. However, if I add the following line to the md file
{% include StructureDefinition-PhdDevice-diff.xhtml %}
Quotes and other characters needs to be escaped or one gets rendered garbage. Typically in tables. I get one character that I cannot figure out what is causing the output (perhaps a line feed or CR?).
So right now the easiest solution is not to render a SD in the page. When I figure out how to make a link to one, that might isolate the case and the bug won't occur.
Lloyd McKenzie (Sep 24 2018 at 14:56):
@Brian Reinhold I appreciate your dogged determination, but I'm not totally understanding why you don't use one of the established frameworks. You're going through a lot of work, but within the next 1-2 months, HL7 will have a "standard" framework that we're going to expect all HL7 International IGs to be published based on - to ensure consistency of navigation and keep the learning curve for both implementers and maintainers as low as possible.
Brian Reinhold (Sep 24 2018 at 15:40):
@Brian Reinhold I appreciate your dogged determination, but I'm not totally understanding why you don't use one of the established frameworks. You're going through a lot of work, but within the next 1-2 months, HL7 will have a "standard" framework that we're going to expect all HL7 International IGs to be published based on - to ensure consistency of navigation and keep the learning curve for both implementers and maintainers as low as possible.
@Lloyd McKenzie Mainly because I dont know how. I copied a Frameworks directory from a project but could not get it to be recognized. So I took the material out of it and placed it into sub directories of the pages directory. I put the HL7 headers, nav bars, and footers there as well as the -layouts file. It worked. I have the right 'templates' and my IG looks just like the pocd IG except the color of the nav bar is grey instead of red.
That is probably configured in the css file. I'm not going to play with that now because I don't know that syntax.
I can make the IG now and I have lots of pieces and links to pull together so I will do that first and then fix the color so it is consistent with the PoCD IG.
Last updated: Apr 12 2022 at 19:14 UTC