Debugging image links with links in the description.
This commit is contained in:
parent
0c45ccb39e
commit
7dc0bdaac0
@ -32,7 +32,14 @@ XMLElement >> sanitizedContent [
|
||||
accept: CMBlockVisitor new.
|
||||
linkParserNodes := linkParser children first children.
|
||||
linkParserNodes size = 1
|
||||
ifTrue: [
|
||||
linkParserNodes first className = 'PPCMLink'
|
||||
ifTrue: [ sanitizedText := linkParserNodes first label text]
|
||||
ifFalse: [
|
||||
sanitizedText := (linkParserNodes first text splitOn: '](') first.
|
||||
sanitizedText := sanitizedText copyReplaceAll: '![' with: ''
|
||||
]
|
||||
]
|
||||
ifFalse: [
|
||||
sanitizedText := '' writeStream.
|
||||
linkParserNodes allButLast do: [:each |
|
||||
|
Loading…
Reference in New Issue
Block a user