Skip to content

How to generate <table class="table"> #116

Answered by daveaglick
ferrecromain asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome from Wyam! This is one of the areas where Statiq (and specifically Statiq Web) is significantly more powerful than Wyam. Files are rendered based on their content type using something called templates. These templates can be easily modified or added without having to resort to tweaking pipelines or anything.

In your case, Statiq doesn't assume anything about CSS (we have users on bespoke, Tailwind, etc.) but this should do the trick to add the Bootstrap Markdown plugin back via the template used for Markdown files:

using Markdig.Extensions.Bootstrap;

// ...

Bootstrapper bootstrapper = Bootstrapper.Factory
    .CreateWeb(args)
    .ModifyTemplate(
        MediaTypes.Markdown,

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ferrecromain
Comment options

Comment options

You must be logged in to vote
2 replies
@ferrecromain
Comment options

@daveaglick
Comment options

Answer selected by daveaglick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants