Giter Club home page Giter Club logo

coc-markdown-preview-enhanced's People

Contributors

weirongxu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vblegend

coc-markdown-preview-enhanced's Issues

[BUG] sync is slow and syncPreview cannot work

Describe the bug

vi a.md
:CocCommand markdown-preview-enhanced.openPreview

Then edit some text, the web browser will update slowly even doesn't update.

:CocCommand markdown-preview-enhanced.syncPreview cannot work. Only
CocList webview can update web browser forcely.

Result from CocInfo

## versions

vim version: NVIM v0.9.4
node version: v21.2.0
coc.nvim version: 0.0.82-d1568d56 2023-09-29 19:43:34 +0800
coc.nvim directory: /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release
term: tmux
platform: linux

## Log of coc.nvim

2023-11-25T16:50:48.356 INFO (pid:162663) [extension:coc-git] - Looking for git in: git
2023-11-25T16:50:48.543 INFO (pid:162663) [extension:coc-tabnine] - Using tabnine from /home/wzy/.config/coc/extensions/coc-tabnine-data/binaries/4.49.0/x86_64-unknown-linux-musl/TabNine
2023-11-25T16:50:48.775 WARN (pid:162663) [workspace] - workspace.createStatusBarItem is deprecated, please use window.createStatusBarItem instead. 
    at c.init (/home/wzy/.config/coc/extensions/node_modules/coc-leetcode/out/index.js:1:12315)
    at new c (/home/wzy/.config/coc/extensions/node_modules/coc-leetcode/out/index.js:1:12274)
2023-11-25T16:50:48.793 INFO (pid:162663) [plugin] - coc.nvim initialized with node: v21.2.0 after 1282
2023-11-25T16:50:48.820 WARN (pid:162663) [workspace] - workspace.createStatusBarItem is deprecated, please use window.createStatusBarItem instead. 
    at t.initStatusBar (/home/wzy/.config/coc/extensions/node_modules/coc-spell-checker/out/index.js:1:156009)
    at t.activate (/home/wzy/.config/coc/extensions/node_modules/coc-spell-checker/out/index.js:1:23162)
2023-11-25T16:50:48.852 INFO (pid:162663) [language-client-index] - Language server "cSpell" started with 162704
2023-11-25T16:50:48.950 INFO (pid:162663) [core-watchman] - watchman watching project: /dev/shm
2023-11-25T16:50:51.122 INFO (pid:162663) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2023-11-25T16:51:14.289 INFO (pid:162663) [attach] - receive notification: openList [ 'commands' ]
2023-11-25T16:51:14.320 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:14.706 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 10 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:51:17.093 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:18.888 INFO (pid:162663) [attach] - receive notification: openList [ 'commands' ]
2023-11-25T16:51:18.937 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:19.332 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 11 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:51:23.526 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:25.537 INFO (pid:162663) [attach] - receive notification: openList [ 'commands' ]
2023-11-25T16:51:25.564 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:51:25.952 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 12 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:51:59.447 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:52:01.220 INFO (pid:162663) [attach] - receive notification: openList [ 'webview' ]
2023-11-25T16:52:01.258 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:52:01.655 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 13 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:52:02.457 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:52:16.690 INFO (pid:162663) [attach] - receive notification: openList [ 'commands' ]
2023-11-25T16:52:16.716 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:52:17.105 ERROR (pid:162663) [events] - Error on event: CursorHold Error: Buffer 14 not attached, not a normal buffer, buftype "nofile"
    at FE.getAttachedDocument (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:194:3403)
    at $y.getCurrentState (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:277:34038)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Ly.getLinks (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2812)
    at async Ly.getCurrentLink (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2948)
    at async Ly.showTooltip (/home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2601)
    at async /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release/build/index.js:265:2044
2023-11-25T16:53:48.013 INFO (pid:162663) [attach] - receive notification: doAutocmd [ 3 ]
2023-11-25T16:53:56.509 INFO (pid:162663) [attach] - receive notification: showInfo []

Expected behavior

When user edit markdown in vim, the web browser should update at same time.

[coc.nvim] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null

Describe the bug

When I use ImageHelper to upload picture, this error will occur.

Result from CocInfo


## versions

vim version: NVIM v0.7.2
node version: v18.8.0
coc.nvim version: 0.0.82-f39f5f69 2022-10-07 23:24:25 +0800
coc.nvim directory: /home/wzy/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release
term: tmux
platform: linux

## Log of coc.nvim

2022-10-18T18:45:17.365 INFO (pid:4086037) [services] - registered service "diagnostic-languageserver"
2022-10-18T18:45:17.375 INFO (pid:4086037) [services] - LanguageClient diagnostic language service state change: stopped => starting
2022-10-18T18:45:17.441 INFO (pid:4086037) [coc-git] - Looking for git in: git
2022-10-18T18:45:17.453 INFO (pid:4086037) [services] - registered service "highlight"
2022-10-18T18:45:17.596 INFO (pid:4086037) [coc-tabnine] - Using tabnine from /home/wzy/.config/coc/extensions/coc-tabnine-data/binaries/4.4.153/x86_64-unknown-linux-musl/TabNine
2022-10-18T18:45:17.990 INFO (pid:4086037) [plugin] - coc.nvim initialized with node: v18.8.0 after 1117ms
2022-10-18T18:45:18.060 WARN (pid:4086037) [workspace] - workspace.createStatusBarItem is deprecated, please use window.createStatusBarItem instead. 
    at t.initStatusBar (/home/wzy/.config/coc/extensions/node_modules/coc-spell-checker/out/index.js:1:155873)
    at t.activate (/home/wzy/.config/coc/extensions/node_modules/coc-spell-checker/out/index.js:1:23099)
