cryogen-project / cryogen-core

Cryogen's core
Eclipse Public License 1.0
69 stars 62 forks source link

content-with-more-marker returns with correct html closing tags #60

Closed ponkore closed 8 years ago

ponkore commented 8 years ago

Using Cryogen with {:previews? true}, the preview page (index.html) corrapsed when post contains more marker.

content-with-more-marker returns a HTML string when the content conteins more marker ("").

HTML tags in the parameter content is balanced. ex.

<div id='post'>
  <div class='post-content'>
    this post has more marker
<!--more-->
and more content.
  </div>
</div>

But original code, content-with-more-marker function breaks the balance.

result of original code:

<div id='post'>
  <div class='post-content'>
    this post has more marker

Afer this patch applied, tagsoup read above text and hiccup re-render to HTML text with correct balanced tags.

<div id='post'><div class='post-content'>
    this post has more marker
</div></div>
yogthos commented 8 years ago

thanks