Michael Hall

SVG Image

Welcome to my academic website


Markdown

Markdown Syntax Reference

markdown references


Overview

This document is a collection of helpful Markdown syntax I’ve gathered for writing Markdown documents. It’s intended to provide useful tips and tricks, and will continue to evolve over time. It will serve as a quick reference for finding Markdown syntax.

Quick Reference

Horizontal Spaces

Space TypeHTMLRendered Example
No spaceABC
Regular space(regular space)A B
Non-breaking space A B
Three non-breaking spaces   A   B
En space A B
Em space A B
Hair space A B
Thin space A B
Medium mathematical space A B
Four-Per-Em space A B
Six-Per-Em space A B
Figure space 1 2
Punctuation space A B
Narrow no-break space A B
Zero width space​A​B
CSS margin space<span style="margin-left: 50px;"></span>AB
CSS width space<span style="display: inline-block; width: 2em;"/></span>AB

  • Note, using <span> to create space makes the space visible, but it doesn’t insert actual space characters.

Dashes

Dash TypeMarkdownHTMLRendered Output
Hyphen--
En dash&ndash;
Em dash&mdash;
Double hyphen--
Triple hyphen---

Depending on the engine, the double or triple hyphen may render as an En dash or Em dash.





Powered by Hugo and TatBan2.0 Theme | © Copyright Michael J. Hall | All rights reserved.

                Kudos        
MJH