2022-10-18T18:45:18.111 INFO (pid:4086037) [services] - LanguageClient highlight server state change: starting => running
2022-10-18T18:45:18.117 INFO (pid:4086037) [services] - LanguageClient diagnostic language service state change: starting => running
2022-10-18T18:45:18.118 INFO (pid:4086037) [services] - service diagnostic-languageserver started
2022-10-18T18:45:20.835 INFO (pid:4086037) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2022-10-18T18:45:25.179 INFO (pid:4086037) [attach] - receive notification: openList [ 'commands' ]
2022-10-18T18:45:25.216 INFO (pid:4086037) [attach] - receive notification: doAutocmd [ 2 ]
2022-10-18T18:45:27.089 INFO (pid:4086037) [attach] - receive notification: doAutocmd [ 2 ]
2022-10-18T18:45:46.331 INFO (pid:4086037) [attach] - receive notification: showInfo []

Steps to reproduce
Steps to reproduce the behavior:

  1. execute nvim
  2. :CocCommand markdown-preview-enhanced.openPreview
  3. :CocCommand markdown-preview-enhanced.openImageHelper
  4. Upload a picture
  5. See error

Expected behavior

Not error.

Screenshots

Additional context
None

usePandocParser not working

I tried setting usePandocParser to true but then just simple markdown text works, math (enclosed with $) for example doesn't work.

[BUG] when close preview page, can't open it again without restart vim.

Describe the bug
When close preview page, can't open it again without restart vim.

Result from CocInfo

vim version: VIM - Vi IMproved 8.2 8023875
node version: v16.13.1
coc.nvim version: 0.0.80-bd1ad34df2
coc.nvim directory: C:\Users\l00414153.vim\plugged\coc.nvim
term: undefined
platform: win32

Steps to reproduce
Steps to reproduce the behavior:

  1. execute gvim xxx.md
  2. run :CocCommand markdown-preview-enhanced.openPreview
  3. Preview tab appear as expect
  4. Close preview tab in chrome
  5. run :CocCommand markdown-preview-enhanced.openPreview again.
  6. Preview tab not appear this time.

Expected behavior
Is any method to reopen preview tab without close&restart vim?

Theme: TokyoNight

Hi, I wrote a TokyoNight theme for coc-markdown-preview-enhanced that mirrors exactly the appearance of vim's TokyoNight's theme. You can see a photo and the code here. I'd really appreciate if anyone reading this add wathever you consider is lacking. Enjoy.

screenshot_2021-12-26_20-21-36_990650445

/* Please visit the URL below for more information: */
/*   https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */

// TODO: Remove title bar.

