49 Commits

Author SHA1 Message Date
Nuno C.
d9ea382e81 Merge pull request #2704 from RxChi1d/fix/admonition-title-casing
fix(admonition): preserve custom title casing and integrate upstream improvements
2026-01-12 17:45:21 +00:00
Phillip Whittlesea-Clark
9c861e7c62 Feat: Add option for external link in new tab 2026-01-05 17:26:03 +00:00
rxchi1d
17906e63e2 refactor(admonition): simplify title handling logic
Replace complex title processing (9 lines) with single-line title filter approach.

Changes:
- Simplify $admonitionTitle definition from 5 variables to 1 line
- Remove $titleClass conditional logic (4 lines)
- Replace dynamic CSS class with static "grow" class
- Use Hugo title filter instead of CSS capitalize
- Remove TrimSpace processing per author feedback

This maintains the same visual behavior while significantly reducing code complexity.

Related: PR #2704 feedback from ZhenShuo2021
2026-01-04 23:25:28 +08:00
rxchi1d
fc9e6efb80 fix(render-blockquote): preserve custom title casing 2026-01-03 11:19:17 +08:00
ZhenShuo Leo
3c534548df feat(admonition): allow full customization 2025-12-31 15:41:13 +08:00
ZhenShuo Leo
bf0713c0cf feat(admonition): support arbitrary icon 2025-12-31 15:34:24 +08:00
ZhenShuo Leo
81f2423d71 Merge branch 'dev' into feature/callout-tailwind 2025-12-23 01:21:40 +08:00
Nuno C.
b6c00249c6 Merge pull request #2656 from ZhenShuo2021/feat/codeblock-title
 Feat: support title in code block
2025-12-22 17:11:53 +00:00
ZhenShuo Leo
07f2fec870 feat(admonition): polish
- sort by type names
- tweak colors of some types
- improve dark mode contrast
- prune css
- simplify render hook
2025-12-23 00:49:50 +08:00
rxchi1d
57befe227f feat(admonitions): add header-only support 2025-12-22 14:18:31 +08:00
ZhenShuo Leo
0317f3aa0e refactor(admonition): simplify code 2025-12-22 12:29:12 +08:00
rxchi1d
775d5b1bbf feat: add admonitions 2025-12-22 09:53:58 +08:00
ZhenShuo Leo
0e3bad2be7 feat(codeblock): add title support 2025-12-18 02:38:31 +08:00
ZhenShuo Leo
f8417b8297 feat: adopt Hugo embed render-link logic 2025-12-15 18:20:26 +08:00
Phillip Whittlesea-Clark
65ad575c9c Support Hugo Markdown Attributes for Inline Images 2025-11-01 18:21:42 +00:00
Nuno C.
6e5a0769d3 Merge pull request #2539 from Flexicon/fix-heading-anchor-colour-flicker
🐛 Fix(render-heading): prevent colour flicker on anchor links
2025-10-14 10:11:19 +01:00
Mike Repec
b4a13da6d8 🐛 Fix(render-heading): prevent colour flicker on anchor links
The group-hover prefix is redundant and cause the colour to flicker
for the anchor link tag - the colour should actually stay the same
and only have it's opacity (visibility really) controlled via group-hover.
2025-10-13 09:18:45 +02:00
ZhenShuo Leo
792ec9a601 refactor(render-image): see detail
- trim white spaces which can't be eliminated by minify
- unify dict input usages
2025-10-11 15:07:20 +08:00
ZhenShuo Leo
8bfa9926c7 fix(render-image): improper srcset usage
- correct srcset image w descriptor value
- use compressed image for src fallback
2025-10-11 15:07:20 +08:00
ZhenShuo Leo
41f6b37e56 refactor(tailwind): use logical properties for language direction 2025-08-22 03:34:02 +08:00
Nuno C.
dca9e177c5 Merge pull request #2345 from OnqiauJliu/base64-image
 Feat: Support base64 image format
