Implementing page "semantic splitters".
This commit is contained in:
parent
629a9e32ca
commit
0ce6b89b6c
@ -1,5 +1,17 @@
|
||||
Extension { #name : #ByteString }
|
||||
|
||||
{ #category : #'*MiniDocs' }
|
||||
ByteString >> admonitionStartingLines [
|
||||
| admonitions response |
|
||||
admonitions := #('info' 'success' 'warning' 'danger') collect: [ :each | ':::', each ].
|
||||
response := OrderedDictionary new.
|
||||
self lines doWithIndex: [:line :index |
|
||||
(admonitions includes: line trimBoth)
|
||||
ifTrue: [ response at: index put: line trimBoth ]
|
||||
].
|
||||
^ response
|
||||
]
|
||||
|
||||
{ #category : #'*MiniDocs' }
|
||||
ByteString >> email [
|
||||
"Quick fix for importing Lepiter pages that have a plain ByteString field as email."
|
||||
|
Loading…
Reference in New Issue
Block a user