From 52a3cc202f4f58ee9326924b3a0ecbc29af083b1 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 14 Jan 2023 18:58:19 -0500 Subject: config: Add full markup configuration --- config.json | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++---------- config.toml | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++---------- config.yaml | 64 ++++++++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 178 insertions(+), 32 deletions(-) diff --git a/config.json b/config.json index edb3168..3e85479 100644 --- a/config.json +++ b/config.json @@ -81,17 +81,6 @@ } ] }, - "markup": { - "highlight": { - "anchorLineNos": true, - "codeFences": true, - "guessSyntax": true, - "lineNos": false, - "lineNumbersInTable": false, - "noClasses": false, - "noHl": false - } - }, "params": { "site": { "production": false, @@ -390,5 +379,67 @@ "changefreq": "weekly", "filename": "sitemap.xml", "priority": 0.5 + }, + "markup": { + "asciidocExt": { + "attributes": {}, + "backend": "html5", + "extensions": [], + "failureLevel": "fatal", + "noHeaderOrFooter": true, + "preserveTOC": false, + "safeMode": "unsafe", + "sectionNumbers": false, + "trace": false, + "verbose": false, + "workingFolderCurrent": false + }, + "defaultMarkdownHandler": "goldmark", + "goldmark": { + "extensions": { + "definitionList": true, + "footnote": true, + "linkify": true, + "linkifyProtocol": "https", + "strikethrough": true, + "table": true, + "taskList": true, + "typographer": true + }, + "parser": { + "attribute": { + "block": false, + "title": true + }, + "autoHeadingID": true, + "autoHeadingIDType": "github", + "wrapStandAloneImageWithinParagraph": true + }, + "renderer": { + "hardWraps": false, + "unsafe": false, + "xhtml": true + } + }, + "highlight": { + "anchorLineNos": true, + "codeFences": true, + "guessSyntax": true, + "hl_Lines": "", + "hl_inline": false, + "lineAnchors": "", + "lineNoStart": 1, + "lineNos": false, + "lineNumbersInTable": false, + "noClasses": false, + "noHl": false, + "style": null, + "tabWidth": 4 + }, + "tableOfContents": { + "endLevel": 3, + "ordered": false, + "startLevel": 2 + } } } diff --git a/config.toml b/config.toml index e784b3e..1ba7ca2 100644 --- a/config.toml +++ b/config.toml @@ -74,17 +74,6 @@ enableRobotsTXT = true identifier = "feather/git-commit" weight = 8 -[markup] - - [markup.highlight] - anchorLineNos = true - codeFences = true - guessSyntax = true - lineNos = false - lineNumbersInTable = false - noClasses = false - noHl = false - [params] [params.site] @@ -302,3 +291,65 @@ enableRobotsTXT = true changefreq = "weekly" filename = "sitemap.xml" priority = 0.5 + +[markup] + defaultMarkdownHandler = "goldmark" + + [markup.asciidocExt] + backend = "html5" + extensions = [] + failureLevel = "fatal" + noHeaderOrFooter = true + preserveTOC = false + safeMode = "unsafe" + sectionNumbers = false + trace = false + verbose = false + workingFolderCurrent = false + + [markup.asciidocExt.attributes] + + [markup.goldmark] + + [markup.goldmark.extensions] + definitionList = true + footnote = true + linkify = true + linkifyProtocol = "https" + strikethrough = true + table = true + taskList = true + typographer = true + + [markup.goldmark.parser] + autoHeadingID = true + autoHeadingIDType = "github" + wrapStandAloneImageWithinParagraph = true + + [markup.goldmark.parser.attribute] + block = false + title = true + + [markup.goldmark.renderer] + hardWraps = false + unsafe = false + xhtml = true + + [markup.highlight] + anchorLineNos = true + codeFences = true + guessSyntax = true + hl_Lines = "" + hl_inline = false + lineAnchors = "" + lineNoStart = 1 + lineNos = false + lineNumbersInTable = false + noClasses = false + noHl = false + tabWidth = 4 + + [markup.tableOfContents] + endLevel = 3 + ordered = false + startLevel = 2 diff --git a/config.yaml b/config.yaml index 9d9a6b7..58a8d37 100644 --- a/config.yaml +++ b/config.yaml @@ -65,16 +65,6 @@ menu: identifier: feather/git-commit weight: 8 -markup: - highlight: - anchorLineNos: true - codeFences: true - guessSyntax: true - lineNos: false - lineNumbersInTable: false - noClasses: false - noHl: false - params: site: production: false @@ -267,3 +257,57 @@ sitemap: changefreq: weekly filename: sitemap.xml priority: 0.5 + +markup: + asciidocExt: + attributes: {} + backend: html5 + extensions: [] + failureLevel: fatal + noHeaderOrFooter: true + preserveTOC: false + safeMode: unsafe + sectionNumbers: false + trace: false + verbose: false + workingFolderCurrent: false + defaultMarkdownHandler: goldmark + goldmark: + extensions: + definitionList: true + footnote: true + linkify: true + linkifyProtocol: https + strikethrough: true + table: true + taskList: true + typographer: true + parser: + attribute: + block: false + title: true + autoHeadingID: true + autoHeadingIDType: github + wrapStandAloneImageWithinParagraph: true + renderer: + hardWraps: false + unsafe: false + xhtml: true + highlight: + anchorLineNos: true + codeFences: true + guessSyntax: true + hl_Lines: "" + hl_inline: false + lineAnchors: "" + lineNoStart: 1 + lineNos: false + lineNumbersInTable: false + noClasses: false + noHl: false + style: + tabWidth: 4 + tableOfContents: + endLevel: 3 + ordered: false + startLevel: 2 -- cgit v1.2.3