metanorma / metanorma-ogc

Metanorma processor for OGC documents
https://www.metanorma.com
BSD 2-Clause "Simplified" License
2 stars 3 forks source link

Unexpected text at the top of the HTML cover page #595

Closed ghobona closed 1 year ago

ghobona commented 1 year ago

After using the following command to generate a copy of the template...

docker run --rm -v "$(pwd)":/metanorma metanorma/metanorma metanorma new -d standard -t ogc -l https://github.com/metanorma/metanorma-templates-ogc folder_for_standard

...and then compiling the document with the following command...

docker run -v "$(pwd)":/metanorma -v ${HOME}/.fontist/fonts/:/config/fonts metanorma/metanorma metanorma compile --agree-to-terms -t ogc -x xml,html,doc document.adoc

I found that the text ext here>'/> was at the top of the HTML cover page.

See attached.

Screenshot 2023-10-27 at 23 12 06
opoudjis commented 1 year ago

Replicated.

opoudjis commented 1 year ago

We had to sanitise quotes in keywords and abstracts, because they end up in the HTML meta attributes. We have to sanitise angle brackets as well, because they ends up in the same place, and they are not being escaped.