Wrapping Org headings in HTML tags
tags: body wrapping headings section tags HTML
Description/Summary
Test the workaround for wrapping Org headings in HTML tags likesection
and div
.
Content
ox-hugo
Issue #160
Org Source #
#+html: <style>.left { float: left; width: 45%;} .right { float: right; width: 45%;}</style>
#+html: <section class="left">
# Hack to get around Blackfriday limitation: https://github.com/kaushalmodi/ox-hugo/issues/93
#+html: <section></section>
**** This section will show up on the left side
Content in the left side section
#+html: </section>
#+html: <section class="right">
#+html: <section></section>
**** This section will show up on the right side
Content in the right side section
#+html: </section>
# Clear the floats
#+html: <div style="clear: both;"></div>
Output #
This section will show up on the left side #
Content in the left side section
This section will show up on the right side #
Content in the right side section
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Wrapping Org headings in HTML tags" | |
Title | "Wrapping Org headings in HTML tags" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/wrapping-org-headings-in-html-tags/" | |
RelPermalink | "/posts/wrapping-org-headings-in-html-tags/" | |
Data |
| |
NextPage | Whitespace trimming around special blocks (corner cases) | |
PrevPage | None | |
NextInSection | Whitespace trimming around special blocks (corner cases) | |
PrevInSection | None |
Page Params (Debug)
Key | Type | Value |
---|---|---|
description | string | " Test the workaround for wrapping Org headings in HTML tags like\n `section` and `div`.\n " |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2018-05-08 16:24:40 -0400 -0400 |
tags | []string | "body" "wrapping" "headings" "section" "tags" "HTML" |
title | string | "Wrapping Org headings in HTML tags" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "1a0e78753038c7dd789db9cfd51e8b1d" |
BaseFileName | "wrapping-org-headings-in-html-tags" |
TranslationBaseName | "wrapping-org-headings-in-html-tags" |
Lang | "en" |
Section | "posts" |
LogicalName | "wrapping-org-headings-in-html-tags.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/wrapping-org-headings-in-html-tags.md" |