diff --git a/src/MiniDocs/Pandoc.class.st b/src/MiniDocs/Pandoc.class.st index 34cda62..192ba51 100644 --- a/src/MiniDocs/Pandoc.class.st +++ b/src/MiniDocs/Pandoc.class.st @@ -147,17 +147,10 @@ Pandoc class >> markdownToHtmlOnUnix: inputFile [ outputFile := inputFile parent / (inputFile basenameWithoutExtension , '.html'). outputFile ensureDelete. outputFile ensureCreateFile. - OSSUnixSubprocess new - command: 'pandoc'; - arguments: {'-f'. 'markdown+startnum+task_lists'. '--standalone'. '-t'. 'html'. inputFile fullName. - '--output'. outputFile fullName }; - redirectStdout; - redirectStderr; - runAndWaitOnExitDo: [ :process :outString :errString | - process isSuccess - ifTrue: [ ^ outputFile ] - ifFalse: [ ^ inputFile ] - ] + ^ GtSubprocessWithInMemoryOutput new + shellCommand: 'pandoc -f markdown+startnum+task_lists --standalone -t html ', inputFile fullName, ' --output ', outputFile fullName; + runAndWait; + stdout ] { #category : #converters }