metanorma / metanorma-gb

Metanorma processor for GB: write Chinese Standards using GbDoc
BSD 2-Clause "Simplified" License
2 stars 3 forks source link

Configurable boilerplate stripping in T&D #78

Closed opoudjis closed 6 years ago

opoudjis commented 6 years ago

I think it would be better if we have a declarative way of handling boilerplate replacement? Eg. Maybe by default we strip any provided boilerplate and issue a warning when there is any boilerplate. If an option is supplied then we don’t strip.

opoudjis commented 6 years ago

Implemented: if :keep-boilerplate: is document attribute, respects any prefatory paragraphs already there. If :keep-boilerplate: is not present, such paragraphs are stripped before <term> as in asciidoctor-iso.