umberto 4.0.0 → 4.0.1

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/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## [4.0.1](https://github.com/cksource/umberto/compare/v4.0.0...v4.0.1) (2023-10-16)
5
+
6
+ ### Bug fixes
7
+
8
+ * Fixed invalid rendering double braces in code snippets. Closes [#1179](https://github.com/cksource/umberto/issues/1179). ([commit](https://github.com/cksource/umberto/commit/68122163660d9e6a3105ac5361cde05c7d4a8a49))
9
+
10
+
4
11
  ## [4.0.0](https://github.com/cksource/umberto/compare/v3.2.2...v4.0.0) (2023-10-10)
5
12
 
6
13
  ### BREAKING CHANGES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umberto",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "CKSource Documentation builder",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -52,9 +52,7 @@ class HexoManager {
52
52
  throw new Error( 'Hexo manager is not initialized' );
53
53
  }
54
54
 
55
- // jscs: disable
56
55
  return this.config.public_dir;
57
- // jscs:enable
58
56
  }
59
57
 
60
58
  getSourceDir() {
@@ -62,9 +60,7 @@ class HexoManager {
62
60
  throw new Error( 'Hexo manager is not initialized' );
63
61
  }
64
62
 
65
- // jscs: disable
66
63
  return upath.join( __dirname, '..', this.config.source_dir );
67
- // jscs:enable
68
64
  }
69
65
 
70
66
  getThemePath() {
@@ -72,9 +68,7 @@ class HexoManager {
72
68
  throw new Error( 'Hexo manager is not initialized' );
73
69
  }
74
70
 
75
- // jscs: disable
76
71
  return upath.join( __dirname, '../themes', this.config.theme );
77
- // jscs:enable
78
72
  }
79
73
 
80
74
  /**
@@ -1,15 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2017-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
-
6
- 'use strict';
7
-
8
- /**
9
- * Escape character `{{` and `}}` in markdown sources. See #579.
10
- */
11
- hexo.extend.filter.register( 'before_post_render', page => {
12
- page.content = page.content
13
- .replace( /\{\{/g, '{% raw %}{{{% endraw %}' )
14
- .replace( /(?<!%)\}\}/g, '{% raw %}}}{% endraw %}' );
15
- } );