Skip to content

Commit d4ff435

Browse files
author
Tom Clark
committed
Test three different ways to force GitHub to parse markdown within html
1 parent 964eaca commit d4ff435

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

pages/test.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,18 @@ If you clicked on the "Source (1)" `li` then you should see this:
5252
Package Management (3)
5353
Source
5454

55-
<section class="tutorial" data-facets='{"Operating System": "OS X", "Package Management": "Homebrew"}'>
55+
<div markdown="1" class="tutorial" data-facets='{"Operating System": "OS X", "Package Management": "Homebrew"}'>
56+
This is a `div` that's using `markdown="1"` to tell kramdown to render the inner content as markdown.
57+
5658
This is the tutorial written for _OS X_ and _Homebrew_.
57-
It has data attributes on the preceeding `hr` tag.
58-
</section>
59+
</div>
5960

6061
{::options parse_block_html="true" /}
6162

62-
<section class="tutorial" data-facets='{"Operating System": "OS X", "Package Management": "Macports"}'>
63+
<div class="tutorial" data-facets='{"Operating System": "OS X", "Package Management": "Macports"}'>
64+
This is a `div` that's using `{::options parse_block_html="true" /}` to tell kramdown to render the inner content as markdown.
65+
6366
This is the tutorial written for _OS X_ and _Source_.
64-
It has data attributes on a surrounding section tag (written in html).
65-
It uses kramdown's parse_block_html option to enable markdown processing within an html tag.
6667

6768
Here's some code:
6869

@@ -71,8 +72,10 @@ Here's some code:
7172
puts "Hello, World!"
7273

7374
Yay!
74-
</section>
75+
</div>
7576

7677
<section class="tutorial" data-facets='{"Operating System": "Ubuntu", "Package Management": "Source"}'>
78+
This is a `section` that's using `{::options parse_block_html="true" /}` to tell kramdown to render the inner content as markdown. It doubles as a test for kramdown's recognition of html5 elements.
79+
7780
This is the tutorial written for _Ubuntu_ and _Source_.
7881
</section>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy