Skip to content

Commit 9c4396d

Browse files
committed
Release v3.2.2
1 parent 7bbe073 commit 9c4396d

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ All notable changes to the "Wikitext" extension will be documented in this file.
1111
- Adjust the UI to make it easier for users to use Wikitext preview.
1212
- Find and fix more syntax highlighting issues.
1313

14+
## [3.2.2] - 2020-12-12
15+
16+
### Added
17+
18+
- The function of quick citation to references.
19+
20+
### Fixed
21+
22+
- Some typos in the setting and command name.
23+
1424
## [3.2.1] - 2020-12-10
1525

1626
### Added
@@ -122,7 +132,7 @@ All notable changes to the "Wikitext" extension will be documented in this file.
122132

123133
### Fixed
124134

125-
- Fixed some typo and other details.
135+
- Fixed some typos and other details.
126136
- Fixed an issue where the dialog for changing host would not appear.
127137

128138
## [2.2.0] - 2020-05-19

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Firstly, clone this repository and change directory to the repository, then inst
5959
npm install vsce -g # VS Code Extension Manager
6060
npm install js-yaml -g # js to yaml
6161
npm install # devDependencies
62-
6362
```
6463

6564
Package this project and you will get a vsix file:
@@ -72,9 +71,8 @@ This is it!
7271

7372
## Release Notes
7473

75-
- Added Preview icon in the title menu bar.
76-
- Fixed PAGE_INFO part is output in preview because of a mistake.
77-
- Logic optimization and detailed problem correction.
74+
- Added the function of quick citation to references.
75+
- Fixed some typos in the setting and command name. Please note: You may need to go to the settings page to update some options.
7876

7977
## Special Thanks
8078

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "wikitext",
33
"displayName": "Wikitext",
44
"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.",
5-
"version": "3.2.1",
5+
"version": "3.2.2",
66
"publisher": "RoweWilsonFrederiskHolme",
77
"license": "MIT",
88
"author": {
@@ -200,12 +200,11 @@
200200
"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.)",
201201
"default": false
202202
},
203-
"wikitext.articalPath":{
204-
"type":"string",
203+
"wikitext.articalPath": {
204+
"type": "string",
205205
"description": "No Effect.",
206206
"default": "/wiki/",
207207
"deprecationMessage": "Setting Name with Typo! please use \"Article Path\" instead."
208-
209208
},
210209
"wikitext.articlePath": {
211210
"type": "string",
@@ -227,7 +226,7 @@
227226
"pretest": "tsc -p ./",
228227
"test": "node ./out/test/runTest.js",
229228
"convert": "npx js-yaml snippets/snippets.yaml > snippets/snippets.json && npx js-yaml syntaxes/wikitext.tmLanguage.yaml > syntaxes/wikitext.tmLanguage.json",
230-
"deploy": "vsce publish --yarn"
229+
"deploy": "vsce publish"
231230
},
232231
"devDependencies": {
233232
"@types/bluebird": "^3.5.32",

src/export_command/wikimedia_function/view.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ export async function getView(currentPlanel: vscode.WebviewPanel | string, viewe
112112
if (!re.parse) { return undefined; }
113113

114114
const articlePath = config.get("articlePath");
115+
const baseHref = `<base href="https://${host + articlePath}" />"`;
115116

116-
const htmlHead: string = config.get("getCss") ? (re.parse.headhtml?.["*"]?.replace("<head>", `<head><base href="https://${host + articlePath}">`) || "") : `<!DOCTYPE html><html><head><base href="https://${host + articlePath}" /></head><body>`;
117+
const htmlHead: string = config.get("getCss") as boolean && re.parse.headhtml?.["*"]?.replace("<head>", "<head>" + baseHref) || `<!DOCTYPE html><html><head>${baseHref}</head><body>`;
117118
const htmlText: string = re.parse.text?.["*"] || "";
118119
const htmlCategories: string = re.parse.categorieshtml?.["*"] ? "<hr />" + re.parse.categorieshtml?.["*"] : "";
119120
const htmlEnd: string = "</body></html>";

0 commit comments

Comments
 (0)