Closed pkorpine closed 6 years ago
This fixes an issue where a shift is not performed on a heading on the first line of a recursively INCLUDEd file.
Example:
FileA.mdpp:
# FileA-1 # FileA-2 !INCLUDE "FileB.mdpp",1
FileB.mdpp
# FileB-1 # FileB-2 !INCLUDE "FileC.mdpp",1
FileC.mdpp
# FileC-1 # FileC-2
Before this patch markdown-pp FileA.mdpp produces:
markdown-pp FileA.mdpp
# FileA-1 # FileA-2 ## FileB-1 ## FileB-2 ## FileC-1 ### FileC-2
After this patch:
# FileA-1 # FileA-2 ## FileB-1 ## FileB-2 ### FileC-1 ### FileC-2
Cheers!
This fixes an issue where a shift is not performed on a heading on the first line of a recursively INCLUDEd file.
Example:
FileA.mdpp:
FileB.mdpp
FileC.mdpp
Before this patch
markdown-pp FileA.mdpp
produces:After this patch: