How to use markdown for creating assessments in CodeInterview

Developer Skill Assessment Tool

We recently launched markdown support when creating question templates. This article will highlight some of the use cases and how you can make the most of this functionality as an interviewer. 


How to get started

Head over to “Templates” in the sidebar and click “Create Template”. Select a programming language and you’ll be ready to input your question description and solution. 

We use the standard markdown syntax as described in this article. Here are some examples to illustrate the functionality: 


Create headings

Simply add a number sign (#) in front of a word or phrase. One sign corresponds to H1, two signs to H2 and so on. 

This helps you structure sections within your questions and solutions. 


Bold and Italic

Utilize two asterisks (*) or underscores (_) before and after a word/phrase to make text bold. Use only one asterisk or underscore for italic. Use three to make it both bold and italic. 



Lists

You can create unordered lists using dashes (-), asterisks (*), or plus signs (+) in front of words or phrases. You can create numbered lists simply by adding a number in front, followed by a full stop.  


Tables

To create a table, use three or more hyphens (—) do define column headers and use pipes (|) to separate each column as the example below: 

​​| Syntax      | Description |

| Header      | Title       |

| Paragraph   | Text        |


Mathematical Expressions

You can use a single dollar sign ($) and double dollar signs ($$) to insert math expressions in TeX and LaTeX-style syntax. For example:

$(wy^2 + xy + z = 0)$

$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$

This will be rendered as follows:

wy2 + xy + z = 0


Using the Markdown code block

You can also preserve the original format by adding “`markdown before the text and closing with “` at the end. This will insert a markdown code block with the original formatting you have used.


This is how the markdown will be rendered during the interview.

These are some of the more common use cases for markdown which you can employ in CodeInterview questions and templates. You can also find more examples here.