andriusvelykis / reflow-maven-skin

Reflow is an Apache Maven site skin built on Bootstrap. It allows various structural and stylistic customizations to create a modern-looking Maven-generated website.
http://andriusvelykis.github.io/reflow-maven-skin/
Apache License 2.0
132 stars 54 forks source link

XML in Markdown breaks plugin generation #14

Closed roadtripryan closed 10 years ago

roadtripryan commented 10 years ago

If I have a markdown document with some xml:

this is a test

  <project>
   ....
   </project>

The plugin errors:

line [3] Error parsing the model: end tag name

must match start tag name from line 3 (position: TEXT seen ... ….

... @3:79) -> [Help 1]

Any ideas for a work around? Our documentation has a lot of code samples in it...

Thanks

andriusvelykis commented 10 years ago

Hmm, interestingly the Reflow Maven Skin website itself embeds XML source code, e.g. the Get it now section in the home page.

Could you produce a minimal example that reproduces your problem? In the website I am wrapping the XML content into fenced code blocks using ```. See the website source files, e.g. index.md.

roadtripryan commented 10 years ago

Ah, I didn't know you could wrap using fenced code blocks. I was just using 4+ space to denote a code block. Using ``` worked perfectly. Thanks!

andriusvelykis commented 10 years ago

Indentation should have worked as well - it is standard Markdown :) maybe I will still have to check if indentation is causing problems..