asciidoc-0.1: test/asciidoctor/listing/basic-with-id-and-role.test
[#code.example]
----
echo -n "Please enter your name: "
read name
echo "Hello, $name!"
----
>>>
Document
{ docMeta =
Meta
{ docTitle = []
, docTitleAttributes = Nothing
, docAuthors = []
, docRevision = Nothing
, docAttributes = fromList [ ( "sectids" , "" ) ]
}
, docBlocks =
[ Block
Attr
( [] , fromList [ ( "id" , "code" ) , ( "role" , "example" ) ] )
Nothing
(Listing
Nothing
[ SourceLine "echo -n \"Please enter your name: \"" []
, SourceLine "read name" []
, SourceLine "echo \"Hello, $name!\"" []
])
]
}