mohzy83 / NppMarkdownPanel

Lightweight Notepad++ plugin to preview Markdown files
MIT License
224 stars 36 forks source link

Always render fenced code blocks (solved) #98

Closed realjck closed 6 months ago

realjck commented 7 months ago

✔ Right now, it's possible to render some highlighted fenced code blocks with this syntax:

```js doCodeBlock()=>{ console.log('code block'); } ```

  doCodeBlock()=>{
    console.log('code block');
  }

✔ It works also without specifying the language:

``` this is code block ```

this is code block

❌ But this one doesn't work, the result is the text on one line unformatted:

```bash git commit -m "feat: code block" ``` git commit -m "feat: code block"

Also this obviously lead to an unformatted line:

```abc This should be some code block ``` This should be some code block


I haven't looked at whether it's possible to configure the languages, but I think it would be wise that as soon as quotes are used, then the code block is always rendered by default.

mohzy83 commented 7 months ago

I have checked your issue with the current version of the plugin (0.7.3). Everything seems to work fine, even with the "bash" language hint: grafik

realjck commented 7 months ago

I just tried on a clean install on another computer, and indeed, it works correctly.

I will investigate this evening or tomorrow why my installation poses this strange problem and keep you informed.

realjck commented 7 months ago

Indeed everything is OK on v0.7.3

For some reason, the version I installed was on an old version v0.7 Although I installed the plugin last week, my package manager was not updated on my side. I should have investigated better from the start 🙄

This ticket can be closed. Thank you and sorry for inconvenience.