Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/markup
AgeCommit message (Collapse)Author
2021-01-03deps: Update go-org to v1.4.0Niklas Fasching
- Add support for pretty urls [1]. Rewrite file links: 1. replace the `.org` extension with `/` (`/foo.org` -> `/foo/`) 2. prefix unrooted links with `../` as relative links start in the fake subdirectory `/foo/` rather than `/` - Fix case-sensitivity of org drawer `:end:` [1] https://gohugo.io/content-management/urls/#pretty-urls
2021-01-01rst: Adjust log levelBjørn Erik Pedersen
2020-12-30Add Dart Sass supportBjørn Erik Pedersen
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102
2020-12-19Improve LookPathBjørn Erik Pedersen
2020-12-16all: Fix minor typosPhil Davis
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2020-11-26Fix server rebuild issue with partials referenced from render hooksBjørn Erik Pedersen
Fixes #7990
2020-11-20deps: Update to Chroma v0.8.2Bjørn Erik Pedersen
Closes #7970
2020-10-22Allow getJSON errors to be ignoredBjørn Erik Pedersen
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing). Fixes #7866
2020-10-16highlight: Avoid making unnecessary allocationCameron Moore
Avoid creating a local copy of the highlight configuration when no options are passed. Benchmarks of building the docs site: name old time/op new time/op delta DocsSite-2 1.94s ± 4% 1.93s ± 4% ~ (p=0.841 n=5+5) name old alloc/op new alloc/op delta DocsSite-2 666MB ± 1% 656MB ± 0% -1.48% (p=0.008 n=5+5) name old allocs/op new allocs/op delta DocsSite-2 8.85M ± 0% 8.76M ± 0% -1.04% (p=0.029 n=4+4)
2020-09-17markup/asciidocext: Add preserveTOC optionHelder Pereira
2020-09-13markup/highlight: Add support to linkable line anchors on ChromaFernando Jorge Mota
Fixes #7622
2020-09-11deps: Update to Goldmark v1.2.1Bjørn Erik Pedersen
2020-09-10markup/asciidocext: Fix AsciiDoc TOC with codeHelder Pereira
Fixes #7649
2020-09-08markup/asciidocext: Fix broken testBjørn Erik Pedersen
2020-09-07markup/asciidocext: Revert trace=trueBjørn Erik Pedersen
2020-09-06markup/asciidoc: Add support for .TableOfContentsNicolas Piganeau
Fill the .TableOfContents template variable when writing Asciidoc content. This is done by letting Asciidoc render its TOC as HTML, then extract this HTML rendered TOC, parse it into a tableofcontents.Root and finally remove it from the HTML content. This aims to stay in the logic that the Asciidoc parsing is entirely done by the external helper. See #1687
2020-09-04markup/goldmark: Add a test caseBjørn Erik Pedersen
Updates #7619
2020-08-20Fixed misspelled wordsAurken Bilbao
2020-07-23Fix Asciidoctor argsHelder Pereira
* Fix Asciidoctor args * Fix Asciidoctor args documentation * Update AsciiDoc documentation Co-authored-by: Derk Muenchhausen <derk@muenchhausen.de> Fixes #7493
2020-07-05Remove trailing hyphen from auto heading IDJoe Mooring
Applicable when autoHeadingIDType is either `github` or `github-ascii`. When autoHeadingIDType is `blackfriday`, the existing code removes trailing whitespace while iterating through the characters, using a boolean "futureDash" mechanism. Fixes #6798
2020-07-02Update config.go to add two Asciidoctor extensionsBryan Klein
Added two common extensions to allow my Hugo+Asciidoctor site to build with the new configuration.
2020-06-27deps: Update go-org to v1.2.0Niklas Fasching
- Add support for #+MACRO - fix a bug with #+LINK (edge case, should never happen anyways :TM:) - Make title export optional (add export option) - Remove cosmetic whitespace added by go-org (for easier visual diffing) inside p tags (<p>\nfoo\n</p> => <p>foo</p>) (should make `white-space: pre` on p look more in line with expectations) - implement table separators via multiple tbodies (the html spec is ok with that)
2020-06-25Rework external asciidoctor integration Derk Muenchhausen
This commit solves the relative path problem with asciidoctor tooling. An include will resolve relatively, so you can refer easily to files in the same folder. Also `asciidoctor-diagram` and PlantUML rendering works now, because the created temporary files will be placed in the correct folder. This patch covers just the Ruby version of asciidoctor. The old AsciiDoc CLI EOLs in Jan 2020, so this variant is removed from code. The configuration is completely rewritten and now available in `config.toml` under the key `[markup.asciidocext]`: ```toml [markup.asciidocext] extensions = ["asciidoctor-html5s", "asciidoctor-diagram"] workingFolderCurrent = true trace = true [markup.asciidocext.attributes] my-base-url = "https://example.com/" my-attribute-name = "my value" ``` - backends, safe-modes, and extensions are now whitelisted to the popular (ruby) extensions and valid values. - the default for extensions is to not enable any, because they're all external dependencies so the build would break if the user didn't install them beforehand. - the default backend is html5 because html5s is an external gem dependency. - the default safe-mode is safe, explanations of the modes: https://asciidoctor.org/man/asciidoctor/ - the config is namespaced under asciidocext_config and the parser looks at asciidocext to allow a future native Go asciidoc. - `uglyUrls=true` option and `--source` flag are supported - `--destination` flag is required Follow the updated documentation under `docs/content/en/content-management/formats.md`. This patch would be a breaking change, because you need to correct all your absolute include pathes to relative paths, so using relative paths must be configured explicitly by setting `workingFolderCurrent = true`.
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-05markup/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-19Preserve 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-11markup: Add typographic chars from goldmark to tocDaniel Tang
Fixes #6592
2019-12-02markup: Reimplement pygmentsCodefencesGuessSyntaxBjørn Erik Pedersen
Fixes #6565
2019-11-27deps: 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.