Integrating all changes in image 0.8.690

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-07-15 18:35:05 -05:00
parent 43a9450122
commit d7cc181014
1 changed files with 2 additions and 2 deletions

View File

@ -34,12 +34,12 @@ WikiText >> convertMarkdownLinks [
markdownLinksRegex := '\[([\w|\s]+)\]\((\S+)\)'.
"For the explanation of the Regex details see: http://scottradcliff.com/how-to-parse-urls-in-markdown.html"
markdownLinks := self content regex: markdownLinksRegex matchesCollect: [:link | link ].
markdownLinks ifEmpty: [ ^ self ].
markdownLinks ifEmpty: [ ^ self content ].
markdownLinks do: [:markdownLink | | linkText closingLinkIndex newContent |
closingLinkIndex := markdownLink indexOf: $].
linkText := markdownLink copyFrom: 2 to: closingLinkIndex.
newContent := self content copyReplaceAll: markdownLink with: '[[', linkText, ']'.
self content: newContent.
].
^ self
^ self content
]