Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a bit more to the sample, add some small style changes to fit a d…
…ocument a bit better for h1s
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |