From ee27d5356f3459a8d279e3d6b7eaf9d94668f530 Mon Sep 17 00:00:00 2001 From: Albert Ting Date: Mon, 9 Mar 2015 13:45:48 +0000 Subject: Bug 1130691: Support markdown tables r=dkl,a=glob --- template/en/default/pages/markdown.html.tmpl | 123 +++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) (limited to 'template/en') diff --git a/template/en/default/pages/markdown.html.tmpl b/template/en/default/pages/markdown.html.tmpl index 8b43f5f17..5b01ed43d 100644 --- a/template/en/default/pages/markdown.html.tmpl +++ b/template/en/default/pages/markdown.html.tmpl @@ -25,6 +25,8 @@
  • Code
  • Strikethroughs
  • Links
  • +
  • Tables
  • +
  • Definitions
  • Headers

    @@ -262,4 +264,125 @@

    +

    Tables

    + +Tables can be defined using these special syntax: + +
    
    +        |             |          Grouping           ||
    +        First Header  | Second Header | Third Header |
    +         ------------ | :-----------: | -----------: |
    +        Content       |          *Long Cell*        ||
    +        Content       |   **Cell**    |         Cell |
    +
    +        New section   |     More      |         Data |
    +        And more      |     More      |     **Data** |
    +
    + +

    which gets converted into:

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Grouping
    First HeaderSecond HeaderThird Header
    ContentLong Cell
    ContentCellCell
    New sectionMoreData
    And moreMoreData
    +
    + +

    The table rules are:

    + + + +

    Other notes:

    + + + +

    Definition Lists

    + +Definition lists uses this syntax: + +
    
    +        Apple
    +        :   Pomaceous fruit of plants of the genus Malus in
    +            the family Rosaceae.
    +        :   An american computer company.
    +
    +        Orange
    +        :   The fruit of an evergreen tree of the genus Citrus.
    +
    + +

    becomes:

    + +
    +
    +
    Apple
    +
    Pomaceous fruit of plants of the genus Malus in + the family Rosaceae.
    + +
    An american computer company.
    + +
    Orange
    +
    The fruit of an evergreen tree of the genus Citrus.
    +
    +
    + +

    You can have more than one term per definition by placing each term on a + separate line. Each definition starts with a colon, and you can have more than + one definition per term. You may optionally have a blank line between the last + term and the first definition.

    + +

    Definitions may contain other block level elements, such as lists, + blockquotes, or other definition lists.

    + [% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b