Skip to content

Instantly share code, notes, and snippets.

@susanBuck
Created March 8, 2024 16:28
Show Gist options
  • Save susanBuck/95324d692d692c03d6ad9c703a3f6bcd to your computer and use it in GitHub Desktop.
Save susanBuck/95324d692d692c03d6ad9c703a3f6bcd to your computer and use it in GitHub Desktop.
PSY1903 Markdown Example

Markdown 101

Basic text formatting

This text is bold - it must be important

This text is italicized; you should probably pay attention to it...

Here’s a link to learn about Psychopy...

Lists are created using asterisks or plus signs:

  • Item 1
  • Item 2
    • Items can be nested

Code formatting

Inline code can be styled using backticks like this: print(random_number)

Blocks of code can be formatted by surrounding them in "code fences", indicated by three backticks (```)

The starting code fence should include the language extension for the code being used. In the following example that's py for Python code.

Example code block:

print('Welcome to PSY1903!')

import random 

for _ in  range(4): 
	random_number = random.randint(1, 100) 
	print(random_number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment