GithubHelp home page GithubHelp logo

Comments (4)

kristapsdz avatar kristapsdz commented on September 2, 2024

This is the default behaviour of the original Markdown specification. From pandoc(1):

     Original Markdown allows you to include HTML “blocks”: blocks of HTML
     between balanced tags that are separated from the surrounding text with
     blank lines, and start and end at the left margin.  Within these blocks,
     everything is interpreted as HTML, not Markdown; so (for example), * does
     not signify emphasis.

However, some renderers (including pandoc), extend this:

     Pandoc behaves this way when the markdown_strict format is used; but by
     default, pandoc interprets material between HTML block tags as Markdown.

Implementing something like this isn't easy, but it's not impossible: it would require breaking apart the text in a LOWDOWN_BLOCKHTML into a series of LOWDOWN_RAW_HTML separated by parsed markdown. If you'd like to take a look at this, it would require tokenising the interval of the block and calling the parser for non-HTML subintervals. See document.c where LOWDOWN_BLOCKHTML is pushed onto the parse stack.

from lowdown.

ron-at-swgy avatar ron-at-swgy commented on September 2, 2024

I understand, thank you. I may be able to do some CSS tricks with the "p" element to get a two-column layout on wider display ports in the interim. I'll close this issue.

from lowdown.

ron-at-swgy avatar ron-at-swgy commented on September 2, 2024

Kristaps, I'm don't understand the difference between node types LOWDOWN_BLOCKHTML and LOWDOWN_RAW_HTML. Would it make sense to parse my case into a few LOWDOWN_BLOCKHTML nodes with other markdown nodes in between? I see that <hr /> and <br /> are parsed as LOWDOWN_BLOCKHTML. When would I expect to see LOWDOWN_RAW_HTML?

Thank you,
Ron

from lowdown.

ron-at-swgy avatar ron-at-swgy commented on September 2, 2024

Addressed in #128

from lowdown.

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.