mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-10 19:43:22 -05:00
bfb9613a14
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
26 lines
700 B
Markdown
26 lines
700 B
Markdown
---
|
|
title: highlight
|
|
linktitle: highlight
|
|
description: Takes a string of code and language declaration and uses Chroma to return syntax-highlighted HTML.
|
|
godocref:
|
|
date: 2017-02-01
|
|
publishdate: 2017-02-01
|
|
lastmod: 2017-02-01
|
|
categories: [functions]
|
|
menu:
|
|
docs:
|
|
parent: "functions"
|
|
keywords: [highlighting,code blocks,syntax]
|
|
signature: ["highlight INPUT LANG OPTIONS"]
|
|
workson: []
|
|
hugoversion:
|
|
relatedfuncs: []
|
|
deprecated: false
|
|
---
|
|
|
|
[`highlight` is used in Hugo's built-in `highlight` shortcode][highlight].
|
|
|
|
|
|
[highlight]: /content-management/shortcodes/#highlight
|
|
[installpygments]: /getting-started/installing/#installing-pygments-optional
|
|
[syntax]: /content-management/syntax-highlighting/
|