@ape-egg/codie 0.1.1 → 0.1.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/highlight.js CHANGED
@@ -196,7 +196,7 @@ export const highlightJSRaw = (code) => {
196
196
  // CSS highlighter
197
197
  export const highlightCSS = (code, options = {}) => {
198
198
  let result = '';
199
- const ruleRegex = /(\/\*[\s\S]*?\*\/)|([^{}]+)(\{)([^}]*)(\})/g;
199
+ const ruleRegex = /(\/\*[\s\S]*?\*\/)|((?:[^{}\/]|\/(?!\*))+)(\{)([^}]*)(\})/g;
200
200
  let match,
201
201
  lastIndex = 0;
202
202
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ape-egg/codie",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Modular code display and editing package",
5
5
  "type": "module",
6
6
  "main": "codie.js",
package/structure.css CHANGED
@@ -5,7 +5,7 @@
5
5
  display: grid;
6
6
  position: relative;
7
7
  width: 100%;
8
- font-size: inherit;
8
+ font-size: var(--unit-size, inherit);
9
9
  line-height: 1.5;
10
10
  font-family:
11
11
  'Geist Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New',