Bjørn Erik Pedersen
303e443ea7
Improve and extend .Position handling in Goldmark render hooks
...
Goldmark v1.8 reports source positions in render hooks.
Use this to build a source map that translates Goldmark positions back to
the original content source.
Now all render hooks' context object implenent the `BaseContext` interface:
```go
type BaseContext interface {
Position() Position
Page() any
PageInner() any
Ordinal() int
}
```
Closes #14663
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-02 19:30:28 +02:00
Barkın Balcı
ec178ea463
tpl: Fix language resolution for markdown shortcodes
...
Fixes #14098
2026-01-10 15:45:03 +01:00
Bjørn Erik Pedersen
3073fd5ccf
testing: Replace legacy config.toml with hugo.toml in most tests
2025-11-27 12:08:08 +01:00
Bjørn Erik Pedersen
b9b304a126
testing: Port integration tests to new templates structure
...
As introduced in v0.146.0. Keep some legecy test to preserve backwards compatibility.
2025-11-27 12:00:15 +01:00
Joe Mooring
84b31721bf
markup/goldmark: Change link and image render hook enablement to enums
...
Closes #13535
2025-07-07 11:19:34 +02:00
Bjørn Erik Pedersen
83cfdd78ca
Reimplement and simplify Hugo's template system
...
See #13541 for details.
Fixes #13545
Fixes #13515
Closes #7964
Closes #13365
Closes #12988
Closes #4891
2025-04-06 20:59:41 +02:00
Joe Mooring
8af04745fb
tpl/tplimpl: Use plain text for image render hook alt attribute
...
Co-authored-by: Heracles <email@heracl.es >
2025-01-10 19:44:39 +02:00
Joe Mooring
54398f8d57
tpl/tplimpl: Escape Markdown attributes in render hooks and shortcodes
2024-12-09 17:58:57 +01:00
Joe Mooring
b893a09aa6
tpl/tplimpl: Resolve render hook destinations with leading ./
...
Closes #12514
2024-05-21 09:38:25 +02:00
Joe Mooring
6dfeb9f038
tpl/tplimpl: Retain query string and fragment in render-image.html
...
Closes #12468
2024-05-10 22:32:48 +02:00
Joe Mooring
632ad74fc5
tpl/tplimpl: Honor markdown attributes in embedded image render hook
...
Fixes #12203
2024-03-07 08:21:58 +01:00
Joe Mooring
c9f7ebf004
tpl/tplimpl: Resolve fragments in link render hook
...
Fixes #12084
2024-02-21 09:11:34 +01:00