Open arndey opened 4 hours ago
I have received and am evaluating it.
Do you think there is an expected parsing error? I don't quite understand your question.
What do you think is the correct situation?
Do you think there is an expected parsing error? I don't quite understand your question.
I expect the correct output message that won't split the code block in half because it contains another one inside
expected:
markdown code
markdown code
markdown code
python code
python code
markdown code
markdown code
markdown code
actual:
markdown code
markdown code
markdown code
python code python code
markdown code
markdown code
markdown code
Actually this may not be a bug in the library. We convert characters according to the universal format.
Suggestions that may be helpful This problem may be a problem with the input text: you should not nest code blocks Because Telegram is responsible for rendering them, and Telegram does not support nested code blocks
Actually this may not be a bug in the library. We convert characters according to the universal format.
Suggestions that may be helpful This problem may be a problem with the input text: you should not nest code blocks Because Telegram is responsible for rendering them, and Telegram does not support nested code blocks
if it's not too much trouble, can you send a link to the documentation in Telegram, from which it follows that they do not support the embedded code?
Hi! Your lib will split the message into two code blocks:
markdown starts
topython starts
&&python finishes
tomarkdown finishes
BUT as far as I understand we have to keep one big codeblock of markdown and python should be insideTry this string:
source = """ Certainly! Below is an example of a Markdown message that includes various formatting features:
Blockquotes
Tables
Horizontal Line
Use three or more hyphens, asterisks, or underscores:
Emoji
Simple emoji examples: 😃 🎉 💻
Task Lists
Footnotes
Here's a sentence with a footnote.[^1]
[^1]: This is the footnote content.
Headers
Use hash symbols for different levels:
H1
H2
H3
H4
H5
H6
Thank you for going through this Markdown guide! Feel free to use it as a reference for writing messages with rich formatting.