diff --git a/src/MiniDocs/Markdeep.class.st b/src/MiniDocs/Markdeep.class.st index 02cc183..09cb1cd 100644 --- a/src/MiniDocs/Markdeep.class.st +++ b/src/MiniDocs/Markdeep.class.st @@ -384,11 +384,6 @@ Markdeep >> pubPubFootnotesToMarkdeep [ nextPutAll: '[^', k, ']: '; nextPutAll: (v at: 'data-value'), String lf, String lf. ]. - "^ { 'links' -> parsedLinks . - 'footnotes' -> footnotes . - 'sanitized' -> sanitized . - 'footnotesRaw' -> self pubPubFootnotesText . - 'footnotesNew' -> cleanedFootnotesText contents } asDictionary." self body: (sanitized copyReplaceAll: self pubPubFootnotesText with: cleanedFootnotesText contents) ] @@ -397,6 +392,19 @@ Markdeep >> pubPubImageLinks [ ^ self selectPubPubLinksWithSize: 3 ] +{ #category : #accessing } +Markdeep >> pubPubImagesToMarkdeep [ + | sanitized parsedLinks | + + parsedLinks := self pubPubImageLinks. + parsedLinks ifEmpty: [ ^self ]. + sanitized := self body. + parsedLinks do: [:link | + sanitized := sanitized copyReplaceAll: '{', link third, '}' with: '' + ]. + self body: sanitized +] + { #category : #accessing } Markdeep >> pubPubRawLinks [ | parser |