39 Commits (main)

Author SHA1 Message Date
Óscar 98b0c8d161
feat(shortcodes): add 'aside' shortcode for side notes (#452) 2 months ago
Óscar f8e98afd9d
feat: add `raw_path` parameter to image shortcodes (#439) 3 months ago
Óscar e8381d05cc
feat(shortcodes): support body admonitions (#423) 4 months ago
Óscar c9f8d27b96
feat: add force_text_direction shortcode (#414) 4 months ago
welpo 008b976e06
feat(remote_text shortcode): support line ranges (#399) 5 months ago
Óscar 90c1da1ddb
feat(remote_text shortcode): support relative paths (#398) 5 months ago
Óscar a7e78b29ab
feat: add Mermaid diagram support (#370) 6 months ago
Óscar d689c15145
feat(admonitions): allow swapping admonition icons (#340) 8 months ago
welpo be7628aeaa
feat: allow HTML tags in multilingual quote author 8 months ago
Óscar 27525fc13f
feat(shortcodes): add inline option to image shortcodes (#315) 9 months ago
welpo b70efd1642
feat: enable adding URL/path to code blocks (#307) 10 months ago
Óscar 5bc593b676
feat(shortcodes): add remote_text shortcode (#305) 10 months ago
welpo d0162291d9
feat(shortcodes): add admonition shortcode (#285) 11 months ago
Óscar ed845eaf25
feat(shortcodes): support URLs for image source (#280) 1 year ago
Óscar Fernández 7796162e37
feat: allow relative paths for image shortcodes (#222) 1 year ago
welpo 01d5322ef3
🐛 fix(multilingual-quote): open <p> regardless of attribution 1 year ago
welpo 5458b1c533
🎨 style: fix whitespace issues 1 year ago
Óscar 32a2d5094b
🌐 feat(i18n): overhaul translation system & add languages (#145)
Revamp the existing translation system, simplifying
management and adding several new languages. The new system reads from
TOML files in the `/i18n` directory and improves template structures.
It also enhances customisation options and robustness by providing
fallbacks and modularity.

- Implement a new, streamlined translation macro.
- Load translations from `/i18n` TOML files.
- Remove redundant configuration requirements.
- Refactor templates to align with new i18n system.
- Add support for Hindi, Japanese, Russian, Portuguese, Chinese,
  Italian, German, Ukranian, Korean, and French languages.
- Credit Thomas Weitzel (@thomasweitzel) for inspiration.
1 year ago
welpo 3cf9e3ad8d
feat(multilingual-quote): allow missing author 1 year ago
Óscar 78f97e17b4
♻️ refactor(translation): introduce translation macro (#129) 2 years ago
Óscar 1c3db86b75
feat(image shortcodes): add lazy loading (#116)
Additionally sets the `alt` parameters as optional and cleans HTML output.
2 years ago
Óscar 151063d74b
feat(shortcode): add spoiler shortcode (#113) 2 years ago
welpo 07ceddcc00
feat: enhance Table of Contents
- Introduce `toc_ignore_pattern` to ignore specific headers based on regex.
- Allow custom ToC placement with shortcode or "<!-- toc -->" marker.
- Increase max depth for ToC to 4.
- Update Documentation for the above features.
 - Move ToC generation to a macro file.
2 years ago
welpo fb0dea0106
feat: add wide container shortcode 2 years ago
welpo 5250576744
💡 chore: add comments explaining use of `get_random` 2 years ago
welpo 7ccd71736e
feat: add 2 interactive image shortcodes
- `image_hover` changes image on mouse hover.

- `image_toggler` swaps image on click.
2 years ago
welpo fd50204e32
feat: add full-width image option to shortcodes
Closes #85
2 years ago
welpo c47198facf
🎨 style: add dash to toggle identifier 2 years ago
welpo 0e1a5143c0
🐛 fix: generate random id for multilingual quotes
Fix #82
2 years ago
welpo dd73e52729
feat: add custom quotation marks for multilingual quotes
Allows users to specify custom opening and closing quotation marks for
the multilingual quote shortcode.
The quotation marks can be configured per language in config.toml.
If not specified, default quotation marks will be used.
2 years ago
welpo ab29511d5e
feat: add multilingual quote shortcode 2 years ago
welpo b5b50cdefb
🐛 fix: handle missing image metadata gracefully 2 years ago
welpo b841969a8f
feat(shortcodes): update image path retrieval and dimensions in shortcodes
- Use `get_url` function to generate correct image paths
- Retrieve image dimensions with `get_image_metadata` function
- Update shortcodes: dimmable_image, dual_theme_image, and invertible_image

These changes reduce layout shifts.
2 years ago
welpo b3dc5396b4
feat: add dual image support for switching themes 2 years ago
welpo 4e4021da5d
feat: format references with custom shortcode
Uses hanging indent for a References section.
2 years ago
welpo 799b31d403
✏️ fix: minor typo 2 years ago
welpo bd8dd87cd5
feat: add dimmable-image shortcode for dark theme
Reduces contrast and brightness of images when the dark theme is active.
Useful when invertable-image is not appropriate (photographs, paintings,
colour drawings…)
2 years ago
welpo 9de7a7a02d
feat: allow realtive paths in images
Useful when hosting on a subdirectory. Replaces $BASE_URL by the
base_url set in config.toml.
2 years ago
welpo 389c724fe0
feat: add invertable image shortcode
Useful to invert diagrams, graphs, etc. in dark theme.
To use it in a markdown file, add a line like:
{{ invertable_image(src="/img.png", alt="alt text") }}
2 years ago