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()
end But 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()
end Another 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 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
---```
---This has always worked for me to write Lua code blocks
---``` Maybe it is your editor? Try VS Code? |
Beta Was this translation helpful? Give feedback.
-
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) |
Beta Was this translation helpful? Give feedback.
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)