Lessons 1 and 2 use csharp as a language to highlight code blocks with git terminal outputs. This results in parsing errors when building the book, such as:
.../devel/GitCoDev/gitcodev/lesson1.md:203: WARNING: Lexing literal_block '
diff --git a/lines.txt b/lines.txt\n index 06fcdd7..20aeba2 100644\n
--- a/lines.txt\n +++ b/lines.txt\n @@ -1,2 +1,3 @@\n first line\n second line\n
+third line\n' as "csharp" resulted in an error at token: '@'. Retrying in relaxed mode.
I think that the reason is that the code block contains invalid syntax for csharp. The issue disappears when shell is use as language instead. @halfordd and @carlosug Is there a strong reason to prefer csharp highlighting?
If not, Could you check the code blocks in lessons 1 and 3 and fix these parsing errors? Note that some of the errors only appear after removing the build cache. Use: jupyter book clean gitcodev/ to delete the cache.
Lessons 1 and 2 use
csharpas a language to highlight code blocks with git terminal outputs. This results in parsing errors when building the book, such as:I think that the reason is that the code block contains invalid syntax for csharp. The issue disappears when
shellis use as language instead. @halfordd and @carlosug Is there a strong reason to prefer csharp highlighting?If not, Could you check the code blocks in lessons 1 and 3 and fix these parsing errors? Note that some of the errors only appear after removing the build cache. Use:
jupyter book clean gitcodev/to delete the cache.