Improved multiplatform support and adding more replacements for Latin characters.
This commit is contained in:
parent
d875029940
commit
5d68e79c2b
@ -141,6 +141,6 @@ Pandoc class >> markdownToHtmlOnUnix: inputFile [
|
||||
{ #category : #converters }
|
||||
Pandoc class >> markdownToHtmlOnWindows: inputFile [
|
||||
|
||||
|
||||
^ LibC resultOfCommand: 'pandoc -f markdown+startnum+task_lists -t html', inputFile fullName.
|
||||
"ToDo: This command still doesn't receive any arguments."
|
||||
^ (LibC resultOfCommand: 'pandoc ', inputFile fullName) correctAccentedCharacters.
|
||||
]
|
||||
|
@ -24,6 +24,9 @@ String >> correctAccentedCharacters [
|
||||
output := output copyReplaceAll: 'é' with: 'é'.
|
||||
output := output copyReplaceAll: 'Ã' with: 'í'.
|
||||
output := output copyReplaceAll: 'ú' with: 'ú'.
|
||||
output := output copyReplaceAll: 'ñ' with: 'ñ'.
|
||||
output := output copyReplaceAll: 'â' with: '“'.
|
||||
output := output copyReplaceAll: 'â' with: '”'.
|
||||
^ output
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user