.markdown-preview {
  // modify your style here
  // Current theme: tokyo night.

  // Disable antialiasing
  font-smooth: never;
  -webkit-font-smoothing : none;

  // Font
  font-family: "RobotoMono Nerd Font Mono";
  font-size: 0.75em;
  font-weight: 405;
  h1,h2,h3,h4,h5,h6{font-size: 1.00em}

  // Set colors
  background-color: #1a1b26;
  color: #a9b1d6;
  h1{color: #f7768e}
  h2{color: #ff9e64}
  h3{color: #e0af68}
  h4{color: #9ece6a}
  h5{color: #7aa2f7}
  h6{color: #ad8ee6}
  ::-moz-list-bullet{color: #f7768e}


  // Code font and bg
  pre,code{
    font-family: "RobotoMono Nerd Font Mono";
    font-size: 0.75em;
    background-color: #191b1c;
    color: #b1ada8;
  }

  // html links
  a:link{
  color: #7aa2f7;
  font-weight: 400;
  }
}

// Sidebar color
.md-sidebar-toc {background-color: #1a1b26}

// Restore opacity + hide useless buttons
#md-toolbar {
  .back-to-top-btn{display: none}
  .refresh-btn{display: none}
  .sidebar-toc-btn{
    opacity: 1;
    margin-top: 0px;
  }
}

[BUG] Cannot install

Describe the bug

Using npm from: /usr/bin/npm
Get info from https://registry.npmjs.org/
Downloading from https://registry.npmjs.org/coc-markdown-preview-enhanced/-/coc-markdown-preview-enhanced-0.4.4.tgz
Download progress 60.0%
Download progress 100.0%
Extension download at /home/wzy/.config/coc/extensions/node_modules/coc-markdown-preview-enhanced-dd990ab3-bf7b-4af4-970d-83b3970ebd17
Installing dependencies by: /usr/bin/npm install --ignore-scripts --no-lockfile --omit=dev --legacy-peer-deps --no-global.
[npm stderr] npm ERR! code ETARGET
[npm stderr] npm ERR! notarget No matching version found for @raidou/eslint-config-base@^1.6.0.
[npm stderr] npm ERR! notarget In most cases you or one of your dependencies are requesting
[npm stderr] npm ERR! notarget a package version that doesn't exist.
[npm stderr]
[npm stderr] npm ERR! A complete log of this run can be found in:
[npm stderr] npm ERR!     /home/wzy/.npm/_logs/2022-11-02T14_43_08_727Z-debug-0.log
/usr/bin/npm install exited with 1
❯ has node npm
✓ node 19.0.0
✓ npm 8.19.2

[BUG] Command not found after updating

Describe the bug

Recently, I updated coc extensions using :CocUpdate and I got an error below after executing :CocCommand markdown-preview-enhanced.openPreview.

[coc.nvim]: Error on notification "runCommand": Command: markdown-preview-enhanced.openPreview not found

I've tried some ways including but not limited to updating coc version, using the latest vim or uninstalling and reinstalling. But these all failed.

I've also reproduced the issue in another environment using :CocInstall coc-markdown-preview-enhanced, so I come here for help.

Regretfully, I've forgot the version that works normally.

In addition, I notice that the upstream(both vscode-markdown-preview-enhanced and crossnote[Renamed from mume]) restored to update frequently recently. I considered it may have something to do with this issue.

Hopefully this issue could be solved! I really appreciate this extension since I used to use markdown-preview-enhanced as my markdown renderer in VSCode.

Result from CocInfo

## versions

vim version: VIM - Vi IMproved 9.0 9002087
node version: v20.9.0
coc.nvim version: 0.0.82-d1568d56 2023-09-29 19:43:34 +0800
coc.nvim directory: /home/fesmoph/.vim/plugged/coc.nvim
term: dumb
platform: linux

## Log of coc.nvim

2023-11-03T16:29:55.407 INFO (pid:14435) [extension:coc-git] - Looking for git in: git
2023-11-03T16:29:55.553 WARN (pid:14435) [workspace] - Extension "coc-lists" registered synchronized autocmd "VimLeavePre", which could be slow.
2023-11-03T16:29:57.529 ERROR (pid:14435) [extensions-manager] - Error on active extension coc-markdown-preview-enhanced: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './out/src/utility' is not defined by "exports" in /home/fesmoph/.vim/extra/coc/extensions/node_modules/coc-markdown-preview-enhanced/node_modules/@shd101wyy/mume/package.json
    at new NodeError (node:internal/errors:406:5)
    at exportsNotFound (node:internal/modules/esm/resolve:268:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:598:9)
    at resolveExports (node:internal/modules/cjs/loader:547:36)
    at Module._findPath (node:internal/modules/cjs/loader:621:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1034:27)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at e (/home/fesmoph/.vim/plugged/coc.nvim/build/index.js:251:18271)
    at Object.<anonymous> (/home/fesmoph/.vim/extra/coc/extensions/node_modules/coc-markdown-preview-enhanced/lib/index.js:1750:22) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
2023-11-03T16:29:58.403 ERROR (pid:14435) [extensions-manager] - Error on activate coc-markdown-preview-enhanced Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './out/src/utility' is not defined by "exports" in /home/fesmoph/.vim/extra/coc/extensions/node_modules/coc-markdown-preview-enhanced/node_modules/@shd101wyy/mume/package.json
    at new NodeError (node:internal/errors:406:5)
    at exportsNotFound (node:internal/modules/esm/resolve:268:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:598:9)
    at resolveExports (node:internal/modules/cjs/loader:547:36)
    at Module._findPath (node:internal/modules/cjs/loader:621:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1034:27)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at e (/home/fesmoph/.vim/plugged/coc.nvim/build/index.js:251:18271)
    at Object.<anonymous> (/home/fesmoph/.vim/extra/coc/extensions/node_modules/coc-markdown-preview-enhanced/lib/index.js:1750:22) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
2023-11-03T16:29:58.408 INFO (pid:14435) [plugin] - coc.nvim initialized with node: v20.9.0 after 3325
2023-11-03T16:29:58.431 INFO (pid:14435) [language-client-index] - Language server "ltex" started with 14501
2023-11-03T16:29:58.613 INFO (pid:14435) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2023-11-03T16:29:58.666 ERROR (pid:14435) [attach] - Error on notification runCommand Error: Command: markdown-preview-enhanced.openPreview not found
    at BR.executeCommand (/home/fesmoph/.vim/plugged/coc.nvim/build/index.js:66:4130)
    at BR.fireCommand (/home/fesmoph/.vim/plugged/coc.nvim/build/index.js:66:4296)
    at async Cy.runCommand (/home/fesmoph/.vim/plugged/coc.nvim/build/index.js:257:24008)
    at async Gy.cocAction (/home/fesmoph/.vim/plugged/coc.nvim/build/index.js:277:46159)
    at async EventEmitter.<anonymous> (/home/fesmoph/.vim/plugged/coc.nvim/build/index.js:277:47778)
2023-11-03T16:29:58.916 INFO (pid:14435) [attach] - receive notification: highlight []
2023-11-03T16:30:00.669 ERROR (pid:14435) [timing] - activate coc-markdown-preview-enhanced timeout after 5000ms
2023-11-03T16:30:05.903 INFO (pid:14435) [attach] - receive notification: showInfo []

Steps to reproduce
Steps to reproduce the behavior:

  1. execute vim
  2. :CocInstall coc-markdown-preview-enhanced or :CocUpdate
  3. CocCommand markdown-preview-enhanced.openPreview
  4. Error throwing

Expected behavior

Screenshots

Additional context
None

[BUG] failure install

Describe the bug
install failure.

Result from CocInfo
Using npm from: /usr/local/bin/npm
Get info from https://registry.npmjs.org/
Downloading from https://registry.npmjs.org/coc-markdown-preview-enhanced/-/
coc-markdown-preview-enhanced-0.5.0.tgz
Download progress 4.7%
Download progress 9.5%
Download progress 14.2%
Download progress 19.0%
Download progress 23.7%
Download progress 28.5%
Download progress 33.2%
Download progress 37.9%
Download progress 42.7%
Download progress 47.4%
Download progress 52.2%
Download progress 56.9%
Download progress 61.6%
Download progress 66.4%
Download progress 71.1%
Download progress 75.9%
Download progress 80.6%
Download progress 95.3%
Download progress 100.0%
Extension download at /Users/zhangyue/.config/coc/extensions/node_modules/coc-
markdown-preview-enhanced-2e20a073-57ef-4f45-bbba-4d83f6909181
Installing dependencies by: /usr/local/bin/npm install --ignore-scripts --no-
lockfile --omit=dev --legacy-peer-deps --no-global.
[npm stderr] npm ERR! code ERR_INVALID_URL
[npm stderr] npm ERR! Invalid URL
[npm stderr]
[npm stderr] npm ERR! A complete log of this run can be found in: /Users/
zhangyue/.npm/_logs/2023-05-15T02_35_34_744Z-debug-0.log
/usr/local/bin/npm install exited with 1

Steps to reproduce
Steps to reproduce the behavior:

  1. execute nvim
  2. :CocCommand ...
  3. See error

Expected behavior
install succeed

Screenshots

Additional context
None

heading level 5 siderbar index mess

Describe the bug
heading level 5 siderbar index mess

Result from CocInfo

versions

vim version: NVIM v0.8.2
node version: v18.12.1
coc.nvim version: 0.0.82-b11a93ba 2022-12-25 15:19:13 +0800
coc.nvim directory: /Users/fgui/.local/share/nvim/plugged/coc.nvim
term: xterm-kitty
platform: darwin

Log of coc.nvim

2023-01-03T10:06:24.057 INFO (pid:94555) [plugin] - coc.nvim initialized with node: v18.12.1 after 472
2023-01-03T10:06:24.058 INFO (pid:94555) [services] - LanguageClient ESLint state change: stopped => starting
2023-01-03T10:06:24.059 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:24.072 INFO (pid:94555) [language-client-index] - Language server "eslint" started with 94561
2023-01-03T10:06:24.122 INFO (pid:94555) [services] - LanguageClient ESLint state change: starting => running
2023-01-03T10:06:24.125 INFO (pid:94555) [services] - service eslint started
2023-01-03T10:06:24.134 INFO (pid:94555) [core-watchman] - watchman watching project: /Users/fgui/Work/lowcode/doc
2023-01-03T10:06:24.685 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:25.667 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:26.893 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:28.003 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:43.433 INFO (pid:94555) [attach] - Request action: commandList [ 'mark', 'CocCommand mark', 15 ]
2023-01-03T10:06:45.755 INFO (pid:94555) [attach] - receive notification: runCommand [ 'markdownlint.fixAll' ]
2023-01-03T10:06:45.920 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:06:46.082 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:48.336 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:49.032 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:49.370 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:49.855 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:50.913 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:51.456 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:51.993 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:52.507 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:53.818 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:54.173 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:54.828 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:55.426 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:57.113 INFO (pid:94555) [attach] - receive notification: diagnosticNext []
2023-01-03T10:06:57.430 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:06:58.690 INFO (pid:94555) [attach] - receive notification: diagnosticNext []
2023-01-03T10:06:59.005 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:05.603 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:06.128 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:11.239 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:12.152 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:12.832 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:15.800 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:17.552 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:18.817 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:19.638 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:20.687 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:21.497 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:22.033 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:22.980 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:32.879 INFO (pid:94555) [attach] - Request action: commandList [ 'mark', 'CocCommand mark', 15 ]
2023-01-03T10:07:39.857 INFO (pid:94555) [attach] - receive notification: runCommand [ 'markdownlint.fixAll' ]
2023-01-03T10:07:40.164 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:41.969 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:42.564 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:43.160 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:44.123 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:07:44.752 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:35.933 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:42.633 INFO (pid:94555) [attach] - Request action: commandList [ 'cocac', 'CocCommand cocac', 16 ]
2023-01-03T10:09:44.512 INFO (pid:94555) [attach] - Request action: commandList [ 'mark', 'CocCommand mark', 15 ]
2023-01-03T10:09:47.408 INFO (pid:94555) [attach] - receive notification: runCommand [ 'markdownlint.fixAll' ]
2023-01-03T10:09:47.716 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:48.691 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:49.851 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:50.249 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:51.281 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:51.704 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:52.948 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:53.677 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:54.773 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:09:57.291 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:03.174 INFO (pid:94555) [attach] - Request action: commandList [ 'mark', 'CocCommand mark', 15 ]
2023-01-03T10:10:08.115 INFO (pid:94555) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2023-01-03T10:10:08.445 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:23.936 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:26.939 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:27.307 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:27.994 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:29.702 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:30.483 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:31.068 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:32.194 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:35.792 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:37.267 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:38.460 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:39.047 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:39.671 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:41.288 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:41.674 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:42.617 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:43.583 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:44.278 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:53.002 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:53.546 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:10:54.899 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:03.624 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:11:04.201 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:11.622 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:13.096 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:13.932 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:14.467 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:15.144 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:35.305 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:35.747 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:36.130 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:36.737 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:39.563 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:11:40.153 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:47.763 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:11:47.945 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:48.904 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:11:49.089 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:49.581 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:49.895 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:50.660 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:11:50.941 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:54.554 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:11:55.265 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:56.161 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:56.417 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:11:56.603 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:58.288 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:11:58.468 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:11:58.902 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:00.165 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:00.601 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:01.869 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:10.131 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:10.660 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:11.412 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:12.059 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:13.521 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:12:14.081 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:18.345 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:19.223 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:24.724 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:25.567 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:12:26.146 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:27.036 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:27.538 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:27.871 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:28.231 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:29.446 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:30.561 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:12:30.908 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:12:31.090 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:31.904 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:12:32.632 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:39.340 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:40.580 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:41.000 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:47.907 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:49.964 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:12:50.822 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:12:59.504 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:00.697 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:03.832 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:04.241 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:04.921 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:05.994 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:06.847 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:13:07.234 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:07.671 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:13:08.245 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:19.091 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:20.843 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:21.303 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:23.043 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:23.384 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:23.773 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:33.832 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:34.289 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:35.611 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:13:36.022 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:37.398 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:13:37.786 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:13:39.609 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:13:40.248 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:02.777 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:03.554 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:04.664 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:06.069 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:14:06.777 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:27.123 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:27.652 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:28.178 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:29.384 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:14:29.754 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:30.549 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:14:31.106 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:31.817 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:32.221 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:35.674 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:14:36.059 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:36.421 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:43.852 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:44.858 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:45.830 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:48.259 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:52.009 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:14:52.376 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:53.091 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:14:53.276 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:14:54.320 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:00.456 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:01.186 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:02.809 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:15:03.535 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:04.438 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:11.466 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:11.980 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:15:12.604 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:17.689 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:18.431 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:21.315 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:15:21.680 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:22.134 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:15:22.317 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:22.943 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:15:23.361 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:35.437 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:37.627 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:38.491 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:39.873 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:41.602 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:44.934 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:16:45.117 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:45.553 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:50.874 INFO (pid:94555) [attach] - Request action: doAutocmd [ 1, 1 ]
2023-01-03T10:16:51.053 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:51.833 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:16:52.178 INFO (pid:94555) [attach] - receive notification: highlight []
2023-01-03T10:24:40.282 INFO (pid:94555) [attach] - Request action: commandList [ 'coc', 'CocCommand coc', 14 ]
2023-01-03T10:24:42.031 INFO (pid:94555) [attach] - Request action: commandList [ 'mark', 'CocCommand mark', 15 ]
2023-01-03T10:24:43.083 INFO (pid:94555) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2023-01-03T10:24:43.416 INFO (pid:94555) [attach] - receive notification: highlight []

Steps to reproduce
Steps to reproduce the behavior:

  1. execute nvim
  2. :CocCommand markdown-preview-enhanced.openPreview
  3. See error

Screenshots
Screenshot 2023-01-03 at 10 29 16

能否在插入图片时,设置图片的大小

能否在插入图片时,设置图片的大小。
每一次插入的图片所使用的都是默认的图片大小,除非放弃传统做法直接使用html语言,然并没有办法进行图片大小调整。能否增加一些对图片大小的灵活设置。如:

![aaa](https://avatars.githubusercontent.com/u/1709861?v=4     200x300)   //  图片大小:200x300
![aaa](https://avatars.githubusercontent.com/u/1709861?v=4     200x)         //  图片宽200,高自适应
![aaa](https://avatars.githubusercontent.com/u/1709861?v=4     x200)         //  图片高200,宽自适应

[功能请求] 快速插入图片

Is your feature request related to a problem? Please describe.
coc-markdown-preview-enhanced 中插入图片还不是很快捷。

Describe the solution you'd like
增加一个插入图片的命令,别如 insert-image; 例如

  1. 在 yaml front matter 头, 设置图片储存位置。 默认值可以是 文件所在目录下以文件名去掉扩张名的文件夹;
  2. 在 yaml front matter 头,设置图片链接前缀。 例如 https://www.xxx.xxx/image/ 或 /xxx/xx/image (本地图片位子)
  3. 根据 1 和 2 中设置进行拼接得到完整的图片路径;

例1, 位于 /home/archlinux/md/测试.md 文件, 文件中设置了 image-directory, image-prefix 时

---
title: 测试
image-directory: image 
image-prefix: https://www.picturebed.com/
---
# 图片测试

在这里执行图片插入命令 `image-insert`, 可以辅助插入

![](https://www.picturebed.com/image/)

例2, 位于 /home/archlinux/md/测试2.md, 未设置 image-directory, 设置了 image-prefix.

---
title: 测试
image-directory:  
image-prefix: https://www.picturebed.com/
---
# 图片测试

在这里执行图片插入命令 `image-insert`, 可以辅助插入

![](https://www.picturebed.com/测试2/)

例3, 位于 /home/archlinux/md/测试3.md, 未设置 image-directory,image-prefix.

---
title: 测试
image-directory:  
image-prefix: 
---
# 图片测试

在这里执行图片插入命令 `image-insert`, 可以辅助插入

![](测试3/)

例4, 位于 /home/archlinux/md/测试3.md, 未设置 image-directory,image-prefix.

---
title: 测试
image-directory:  .images/
image-prefix: /home/archlinux/
---
# 图片测试

在这里执行图片插入命令 `image-insert`, 可以辅助插入

![](/home/archlinux/.images/)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

[BUG] "FetchError: Cannot follow redirect with body being a readable stream" when trying to render PlantUML

Describe the bug
I'm trying to set up a PlantUML preview which markdown-preview-enhanced should have support for built-in. I'm running a local server of PlantUML on localhost:8081 like plantuml -picoweb:8081:localhost and set my :CocConfig to

{"markdown-preview-enhanced.plantumlServer": "https://localhost:8081/svg/"}

With markdown like

# Hello
```plantuml
@startuml
Alice -> Bob : hello
Alice <- Bob : hi
@enduml

I get the FetchError: Cannot follow redirect with body being a readable stream error instead of the image. Same config works in vscodium with markdown-preview-enhanced.

Result from CocInfo

:CocInfo ## versions

vim version: NVIM v0.9.5
node version: v21.7.1
coc.nvim version: 0.0.82-84ce0312 2024-03-11 10:52:28 +0800
coc.nvim directory: /Users/REDACTED/.local/share/nvim/plugged/coc.nvim
term: Apple_Terminal
platform: darwin

Log of coc.nvim

2024-03-22T18:07:32.438 INFO (pid:23369) [plugin] - coc.nvim initialized with node: v21.7.1 after 222
2024-03-22T18:07:37.328 INFO (pid:23369) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2024-03-22T18:08:09.938 INFO (pid:23369) [attach] - receive notification: checkJsonExtension []
2024-03-22T18:08:09.976 INFO (pid:23369) [services] - LanguageClient Json language server state change: stopped => starting
2024-03-22T18:08:10.019 INFO (pid:23369) [language-client-index] - Language server "json" started with 23681
2024-03-22T18:08:10.129 INFO (pid:23369) [services] - LanguageClient Json language server state change: starting => running
2024-03-22T18:08:10.136 INFO (pid:23369) [services] - service json started
2024-03-22T18:08:33.748 INFO (pid:23369) [snippets-session] - Jump to final placeholder, cancelling snippet session
2024-03-22T18:09:01.711 INFO (pid:23369) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2024-03-22T18:09:56.164 INFO (pid:23369) [attach] - receive notification: checkJsonExtension []
2024-03-22T18:18:11.250 INFO (pid:23369) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2024-03-22T18:18:22.449 INFO (pid:23369) [attach] - receive notification: checkJsonExtension []
2024-03-22T18:18:58.022 INFO (pid:23369) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2024-03-22T18:20:19.346 INFO (pid:23369) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2024-03-22T18:20:34.297 INFO (pid:23369) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2024-03-22T18:20:42.714 INFO (pid:23369) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2024-03-22T18:21:40.668 INFO (pid:23369) [attach] - receive notification: updateExtensions []
2024-03-22T18:21:41.860 INFO (pid:23369) [model-download] - Download completed: URL {
href: 'https://registry.npmjs.org/coc-pyright/-/coc-pyright-1.1.355.tgz',
origin: 'https://registry.npmjs.org',
protocol: 'https:',
username: '',
password: '',
host: 'registry.npmjs.org',
hostname: 'registry.npmjs.org',
port: '',
pathname: '/coc-pyright/-/coc-pyright-1.1.355.tgz',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
2024-03-22T18:21:41.864 INFO (pid:23369) [model-download] - Downloaded https://registry.npmjs.org/coc-pyright/-/coc-pyright-1.1.355.tgz => /Users/REDACTED/.config/coc/extensions/node_modules/coc-pyright-519fc376-9526-43e7-84d1-a3d06a437186
2024-03-22T18:27:01.700 INFO (pid:23369) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]

Screenshots
With this plugin
Screenshot 2024-03-22 at 19 17 27
With vscode version
Screenshot 2024-03-22 at 19 18 13

Poor math support

Compared to iamco's markdown preview in math rendering, extensible characters does not extend themselves and there are missing characters. (Both use KaTeX, so maybe there's some issue with fonts?)

image

image

The results are similar in both firefox and chromium.

[BUG] Image preview and link jumping with a relative/absolute pathname work unexpectedly

Describe the bug

I made it a markdown demo to describe the bug. However, I not sure how to upload markdown code without previewing it. So, I attached the file following. Sry, my bad.
main.md

Result from CocInfo

## versions

vim version: VIM - Vi IMproved 8.2 8023455
node version: v17.7.1
coc.nvim version: 0.0.80-ccd0b050e0
coc.nvim directory: /Users/dehan/.vim/plugged/coc.nvim
term: dumb
platform: darwin

## Log of coc.nvim

2022-03-18T20:18:12.369 WARN (pid:67086) [attach] - Plugin not ready when received "highlight" []
2022-03-18T20:18:12.461 INFO (pid:67086) [services] - registered service "highlight"
2022-03-18T20:18:12.607 INFO (pid:67086) [plugin] - coc.nvim initialized with node: v17.7.1 after 234ms
2022-03-18T20:18:24.623 INFO (pid:67086) [attach] - receive notification: highlight []
2022-03-18T20:18:24.713 WARN (pid:67086) [extension:coc-prettier] - jsxBracketSameLine is deprecated.
2022-03-18T20:18:24.800 INFO (pid:67086) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2022-03-18T20:18:25.192 INFO (pid:67086) [attach] - receive notification: highlight []
2022-03-18T20:18:36.681 INFO (pid:67086) [attach] - receive notification: highlight []
2022-03-18T20:18:44.505 INFO (pid:67086) [attach] - receive notification: showInfo []
2022-03-18T20:18:44.717 INFO (pid:67086) [attach] - receive notification: highlight []
2022-03-18T20:19:01.600 INFO (pid:67086) [attach] - receive notification: highlight []
2022-03-18T20:19:02.724 INFO (pid:67086) [attach] - receive notification: highlight []
2022-03-18T20:19:03.409 INFO (pid:67086) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2022-03-18T20:19:03.570 INFO (pid:67086) [attach] - receive notification: highlight []
2022-03-18T20:19:07.405 INFO (pid:67086) [attach] - receive notification: showInfo []

Steps to reproduce
Steps to reproduce the behavior:

  1. execute gvim
  2. :CocCommand markdown-preview-enhanced.openPreview
  3. See error

Expected behavior

Images displaying and links jumping correctly.

Screenshots

image

Additional context
None

[Error]: LaTeX-incompatible input and strict mode is set to 'warn': Unicode text character "键" used in math mode [unicodeTextInMathMode]

Description

Coc.nvim throws error when the markdown file exists string $键$ in hosting coc-markdown-preview-enhanced. It seems be relative to LaTeX's keyword. Error messages like this:

[coc.nvim]: LaTeX-incompatible input and strict mode is set to 'warn': Unicode text character "键" used in math mode [unicodeTextInMathMode]

Actually my words are $mod 键和 $sup 键 and $键$ is the shortest string to reproduce.

Reproduce

  1. Edit a markdown file and input $键$
  2. Call :CocCommand markdown-preview-enhanced.openPreview

CocInfo

## versions

vim version: NVIM v0.8.0-dev
node version: v16.10.0
coc.nvim version: 0.0.81-2522eee5 2022-06-14 19:03:29 +0800
coc.nvim directory: /home/hexh/.local/share/nvim/site/pack/packer/start/coc.nvim
term: tmux
platform: linux

## Log of coc.nvim

2022-07-05T17:21:18.394 INFO (pid:221353) [@hexuhua/coc-git] - Looking for git in: git
2022-07-05T17:21:18.484 INFO (pid:221353) [services] - registered service "eslint"
2022-07-05T17:21:18.485 INFO (pid:221353) [services] - ESLint state change: stopped => starting
2022-07-05T17:21:19.113 INFO (pid:221353) [plugin] - coc.nvim initialized with node: v16.10.0 after 897ms
2022-07-05T17:21:19.179 INFO (pid:221353) [core-watchman] - watchman watching project: /home/hexh/desktop
2022-07-05T17:21:19.251 INFO (pid:221353) [services] - ESLint state change: starting => running
2022-07-05T17:21:19.258 INFO (pid:221353) [services] - service eslint started
2022-07-05T17:21:20.463 INFO (pid:221353) [attach] - Request action: commandList [
  'markdown-preview-enhanced.openPreview',
  'CocCommand markdown-preview-enhanced.openPreview',
  48
]
2022-07-05T17:21:21.282 INFO (pid:221353) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2022-07-05T17:21:26.468 INFO (pid:221353) [attach] - receive notification: showInfo []

[BUG] Content loss in mermaid between `<` and `>`

Describe the bug

Text in < and > in the classDiagram of mermaid cannot be shown.
For example, std::shared_ptr<ClassA> variable would be displayed as std::shared_ptr variable.

Result from CocInfo

## versions

vim version: VIM - Vi IMproved 8.2 8023995
node version: v16.14.2
coc.nvim version: 0.0.80-0480cbd997
coc.nvim directory: /home/yingmanwumen/.vim/pack/coc.nvim/start/coc.nvim
term: dumb
platform: linux

## Log of coc.nvim

2022-04-15T19:43:00.279 INFO (pid:273813) [services] - registered service "highlight"
2022-04-15T19:43:00.774 INFO (pid:273813) [plugin] - coc.nvim 0.0.80-0480cbd997 initialized with node: v16.14.2 after 645ms
2022-04-15T19:43:05.909 INFO (pid:273813) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2022-04-15T19:43:11.609 INFO (pid:273813) [attach] - receive notification: highlight []
2022-04-15T19:43:15.024 INFO (pid:273813) [attach] - receive notification: highlight []
2022-04-15T19:45:59.182 INFO (pid:273813) [attach] - receive notification: showInfo []

Steps to reproduce
Steps to reproduce the behavior:

  1. execute vim and open a markdown file
  2. write down texts like this:
```mermaid
classDiagram
class ClassA {
    std::shared_ptr<ClassB> inner
}
...
  1. :CocCommand markdown-preview-enhanced.openPreview
  2. See error

Expected behavior

Expected the full content in the rendered mermaid diagram.

Screenshots

Screenshot_20220415_195321
Screenshot_20220415_195725

Additional context
None

[BUG] Print to pdf

Bug description

In the webview I can't print all the pages, but only the first. I left an example in the Screenshots section.
I guess it's a problem about webview, should I open an issue in webview repository?

Result from CocInfo

## versions

vim version: NVIM v0.9.0
node version: v16.20.0
coc.nvim version: 0.0.82-28e0edd 2022-12-31 20:57:39 +0800
coc.nvim directory: /home/myHome/.local/share/nvim/plugged/coc.nvim
term: xterm-256color
platform: linux

Steps to reproduce

  • Start nvim.
  • execute :CocCommand markdown-preview-enhanced.openPreview; in my case it will open a firefox tab.
  • click on sandwich menu in the header.
  • click on Print.

Expected behavior

This Print button should allow me to print the whole document.

Screenshots

exemple

[BUG] "Create ToC" not working

Describe the bug

Hi.
Using this package in MacOS12.3. When I use the command Create ToC in the command pallette, only the below line is appended.

<!-- @import "[TOC]" {cmd:"toc", depthFrom:1, depthTo:6, orderedList:false} -->

Headings are not generated below the above insertion.
Let me know if you need more details. Thanks.

Result from CocInfo

## versions

vim version: VIM - Vi IMproved 8.2 8023455
node version: v17.5.0
coc.nvim version: 0.0.80-ccd0b050e0
coc.nvim directory: /Users/dehan/.vim/plugged/coc.nvim
term: Apple_Terminal
platform: darwin

## Log of coc.nvim

2022-03-10T02:42:22.954 INFO (pid:14454) [plugin] - coc.nvim initialized with node: v17.5.0 after 831ms
2022-03-10T02:43:12.246 INFO (pid:14454) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2022-03-10T02:43:28.014 INFO (pid:14454) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.runAllCodeChunks' ]
2022-03-10T02:48:53.001 INFO (pid:14454) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.createTOC' ]
2022-03-10T02:49:46.625 INFO (pid:14454) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.runAllCodeChunks' ]
2022-03-10T02:50:06.100 INFO (pid:14454) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.openPreview' ]
2022-03-10T02:52:28.313 INFO (pid:14454) [attach] - receive notification: showInfo []
2022-03-10T02:52:45.318 INFO (pid:14454) [attach] - receive notification: runCommand [ 'markdown-preview-enhanced.createTOC' ]
2022-03-10T02:53:07.711 INFO (pid:14454) [attach] - receive notification: showInfo []

Steps to reproduce
Steps to reproduce the behavior:

  1. execute vim
  2. :CocCommand markdown-preview-enhanced.openPreview
  3. clicked on the first symbol and this opened the side bar having the TOC
  4. :CocCommand markdown-preview-enhanced.createTOC
  5. :w Save my markdown file.
  6. Nothing else happens on save. Toc is not embedded.

Expected behavior

Toc is embedded correctly.

Thanks.

Cannot install

Describe the bug
notarget No matching version found for @raidou/eslint-config-base@^1.6.0.

Result from CocInfo

versions

vim version: NVIM v0.8.1
node version: v18.12.1
coc.nvim version: 0.0.82-b11a93ba 2022-12-25 15:19:13 +0800
coc.nvim directory: /Users/fgui/.local/share/nvim/plugged/coc.nvim
term: xterm-kitty
platform: darwin

Log of coc.nvim

2023-01-02T16:54:52.613 INFO (pid:55904) [plugin] - coc.nvim initialized with node: v18.12.1 after 105
2023-01-02T16:54:52.802 INFO (pid:55904) [attach] - receive notification: highlight []
2023-01-02T16:54:52.888 INFO (pid:55904) [extension-installer] - Fetched info of coc-markdown-preview-enhanced {
'dist.tarball': 'https://registry.npmmirror.com/coc-markdown-preview-enhanced/-/coc-markdown-preview-enhanced-0.4.4.tgz',
'engines.coc': '^0.0.80',
version: '0.4.4',
name: 'coc-markdown-preview-enhanced'
}
2023-01-02T16:54:53.135 INFO (pid:55904) [model-download] - Download completed: URL {
href: 'https://registry.npmmirror.com/coc-markdown-preview-enhanced/-/coc-markdown-preview-enhanced-0.4.4.tgz',
origin: 'https://registry.npmmirror.com',
protocol: 'https:',
username: '',
password: '',
host: 'registry.npmmirror.com',
hostname: 'registry.npmmirror.com',
port: '',
pathname: '/coc-markdown-preview-enhanced/-/coc-markdown-preview-enhanced-0.4.4.tgz',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
2023-01-02T16:54:53.137 INFO (pid:55904) [model-download] - Downloaded https://registry.npmmirror.com/coc-markdown-preview-enhanced/-/coc-markdown-preview-enhanced-0.4.4.tgz => /Users/fgui/.config/coc/extensions/node_modules/coc-markdown-preview-enhanced-dcb0d5d1-f101-4e50-a7db-a13b775c4e8b
2023-01-02T16:55:26.753 ERROR (pid:55904) [extensions-index] - Error on install coc-markdown-preview-enhanced Error: /opt/homebrew/bin/npm install exited with 1
at ChildProcess. (/Users/fgui/.local/share/nvim/plugged/coc.nvim/build/index.js:227:90972)
at ChildProcess.emit (node:events:513:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
2023-01-02T16:55:30.048 INFO (pid:55904) [attach] - receive notification: highlight []
2023-01-02T16:55:31.311 INFO (pid:55904) [attach] - receive notification: highlight []
2023-01-02T16:55:33.866 INFO (pid:55904) [attach] - receive notification: highlight []
2023-01-02T16:55:40.580 INFO (pid:55904) [attach] - receive notification: highlight []
2023-01-02T16:55:58.008 INFO (pid:55904) [attach] - receive notification: highlight []

Steps to reproduce
Steps to reproduce the behavior:

  1. execute nvim
  2. :Cocinstall coc-markdown-preview-enhanced
  3. See error

Screenshots
Screenshot 2023-01-02 at 00 23 03

.npmrc
Screenshot 2023-01-02 at 00 23 47

If a hyperlink of a page which markdown-preview-enchaced opened is a markdown in localhost, use markdown-preview-enhanced to open it

Describe the solution you'd like
If a hyperlink of a page which markdown-preview-enchaced opened is a markdown in localhost, use markdown-preview-enhanced to open it

That is:

  1. Use :CocCommand markdown-preview-enhanced.openPreview to open a markdown in browser.
  2. In the page which markdown-preview-enhanced opened, there is a hyperlink linked to a markdown in localhost.
  3. open this hyperlink in browser.

Actual Bahaviour:

Open file:///the/path/of/this/markdown/file.md

Expected Behaviour:

Use :CocCommand markdown-preview-enhanced.openPreview to open /the/path/of/this/markdown/file.md in browser.

I am not sure is it should be the feature of upstream? If so, I'll transport this issue to upstream.

能否支持其他的js拓展功能,比如 charjs, mermaid 等等?

能否支持其他的画图工具,比如,markdown-preview.nvim那样。在输入如下代码时,

\``` chart
{
    "type": "pie",
    "data": {
        "labels": ["l0", "l1", "l2"],
        "datasets": [{
            "data": [1,2,3],
            "backgroundColor": ["#0075", "#00e5", "#0155"],
            "hoverBackgroundColor": ["#ff63ff"]
        }]
    }
}
\```

它会依据chart这个关键字,来调用chart.js。从而实现画图功能。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.