Migrating to MiniDocs.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-07-26 17:28:16 -05:00
parent 3bfa6b633e
commit c0d1b7c0ff
1 changed files with 0 additions and 40 deletions

View File

@ -1,40 +0,0 @@
Extension { #name : #LeTextSnippet }
{ #category : #'*Grafoscopio-Utils-Core' }
LeTextSnippet >> contentFrom: markdeepDiv [
| sanitized |
sanitized := markdeepDiv contentString.
sanitized := sanitized allButFirst.
sanitized := sanitized allButLast.
self string: sanitized.
]
{ #category : #'*Grafoscopio-Utils-Core' }
LeTextSnippet >> metadata [
^ self optionAt: 'metadata' ifAbsentPut: [ self metadataInit ]
]
{ #category : #'*Grafoscopio-Utils-Core' }
LeTextSnippet >> metadataInit [
^ OrderedDictionary new
at: 'id' put: self uidString;
at: 'parent' put: self parentId;
at: 'created' put: self createTime asString;
at: 'modified' put: self latestEditTime asString;
at: 'creator' put: self createEmail asString;
at: 'modifier' put: self editEmail asString;
yourself
]
{ #category : #'*Grafoscopio-Utils-Core' }
LeTextSnippet >> options [
^ options
]
{ #category : #'*Grafoscopio-Utils-Core' }
LeTextSnippet >> parentId [
self parent ifNil: [ ^ self ].
^ self parent uidString.
]