Skip to content

Instantly share code, notes, and snippets.

@shancarter
Last active January 6, 2017 03:24
Show Gist options
  • Save shancarter/0c630c1acc9e63701d902e83b7ae812f to your computer and use it in GitHub Desktop.
Save shancarter/0c630c1acc9e63701d902e83b7ae812f to your computer and use it in GitHub Desktop.
Markup Language #15
h1> This is a Head
h2> This is h2
p> this is a p
p> this is another one
p> It's just like html with significant whitespace.
p> what about {b>inline} tags?
p> And that's about it, although it would allow you to do more complicated stuff.
h2> More Complicated Stuff
p.foo> You can add classes to elements.
div>
p> You can also nest content.
p> This is a child paragraph.
p> This is another child paragraph.
p> Back to the parent context.
p> What about if you want to {a[href=http://google.com]>link} to stuff?
p> Want to do a list?
ul>
li> first item
li> second item
p#id.class> You can add an id as well as a class.
input[type=checkbox][checked]> Attributes are cool too.
h2> Comments
p> Obviously, comments would be allowed. //This would not be in the output.
//Neither would this line.
@shancarter
Copy link
Author

shancarter commented Jan 5, 2017

Seems like you'd need a general way to use named functions with inputs, while still defining the output text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment