forked from Grapycal/grapycal-docs-notion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notion-hugo.config.ts
27 lines (25 loc) · 1.22 KB
/
notion-hugo.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { UserConfig } from "./src/config"
const userConfig: UserConfig = {
mount: {
manual: false,
page_url: 'https://www.notion.so/1bbbcd193fdc473a81b953fdfc799602?pvs=4',
},
formatter: {
equation: {
// config how maths equations are rendered into markdown
// there are three options (markdown, shortcode, html)
// the markdown option renders the equations in default markdown flavor:
// \(inline equation\) \[displayed equation\]
// the shortcode option renders the equations into the math shortcode
// which relies on your Hugo theme to support and render the equations
// the html option directly renders equations into HTML + MathML
// when converting your Notion page into the markdown file,
// it makes the markdown file a lot less readable but it works for all themes.
// `markup.goldmark.renderer.unsafe` needs to be set to true for the HTML tags to work,
// which is the default setting.
// https://gohugo.io/getting-started/configuration-markup///configure-markup
style: 'html'
}
}
}
module.exports = userConfig