-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support exporting Org Special Blocks like ox-html
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: #93. Fixes #105.
- Loading branch information
1 parent
745f458
commit a2e9396
Showing
3 changed files
with
168 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
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 |
---|---|---|
@@ -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> |