It works almost the same way as ox-html, but a little hack is add to get around a Hugo/Blackfriday limitation that Markdown text cannot be wrapped in HTML elements like div. Details: https://github.com/kaushalmodi/ox-hugo/issues/93. Fixes https://github.com/kaushalmodi/ox-hugo/issues/105.master
parent
745f458366
commit
a2e9396771
3 changed files with 168 additions and 0 deletions
@ -0,0 +1,86 @@ |
||||
+++ |
||||
title = "Special Blocks" |
||||
tags = ["special-block"] |
||||
draft = false |
||||
+++ |
||||
|
||||
## HTML5 Element Blocks {#html5-element-blocks} |
||||
|
||||
|
||||
### Block without NAME, class or id {#block-without-name-class-or-id} |
||||
|
||||
<article> |
||||
<article></article> |
||||
|
||||
This is _an article_. |
||||
|
||||
</article> |
||||
|
||||
|
||||
### Block with NAME {#block-with-name} |
||||
|
||||
<aside id="Aside A"> |
||||
<aside></aside> |
||||
|
||||
_Some_ **text** --- 1 |
||||
|
||||
| a | b | c | |
||||
|---|---|---| |
||||
| d | e | f | |
||||
|
||||
</aside> |
||||
|
||||
|
||||
### Block with class and id {#block-with-class-and-id} |
||||
|
||||
<section class="my-section" id="section-a"> |
||||
<section></section> |
||||
|
||||
_Some_ **text** --- 2 |
||||
|
||||
| g | h | i | |
||||
|---|---|---| |
||||
| j | k | l | |
||||
|
||||
</section> |
||||
|
||||
|
||||
## DIV-wrapped Blocks {#div-wrapped-blocks} |
||||
|
||||
|
||||
### DIV without NAME, class or id {#div-without-name-class-or-id} |
||||
|
||||
<div class="something"> |
||||
<div></div> |
||||
|
||||
This is _some text_ wrapped in a `div` block with class `something`. |
||||
|
||||
</div> |
||||
|
||||
|
||||
### DIV with NAME {#div-with-name} |
||||
|
||||
<div class="foo" id="Foo A"> |
||||
<div></div> |
||||
|
||||
_Some_ **text** --- 3 |
||||
|
||||
| m | n | o | |
||||
|---|---|---| |
||||
| p | q | r | |
||||
|
||||
</div> |
||||
|
||||
|
||||
### DIV with class and id {#div-with-class-and-id} |
||||
|
||||
<div class="my-bar bar" id="bar-a"> |
||||
<div></div> |
||||
|
||||
_Some_ **text** --- 4 |
||||
|
||||
| s | t | u | |
||||
|---|---|---| |
||||
| v | w | x | |
||||
|
||||
</div> |
||||
Loading…
Reference in new issue