Coder Social home page Coder Social logo

Comments (7)

asbjornu avatar asbjornu commented on July 20, 2024

I assume what's missing is class="table" on the <table> element.

from wikitten.

praveenscience avatar praveenscience commented on July 20, 2024

I am not sure if we can make Markdown to add extra classes, but we can redefine table {} in CSS right. :)

from wikitten.

asbjornu avatar asbjornu commented on July 20, 2024

If we control the Markdown to HTML conversion pipeline or can extend it somehow, we can add class="table" to all <table> elements, no? That's what would be required to have the Bootstrap style added to it.

from wikitten.

praveenscience avatar praveenscience commented on July 20, 2024

Won't that be against the implementation of original markdown parser? Also also I believe you can add extra features with GFM. I am gonna implement that soon.

from wikitten.

bong0 avatar bong0 commented on July 20, 2024

FYI: I'm not evaluating wikitten anymore but switched to a dokuwiki based solution. It has pretty nice markdown support and also one fairly good bootstrap theme.

from wikitten.

asbjornu avatar asbjornu commented on July 20, 2024

@praveenscience The parser shouldn't be involved in this at all. Adding class="table" would be done in the rendering of whatever the parser creates (an AST, I assume) from the Markdown markup. If it's possible to add a plugin to the rendering pipeline, that would be an elegant and simple solution.

from wikitten.

praveenscience avatar praveenscience commented on July 20, 2024

@asbjornu Agreed. There's a plan of using Parsedown instead of the original markdown, so this opens up to so many possibilities. I will try to check with the PD guys, if there's a possibility of adding extra class. 😄

from wikitten.

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.