Headings - PGML

From WeBWorK
Jump to: navigation, search

Headings in PGML

Heading are indicated by starting a line with hash marks (#). The number of hashes indicates the heading level. A top-level heading has one hash, the secondary headings have two, and so on. There are six levels of heading all together.

 # Heading size 1 #
 ## Heading size 2 ##
 ### Heading size 3 ###
 #### Heading size 4 ####
 ##### Heading size 5 #####
 ###### Heading size 6 ######

If a heading has several lines in your PG file, they will be combined in the output (and will break according to the space available on screen).

 ### Two separate lines ###
 ### are combined ###

If you want to force a line break in a heading, put two paces after the hashes where the break is to occur (they are marked as underscores in this example)

 ### End with two spaces ###__
 ### for two lines separately ###

You can make a whole paragraph be a heading: just put the hashes at the beginning and ending of the paragraph.

 ### A whole paragraph
 can be a heading ###

Actually, the trailing hashes are optional

 ### The trailing hashes are optional.

You can combine headings with indenting, centering, and other formatting:

 >> ## centered heading ## <<
 >> ## right-justified heading ##
 
     ## indented heading ##
 
 ## non-indented heading ##
follow us