1
0
Fork 0
mirror of https://github.com/requarks/wiki.git synced 2026-03-02 22:06:55 -05:00

Markdown cpp codeblock rendering issue #2424

Closed
opened 2026-02-20 19:04:43 -05:00 by deekerman · 1 comment
Owner

Originally created by @polyglotm on GitHub (Jan 23, 2021).

Originally assigned to: @NGPixel on GitHub.

Describe the bug

when rendering CPP code block, first line has an issue.
the things are when editing, preview work normal
but when seeing page, first line of code block has a problem, always



To Reproduce

Steps to reproduce the behavior:

  1. Go to 'page edit' with 'markdown' mode
  2. write some cpp codeblock such as
//```cpp
//something()
//```
  1. when look preview it will normal
  2. but after save and look the page you can see the problem



Expected behavior

when the page renders, it must be work the same as editor preview.



Screenshots

when editing, preview work normal

Screenshot 2021-01-23_23-47-23-646

when seeing page first line of code block has a problem, always

Screenshot 2021-01-23_23-44-24-768



Host Info (please complete the following information):

  • OS: [amazon linux(amzn2-ami-hvm-2.0.20200917.0-x86_64-gp2), Docker]
  • Wiki.js version: 2.5.17
  • Database engine: postgres 12.4
Originally created by @polyglotm on GitHub (Jan 23, 2021). Originally assigned to: @NGPixel on GitHub. # **Describe the bug** when rendering **CPP** code block, first line has an issue. the things are when editing, preview work normal but when seeing page, first line of code block has a problem, always <br><br> # **To Reproduce** Steps to reproduce the behavior: 1. Go to 'page edit' with 'markdown' mode 2. write some cpp codeblock such as ``` //```cpp //something() //``` ``` 3. when look preview it will normal 4. but after save and look the page you can see the problem <br><br> # **Expected behavior** when the page renders, it must be work the same as editor preview. <br><br> # **Screenshots** ## when editing, preview work normal ![Screenshot 2021-01-23_23-47-23-646](https://user-images.githubusercontent.com/13045112/105593279-321bcf80-5dd6-11eb-9cb5-60f8aff0e0e9.png) ## when seeing page first line of code block has a problem, always ![Screenshot 2021-01-23_23-44-24-768](https://user-images.githubusercontent.com/13045112/105593339-3647ed00-5dd6-11eb-8f69-c478437d6224.png) <br><br> ## **Host Info (please complete the following information):** - OS: [amazon linux(amzn2-ami-hvm-2.0.20200917.0-x86_64-gp2), Docker] - Wiki.js version: 2.5.17 - Database engine: postgres 12.4
deekerman 2026-02-20 19:04:43 -05:00
  • closed this issue
  • added the
    migrate
    label
Author
Owner

@polyglotm commented on GitHub (Jan 23, 2021):

I would like to look at this bug personally for help.
And if possible I would like to fix and make PR.

if I figure out the difference between 'editor preview' and 'render module'
Maybe that could be key to solving this problem.

So for that I little bit look at editor code github.com/Requarks/wiki@9ccd1f82e9/client/components/editor/editor-markdown.vue

And now I'm trying to find 'render module'
would you let me know what component rendering the page?

and any extra info would be help
@NGPixel

@polyglotm commented on GitHub (Jan 23, 2021): I would like to look at this bug personally for help. And if possible I would like to fix and make PR. if I figure out the difference between 'editor preview' and 'render module' Maybe that could be key to solving this problem. So for that I little bit look at editor code https://github.com/Requarks/wiki/blob/9ccd1f82e9f8a6cb9e8f03e585ac6281aa60af53/client/components/editor/editor-markdown.vue And now I'm trying to find 'render module' would you let me know what component rendering the page? and any extra info would be help @NGPixel
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wiki-requarks#2424
No description provided.