Skip to content

Instantly share code, notes, and snippets.

@vdavez
Created June 10, 2014 16:22
Show Gist options
  • Save vdavez/7a8aa13c60aa97d85f94 to your computer and use it in GitHub Desktop.
Save vdavez/7a8aa13c60aa97d85f94 to your computer and use it in GitHub Desktop.
legalmd-gist
levels:
- form: "Section $x."
num: 1
- form: "($x)"
num: a
- form: ($x)
num: 1
enactment_clause: "Be it ordained by the People of the City and County of San Francisco:"
name: Legal Markdown
mustache: '[mustache powered-templating](http://mustache.github.io/)'

#Legal MarkdownJS

Type some markdown here to try it out. Legal citations become links.

See, e.g., 35 USC 112 and D.C. Official Code 2-531.

##Levels

l. |xref| Make nested lists ll. It's easy to do ll. Just add a lowercase l and a period . lll. Or many lll. You can even use cross references. Try adding a level before |xref| lll. Let your imagination run wild. l. So, woohoo!

##Templating

Oh yeah. Did I mention that you can use {{mustache}}? To use it, try setting some customization variables using the dropdown menu above.

<h1 id="legalmarkdownjs">Legal MarkdownJS</h1>
<p>Type some <em>markdown</em> here to try it out. Legal citations become links.</p>
<p>See, e.g., <a href='http://www.law.cornell.edu/uscode/text/35/112'>35 USC 112</a> and <a href='http://dccode.org/simple/sections/2-531.html'>D.C. Official Code 2-531</a>.</p>
<h2 id="levels">Levels</h2>
<p>Section 1. Make nested lists</p>
<p>(a) It's easy to do</p>
<p>(b) Just add a lowercase <code>l</code> and a period <code>.</code></p>
<p>(1) Or many</p>
<p>(2) You can even use cross references. Try adding a level before Section 1.</p>
<p>(3) Let your imagination run wild.</p>
<p>Section 2. So, woohoo!</p>
<h2 id="templating">Templating</h2>
<p>Oh yeah. Did I mention that you can use <a href="http:&#x2F;&#x2F;mustache.github.io&#x2F;">mustache powered-templating</a>? To use it, try setting some customization variables using the dropdown menu above.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment