Skip to content

Commit

Permalink
Version 2.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
goessner committed Jun 6, 2021
1 parent 48699e2 commit ccf61fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## CHANGELOG

### [2.7.3]() on June 06, 2021
### [2.7.4]() on June 06, 2021
* Table of Content links bug removed.
* macros settings bug removed.

Expand Down
4 changes: 2 additions & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ exports.activate = function activate(context) {
const tm = require('markdown-it-texmath');
const delimiters = JSON.parse(JSON.stringify(ext.cfg('delimiters'))) || 'dollars'; // wondering why this JSON stuff is necessary ...
const katexOptions = JSON.parse(JSON.stringify(ext.cfg('katexoptions') || '')) || {};
const macros = ext.loadMacros();
const macros = katexOptions.macros = ext.loadMacros();
const outerSpace = ext.cfg('outerspace') || false;
const options = { "engine": require('katex'),
"delimiters": delimiters,
"outerSpace": outerSpace,
"katexOptions": macros && !katexOptions.macros ? Object.assign(katexOptions, macros) : katexOptions
"katexOptions": katexOptions
};

(ext.mdit = md).use(tm, options);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Markdown+Math",
"description": "LaTeX Math for Markdown ... with macros and more",
"icon": "img/icon.png",
"version": "2.7.3",
"version": "2.7.4",
"author": "Stefan Goessner",
"publisher": "goessner",
"keywords": [
Expand Down

0 comments on commit ccf61fc

Please sign in to comment.