Indented source block
tags: src-block
Description/Summary
Test that indented source blocks export fine. (defun small-shell () (interactive) (split-window-vertically) (other-window 1) (shrink-window (- (window-height) 12)) (ansi-term)) More tests! List item 1 (message "I am in list at level-1 indentation") List item 1.1 (message "I am in list at level-2 indentation") List item 1.1.1 (message "I am in list at level-3 indentation") List item 2.1 (message "I am in list back at level-2 indentation") List item 2
Content
Test that indented source blocks export fine.
(defun small-shell ()
(interactive)
(split-window-vertically)
(other-window 1)
(shrink-window (- (window-height) 12))
(ansi-term))
More tests!
-
List item 1
(message "I am in list at level-1 indentation")
-
List item 1.1
(message "I am in list at level-2 indentation")
-
List item 1.1.1
(message "I am in list at level-3 indentation")
-
-
List item 2.1
(message "I am in list back at level-2 indentation")
-
-
List item 2
(message "I am in list back at level-1 indentation")
(message "And now I am at level-0 indentation")
Reference – hugo#4006
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Indented source block" | |
Title | "Indented source block" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/source-block-indented/" | |
RelPermalink | "/posts/source-block-indented/" | |
Data |
| |
NextPage | Image with Hugo figure shortcode parameters set using ATTR_HTML | |
PrevPage | Inheriting tags | |
NextInSection | Image with Hugo figure shortcode parameters set using ATTR_HTML | |
PrevInSection | Inheriting tags |
Page Params (Debug)
maps.Params{"draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "tags":[]string{"src-block"}, "title":"Indented source block"} (type:maps.Params) |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "fea1fa81e4c53d84cef5fc4eb01f2b40" |
BaseFileName | "source-block-indented" |
TranslationBaseName | "source-block-indented" |
Lang | "en" |
Section | "posts" |
LogicalName | "source-block-indented.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/source-block-indented.md" |