|
|
QotD |
"To be or not to be" – Shakespeare
|
|
|
|
Code example for subset of Pillar syntax
Last updated at 8:28 pm UTC on 2 September 2017
myPillarSource := '
! Header 1
!! Header 2
!!! Header 3 - Lists
- Unordered List item A
- Unordered List item B
Ordered list
# flour
# yeast
# salt
!! Links
!!! External link
*Google>http://google.com*
!!! Picture/Image
+Caption>file://image.png+
+Caption>file://image.png|label=label+
+Caption>file://image.png|width=50|label=label+
!!Code
[[[
Pdic collection
]]]
'.
myPillarDOM := PRPillarParser parse: myPillarSource.
myPillarDOM inspect.
(PRHTMLWriter write: myPillarDOM) contents