Skip to content

Commit

Permalink
Set formulas relative to the container.
Browse files Browse the repository at this point in the history
  • Loading branch information
haoranyu committed Jul 31, 2020
1 parent 47b4679 commit 0208359
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.DS_Store
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export default function (el, binding) {
if (binding.value) {
options = binding.value;
}
el.style.position = 'relative';
KatexAutoRender(el, options);
}
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-katex-auto-render",
"version": "0.1.2",
"version": "0.1.3",
"description": "A KaTeX auto render library for vue directive.",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 0208359

Please sign in to comment.