How to generate <table class="table"> #116
-
Hello, I was a Wyam user, and I recently migrated to Statiq. As I continue to use bootstrap, I would like to know how to customize the Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Does kramdown format work? | A simple | table |
| with multiple | lines|
{: .my-class } This would generate |
Beta Was this translation helpful? Give feedback.
-
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,
x => ((RenderMarkdown)x).UseExtension<BootstrapExtension>()); |
Beta Was this translation helpful? Give feedback.
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: