wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Page does not render after including specific code in markup

Open frauzufall opened this issue 7 years ago • 2 comments

Describe the bug When including specific code in a markup page, the resulting HTML page is empty.

To Reproduce Steps to reproduce the behavior:

  1. Create new page
  2. Set markdown content to:
  - `{,}`
  1. View page
  2. See white page. The browser console displays DOMException: "String contains an invalid character" app.3f0ec7bfc994316d5963.js:102:11676

Expected behavior See not white page. Note: Also the preview does not render this code snippet but the remaining page would be rendered at least in the preview.

Host Info (please complete the following information):

  • OS: Ubuntu 18.10
  • Wiki.js version: 2.0.0-beta.241
  • Database engine: postgres
  • Client setups: Ubuntu (Firefox), MacOS (Safari)

Additional context In the markdown, the comma as well as the dash are important. Note that additional text at the end of the line restores functionality.

This works:

  - `{,}`A

This works partially (does not render the code section, but does not break the page):

  - `{A}`

frauzufall avatar Jul 29 '19 12:07 frauzufall

I have the same issue with the combination of two characters { } with text inside

issue2

SharkProgramming avatar Nov 05 '19 08:11 SharkProgramming

Is this issue still happens with Wiki.js 2.4.x?

Smankusors avatar Jul 14 '20 07:07 Smankusors