38 Commits

Author SHA1 Message Date
Óscar
f8e98afd9d
feat: add raw_path parameter to image shortcodes (#439) 2024-11-27 21:34:42 +01:00
Óscar
e8381d05cc
feat(shortcodes): support body admonitions (#423) 2024-11-07 14:33:06 +01:00
Óscar
c9f8d27b96
feat: add force_text_direction shortcode (#414) 2024-10-18 19:01:15 +02:00
welpo
008b976e06
feat(remote_text shortcode): support line ranges (#399) 2024-09-22 15:06:38 +02:00
Óscar
90c1da1ddb
feat(remote_text shortcode): support relative paths (#398) 2024-09-22 14:30:03 +02:00
Óscar
a7e78b29ab
feat: add Mermaid diagram support (#370) 2024-08-28 14:56:30 +02:00
Óscar
d689c15145
feat(admonitions): allow swapping admonition icons (#340) 2024-06-27 21:08:05 +02:00
welpo
be7628aeaa
feat: allow HTML tags in multilingual quote author 2024-06-20 17:54:53 +02:00
Óscar
27525fc13f
feat(shortcodes): add inline option to image shortcodes (#315) 2024-05-18 14:52:39 +02:00
welpo
b70efd1642
feat: enable adding URL/path to code blocks (#307) 2024-05-03 17:37:40 +02:00
Óscar
5bc593b676
feat(shortcodes): add remote_text shortcode (#305) 2024-05-02 22:57:56 +02:00
welpo
d0162291d9
feat(shortcodes): add admonition shortcode (#285) 2024-03-21 01:21:11 +01:00
Óscar
ed845eaf25
feat(shortcodes): support URLs for image source (#280) 2024-02-16 00:49:16 +01:00
Óscar Fernández
7796162e37
feat: allow relative paths for image shortcodes (#222) 2023-11-24 02:10:43 +01:00
welpo
01d5322ef3
🐛 fix(multilingual-quote): open <p> regardless of attribution 2023-10-19 15:52:44 +02:00
welpo
5458b1c533
🎨 style: fix whitespace issues 2023-10-07 23:31:59 +02:00
Ó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.
2023-09-12 18:58:58 +02:00
welpo
3cf9e3ad8d
feat(multilingual-quote): allow missing author 2023-09-06 14:54:08 +02:00
Óscar
78f97e17b4
♻️ refactor(translation): introduce translation macro (#129) 2023-09-01 23:29:11 +02:00
Óscar
1c3db86b75
feat(image shortcodes): add lazy loading (#116)
Additionally sets the `alt` parameters as optional and cleans HTML output.
2023-08-26 01:57:19 +02:00
Óscar
151063d74b
feat(shortcode): add spoiler shortcode (#113) 2023-08-24 14:27:33 +02:00
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.
2023-08-14 15:08:22 +02:00
welpo
fb0dea0106
feat: add wide container shortcode 2023-08-11 23:36:59 +02:00
welpo
5250576744
💡 chore: add comments explaining use of get_random 2023-08-10 17:26:39 +02:00
welpo
7ccd71736e
feat: add 2 interactive image shortcodes
- `image_hover` changes image on mouse hover.

- `image_toggler` swaps image on click.
2023-08-09 18:36:45 +02:00
welpo
fd50204e32
feat: add full-width image option to shortcodes
Closes #85
2023-07-05 02:43:07 +02:00
welpo
c47198facf
🎨 style: add dash to toggle identifier 2023-06-16 13:49:46 +02:00
welpo
0e1a5143c0
🐛 fix: generate random id for multilingual quotes
Fix #82
2023-06-16 02:09:55 +02:00
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.
2023-06-07 01:50:43 +02:00
welpo
ab29511d5e
feat: add multilingual quote shortcode 2023-06-05 23:22:17 +02:00
welpo
b5b50cdefb
🐛 fix: handle missing image metadata gracefully 2023-04-16 18:06:20 +02:00
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.
2023-04-16 03:21:41 +02:00
welpo
b3dc5396b4
feat: add dual image support for switching themes 2023-02-25 22:28:43 +01:00
welpo
4e4021da5d
feat: format references with custom shortcode
Uses hanging indent for a References section.
2023-02-25 02:00:42 +01:00
welpo
799b31d403
✏️ fix: minor typo 2023-02-18 03:24:58 +01:00
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…)
2023-02-16 00:22:31 +01:00
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.
2023-02-10 13:25:55 +01:00
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") }}
2023-02-10 02:36:23 +01:00