Basic Markdown Syntax
Codewars supports Markdown.
More specifically, GitHub Flavored Markdown (strict superset of CommonMark) and few Codewars extensions.
You may find below a summary of the most used ones.
#
Emphasis#
Displaying codeUse code spans and code blocks to show the text as-is. Use code block to show the syntax highlighted code.
#
Code spanUse single backtick (`) to show the text as is inline.
#
Code blockFor code blocks, use triple backticks (a "code fence").
The opening code fence can be followed by an optional text called the info string. When the info string is a valid language ID, python
for example, the content is syntax highlighted.
See the language's documentation in supported languages to find the langauge ID.
If you're writing a kata description, see Codewars' extensions like sequential and language-specific blocks.
#
Lists#
Unordered listsYou can use -
, *
, and +
as bullet markers.
#
Ordered listsIncrementing the marker is optional so you can use the following too:
#
LinksValid URLs are automatically converted to links with link text set to the URL.
To specify a link text, use the following syntax:
#
ImagesTo include an image:
#
BlockquotesTo quote the answer of another user, for example: