This pandoc Lua filter converts markdown to Bootstrap components.
Useful for rapidly creating visually attractive Moodle courses
pandoc sample.md --lua-filter bootstrap.lua -o expected.html -f markdown+inline_code_attributes
Or with a template to add the bootstrap headers and navbar with Table of content.
pandoc sample.md --lua-filter bootstrap.lua -o result.html --template bs5.template.html -f markdown+inline_code_attributes
| Simply type this: | Get that: |
|---|---|
|
| Simply type the question and proposals: | And get that : |
|---|---|
|
| Type simply the slide content: | And get that: |
|---|---|
|
| Simply type the content of the toggle: | And get that: |
|---|---|
|
| Type simply this: | Get that |
|---|---|
|
| Type simply this: | Get that |
|---|---|
|
|
|
| Type simply the card content: | Get that |
|---|---|
|
| Type simply this: | Get that |
|---|---|
|
|
|
| Type simply this: | Get that |
|---|---|
|
| Simply type this: | And get that: |
|---|---|
|
This filter comes with a template to include:
- Table of content for the sidebar
Another filter can be used to insert social network blocks:
- Social-snetwork filter to create recommandation blocks
Here is what is already done and which components are planned:
- Jumbotrons
- Accordions
- Alerts
- Tabs
- Carousel
- Buttons
- Carddeck
- ButtonGroups
- Dropdowns
- YouTube Embeds
| Type simply this: | And get that: |
|---|---|
|
François Parlant
Thanks to Tarleb for his helpful answers about Lua on stackoveflow 👍











