Search code examples
textmate2asciidoc

Included files after list not rendered correctly


main.asc:

== Items
include::foo.asc[]
include::bar.asc[]

foo.asc

=== Foo Title
==== List of things
* thing one
* thing two

bar.asc

=== Bar Title
this is a summary of bar

When main.asc is rendered, the following text is displayed:

Items

Foo Title

  • thing one
  • thing two === Bar Title

this is a summary of bar

I've also tried adding a simple paragraph at end of foo.asc after the list to see if that will fix the problem--it didn't.

Is there a way to fix this?


Solution

  • Adding a line between the two include statements seems to fix the issue:

    == Items
    include::foo.asc[]
    
    include::bar.asc[]