2025-07-21 10:10:09 +01:00
OnqiauJliu
8378089dfb Support base64 image format 2025-07-16 14:50:28 +08:00
ZhenShuo Leo
03c3f18b72 style: prevent anchor being selected 2025-07-13 23:00:30 +08:00
ZhenShuo Leo
51b9cdfb13 fix: render-link.html adding space after each link (#2287) 2025-06-26 17:33:12 +08:00
Nuno Coração
f2e224a042 pretty run 2025-06-17 23:17:26 +01:00
Served Smart
9f85c0566e ♻️ refactor: Move most inline styles out of line
- Move out of line by using already defined css classes
- Move paddings out of line
- Move margins out of line
- Move z-indexes out of line
- Move center-relative-left out of line
2025-06-12 14:00:21 +02:00
Nuno Coração
f316c9b437 Merge pull request #2166 from ZhenShuo2021/feat/image-option
 Feat: add new option disableImageOptimizationMD
2025-05-27 00:37:23 +01:00
Nuno Coração
c93fafd3ee Merge pull request #2160 from ZhenShuo2021/refactor/render-image
♻️ Refactor: encapsulates functions in render-image.html
2025-05-27 00:27:09 +01:00
Nuno Coração
05756a31a4 Merge pull request #2159 from ZhenShuo2021/fix/render-image
🐛 fix: Correct the attributes of the `<img>` tag
2025-05-27 00:16:06 +01:00
ZhenShuo Leo
69fc96ed5b feat: add new option disableImageOptimizationMD 2025-05-27 04:19:51 +08:00
ZhenShuo Leo
86fa25f27f chore: unify variable naming conventions 2025-05-26 00:21:37 +08:00
ZhenShuo Leo
6ab1964e22 ♻️ refactor: encapsulates functions in render-image.html 2025-05-25 23:29:48 +08:00
ZhenShuo Leo
4688d1e8c4 🐛 fix: correct the attributes of img tag 2025-05-25 22:36:26 +08:00
ZhenShuo Leo
6e49bfac5e 🐛 Fix: anchor not working for non-ascii characters
Fix in-page anchor links by replacing urlize to anchorize
2025-05-07 16:10:00 +08:00
ALXD
5af31913f1 add data-zoom-src to figure and render-image layouts fixing medium-zoom 2025-04-26 12:48:35 +02:00
wermos
581aba3359 Be less aggressive in removing newlines. 2024-06-03 22:45:22 +05:30
wermos
bb435aded7 Minified the shortcodes and added handling for SVGs. 2024-06-03 22:34:24 +05:30
wermos
c6cffadfa1 Made the link shortcode more readable. 2024-06-03 20:39:10 +05:30
wermos
46737b193f Tweaked the image shortcode. 2024-06-03 20:27:19 +05:30
wermos
c54b7daff2 Updated the link shortcode. 2024-06-02 12:20:45 +05:30
Nuno Coração
f421ce16c8 add loading lazy to image render 2024-03-09 15:24:00 +00:00
Karlukle
1c1d3d95b0 Fix Bugs: Anchors Not Functioning Correctly for CJK Headings
While utilizing the Blowfish theme, it was observed that headings containing non-ASCII characters, such as those in Chinese text, were not positioned when clicked on either the Table of Contents (TOC) or the anchor mark (#) preceding the heading. This issue did not occur with headings in plain English. The resolution involved updating the render-heading.html file to implement URL escaping for anchors, enabling accurate positioning for non-ASCII headings.
2024-02-18 15:59:35 +00:00
Nuno Coração
4c9e372ef7 Heading first-child styling not working 2023-12-01 12:15:20 +00:00
Maciej Opaliński
8a892cfb68 fix: Remove heading anchor content 2023-04-05 22:22:43 +02:00
Nuno Coração
7302083428 small fixes for main release 2022-12-21 23:46:19 +00:00
Nuno Coração
8ec3504224 fixed anchors 2022-11-06 22:28:52 +00:00
Nuno Coração
89ab364735 removed extra whitespace from links 2022-10-25 23:46:52 +01:00
Nuno Coração
99788cad77 make external links open by default on a new tab 2022-10-09 12:22:22 +01:00
Nuno Coração
8fbdecb6e7 initial commit 2022-09-10 20:05:37 +01:00