Skip to content

Commit 51eec4e

Browse files
fix: Remove gifs from repo & fix conceal on window change
## Details I didn't really consider the fact that storing gif demos in this repo would make the repo and especially its history much larger and forces everyone to clone mostly useless data. Add the gifs to gitignore. For now will manually upload them to GitHub when they change and update the README. Less convenient but not too bad. Currently if you swith out of a markdown buffer the line the cursor was last on will remain anti-concealed. Add BufLeave event which will recognize that the buffer is no longer active and show all marks. Split buffer autocommands into 2 groups, one that requires re-parsing, currently only TextChanged. And another that does not, which is now BufWinEnter and BufLeave. This works because the ui will still parse marks if it does not have any cached. Add cache invalidation to the setup method. Since we use the plugin directory many users are likely calling it twice, once from plugin and again when configuring. To avoid showing old marks which may not match the configuration the invalidation logic was added. This is an unlikely edge case and was really only necessary for some of the unit tests to continue functioning.
1 parent 67bdd9b commit 51eec4e

File tree

13 files changed

+30
-16
lines changed

13 files changed

+30
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.cast
2+
*.gif
23
medium.md
34
large.md
45
test.md

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
[426b135](https://github.com/MeanderingProgrammer/markdown.nvim/commit/426b13574c8264636e5660e5f5a3b4f5e3d5a937)
4545
- Alignment indicator for pipe tables [#91](https://github.com/MeanderingProgrammer/markdown.nvim/issues/91)
4646
[a273033](https://github.com/MeanderingProgrammer/markdown.nvim/commit/a27303384570b85ee4538fa5f30eb418fef01ec7)
47+
- Auto-setup using plugin directory [#79](https://github.com/MeanderingProgrammer/markdown.nvim/issues/79)
48+
[67bdd9b](https://github.com/MeanderingProgrammer/markdown.nvim/commit/67bdd9b68c6519bf1d5365f10c96107032bb4532)
4749

4850
### Bug Fixes
4951

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
Plugin to improve viewing Markdown files in Neovim
44

5-
| | |
6-
| ------------------------------------------ | ---------------------------------- |
7-
| ![Heading Code](demo/heading_code.gif) | ![List Table](demo/list_table.gif) |
8-
| ![Box Dash Quote](demo/box_dash_quote.gif) | ![LaTeX](demo/latex.gif) |
9-
| ![Callout](demo/callout.gif) | |
5+
<!-- panvimdoc-ignore-start -->
6+
7+
| | |
8+
| -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
9+
| ![Heading Code](https://github.com/user-attachments/assets/663a34c5-0438-4688-8204-332065f65835) | ![List Table](https://github.com/user-attachments/assets/106739a4-506f-4177-93e0-fd749e5ded5c) |
10+
| ![Box Dash Quote](https://github.com/user-attachments/assets/3f76e73e-b3a0-4cd8-90c1-208c5070659c) | ![LaTeX](https://github.com/user-attachments/assets/9e8909e4-7256-45fc-b481-4aba8850ebc3) |
11+
| ![Callout](https://github.com/user-attachments/assets/089b0b45-c8ff-4b18-bf5b-d5380696fb20) | |
12+
13+
<!-- panvimdoc-ignore-end -->
1014

1115
# Features
1216

demo/box_dash_quote.gif

-101 KB
Binary file not shown.

demo/callout.gif

-374 KB
Binary file not shown.

demo/heading_code.gif

-432 KB
Binary file not shown.

demo/latex.gif

-115 KB
Binary file not shown.

demo/list_table.gif

-362 KB
Binary file not shown.

doc/render-markdown.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ Table of Contents *render-markdown-table-of-contents*
3333

3434
Plugin to improve viewing Markdown files in Neovim
3535

36-
--------------------------------------- -------------------------------
37-
[Heading Code] [List Table]
38-
39-
[Box Dash Quote] [LaTeX]
40-
41-
[Callout]
42-
--------------------------------------- -------------------------------
4336

4437
==============================================================================
4538
2. Features *render-markdown-features*

doc/todo.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44
alignment info.
55
- Add a performance test suite to measure improvements, relative value on
66
same hardware should still be useful.
7-
- Look into showing marks when switching buffers, currently remains hidden
87
- Figure out how to display the many configuration options & impact
9-
- Remove demos from repository, store elsewhere

0 commit comments

Comments
 (0)