Skip to content

Commit

Permalink
Merge pull request #19 from raineszm/feature-live-preview
Browse files Browse the repository at this point in the history
Update to be agnostic to CodeMirror version
  • Loading branch information
raineszm authored Feb 18, 2022
2 parents 9e02699 + cecdcdc commit 2b65faf
Show file tree
Hide file tree
Showing 33 changed files with 1,911 additions and 2,785 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm lint-staged
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

> Quickly insert and change latex environments within math blocks in Obsidian.
**The internals have been rewritten for version 0.3.0. See Version 0.3.0 rewrite below.**

## Installation

If you have Obsidian version 0.9.8 or greater:
Expand Down Expand Up @@ -46,7 +48,7 @@ Both commands will also query for the name of the environment.
Insert a new LaTeX environment at the cursor.

**With a selection** inserts a new LaTeX environment around the selection.

0.

#### Change Environment

Expand All @@ -58,6 +60,11 @@ Change the name of the surrounding LaTeX environment.

Remove the innermost LaTeX environment enclosing the cursor.

## Version 0.3.0 Rewrite

In order to support the Live Preview feature of obsidian the internals of this plugin needed to be rewritten.
The aim is to leave functionality unaffected but there may be some differences from previous versions.
Please file a bug report if you discover something that worked with 0.2.0 but not 0.3.0

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Expand Down
251 changes: 0 additions & 251 deletions __tests__/actions.test.ts

This file was deleted.

45 changes: 0 additions & 45 deletions __tests__/codemirrorHelpers.ts

This file was deleted.

Loading

0 comments on commit 2b65faf

Please sign in to comment.