Markdown Syntax Matcher¶
Run the Markdown Syntax Matcher MicroSim Fullscreen
Edit in the p5.js Editor
About This MicroSim¶
Reading Markdown is easy; writing it so that it renders the way you meant takes practice. This MicroSim gives you eight rendered results, such as a level-2 heading, a bulleted list, a fenced Python code block, a link, or a two-column table, and three candidate sources for each. Your job is to use Markdown syntax: pick the source that produces the result.
The wrong options are the near-miss errors people actually make: a missing space after ## or -, quotation marks used where backticks are needed, link brackets in the wrong order, or a table without its separator row. After each answer the sim draws the rendered preview of the source you chose next to the preview of the correct source, following the CommonMark rules with the GitHub Flavored Markdown table extension. Most wrong options differ from the right one by a single space or character, and the previews show what that difference costs.
The option order is shuffled for each item when the page loads, so the letter of the correct option tells you nothing.
How to Use¶
- Read the Rendered result box. The question on screen is Which source produces this result?
- Read the three sources, shown as literal text and labeled A, B, and C.
- Press Option A, Option B, or Option C to select a source. The selected option gets a pointer and a black outline, and you can change the selection until you submit.
- Press Submit. Each item has one attempt. The correct option is outlined in blue with a check mark; a wrong choice is outlined in orange with an X.
- Read the feedback. A correct answer shows Correct. and the reason. A wrong answer shows the reason and two rendered previews: your choice and the correct option.
- Press Next Item, and after item 8 press See Score. The final screen shows n of 8 correct, whether you met the mastery threshold of 7, and the misconception behind each item you missed.
Iframe Embed Code¶
You can add this MicroSim to any web page by adding this to your HTML:
<iframe src="https://dmccreary.github.io/ai-for-ee-research/sims/markdown-syntax-matcher/main.html"
height="762px"
width="100%"
scrolling="no"></iframe>
Lesson Plan¶
Learning Objective¶
The learner will use Markdown syntax for headings, lists, tables, code, links, and emphasis by choosing, for each of eight described rendered results, the source text that produces it, with at least 7 of 8 correct.
- Bloom level: Apply
- Bloom verb: use
Prerequisites¶
- Headings, lists and tables, code blocks, links, emphasis, and the blank line before a list, all defined in the section "Markdown" of Chapter 5.
Evidence of Mastery¶
- For each of the eight rendered results, the learner commits one of three source options; a choice is correct when it matches the answer key.
- Mastery: at least 7 of 8 correct on the first attempt.
- Viewing the rendered preview of an option after the answer is revealed is exploration and is not evidence of mastery.
Misconceptions Addressed¶
- A heading needs no space after the hash characters.
- A list item needs no space after the marker.
- A table works without a separator row.
- Quotation marks or single quotes make code.
References¶
- Chapter 5: Markdown and Version Control - the section "Markdown" defines the syntax rules this MicroSim practices.
- CommonMark Specification - the rules the rendered previews follow.
- GitHub Flavored Markdown Specification - the table extension used for item 7.