I seem to be getting extra p tags when compiling and I’m not sure why.
I gave the text a style that is set to “treat as raw markup.” This is my document in Scrivener:
[code]COW This is a test and it should be inside a div.
There should be no P tag surrounding this. END
COW This is a test and it should be inside a div.
There should be no P tag surrounding this.
COW2 There should be no P tag surrounding this.
COW2 There should be no P tag surrounding this, either. END
But this should be inside a p tag.[/code]
The replacement patterns look like this:
COW <div class="speechbubble chat-cow"><p class="speechicon"></p>
COW2 </div><div class="speechbubble chat-cow"><p class="speechicon"></p>
END </div>
I am compiling to MultiMarkdown using Pandoc processing. This is the result:
[code]
This is a test and it should be inside a div. There should be no P tag surrounding this.
There should be no P tag surrounding this.
But this should be inside a p tag.
[/code]I expected to see this (no extra p tags):
[code]
But this should be inside a p tag.
[/code]I expected to see this because Markdown is (AFAIK) supposed to treat single carriage returns as part of the same paragraph, but here it is treating each single carriage return as its own paragraph. I’m attaching a sample project file if it’s easier to look directly at the code.
AnimalReplacements.scriv.zip (81.8 KB)