summaryrefslogtreecommitdiffstats
path: root/markup
AgeCommit message (Collapse)Author
2020-05-15Add render template hooks for headingsEli W. Hunter
This commit also * Renames previous types to be non-specific. (e.g. hookedRenderer rather than linkRenderer) Resolves #6713
2020-04-17deps: Update go-org to v1.1.0Niklas Fasching
- inline source blocks and exports - result blocks and source block :exports parameter - fix: html escaping in example blocks - #+LINK based links
2020-03-20Some minify configuration adjustmentsBjørn Erik Pedersen
2020-03-20Add minify configSatowTakeshi
Fixes #6750 Updates #6892
2020-03-19Update to goldmark 1.1.25.Elliott Sales de Andrade
This fixes a bug, so there's a small change to tests.
2020-02-22Fix goldmark toc renderingsatotake
Previously gordmark-based TOC renderes only `KindText` and `KindString` This commit expands target node with Goldmark's renderer I am not sure of what are expected results as TOC contents in some (rare) cases but Blackfriday's behaviours are fundamentally respected. For example, - image `[image text](link)` is rendered as `<img>` tag - GFM AutoLink `gohugo.io` is rendered as text * Render AutoLink as <a> tag as Blackfriday does Fixes #6736 Fixes #6809
2020-02-18Fix RenderString for pages without contentBjørn Erik Pedersen
Fixes #6882
2020-02-17markup/highlight: Fix chroma highlightsatotake
* Use chroma.Coalesce * Escape code strings if lexer is nil Fixes #6877 Fixes #6856
2020-01-15deps: Update Goldmark to v1.1.21Matt Riggott
This is the first version of Goldmark that supports all the Smartypants-style typographic punctuation transformations. Now, a straight single quote in the middle of a word is translated into a curly quote (e.g. "that's" becomes "that&rsquo;s"). Earlier versions leave them untouched. This brings Goldmark in line with Blackfriday. Fixes #6571.
2020-01-05markup/goldmark: Adjust auto ID space handlingBjørn Erik Pedersen
GitHub does not consider tabs as delimiter, see https://github.com/bep/portable-hugo-links/blob/master/blog/p2.md Closes #6710
2020-01-05markup/goldmark: Add an optional Blackfriday auto ID strategyBjørn Erik Pedersen
Fixes #6707
2020-01-05markup/goldmark: Make the autoID type config a stringBjørn Erik Pedersen
To potentially make room for one more. See #6707
2020-01-04markup/goldmark: Simplify codeBjørn Erik Pedersen
2020-01-04markup/goldmark: Make auto IDs GitHub compatibleBjørn Erik Pedersen
You can turn off this behaviour: ```toml [markup] [markup.goldmark] [markup.goldmark.parser] autoHeadingIDAsciiOnly = true ``` Note that the `anchorize` now adapts its behaviour depending on the default Markdown handler. Fixes #6616
2019-12-19Preserve HTML Text for image render hooksBjørn Erik Pedersen
Fixes #6639
2019-12-18Preserve HTML Text for link render hooksBjørn Erik Pedersen
The context now have two text methods: * Text - rendered * PlainText Fixes #6629
2019-12-18Add render template hooks for links and imagesBjørn Erik Pedersen
This commit also * revises the change detection for templates used by content files in server mode. * Adds a Page.RenderString method Fixes #6545 Fixes #4663 Closes #6043
2019-12-12markup/tableofcontents: Add config option for ordered listGavin D. Howard
2019-12-10markup: Add typographic chars from goldmark to tocDaniel Tang
Fixes #6592
2019-12-02markup: Reimplement pygmentsCodefencesGuessSyntaxBjørn Erik Pedersen
Fixes #6565
2019-11-26deps: Update GoldmarkBjørn Erik Pedersen
Closes https://github.com/yuin/goldmark/issues/36#event-2832923993
2019-11-25resources/images: Make the image cache more robustBjørn Erik Pedersen
Also allow timeout to be set as a duration string, e.g. `30s`. Fixes #6501
2019-11-24markup/highlight: Replace the temp for with a dependencyBjørn Erik Pedersen
2019-11-24deps: Update GoldmarkBjørn Erik Pedersen
2019-11-23markup/tableofcontents: GoDoc etc.Bjørn Erik Pedersen
2019-11-23Minor cleanupsCameron Moore
Use fmt.Fprint were appropriate instead of Fprintf. Remove some unused code.
2019-11-23Add Goldmark as the new default markdown handlerBjørn Erik Pedersen
This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo. If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration: ```toml [markup] defaultMarkdownHandler="blackfriday" ``` Fixes #5963 Fixes #1778 Fixes #6355
2019-11-06Prepare for GoldmarkBjørn Erik Pedersen
This commmit prepares for the addition of Goldmark as the new Markdown renderer in Hugo. This introduces a new `markup` package with some common interfaces and each implementation in its own package. See #5963