Skip to content

Commit 755300e

Browse files
mgrubbMichael Grubb
andauthored
Add extras properties to hugo markup.goldmark.extensions (SchemaStore#4613)
Co-authored-by: Michael Grubb <[email protected]>
1 parent 33fef4b commit 755300e

File tree

2 files changed

+209
-1
lines changed

2 files changed

+209
-1
lines changed

src/schemas/json/hugo.json

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,8 @@
995995
"strikethrough": true,
996996
"table": true,
997997
"taskList": true,
998-
"typographer": true
998+
"typographer": true,
999+
"extras": null
9991000
},
10001001
"parser": {
10011002
"attribute": {
@@ -1294,6 +1295,99 @@
12941295
"description": "\nhttps://gohugo.io/getting-started/configuration-markup#goldmark",
12951296
"type": "boolean",
12961297
"default": true
1298+
},
1299+
"extras": {
1300+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1301+
"type": "object",
1302+
"default": {
1303+
"delete": {
1304+
"enable": false
1305+
},
1306+
"insert": {
1307+
"enable": false
1308+
},
1309+
"mark": {
1310+
"enable": false
1311+
},
1312+
"subscript": {
1313+
"enable": false
1314+
},
1315+
"superscript": {
1316+
"enable": false
1317+
}
1318+
},
1319+
"properties": {
1320+
"delete": {
1321+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1322+
"type": "object",
1323+
"default": {
1324+
"enable": false
1325+
},
1326+
"properties": {
1327+
"enable": {
1328+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1329+
"type": "boolean",
1330+
"default": false
1331+
}
1332+
}
1333+
},
1334+
"insert": {
1335+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1336+
"type": "object",
1337+
"default": {
1338+
"enable": false
1339+
},
1340+
"properties": {
1341+
"enable": {
1342+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1343+
"type": "boolean",
1344+
"default": false
1345+
}
1346+
}
1347+
},
1348+
"mark": {
1349+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1350+
"type": "object",
1351+
"default": {
1352+
"enable": false
1353+
},
1354+
"properties": {
1355+
"enable": {
1356+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1357+
"type": "boolean",
1358+
"default": false
1359+
}
1360+
}
1361+
},
1362+
"subscript": {
1363+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1364+
"type": "object",
1365+
"default": {
1366+
"enable": false
1367+
},
1368+
"properties": {
1369+
"enable": {
1370+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1371+
"type": "boolean",
1372+
"default": false
1373+
}
1374+
}
1375+
},
1376+
"superscript": {
1377+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1378+
"type": "object",
1379+
"default": {
1380+
"enable": false
1381+
},
1382+
"properties": {
1383+
"enable": {
1384+
"description": "\nhttps://gohugo.io/configuration/markup/#extras",
1385+
"type": "boolean",
1386+
"default": false
1387+
}
1388+
}
1389+
}
1390+
}
12971391
}
12981392
},
12991393
"additionalProperties": false

src/test/hugo/example-5.yaml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# yaml-language-server: $schema=../../schemas/json/hugo.json
2+
frontmatter:
3+
date:
4+
- ':default'
5+
- ':fileModTime'
6+
- ':filename'
7+
- ':git'
8+
- 'date'
9+
- 'lastmod'
10+
- 'modified'
11+
- 'pubdate'
12+
- 'publishDate'
13+
expiryDate: [':default', 'expiryDate', 'unpublishdate']
14+
lastmod:
15+
[
16+
':default',
17+
':fileModTime',
18+
':filename',
19+
':git',
20+
'date',
21+
'lastmod',
22+
'modified',
23+
'pubdate',
24+
'publishDate',
25+
]
26+
publishDate:
27+
[
28+
':default',
29+
':fileModTime',
30+
':filename',
31+
':git',
32+
'date',
33+
'lastmod',
34+
'modified',
35+
'pubdate',
36+
'publishDate',
37+
]
38+
39+
permalinks:
40+
page:
41+
articles: '/articles/:slugorfilename'
42+
post: '/:slug/'
43+
44+
build:
45+
_merge: shallow
46+
buildStats:
47+
disableClasses: false
48+
disableIDs: false
49+
disableTags: false
50+
enable: true
51+
cachebusters:
52+
- source: assets/watching/hugo_stats\.json
53+
target: styles\.css
54+
- source: (postcss|tailwind)\.config\.js
55+
target: css
56+
- source: assets/.*\.(js|ts|jsx|tsx)
57+
target: js
58+
- source: assets/.*\.(.*)$
59+
target: $1
60+
noJSConfigInAssets: false
61+
useResourceCacheWhen: fallback
62+
63+
menu:
64+
resume:
65+
- identifier: education
66+
name: Education
67+
weight: 1
68+
params:
69+
count: 1
70+
71+
module:
72+
workspace: hugo.work
73+
74+
markup:
75+
goldmark:
76+
extensions:
77+
extras:
78+
foo:
79+
enable: true
80+
mark:
81+
enable: true
82+
83+
minify:
84+
disableCSS: false
85+
disableHTML: false
86+
disableJS: false
87+
disableJSON: false
88+
disableSVG: false
89+
disableXML: false
90+
minifyOutput: false
91+
tdewolff:
92+
css:
93+
keepCSS2: true
94+
precision: 0
95+
html:
96+
keepComments: false
97+
keepConditionalComments: true
98+
keepDefaultAttrVals: true
99+
keepDocumentTags: true
100+
keepEndTags: true
101+
keepQuotes: false
102+
keepWhitespace: false
103+
js:
104+
keepVarNames: false
105+
precision: 0
106+
version: 2022
107+
json:
108+
keepNumbers: false
109+
precision: 0
110+
svg:
111+
keepComments: false
112+
precision: 0
113+
xml:
114+
keepWhitespace: false

0 commit comments

Comments
 (0)