Skip to content

Commit

Permalink
Release v3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederisk committed Dec 12, 2020
1 parent 7bbe073 commit 9c4396d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/export_command/wikimedia_function/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<base href="https://${host + articlePath}" />"`;

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>`;
const htmlHead: string = config.get("getCss") as boolean && re.parse.headhtml?.["*"]?.replace("<head>", "<head>" + baseHref) || `<!DOCTYPE html><html><head>${baseHref}</head><body>`;
const htmlText: string = re.parse.text?.["*"] || "";
const htmlCategories: string = re.parse.categorieshtml?.["*"] ? "<hr />" + re.parse.categorieshtml?.["*"] : "";
const htmlEnd: string = "</body></html>";
Expand Down

0 comments on commit 9c4396d

Please sign in to comment.