Write markdown with legal citations on the left, get rendered markdown on the right. Oh, and the legal citations become links.
See the demo: https://adelevie.github.io/downlaw/
Add your favorite legal citation to the default text by editing build/app.js
.
Pull requests are welcome. File an issue if you have any questions.
- Clone the repo, cd into it
- Run
npm install
- Edit
src/app.jsx
, then rungulp
to transform it into a.js
file. - Open
index.html
in a browser.
Running gulp
does a few things:
- Transforms JSX into a Javascript
- Uses Browserify to make code usable on the client
- Minifies it
Check out the gulpfile
to see how all of this is done.
This is just a simple static website. At minimum, you just need index.html
exposed to a web server (e.g. any static hostic will suffice) and make sure it points to a copy of build/app.js
.
A very simple way to host this would be to fork the repo and create a gh-pages
branch:
$ git clone [email protected]:[YOUR_USERNAME]/downlaw.git
$ cd downlaw
$ git branch gh-pages
$ git checkout gh-pages
$ git push origin gh-pages
MIT.
(c) 2014 Alan deLevie.