154 Commits
Author SHA1 Message Date
marc 15f133793a Update index.html 2022-01-29 17:17:32 +00:00
Alkindi42 e5bfe9b89d fix(typo): update README (#314) 2021-03-10 10:44:22 +08:00
iamcco 9971cfb325 feat(style): does not change height when dark mode visible 2021-03-09 11:22:32 +08:00
Alkindi42 8e658b14b7 feat: add button to toggle dark/light mode (#310)
* feat: add button to toggle dark/light mode

* chore(build): update build

* show theme checkbox only if mouse over the header

* doc: update README
2021-03-09 10:38:50 +08:00
iamcco 5fa9e2a79a fix(ketex): do not overwrite user settings closes #311 2021-03-07 23:17:43 +08:00
barankarakus 6aa34122a1 Defined new commands, tidied codebase. (#312)
The :MarkdownPreview command is defined by default. However, neither the
:MarkdownPreviewStop nor the :MarkdownPreviewToggle commands are defined
by default. Even more strangely, the :MarkdownPreviewStop command *is*
actually defined by default, but only *after* :MarkdownPreview has been
invoked???

I've modified the code to define these two commands by default. I've
also tidied up the codebase by removing redundant functions and reducing
code duplication.
2021-03-07 21:44:21 +08:00
vinicius-toshiyuki cc9601dbf0 Changing auto close event to BufHidden (#308)
BufLeave triggers the event even when switching to different files or tabs inside Vim.
BufHidden provides a better alternative as it works more like it's expected (BufDelete can't be used because the buffer is not deleted right after a file is closed)
2021-03-07 21:39:17 +08:00
Jiangge Zhang 57197d0ed1 Use black background in dark mode (#307) 2021-03-07 21:35:19 +08:00
haoyuanliandhyl 9e11912fd1 Add support for msys2 platform (#291) (#304)
Co-authored-by: hyl <74737873@qq.com>
2021-02-23 11:52:12 +08:00
Gabriel Fontes 76548dbb81 Add a dark scheme option (set with prefers-color-scheme) (#302)
* Add dark css theme (prefers-color-scheme)

* Fix missing dark scheme on kbd element

* Fix missing highlight.css default color
2021-02-18 11:00:48 +08:00
george udosen 01948212d2 removed unneeded backtick from readme file (#296) 2021-02-18 10:58:58 +08:00
Abhinav Dhere e1b8ec42d0 Add instructions to install with Vundle (#285) 2021-01-10 22:45:31 +08:00
iamcco a8560941d1 fix(mermaid): escape code closes #279 2021-01-10 20:42:17 +08:00
Toran Sahu cee960a6fc fix(issue-282): bump mermaid.min.js to the latest (#283) 2021-01-10 20:04:34 +08:00
JF LavoieandJean-Francois Lavoie 96c0bc7225 fix wsl2 detection (#270)
* fix wsl2 detection

* fix wsl2 detection in src/util/opener.ts

Co-authored-by: Jean-Francois Lavoie <jflavoie@genvidtech.com>
2020-12-09 10:47:59 +08:00
iamcco c6bf4412b2 feat(au): add g:mkdp_filetypes options closes #254 2020-11-16 11:15:53 +08:00
iamcco 94101ef8bd fix(render): fix meta render error closes #253 2020-10-27 16:52:28 +08:00
iamcco 9a8a2bd953 Merge branch 'master' of github.com:iamcco/markdown-preview.nvim 2020-10-26 11:48:23 +08:00
iamcco 0f721789c2 fix(render): escape html content in code closes #251 2020-10-26 11:47:44 +08:00
Markus Lasermann c63679e88b Add pkg as dev dependency (#252) 2020-10-26 11:02:17 +08:00
iamcco 8bd3aa8d71 feat(katex): upgrade katex to v0.12.0 closes #240 2020-10-09 11:22:30 +08:00
iamcco 3aa23d5766 chore(build): update 2020-10-09 10:55:20 +08:00
bratekarate d5c4f94e47 Always set MarkdownPreviewToggleBool = 0 on close (#238) 2020-10-09 10:53:13 +08:00
evan1533 0180778883 Don't Show File Header while Page is Loading (#243)
* Only render page header if it is explicitly enabled

* Make sure 'disable_filename' is explicitly set in g:mkdp_preview_options, if not set to 0
2020-10-09 10:51:15 +08:00
iamcco cd6dbfbca8 chore(build): update build 2020-09-21 14:32:22 +08:00
evan1533 73408b712a Disable filename option (#231)
* Conditionally render header based on 'disable_filename' field in 'mkdp_preview_options'

* Set default value of 'disable_filename' to 0

* Added 'disable_filename' documentation to README
2020-09-21 14:27:31 +08:00
年糕小豆汤 d319eaac9e Update README.md 2020-08-31 10:57:28 +08:00
Subhaditya Nath 54616cfbc9 Changed autocmd check to &filetype instead of filename (#224)
* Changed autocmd check to &filetype instead of filename

* Added FileType to autocmd to check for filetype changes in new buffers (see #224)
2020-08-21 17:49:19 +08:00
年糕小豆汤 a168d08769 chore(README): update minpac doc 2020-08-18 10:29:12 +08:00
iamcco ee63528bec fix(address): fix listen address 2020-08-06 19:36:56 +08:00
dependabot[bot] 457ddc4a7c chore(deps): bump elliptic from 6.4.1 to 6.5.3 (#221)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.4.1...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 12:06:41 +08:00
dependabot[bot] 8741cb54ff chore(deps): bump lodash from 4.17.14 to 4.17.19 in /app (#214)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 10:38:08 +08:00
dependabot[bot] 9370c5695a chore(deps): bump lodash from 4.17.14 to 4.17.19 (#212)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 10:36:46 +08:00
iamcco 2646ebd8a7 feat(highlight): do not highlight code with no specify 2020-07-07 15:25:57 +08:00
Vivek Chowdhary c0f708e512 support for mermaid.js erDiagram (#201) 2020-06-19 19:01:06 +08:00
James Ingold faacfbcefe Updating README.md with missing ) in minpac install (#200) 2020-05-30 18:48:52 +08:00
iamcco b255e656e8 fix(opener): catch error when command not exists
- add note for WSL 2 FAQ closes #199
2020-05-29 11:39:24 +08:00
Akin ea2979c58f Update installation instructions (#194)
Update installation for the prebuild version of the plugin using vim plug. To include instructions from
https://github.com/iamcco/markdown-preview.nvim/issues/50.
2020-05-17 09:13:49 +08:00
iamcco ba45d50f9f feat(preview): add content editable option support closes #192
- fix svg preview closes #179
2020-05-16 19:23:24 +08:00
年糕小豆汤 54e62f96cd chore(README): add minpac note 2020-05-07 00:13:59 +08:00
iamcco 89ff1f3e48 fix(job): fix close channel error 2020-04-29 19:28:57 +08:00
Zhuang Ma 3d3b177c95 feat(local image): support relative path start with '/' or '\' (#175) 2020-04-18 21:48:52 +08:00
iamcco 23ca860bb3 fix(log): delete log 2020-04-14 15:06:00 +08:00
iamcco ad46c2e049 fix(highlight): fix code block closes #174 2020-04-14 15:02:39 +08:00
Brent Yi eb7c9f052c Support global LaTeX macros (#173) 2020-04-14 14:31:52 +08:00
iamcco 218d19d88f chore(github): delete .github 2020-03-27 01:04:14 +08:00
dependabot[bot] d843156161 Bump acorn from 5.7.3 to 5.7.4 (#152)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-16 12:40:24 +08:00
Mars Peng d5f3dc23d2 Reset autocmd in s:init() every time s:init() is called (#145) 2020-03-02 10:10:16 +08:00
Zhuang Ma b80be5cb4f chore(readme): add examples for custom css options (#144) 2020-02-29 10:57:08 +08:00
iamcco f5ec9c703c chore(README): fix examples 2020-02-27 00:22:15 +08:00