Last active
January 6, 2017 03:24
-
-
Save shancarter/0c630c1acc9e63701d902e83b7ae812f to your computer and use it in GitHub Desktop.
Markup Language #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems like you'd need a general way to use named functions with inputs, while still defining the output text.