marked-prismjs-linenumber 0.0.9 → 0.1.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.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/package.json +1 -1
  3. package/readme.md +2 -0
package/index.cjs CHANGED
@@ -27,7 +27,7 @@ function linenumber(options = {}) {
27
27
  const rowsSpans = '<span></span>'.repeat(lineCount);
28
28
  const rowsWrapper = `<span aria-hidden="true" class="line-numbers-rows">${rowsSpans}</span>`;
29
29
 
30
- return `<pre class="line-numbers language-${language}"><code class="language-${language}">${highlightedCode}</code>${rowsWrapper}</pre>`;
30
+ return `<pre class="line-numbers language-${language}"><code class="language-${language}">${highlightedCode}${rowsWrapper}</code></pre>`;
31
31
  }
32
32
  }
33
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marked-prismjs-linenumber",
3
- "version": "0.0.9",
3
+ "version": "0.1.1",
4
4
  "description": "Return HTML with prismjs line-number structure",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.mjs",
package/readme.md CHANGED
@@ -61,6 +61,8 @@ console.log(greeting);
61
61
  console.log(marked.parse(markdown));
62
62
  ```
63
63
 
64
+ [Effect display](https://yz0012.github.io/y_z00blog/Post/%E7%A4%BA%E4%BE%8B/%E8%A1%8C%E5%8F%B7%E7%A4%BA%E4%BE%8B.html)
65
+
64
66
  ## API
65
67
 
66
68
  ### `linenumber(options?)`