Skip to content

Commit

Permalink
caveat on block commenting includes: metanorma/metanorma#352
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis authored and ronaldtse committed Mar 6, 2024
1 parent 070479e commit 8258953
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion author/topics/output/validation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,28 @@ Images:: Issue with images
Include:: Issue with includes
+
--
* Specified include file does not exist
* Specified include file does not exist.
+
---
NOTE: This issue also arises if the include is block-commented: Asciidoctor does not take block comments into account when it
processes includes. Metanorma is more strict in enforcing the existence of included files than Asciidoctor is natively.
To prevent bad includes from aborting execution, either put a `:novalid:` document attribute in the document,
to prevent checking for fatal errors, or else comment out the include with a line comment instead of a block comment:

[source,asciidoc]
----
//include:missing-file[]
----

instead of

[source,asciidoc]
----
////
include:missing-file[]
////
----
---
--
Maths:: Issue with mathematical expressions
+
Expand Down

0 comments on commit 8258953

Please sign in to comment.