UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

89 lines 2.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultMarkdownConfig = exports.DefaultHighlightConfig = exports.AutoHeadingIDType = void 0; /** * Auto heading ID types */ exports.AutoHeadingIDType = { GitHub: 'github', GitHubAscii: 'github-ascii', Blackfriday: 'blackfriday', }; /** * Default highlight configuration */ exports.DefaultHighlightConfig = { style: 'github', lineNos: false, lineNoStart: 1, anchorLineNos: false, lineAnchors: '', lineNumbersInTable: true, noClasses: true, codeFences: true, guessSyntax: false, tabWidth: 4, }; /** * Default markdown configuration */ exports.DefaultMarkdownConfig = { extensions: { typographer: { disable: true, leftSingleQuote: '‘', rightSingleQuote: '’', leftDoubleQuote: '“', rightDoubleQuote: '”', enDash: '–', emDash: '—', ellipsis: '…', leftAngleQuote: '«', rightAngleQuote: '»', apostrophe: '’', }, footnote: true, definitionList: true, table: true, strikethrough: true, linkify: true, linkifyProtocol: 'https', taskList: true, cjk: { enable: false, eastAsianLineBreaks: false, eastAsianLineBreaksStyle: 'simple', escapedSpace: false, }, passthrough: { enable: false, delimiters: { inline: [], block: [], }, }, highlight: exports.DefaultHighlightConfig, }, renderer: { unsafe: true, }, parser: { autoHeadingID: true, autoHeadingIDType: exports.AutoHeadingIDType.GitHub, wrapStandAloneImageWithinParagraph: true, attribute: { title: true, block: false, }, }, duplicateResourceFiles: false, renderHooks: { image: { enableDefault: true, }, link: { enableDefault: true, }, }, }; //# sourceMappingURL=config.js.map