.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, 2020 14:18 UTC.


This page was created/modified in commit 0530645 "Support #+attr_html and #+attr_css above fixed width blocks" on 2020-01-22.
Markdown source of this page

Org Babel Results

tags: src-block babel results indentation example-block fixed-block


Description/Summary

Testing the export of Org Babel #+results: blocks with and without wrapping with HTML attributes.

Content

“Fixed block” Results block

Below also tests that the indentation in results blocks is preserved.

str = 'a\tbc'
print(str[1:])
	bc

The whitespace before “bc” in the results block above should be preserved.

“Fixed block” Results block with #+attr_html

str = 'd\tef'
print(str[1:])
	ef

Above results block will be in blue text.

“Example block” Results block

echo "abc\ndef\nghi\njkl\nmno\npqr\nstu\nvwx\nyz0\n123\n456\n789"
abc
def
ghi
jkl
mno
pqr
stu
vwx
yz0
123
456
789

“Example block” Results block with #+attr_html

echo "ABC\nDEF\nGHI\nJKL\nMNO\nPQR\nSTU\nVWX\nYZ0\n123\n456\n789"
ABC
DEF
GHI
JKL
MNO
PQR
STU
VWX
YZ0
123
456
789

Above results block will be in green text.


Page (Debug)

Page VariableValue
Name "Org Babel Results"
Title "Org Babel Results"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/org-babel-results/"
RelPermalink "/posts/org-babel-results/"
Data
page.Data{} (type:page.Data)
NextPageOnly custom resource params
PrevPageOrg Source Block via Pygments
NextInSectionOnly custom resource params
PrevInSectionOrg Source Block via Pygments

Page Params (Debug)

KeyTypeValue
descriptionstring " Testing the export of Org Babel `#+results:` blocks with and without\n wrapping with HTML attributes.\n "
draftbool false
iscjklanguagebool false
lastmodtime.Time 2020-01-22 15:49:33 -0500 -0500
tags[]string "src-block" "babel" "results" "indentation" "example-block" "fixed-block"
titlestring "Org Babel Results"

File Object (Debug)

FileInfo VariableValue
UniqueID "4ae40f629b086127df7a34f74b1b2ace"
BaseFileName "org-babel-results"
TranslationBaseName "org-babel-results"
Lang "en"
Section "posts"
LogicalName "org-babel-results.md"
Dir "posts/"
Ext "md"
Path "posts/org-babel-results.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.59.0-DEV (commit 5276f1e9, using Chroma commit 26f03cb) .
[Test Site home | ox-hugo home]