Export block HTML
tags: export-block html
Description/Summary
This HTML Export Block will also get exported for Hugo exports, verbatim. And Markdown emphasis characters like *, ` and _ will not escaped in here. From ox-hugo Issue #154, we see an actual case of where that * will need to remain unescaped: # Org source #+begin_export html <div> <script type="text/javascript"> var a = 3; var b = 2*a; </script> </div> #+end_export #+begin_export html blocks with script tag # ox-hugo Issue #369
Content
This HTML Export Block will also get exported for Hugo exports,
verbatim
.
And Markdown emphasis characters like *, ` and _ will not escaped in here.
From ox-hugo
Issue #154, we see an actual case of where that *
will need to remain unescaped:
# Org source
#+begin_export html
<div>
<script type="text/javascript">
var a = 3;
var b = 2*a;
</script>
</div>
#+end_export
#+begin_export html
blocks with script tag
#
ox-hugo
Issue #369
Check that src="https://example.com"
does not become
src="<https://example.com>"
.
- Note
- Below iframe/script will not work on this site because of the strict CSP. Anyways. this site is to test just the Markdown exported by ox-hugo. So please see “✱ Markdown source of this page” above.
#+begin_export html
<div class="glitch-embed-wrap" style="height: 420px; width: 100%;">
<iframe
src="https://glitch.com/embed/#!/embed/silken-football?path=app.py&previewSize=0&sidebarCollapsed=true"
title="silken-football on Glitch"
style="height: 100%; width: 100%; border: 0;">
</iframe>
</div>
#+end_export
To see the exported HTML #
See the Markdown source of this page to see the verbatim-inserted HTML.
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Export block HTML" | |
Title | "Export block HTML" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/export_block_html/" | |
RelPermalink | "/posts/export_block_html/" | |
Data |
| |
NextPage | Expiry date set using Org time stamp | |
PrevPage | Export block Hugo | |
NextInSection | Expiry date set using Org time stamp | |
PrevInSection | Export block Hugo |
Page Params (Debug)
Key | Type | Value |
---|---|---|
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2020-06-03 09:39:12 -0400 -0400 |
tags | []string | "export-block" "html" |
title | string | "Export block HTML" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "262069493cf58f9d1c1d9f26223274e8" |
BaseFileName | "export_block_html" |
TranslationBaseName | "export_block_html" |
Lang | "en" |
Section | "posts" |
LogicalName | "export_block_html.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/export_block_html.md" |