.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 May 27, 2022 19:44 UTC.


This page was created/modified in commit a2a1b2e "Update few tests with code fences and attributes" on 2022-02-24.
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 Cite Basic Example
NextInSectionOnly custom resource params
PrevInSectionOrg Cite Basic Example

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 2022-02-24 22:49:25 -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.99.1 (commit d524067382e60ce2a2248c3133a1b3af206b6ef1) . This site is powered by Netlify.
[Test Site home | ox-hugo home]