.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Mar 05, 2024 19:24 UTC.


This page was created/modified in commit f8e26aa "Add test for iframe src within an HTML export block" on 2020-06-03.
Markdown source of this page

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 VariableValue
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
page.Data{} (type:page.Data)
NextPageExpiry date set using Org time stamp
PrevPageExport block Hugo
NextInSectionExpiry date set using Org time stamp
PrevInSectionExport block Hugo

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2020-06-03 09:39:12 -0400 -0400
tags[]string "export-block" "html"
titlestring "Export block HTML"

File Object (Debug)

FileInfo VariableValue
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"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]