![]() The options are the same as in the highlighting shortcode,including linenos=false, but note the slightly different Markdown attribute syntax. See goldmark-highlighting for more information. Note that only Goldmark supports passing attributes such as hl_lines, and it’s important that it does not contain any spaces. ![]() If an unknown or empty style is provided, AP style is what you get.įunc GetTitleFunc ( style string ) func ( s string ) string GetTitleFunc returns a func that can be used to transform a string to ![]() The code tag will get a class with name code-inline. ![]() hl_inline Highlight inside a (inline HTML element) tag.Will be suffixed with -, so linking to the line number 1 with the option lineanchors=prefix adds the anchor prefix-1 to the page. lineanchors: Configure a prefix for the anchors on line numbers.anchorlinenos: Configure anchors on line numbers.linenostart=199: starts the line number count from 199.hl_lines: lists a set of line numbers or line number ranges to be highlighted.New in v0.60.0 table will give copy-and-paste friendly code blocks. false will turn off line numbers if it’s configured to be on in site config. Valid values are true, false, table, or inline. Note that highlight is not used for client-side JavaScript highlighting. It takes exactly one required parameter for the programming language to be highlighted and requires a closing shortcode. Highlighting is carried out via the built-in highlight shortcode. Run hugo gen chromastyles -h for more options. Hugo gen chromastyles -style =monokai > syntax.css ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |