Migrating Pandoc conversors.
This commit is contained in:
parent
ee80105f44
commit
e4d0880fea
@ -147,10 +147,11 @@ Pandoc class >> markdownToHtmlOnUnix: inputFile [
|
|||||||
outputFile := inputFile parent / (inputFile basenameWithoutExtension , '.html').
|
outputFile := inputFile parent / (inputFile basenameWithoutExtension , '.html').
|
||||||
outputFile ensureDelete.
|
outputFile ensureDelete.
|
||||||
outputFile ensureCreateFile.
|
outputFile ensureCreateFile.
|
||||||
^ GtSubprocessWithInMemoryOutput new
|
GtSubprocessWithInMemoryOutput new
|
||||||
shellCommand: 'pandoc -f markdown+startnum+task_lists --standalone -t html ', inputFile fullName, ' --output ', outputFile fullName;
|
shellCommand: 'pandoc -f markdown+startnum+task_lists --standalone -t html ', inputFile fullName, ' --output ', outputFile fullName;
|
||||||
runAndWait;
|
runAndWait;
|
||||||
stdout
|
stdout.
|
||||||
|
^ outputFile fullName.
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #converters }
|
{ #category : #converters }
|
||||||
|
Loading…
Reference in New Issue
Block a user