Markdown Cheat Sheet

I’ve added a Markdown engine to this site, making it much easier for me to write posts. Since I’ve customized the engine slightly and plan to add new features over time, I’ve also put together a cheat sheet covering the main syntax.

Headings

Heading level 1

Heading level 2

Heading level 3

Heading level 4

Heading level 5
Heading level 6

Emphasis

Italic
Bold
Bold and Italic
This text is crossed out

Blockquotes (with Multiple Paragraphs)

This is the first paragraph.

This is the second paragraph, which is a bit longer.

Lists

  1. First item
  2. Second item
  3. Third item
  4. Fourth item

  • First item
  • Second item
  • Third item
  • Fourth item

Tables

Version Date Status
Python 2 October 16, 2000
Python 3 December 3, 2008
Python 4

Horizontal Rule


Inline Code

Here is an example of Python’s walrus operator: n := len(get_data()). Do you like it or hate it?

Code Block

def markdown_text(text,):
    markdown = mistune.create_markdown(
        escape=True,
        hard_wrap=True,
        renderer=CustomRenderer(),
        plugins=[
            "strikethrough",
            "url",
            "table"
        ]
    )
    return markdown(text)

Youtube Video (embed)

This absolutely amazing short animation by Nata Metlukh (notofagus.com) truly speaks to me, as I’ve been living abroad since 2017.

Images

This is one of the illustrations I created before transitioning into the tech industry.
This is one of the illustrations I created before transitioning into the tech industry.

The [alt] attribute serves as both alt text and as the image description displayed underneath the image.

Image rendering options:

![alt](https://image.jpg)        # <!-- Full Size -->
![alt](https://image.jpg "xs")   # <!-- Max Width 200px -->
![alt](https://image.jpg "s")    # <!-- Max Width 300px -->
![alt](https://image.jpg "m")    # <!-- Max Width 400px -->
![alt](https://image.jpg "l")    # <!-- Max Width 500px -->
![alt](https://image.jpg "xl")   # <!-- Max Width 600px -->
Comments (0)

No comments yet. Be the first to comment!