Skip to content

Commit

Permalink
add a bit more to the sample, add some small style changes to fit a d…
Browse files Browse the repository at this point in the history
…ocument a bit better for h1s
  • Loading branch information
jmoiron committed Mar 15, 2012
1 parent 8c8fb55 commit 7f8b3d6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions redtape/assets/basic.jinja
Expand Up @@ -17,6 +17,7 @@
<link href="{{ stylesheet }}" rel="stylesheet">
{% endfor %}
{%- endif %}
<style>.container { width: 740px; margin-top: 2em; } h1 { margin-bottom: 12px; }</style>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
Expand Down
27 changes: 27 additions & 0 deletions sample.md
@@ -1,11 +1,38 @@
# Sample Document

Here is a line
Here's another line in the same paragraph.

## Code

This is a fenced codeblock:

```js
var foo;
function bar() { console.log("Hello, world!"); }
```

Or something better:

```python
#!/usr/bin/env python

from redtape import script

def main():
script.main()

if __name__ == '__main__':
main()
```

We can highlight it in a number of ways.

<span style="display: block;" class="alert alert-info">We can even include HTML markup, since markdown allows it! This has the added
benefit of working quite well and being pretty awesome. As you can see, we can
use all of twitter bootstrap's classes in here. Fortunately, [links](http://twitter.com) work
inside spans, so use spans with `style="display: block;"` to have markdown
syntax inside block elements.
</span>

Unfortunately, while we're inside other markup, simple markdown stuff like [a link](http://google.com) won't function. Would be nice if it did though.

0 comments on commit 7f8b3d6

Please sign in to comment.