diff --git a/CHANGELOG.md b/CHANGELOG.md index 118644a..709241a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,16 @@ All notable changes to the "Wikitext" extension will be documented in this file. - Adjust the UI to make it easier for users to use Wikitext preview. - Find and fix more syntax highlighting issues. +## [3.2.2] - 2020-12-12 + +### Added + +- The function of quick citation to references. + +### Fixed + +- Some typos in the setting and command name. + ## [3.2.1] - 2020-12-10 ### Added @@ -122,7 +132,7 @@ All notable changes to the "Wikitext" extension will be documented in this file. ### Fixed -- Fixed some typo and other details. +- Fixed some typos and other details. - Fixed an issue where the dialog for changing host would not appear. ## [2.2.0] - 2020-05-19 diff --git a/README.md b/README.md index ca86b6f..8e06578 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,6 @@ Firstly, clone this repository and change directory to the repository, then inst npm install vsce -g # VS Code Extension Manager npm install js-yaml -g # js to yaml npm install # devDependencies - ``` Package this project and you will get a vsix file: @@ -72,9 +71,8 @@ This is it! ## Release Notes -- Added Preview icon in the title menu bar. -- Fixed PAGE_INFO part is output in preview because of a mistake. -- Logic optimization and detailed problem correction. +- Added the function of quick citation to references. +- Fixed some typos in the setting and command name. Please note: You may need to go to the settings page to update some options. ## Special Thanks diff --git a/package-lock.json b/package-lock.json index 9c97bb7..875ad99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wikitext", - "version": "3.2.1", + "version": "3.2.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 2433266..3c39714 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "wikitext", "displayName": "Wikitext", "description": "Wikitext is a document written in a wiki markup language. It is a mixture of content, markup, and metadata. The extension mainly supports the Wiki markup text language based on MediaWiki.", - "version": "3.2.1", + "version": "3.2.2", "publisher": "RoweWilsonFrederiskHolme", "license": "MIT", "author": { @@ -200,12 +200,11 @@ "description": "Enable Previewer's JS support. This feature may affect the performance of VSCode and introduce potential security risks. (This feature was turned on by default in the past, but will be turned off by default from now on.)", "default": false }, - "wikitext.articalPath":{ - "type":"string", + "wikitext.articalPath": { + "type": "string", "description": "No Effect.", "default": "/wiki/", "deprecationMessage": "Setting Name with Typo! please use \"Article Path\" instead." - }, "wikitext.articlePath": { "type": "string", @@ -227,7 +226,7 @@ "pretest": "tsc -p ./", "test": "node ./out/test/runTest.js", "convert": "npx js-yaml snippets/snippets.yaml > snippets/snippets.json && npx js-yaml syntaxes/wikitext.tmLanguage.yaml > syntaxes/wikitext.tmLanguage.json", - "deploy": "vsce publish --yarn" + "deploy": "vsce publish" }, "devDependencies": { "@types/bluebird": "^3.5.32", diff --git a/src/export_command/wikimedia_function/view.ts b/src/export_command/wikimedia_function/view.ts index a05e427..44c9ad2 100644 --- a/src/export_command/wikimedia_function/view.ts +++ b/src/export_command/wikimedia_function/view.ts @@ -112,8 +112,9 @@ export async function getView(currentPlanel: vscode.WebviewPanel | string, viewe if (!re.parse) { return undefined; } const articlePath = config.get("articlePath"); + const baseHref = `"`; - const htmlHead: string = config.get("getCss") ? (re.parse.headhtml?.["*"]?.replace("", ``) || "") : ``; + const htmlHead: string = config.get("getCss") as boolean && re.parse.headhtml?.["*"]?.replace("", "" + baseHref) || `${baseHref}`; const htmlText: string = re.parse.text?.["*"] || ""; const htmlCategories: string = re.parse.categorieshtml?.["*"] ? "
" + re.parse.categorieshtml?.["*"] : ""; const htmlEnd: string = "";