Refactor from More Features to Embeds, Events, Markdown#236
Refactor from More Features to Embeds, Events, Markdown#236Elitesparkle wants to merge 21 commits intoPycord-Development:mainfrom
Conversation
|
I added a couple markdown examples, and moved the element style pages into their own category. |
| message = "Hello world!" | ||
| print(message) |
There was a problem hiding this comment.
Note: this doesn't format correctly at the moment. Fix before merging. May be resolved by #239.
❌ Deploy Preview for pycord failed.Built without sensitive environment variables
|
Add the "text" flag to code blocks that aren't supposed to show with syntax highlight as they are about an example without it. Split the Code Block and Quote Block sections into paragraphs. Add an example for single-line code block with syntax highlight. Improve some sentences here and there.
|
Fixed. No more warnings but the examples are showing wrong. |
The syntax isn't exactly the one explained immediately above but the final result looks exactly the same and we hopefully no longer get any warning there.
…into more-features
| <DiscordComponent> | ||
| <DiscordMessage profile="robocord"> | ||
| <DiscordMarkdown> | ||
| ``` |
There was a problem hiding this comment.
If we want to show this example properly, this code block should be rendered with syntax highlight. Since it was showing python as text, I reverted the change for now. The next 2 examples have the same problem.
| <DiscordComponent> | ||
| <DiscordMessage profile="robocord"> | ||
| <DiscordMarkdown> | ||
| > This is a |
There was a problem hiding this comment.
If we write >>>, we get an error. If we write > for each line, the first line shows as quote block correctly but the second > shows as text instead of being rendered as quote block.
BobDotCom
left a comment
There was a problem hiding this comment.
We should always write the correct syntax, and change the discordcomponent if it fails to parse correctly
Co-authored-by: Louis <80314632+Louis790@users.noreply.github.com> Signed-off-by: Elitesparkle <Elitesparkle@users.noreply.github.com>
Split the More Features page into 3 separate pages: Embeds, Events, Markdown. Furthermore, add Related Topics to connect the Embeds page and the Markdown page to each other.