terraform 1.26.0 → 1.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/template/processors/md.js +12 -18
- package/package.json +3 -3
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
var TerraformError = require("../../error").TerraformError
|
|
3
|
-
var marked = require("marked")
|
|
4
|
-
langPrefix: 'language-',
|
|
5
|
-
headerPrefix: '',
|
|
6
|
-
gfm: true,
|
|
7
|
-
tables: true,
|
|
8
|
-
mangle: false,
|
|
9
|
-
headerIds: false
|
|
10
|
-
})
|
|
11
|
-
var renderer = new marked.Renderer()
|
|
3
|
+
var marked = require("marked")
|
|
12
4
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
/**
|
|
6
|
+
* marked v18 defaults already produce the output this processor
|
|
7
|
+
* needs:
|
|
8
|
+
* - headings without ids (e.g. <h1>hello markdown</h1>)
|
|
9
|
+
* - code blocks with a <code class="language-xxx"> prefix
|
|
10
|
+
* - GFM + tables enabled
|
|
11
|
+
*
|
|
12
|
+
* so the old setOptions()/custom-renderer/langPrefix/headerIds
|
|
13
|
+
* configuration (removed from marked years ago) is no longer needed.
|
|
14
|
+
*/
|
|
19
15
|
|
|
20
16
|
module.exports = function(fileContents, options){
|
|
21
17
|
|
|
22
18
|
return {
|
|
23
19
|
compile: function(){
|
|
24
20
|
return function (locals){
|
|
25
|
-
return marked(fileContents.toString().replace(/^\uFEFF/, '')
|
|
26
|
-
renderer: renderer
|
|
27
|
-
})
|
|
21
|
+
return marked.parse(fileContents.toString().replace(/^\uFEFF/, ''))
|
|
28
22
|
}
|
|
29
23
|
},
|
|
30
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "terraform",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.2",
|
|
4
4
|
"description": "pre-processor engine that powers the harp web server",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
],
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"ejs": "
|
|
48
|
+
"ejs": "6.0.1",
|
|
49
49
|
"esbuild": "0.28.1",
|
|
50
50
|
"lru-cache": "10.0.0",
|
|
51
|
-
"marked": "
|
|
51
|
+
"marked": "18.0.5",
|
|
52
52
|
"sass": "1.101.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|