Closed hadees closed 11 years ago
work okay here like this...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reMarked issue #20 test</title>
<script src="reMarked.js"></script>
<script>
window.onload = function() {
var reMarker = new reMarked();
var markdown = reMarker.render(document.body);
console.log(markdown);
};
</script>
</head>
<body>
<div class="html-directions">
1. Quisque id justo sit amet sapien dignissim vestibulum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nulla dapibus dolor vel est. Donec odio justo, sollicitudin ut, suscipit a, feugiat et, eros.
<br>
<br>
2. Etiam vel augue. Vestibulum rutrum rutrum neque. Aenean auctor gravida sem.
</div>
</body>
</html>
this also works...
var html = "<div class=\"html-directions\">\n 1. Quisque id justo sit amet sapien dignissim vestibulum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nulla dapibus dolor vel est. Donec odio justo, sollicitudin ut, suscipit a, feugiat et, eros.\n<br>\n<br>\n 2. Etiam vel augue. Vestibulum rutrum rutrum neque. Aenean auctor gravida sem.\n</div>";
var markdown2 = reMarker.render(html);
console.log(markdown2);
tested in FF nightly and Chrome
i'm closing this until there's a reproducible testcase. please put something up on jsFiddle which shows the issue. thanks!
So I have the following html generated by wysihtml5
and when I try to render it I get the following error
from reMarked.js on line 196