Merge a833a6245b
This commit is contained in:
commit
c0f7ebe803
@ -11,11 +11,13 @@ LePharoSnippet >> contentAsStringCustomized [
|
|||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LePharoSnippet >> contentFrom: markdeepDiv [
|
LePharoSnippet >> contentFrom: markdeepDiv [
|
||||||
|
|
||||||
| sanitizedStringText metadata |
|
| sanitizedStringText metadata joinedText |
|
||||||
metadata := STON fromString: (markdeepDiv attributes at: 'st-data').
|
metadata := STON fromString: (markdeepDiv attributes at: 'st-data').
|
||||||
sanitizedStringText := markdeepDiv contentString lines reject: [ :line | line beginsWith: '~~~' ].
|
sanitizedStringText := markdeepDiv contentString lines.
|
||||||
sanitizedStringText := "(Character cr asString)" '' join: sanitizedStringText.
|
sanitizedStringText := sanitizedStringText copyFrom: 4 to: sanitizedStringText size -2.
|
||||||
self code: sanitizedStringText;
|
joinedText := '' writeStream.
|
||||||
|
sanitizedStringText do: [ :line | joinedText nextPutAll: line; nextPut: Character lf ].
|
||||||
|
self code: joinedText contents allButLast;
|
||||||
uid: (LeUID new uidString: (metadata at: 'id'));
|
uid: (LeUID new uidString: (metadata at: 'id'));
|
||||||
parent: (metadata at: 'parent');
|
parent: (metadata at: 'parent');
|
||||||
createTime: (LeTime new time: ((metadata at: 'created')asDateAndTime));
|
createTime: (LeTime new time: ((metadata at: 'created')asDateAndTime));
|
||||||
|
Loading…
Reference in New Issue
Block a user