Implementing page "semantic splitters".

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-11-02 17:38:12 -05:00
parent 629a9e32ca
commit 0ce6b89b6c

View File

@ -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."