Markdown of code blocks #2116
|
[ I'm not quite certain whether the following issues are related to LLS or to the editor I'm using. ] Code blocks in markdown are indented by 4 spaces. This works great in the following example. Hovering over ---Lorem ipsum dolor sit amet
---
--- quis
--- nostrum
function foo()
endBut in the next example this code block is displayed as normal text: ---Lorem ipsum dolor sit amet
--- * ut labore
--- * et dolore
---
--- quis
--- nostrum
function bar()
endAnother way to mark code bocks are fenced code block. But they do not seem to work either. The code block is displayed as normal text: ---Lorem ipsum dolor sit amet
---
--- ```
--- quis
--- nostrum
--- ```
function baz()
end |
Answered by
sumneko
May 31, 2023
Replies: 2 comments 7 replies
---```
---This has always worked for me to write Lua code blocks
---```Maybe it is your editor? Try VS Code? |
5 replies
|
The rendering of Markdown is completely implemented by the client, and the server mostly just concatenates the commented content and sends it to the client. (Translated by ChatGPT) |
2 replies
Answer selected by
AndreasMatthias
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The rendering of Markdown is completely implemented by the client, and the server mostly just concatenates the commented content and sends it to the client.
(Translated by ChatGPT)