<?xml version='1.0' encoding='utf-8'?>
<snippets language="mallard">
  <snippet>
    <text><![CDATA[<page xmlns="http://projectmallard.org/1.0/"
      type="${1:topic}" style="${2:task}"
      id="${3:id}">

<info>
    <desc>${4:Short description}</desc>
    <revision pkgversion="${5:program_version}" version="${6:document_version}" date="$<7: import datetime as d; return d.date.isoformat(d.date.today())>" status="${8:incomplete}"/>
    <credit type="author">
      <name>$<9:
import pwd, os
try:
    return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0]
except KeyError:
    return 'Joe Example' ></name>
      <email>$<10:
import os
return os.getenv('EMAIL', 'joe@example.com') ></email>
    </credit>
</info>

$0

</page>]]></text>
    <tag>page</tag>
    <description>page</description>
  </snippet>
  <snippet>
    <text><![CDATA[<steps>
    <item><p>$1</p></item>
    $2
</steps>
$0]]></text>
    <tag>steps</tag>
    <description>steps</description>
  </snippet>
  <snippet>
    <text><![CDATA[<list>
    <item><p>$1</p></item>
    $2
</list>
$0]]></text>
    <tag>list</tag>
    <description>list</description>
  </snippet>
  <snippet>
    <text><![CDATA[<terms>
    <item><p>$1</p></item>
    $2
</terms>
$0]]></text>
    <tag>terms</tag>
    <description>terms</description>
  </snippet>
  <snippet>
    <text><![CDATA[<p>$1</p>]]></text>
    <tag>p</tag>
    <description>paragraph</description>
  </snippet>
  <snippet>
    <text><![CDATA[<figure>
    <title>${1:Image title}</title>
    <desc>$2</desc>
    <media type="image" mime="image/png" src="${3:path/to/image}"/>
</figure>$0]]></text>
    <tag>figure</tag>
    <description>figure</description>
  </snippet>
  <snippet>
    <text><![CDATA[<item><p>$1</p></item>
$0]]></text>
    <tag>item</tag>
    <description>item</description>
  </snippet>
  <snippet>
    <text><![CDATA[<section>
    <title>$1</title>
    <p>$2</p>
</section>
$0]]></text>
    <tag>section</tag>
    <description>section</description>
  </snippet>
  <snippet>
    <text><![CDATA[<link type="${1:seealso}" xref="$2"/>
$0]]></text>
    <tag>link</tag>
    <description>link</description>
  </snippet>
  <snippet>
    <text><![CDATA[<link href="$1">${2:$GEDIT_SELECTED_TEXT}</link>]]></text>
    <accelerator><![CDATA[<Control>l]]></accelerator>
    <description>Wrap selection as link</description>
  </snippet>
  <snippet>
    <text><![CDATA[<item><p>${1:$GEDIT_SELECTED_TEXT}</p></item>]]></text>
    <accelerator><![CDATA[<Control>i]]></accelerator>
    <description>Wrap selection as list item</description>
  </snippet>
</snippets>
