Age | Commit message (Collapse) | Author |
|
This commit also
* Renames previous types to be non-specific. (e.g. hookedRenderer rather
than linkRenderer)
Resolves #6713
|
|
- inline source blocks and exports
- result blocks and source block :exports parameter
- fix: html escaping in example blocks
- #+LINK based links
|
|
|
|
Fixes #6750
Updates #6892
|
|
This fixes a bug, so there's a small change to tests.
|
|
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
|
|
Fixes #6882
|
|
* Use chroma.Coalesce
* Escape code strings if lexer is nil
Fixes #6877
Fixes #6856
|
|
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’s"). Earlier versions leave
them untouched. This brings Goldmark in line with Blackfriday.
Fixes #6571.
|
|
GitHub does not consider tabs as delimiter, see https://github.com/bep/portable-hugo-links/blob/master/blog/p2.md
Closes #6710
|
|
Fixes #6707
|
|
To potentially make room for one more.
See #6707
|
|
|
|
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
|
|
Fixes #6639
|
|
The context now have two text methods:
* Text - rendered
* PlainText
Fixes #6629
|
|
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
|
|
|
|
Fixes #6592
|
|
Fixes #6565
|
|
Closes https://github.com/yuin/goldmark/issues/36#event-2832923993
|
|
Also allow timeout to be set as a duration string, e.g. `30s`.
Fixes #6501
|
|
|
|
|
|
|
|
Use fmt.Fprint were appropriate instead of Fprintf. Remove some unused
code.
|
|
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
|
|
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
|