Code Monkey home page Code Monkey logo

Comments (3)

tobias-kuendig avatar tobias-kuendig commented on August 17, 2024

A similar problems happens with <tags> inside backticks. It also makes the parsedown.org/extra website crash with a 500 response code:

<section markdown="1">
An example `<style>` tag.
</section>

Passing this section through the parse method breaks later content (a tags are not closed properly, for example).

from parsedown-extra.

lukasleitsch avatar lukasleitsch commented on August 17, 2024

I have the same issue. On my local machine everything works fine. But on the production server the parsing breaks. The local machine and the production server have the same PHP Version.

  • PHP 7.4.8
  • Parsedown 1.8.0-beta-7
  • ParsedownExtra 0.8.0
<div markdown="1">
<ul>
<li>Foo</li>
<li>Bar</li>
</ul>

<ul>
<li>Second Foo</li>
<li>Second Bar</li>
</ul>
</div>

On the production server the second list with Second Foo and Second Bar disappear. On the local machine the second list appears.

<div>
<ul>
<li markdown="1">Foo</li>
<li markdown="1">Bar</li>
</ul>

<ul>
<li markdown="1">Second Foo</li>
<li markdown="1">Second Bar</li>
</ul>
</div>

If only the inner tags have the markdown attributes the second list will be appeared on the production server.

from parsedown-extra.

lukasleitsch avatar lukasleitsch commented on August 17, 2024

I hope I've found the cause. PR is created #155

DOMDocument trim the new line characters in some PHP environments.

from parsedown-extra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.