Extension { #name : #LePictureSnippet } { #category : #'*MiniDocs' } LePictureSnippet >> asMarkdeep [ | output | output := WriteStream on: ''. output nextPutAll: self metadataDiv; nextPutAll: '![](', self urlString, ')'; nextPut: Character lf; nextPutAll: ''; nextPut: Character lf; nextPut: Character lf. ^ output contents ] { #category : #'*MiniDocs' } LePictureSnippet >> metadata [ ^ self optionAt: 'metadata' ifAbsentPut: [ self metadataInit ] ] { #category : #'*MiniDocs' } LePictureSnippet >> metadataDiv [ | output | output := WriteStream on: ''. output nextPutAll: '
'. ^ output. ] { #category : #'*MiniDocs' } LePictureSnippet >> metadataInit [ | surrogate | self parent ifNil: [ surrogate := nil] ifNotNil: [ surrogate := self parent uidString ]. ^ OrderedDictionary new at: 'id' put: self uidString; at: 'parent' put: surrogate; 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 ]