Converting PubPub image links to Markdeep and cleaning debugging code.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-10-27 07:15:02 -05:00
parent 381257e55c
commit 77404b9b31
1 changed files with 13 additions and 5 deletions

View File

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