arturadib / strapdown

Instant and elegant Markdown documents in the browser
http://strapdownjs.com
MIT License
2.48k stars 410 forks source link

The xmp tag doesn't have to be a child of body #68

Open ndossougbe opened 8 years ago

ndossougbe commented 8 years ago

See issue #27

The goal is to be able to do something like:

<html>
<title>Title</title>
<body>
    <div id="main">
        <div id="sidebar"></div>
        <xmp style="display:none">
## Markdown
        </xmp>
    </div>
    <script src="strapdown/v/0.2/strapdown.js"></script>
</body>
<html>

Also applies changes from 40b5aa0a6125c9f529718b6fbf76ec57d16a4390 to the distributed js.