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 Will be suffixed with -, so linking to the line number 1 with the option lineanchors=prefix adds the anchor prefix-1 to the page.
0 Comments
Leave a Reply. |