Pandoc Lua filter : Markdown To Bootstrap
August 20, 2022 · View on GitHub
This pandoc Lua filter converts markdown to Bootstrap components.
Useful for rapidly creating visually attractive Moodle courses
USAGE
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
COMPONENTS
Header block (jumbotron)
| Simply type this: | Get that: |
|---|---|
|
|
Simple Quiz
| Simply type the question and proposals: | And get that : |
|---|---|
|
|
Carousel
| Type simply the slide content: | And get that: |
|---|---|
|
|
Accordion
| Simply type the content of the toggle: | And get that: |
|---|---|
|
|
Tabs
| Type simply this: | Get that |
|---|---|
|
|
Alerts
| Type simply this: | Get that |
|---|---|
|
|
|
|
Cards
| Type simply the card content: | Get that |
|---|---|
|
|
Buttons
| Type simply this: | Get that |
|---|---|
|
|
|
|
Media link
| Type simply this: | Get that |
|---|---|
|
|
Icons
| Simply type this: | And get that: |
|---|---|
|
|
Other tools included
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
ROADMAP
Here is what is already done and which components are planned:
- Jumbotrons
- Accordions
- Alerts
- Tabs
- Carousel
- Buttons
- Carddeck
- ButtonGroups
- Dropdowns
- YouTube Embeds
Swyping Quiz
| Type simply this: | And get that: |
|---|---|
|
|
Creator
François Parlant
Thanks to Tarleb for his helpful answers about Lua on stackoveflow 👍











