Coder Social home page Coder Social logo

Comments (10)

marijnh avatar marijnh commented on August 23, 2024

Do you mean dropped when parsing with a markdown parser? Or something else?

from prosemirror-markdown.

segevfiner avatar segevfiner commented on August 23, 2024

Dropped by prosemirror due to having a schema with block+ for table headers, cells. I customized it so it is now inline+ so that it works, but I was wondering whether it's legal to have block stuff inside tables and if/how I should support it.

from prosemirror-markdown.

marijnh avatar marijnh commented on August 23, 2024

Yes, that's legal, but I still don't understand which process is dropping these.

from prosemirror-markdown.

segevfiner avatar segevfiner commented on August 23, 2024

The prosemirror schema validation as far as I can tell. Because I'm trying to integrate prosemirror-markdown with an external prosemirror schema.

from prosemirror-markdown.

marijnh avatar marijnh commented on August 23, 2024

How are you transforming stuff into a ProseMirror document where this happens?

from prosemirror-markdown.

segevfiner avatar segevfiner commented on August 23, 2024

Using MarkdownParser from this package, with a slightly modified config from the default, but otherwise very similar.

from prosemirror-markdown.

marijnh avatar marijnh commented on August 23, 2024

I see. It looks like MarkdownParser doesn't really support this, but I'm also wondering how you can have multiple blocks in your markdown tables if the Markdown parser doesn't parse its content as such (omitting block tokens there suggests no block are being parsed)?

from prosemirror-markdown.

segevfiner avatar segevfiner commented on August 23, 2024

That's what I'm not sure about, if you can have blocks inside a Markdown table or not... Because the schema I tried to adapt MarkdownParser specifies them as containing blocks while the schema here as inlines.

from prosemirror-markdown.

marijnh avatar marijnh commented on August 23, 2024

Are these GFM-style tables? I don't believe those support block markup in the cells.

from prosemirror-markdown.

segevfiner avatar segevfiner commented on August 23, 2024

Yeah GFM tables like in the default preset of markdown-it. If those don't support these, then my question is answered, and I just need to adjust the schema to accommodate as I did.

from prosemirror-markdown.

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.