Skip to content

Commit 67648c2

Browse files
authored
Merge pull request #278 from cnblogs/remove-highlight-lines
remove: highlight lines
2 parents f5b0e5e + b46e8f1 commit 67648c2

File tree

4 files changed

+3
-58
lines changed

4 files changed

+3
-58
lines changed

package-lock.json

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@
4141
],
4242
"main": "./dist/extension.js",
4343
"contributes": {
44-
"markdown.markdownItPlugins": true,
45-
"markdown.previewScripts": [
46-
"./dist/markdown.js"
47-
],
48-
"markdown.previewStyles": [
49-
"./dist/assets/styles/highlight-code-lines.css"
50-
],
44+
"markdown.markdownItPlugins": true,
5145
"icons": {
5246
"vscode-cnb-date": {
5347
"description": "date",
@@ -1381,7 +1375,6 @@
13811375
"webpack-cli": "^5.1.4"
13821376
},
13831377
"dependencies": {
1384-
"@cnblogs/code-highlight-adapter": "^1.7.1",
13851378
"@cnblogs/code-quality": "^2.0.2",
13861379
"@cnblogs/markdown-it-presets": "^1.10.5",
13871380
"@fluentui/react": "^8.110.11",

src/markdown/markdown.entry.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

webpack.config.mjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default (env, { mode }) => {
5252
target: 'node', // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
5353
mode: mode, // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
5454

55-
entry: { extension: './src/extension.ts', markdown: './src/markdown/markdown.entry.ts' }, // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
55+
entry: { extension: './src/extension.ts' }, // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
5656
output: {
5757
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
5858
path: path.resolve(__dirname, 'dist'),
@@ -104,11 +104,7 @@ export default (env, { mode }) => {
104104
//Note:- No wildcard is specified hence will copy all files and folders
105105
from: 'src/assets', //Will resolve to RepoDir/src/assets
106106
to: 'assets', //Copies all files from above dest to dist/assets
107-
},
108-
{
109-
from: 'node_modules/@cnblogs/code-highlight-adapter/index.min.css',
110-
to: 'assets/styles/highlight-code-lines.css',
111-
},
107+
},
112108
{
113109
from: 'src/wasm/rs_bg.wasm',
114110
to: 'rs_bg.wasm',

0 commit comments

Comments
 (0)