Improved multiplatform support and adding more replacements for Latin characters.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2020-12-18 09:54:09 -08:00
parent d875029940
commit 5d68e79c2b
14 changed files with 1495 additions and 1492 deletions

View File

@ -141,6 +141,6 @@ Pandoc class >> markdownToHtmlOnUnix: inputFile [
{ #category : #converters } { #category : #converters }
Pandoc class >> markdownToHtmlOnWindows: inputFile [ Pandoc class >> markdownToHtmlOnWindows: inputFile [
"ToDo: This command still doesn't receive any arguments."
^ LibC resultOfCommand: 'pandoc -f markdown+startnum+task_lists -t html', inputFile fullName. ^ (LibC resultOfCommand: 'pandoc ', inputFile fullName) correctAccentedCharacters.
] ]

View File

@ -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 := output copyReplaceAll: 'ñ' with: 'ñ'.
output := output copyReplaceAll: '“' with: '“'.
output := output copyReplaceAll: '”' with: '”'.
^ output ^ output
] ]