From 22958707c64b2e6d08595e517e86c9fe61c2b72c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 29 Jan 2021 20:58:31 +0000 Subject: Don't parse contents of pre blocks --- README.html | 64 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 30 insertions(+), 34 deletions(-) diff --git a/README.html b/README.html index db825c2..a96b35c 100644 --- a/README.html +++ b/README.html @@ -5,13 +5,12 @@ Em is a limited hypertext markup language. It is similar to Markdown, but it has a few key advantages:

    -
  1. It is more readable. -
  2. It is simpler to parse. -
  3. There is not more than one way to do it (sorry Larry). -
  4. + 1. It is more readable. + 2. It is simpler to parse. + 3. There is *not* more than one way to do it (sorry Larry).

-Em takes plain-text readability seriously. You should be able to +Em takes plain-text readability seriously. You should be able to write em in a plain-text e-mail message without the recipient noticing.

@@ -21,17 +20,17 @@ for the benefits of em.

Syntax

Block-level formatting

-A single empty line always marks a block break. There is -no exception to this rule. The line is removed in the final output. +*A single empty line* always marks a block break. There is +no exception to this rule. The line is removed in the final output.

All blocks support inline formatting, except headings, preformatted blocks and terms in definition lists.

-One block cannot be put within another block. For example, +One block cannot be put within another block. For example, it is impossible to put a paragraph or a preformatted block -inside a list item. If you want paragraph lists, just use paragraphs: +inside a list item. If you want paragraph lists, just use paragraphs:

 1. Lorem ipsum dolor sit amet, consectetur adipiscing elit,
@@ -53,10 +52,10 @@ Headings begin and end with the same number of equal signs:
 

Lists

-Lists start with a single space. There are four types of lists: +Lists start with a single space. There are four types of lists:

-
  • This is an unordered list + - This is an unordered list - With two items 1. This is an ordered list @@ -64,43 +63,41 @@ Lists start with a single space. There are four types of lists: two lines this is: a definition list -
  • -
  • This is a reference list + [1] This is a reference list [2] With two items -
  • -Unordered and ordered lists can be nested. An additional space +Unordered and ordered lists can be nested. An additional space at the beginning of the line increases the item level by one:

    -
  • First level + - First level - Second level - First level -
  • -A reference list is a special type of list, unique to em. It is a +A reference list is a special type of list, unique to em. It is a type of footnote list, to which you can make inline referencess like this:

    -See footnote [1].
    +See footnote [1].
     

    -There is a special type of reference list item called a hyperlink -reference. It contains only a single word, without whitespace: +There is a special type of reference list item called a *hyperlink +reference*. It contains only a single word, without whitespace:

    + [1] http://example.com
     

    Hyperlink reference items are removed in the final output, but you can still reference them inline:

    -You can download the file here [1].
    +You can download the file here [1].
     

    Preformatted blocks

    @@ -123,37 +120,36 @@ This is another paragraph.

    Inline formatting

    -Italic, bold and teletype text is marked with the asterisk, +_Italic, bold and teletype text_ is marked with the asterisk, the underscore and the backtick, respectively:

    -Example of italic text.
    +Example of *italic* text.
     

    The marks are only valid in certain positions:

      -
    1. At word borders -
    2. After an opening parenthesis -
    3. Before any of .,:;?!) -
    4. Before a closing parenthesis any of .,:;?! -
    5. + 1. At word borders + 2. After an opening parenthesis + 3. Before any of `.,:;?!)` + 4. Before a closing parenthesis any of `.,:;?!`

    -Inline references are created with square brackets: +_Inline references_ are created with square brackets:

    -Example of an inline reference [12].
    +Example of an inline reference [12].
     

    They are valid in positions 1, 3 and 4.

    When referencing a hyperlink reference (see above), -the reference is replaced with a link. For example: +the reference is replaced with a link. For example:

    -It is available for download [1].
    +It is available for download [1].
     
      [1] v1.tgz
     
    @@ -166,5 +162,5 @@ translates into the following HTML:

    The default link text ("link") can be changed by setting -the linktext environment variable. +the `linktext` environment variable.

    -- cgit v1.2.3