Repackaging from GrafoscopioUtils
This commit is contained in:
parent
b48ad035da
commit
1d7e7ee3df
@ -1,5 +1,21 @@
|
|||||||
Extension { #name : #LeTextualSnippet }
|
Extension { #name : #LeTextualSnippet }
|
||||||
|
|
||||||
|
{ #category : #'*MiniDocs' }
|
||||||
|
LeTextualSnippet >> asMarkdown [
|
||||||
|
"Inspired by Alpine.js and Assembler CSS 'x-' properties, we are going to use
|
||||||
|
'st-' properties as a way to extend divs metadata regarding its contents."
|
||||||
|
| output |
|
||||||
|
output := '' writeStream.
|
||||||
|
output
|
||||||
|
nextPutAll: '<div st-class="', self class asString, '"'; lf;
|
||||||
|
nextPutAll: ' st-data="', (STON toString: self metadata), '">'; lf;
|
||||||
|
nextPutAll: self markdownCustomOpener;
|
||||||
|
nextPutAll: self contentAsString; lf;
|
||||||
|
nextPutAll: self markdownCustomCloser;
|
||||||
|
nextPutAll: '</div>'; lf; lf.
|
||||||
|
^ output contents
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LeTextualSnippet >> markdeepCustomCloser [
|
LeTextualSnippet >> markdeepCustomCloser [
|
||||||
^ ''
|
^ ''
|
||||||
|
Loading…
Reference in New Issue
Block a user