Simon-He95/vue-markdown-renderer

Strikethrough

Closed this issue · 0 comments

Describe the bug

If the library encounters a ~ tag it assumes it to be strike through even though there isn't a closing ~

Example:
✈️ Flight time: ~3 h 45 m nonstop from Stockholm (ARN).

Image

Reproduction

https://example.com

System Info

System:
    OS: Linux 6.8 Linux Mint 22.1 (Xia)
    CPU: (4) x64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
    Memory: 6.17 GB / 15.57 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 20.19.5 - /home/XXX/.nvm/versions/node/v20.19.5/bin/node
    npm: 10.8.2 - /home/XXX/.nvm/versions/node/v20.19.5/bin/npm
    pnpm: 10.18.1 - /home/XXX/.local/share/pnpm/pnpm
  Browsers:
    Chromium: 141.0.7390.54
    Firefox: 143.0.4
    Firefox Developer Edition: 143.0.4
  npmPackages:
    @vitejs/plugin-vue: 5.2.4 => 5.2.4 
    vite: 6.3.5 => 6.3.5

Used Package Manager

npm

Logs

No response