mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
0373e43102
f887bd7bAdd script to pull theme changese89bbb2fUpdate README78155decMerge commit '9301947b25099dd402065104b340b1a480906a74' as 'themes/gohugoioTheme'9301947bSquashed 'themes/gohugoioTheme/' content from commit 7dd8a302e7557a34Remove gohugoioTheme submodulea78bbe22Add link to Go issue31d1ef40Add example for taxonomy terms with metadatada978cc7Fix links in Blackfriday extension documentation950ad115Fix reference to Blackfriday Extensions section12d1d026Add documentation for Blackfriday Extensions8c2b8fb5Fix explaination for uglyURLs config option378aded7Use community repository for Arch Linux installation guide56455e7eImprove 0.26 release notesbe7db03anetlify: Build with the new 0.26d430b2d3Bump version to 0.2661adaca0releaser: Prepare repository for 0.27-DEVabef29a6releaser: Add release notes to /docs for release of 0.265937fe41releaser: Bump versions for release of 0.26033752f1Merge commit 'e81208265bb3cdb7606d051a23d83aeebcb7d34d'bec2bd12Make the title case style guide configurablef1739a44Merge commit '50ec65fbe1a48475d3320775dab2c47389c02114'a1aac0e5helpers: Add support for French Guillemetsb8dc1592doc: Merge commit '2c0d1ccdcd95de0bddeb39dca2e4d08f0d8056d7'7b3e31b8Merge commit '6dbde8d731f221b027c0c60b772ba82dad759943'a37e7201Bump versions to 0.26-DEV git-subtree-dir: docs git-subtree-split:f887bd7b4e
6.8 KiB
6.8 KiB
Blackfriday Options
taskLists- default:
true
Blackfriday flag:
Purpose:falseturns off GitHub-style automatic task/TODO list generation. smartypants- default:
true
Blackfriday flag:HTML_USE_SMARTYPANTS
Purpose:falsedisables smart punctuation substitutions, including smart quotes, smart dashes, smart fractions, etc. Iftrue, it may be fine-tuned with theangledQuotes,fractions,smartDashes, andlatexDashesflags (see below). smartypantsQuotesNBSP- default:
false
Blackfriday flag:HTML_SMARTYPANTS_QUOTES_NBSP
Purpose:trueenables French style Guillemets with non-breaking space inside the quotes. angledQuotes- default:
false
Blackfriday flag:HTML_SMARTYPANTS_ANGLED_QUOTES
Purpose:trueenables smart, angled double quotes. Example: "Hugo" renders to «Hugo» instead of “Hugo”. fractions- default:
true
Blackfriday flag:HTML_SMARTYPANTS_FRACTIONS
Purpose:falsedisables smart fractions.
Example:5/12renders to 5⁄12(<sup>5</sup>⁄<sub>12</sub>).
Caveat: Even withfractions = false, Blackfriday still converts1/2,1/4, and3/4respectively to ½ (½), ¼ (¼) and ¾ (¾), but only these three. smartDashes- default:
true
Blackfriday flag:HTML_SMARTY_DASHES
Purpose:falsedisables smart dashes; i.e., the conversion of multiple hyphens into an en-dash or em-dash. Iftrue, its behavior can be modified with thelatexDashesflag below. latexDashes- default:
true
Blackfriday flag:HTML_SMARTYPANTS_LATEX_DASHES
Purpose:falsedisables LaTeX-style smart dashes and selects conventional smart dashes. AssumingsmartDashes:
Iftrue,--is translated into – (–), whereas---is translated into — (—).
However, spaced single hyphen between two words is translated into an en dash— e.g., "12 June - 3 July" becomes12 June – 3 Julyupon rendering. hrefTargetBlank- default:
false
Blackfriday flag:HTML_HREF_TARGET_BLANK
Purpose:trueopens external links in a new window or tab. plainIDAnchors- default
true
Blackfriday flag:FootnoteAnchorPrefixandHeaderIDSuffix
Purpose:truerenders any heading and footnote IDs without the document ID.
Example: renders#my-headinginstead of#my-heading:bec3ed8ba720b970 extensions- default:
[]
Blackfriday flag:EXTENSION_*
Purpose: Enable one or more Blackfriday's Markdown extensions (if they aren't Hugo defaults).
Example: IncludehardLineBreakin the list to enable Blackfriday'sEXTENSION_HARD_LINK_BREAK.
See Blackfriday extensions section for more information. extensionsmask- default:
[]
Blackfriday flag:EXTENSION_*
Purpose: Enable one or more of Blackfriday's Markdown extensions (if they aren't Hugo defaults).
Example: IncludeautoHeaderIdsasfalsein the list to disable Blackfriday'sEXTENSION_AUTO_HEADER_IDS.
See Blackfriday extensions section for more information.
Blackfriday extensions
noIntraEmphasis- default: enabled
Purpose: The "_" character is commonly used inside words when discussing code, so having Markdown interpret it as an emphasis command is usually the wrong thing. When enabled, Blackfriday lets you treat all emphasis markers as normal characters when they occur inside a word. tables- default: enabled
Purpose: When enabled, tables can be created by drawing them in the input using the below syntax: Example:Name | Age --------|------ Bob | 27 Alice | 23 fencedCode- default: enabled
Purpose: When enabled, in addition to the normal 4-space indentation to mark code blocks, you can explicitly mark them and supply a language (to make syntax highlighting simple).You can use 3 or more backticks to mark the beginning of the block, and the same number to mark the end of the block.
Example:
```md # Heading Level 1 Some test ## Heading Level 2 Some more test ``` autolink- default: enabled
Purpose: When enabled, URLs that have not been explicitly marked as links will be converted into links. strikethrough- default: enabled
Purpose: When enabled, text wrapped with two tildes will be crossed out.
Example:~~crossed-out~~ laxHtmlBlocks- default: disabled
Purpose: When enabled, loosen up HTML block parsing rules. spaceHeaders- default: enabled
Purpose: When enabled, be strict about prefix header rules. hardLineBreak- default: disabled
Purpose: When enabled, newlines in the input translate into line breaks in the output. tabSizeEight- default: disabled
Purpose: When enabled, expand tabs to eight spaces instead of four. footnotes- default: enabled
Purpose: When enabled, Pandoc-style footnotes will be supported. The footnote marker in the text that will become a superscript text; the footnote definition will be placed in a list of footnotes at the end of the document.
Example:This is a footnote.[^1] [^1]: the footnote text. noEmptyLineBeforeBlock- default: disabled
Purpose: When enabled, no need to insert an empty line to start a (code, quote, ordered list, unordered list) block. headerIds- default: enabled
Purpose: When enabled, allow specifying header IDs with{#id}. titleblock- default: disabled
Purpose: When enabled, support Pandoc-style title blocks. autoHeaderIds- default: enabled
Purpose: When enabled, auto-create the header ID's from the headline text. backslashLineBreak- default: enabled
Purpose: When enabled, translate trailing backslashes into line breaks. definitionLists- default: enabled
Purpose: When enabled, a simple definition list is made of a single-line term followed by a colon and the definition for that term.
Example:Cat : Fluffy animal everyone likes Internet : Vector of transmission for pictures of catsTerms must be separated from the previous definition by a blank line.
joinLines- default: enabled
Purpose: When enabled, delete newlines and join the lines.