Zettlr icon indicating copy to clipboard operation
Zettlr copied to clipboard

The syntax highligh in tilde code block `~~~` is missed

Open eugeneilyin opened this issue 3 years ago • 1 comments

Description

The syntax highlight in tilde code blocks ~~~ is missed:

```js
  const results = []
  while (checks.length) {
    results.push(...await Promise.allSettled(
      checks.splice(0, maxParallelChecks ?? checks.length).
        map(({ name, login }) => login((emit, _, acc) => {
          let props = []
```
~~~js
  const results = []
  while (checks.length) {
    results.push(...await Promise.allSettled(
      checks.splice(0, maxParallelChecks ?? checks.length).
        map(({ name, login }) => login((emit, _, acc) => {
          let props = []
~~~

Click to expand: tilde-code-block-rendering-issue

Reproducing

  1. Install the recent Zettlr 2.3.0
  2. Copy markdown above
  3. Observe the issue
  4. Think how to fix it and where the tilde code blocks ~~~ are not specified for syntax highliting in Zettlr sources
  5. Profit!

Zettlr Version

Stable (most recent version)

Specify version

2.3.0

Installation Method

From the Website or GitHub

Your Platform

  • [X] Windows
  • [ ] macOS
  • [ ] Linux

Architecture

  • [X] Intel 64bit
  • [ ] ARM 64bit

Operating System Version

Windows 10

Additional Information

No response

eugeneilyin avatar Aug 16 '22 18:08 eugeneilyin

That is to be expected due to a limitation in the multiplexer plugin. Will possibly work with the new CodeMirror iteration I'm currently working on.

nathanlesage avatar Aug 17 '22 07:08 nathanlesage

Just double checked: Works in the current develop branch, i.e. will work in the upcoming betas and releases:

image

nathanlesage avatar Nov 04 '22 11:11 nathanlesage