@md-plugins/md-plugin-codeblocks 0.1.0-alpha.10 → 0.1.0-alpha.12

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 (2) hide show
  1. package/dist/index.mjs +4 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -142,10 +142,12 @@ const codeblocksPlugin = (md, {
142
142
  lineHtml += line;
143
143
  return lineHtml;
144
144
  }).join("\n");
145
- const langClass = lang === "css" ? " language-css" : ` language-${lang}`;
146
145
  const preAttrs = maxheight !== void 0 ? ` style="max-height:${maxheight}"` : "";
147
146
  const langProp = customCopyLangList.includes(lang) === true ? ` lang="${lang}"` : "";
148
- return `<pre v-pre class="${preClass}${langClass}"${preAttrs}>` + renderCodeBlock(html, codeClass) + `</pre><${copyButtonComponent}${langProp} />`;
147
+ return (
148
+ // `<pre v-pre class="${preClass}${langClass}"${preAttrs}>` +
149
+ `<pre v-pre class="${preClass}"${preAttrs}>` + renderCodeBlock(html, codeClass) + `</pre><${copyButtonComponent}${langProp} />`
150
+ );
149
151
  }
150
152
  function parseAttrs(rawAttrs) {
151
153
  if (rawAttrs === null) return {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@md-plugins/md-plugin-codeblocks",
3
- "version": "0.1.0-alpha.10",
3
+ "version": "0.1.0-alpha.12",
4
4
  "description": "A markdown-it plugin for code blocks.",
5
5
  "keywords": [
6
6
  "markdown-it",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "markdown-it": "^14.1.0",
37
37
  "prismjs": "^1.29.0",
38
- "@md-plugins/shared": "0.1.0-alpha.10"
38
+ "@md-plugins/shared": "0.1.0-alpha.12"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"