Umber
a course
managment
system

docs

Markup Syntax

You can edit umber pages using markdown and html with snips of LaTeX for math.

The rules are :

Below are examples of these rules.

And you can see the markup which created this page at markup.txt.

Plain Text

This is text on several lines which is wrapped into one paragraph. Whitespace is adjusted as needed.

And here is a second paragraph.

Block Quotes

This is a block    quote
in which   the whitespace is left unchanged.

Each line of a block quote starts with four spaces.

Links

Here's a link to the Marlboro College homepage.

Markdown files end in a ".md" extension which need not be given in in url. So this is a link to "this.md" in the current folder.

Clicking on a link to a file that doesn't exist yet will allow you to create that file if you have the rights to edit files in that folder.

As usual, urls can be absolute (i.e. http://amazon.com) or relative to the current folder (i.e. subfolder/file.html or ../parent).

The ~ character is used to indicate a course's home folder, so for example ~/home would be the url of a course's home page.

Pages may have attachments, which are placed in a corresponding folder. For a file "foo.md", its attachments would be put in "foo.attachments/".

Bullet Lists

This markup text

* one
* two
   * two and a half
* three

displays as

Leave a blank line before and after.

Starting each line with 1. gives a numbered list.

  1. one
  2. two
  3. three

Code Blocks

This markup

```python
def increment(x):
  """ add one to x """
  return x + 1
```

displays as this syntax highlighted code.

def increment(x):
  """ add one to x """
  return x + 1

Math LaTeX

Expressions on one line such as \( e^{-i\pi} \) should be placed with within backslash parens.

Equations on their own line are created with backslash brack or two dollar signs.

For example

\[ \sum_{n=1}^{\infty} \frac{1}{n} = \infty \]

and

$$ \frac{-b \pm \sqrt{b^2 - 4 a c}}{2 a} $$


You can see the plain text version of these examples at markup.txt.

https://cs.marlboro.college /cours /site /docs /markup
last modified Fri October 19 2018 1:28 am