Passing to taskit shell some usage of pandoc

This commit is contained in:
SantiagoBragagnolo 2020-02-22 16:00:17 +00:00
parent 535cd75faa
commit 68fbf1c955
2 changed files with 7 additions and 7 deletions

View File

@ -159,7 +159,7 @@ GrafoscopioDocumentation >> registerIntoDockingBar [
metadata ifNotNil: [
metadata
at: 'showOnHelp'
ifPresent: [ GrafoscopioDockingBar addToHelpMenu: currentNotebook ] ] ]
ifPresent: [ self error:' missing class grafoscopio docking bar' "GrafoscopioDockingBar addToHelpMenu: currentNotebook" ] ] ]
]
{ #category : #accessing }

View File

@ -84,14 +84,14 @@ Pandoc class >> htmlToMarkdown: inputFile [
{ #category : #'as yet unclassified' }
Pandoc class >> listImagesFrom: aFileReference [
"I provide a list of all images contained in aFile."
| filter commandString outputString |
filter := FileLocator temp asFileReference / 'image-links.lua'.
filter exists ifFalse: [ self downloadLuaFilters ].
commandString := 'pandoc ', aFileReference fullName, ' --lua-filter=',filter fullName.
Smalltalk platformName = 'unix'
ifTrue: [ ^ self extractImagesInUnixFor: aFileReference withFilter: filter ].
Smalltalk platformName = 'Win32'
ifTrue: [ self ].
filter exists
ifFalse: [ self downloadLuaFilters ].
commandString := 'pandoc ' , aFileReference fullName
, ' --lua-filter=' , filter fullName.
^ self extractImagesInUnixFor: aFileReference withFilter: filter
]
{ #category : #utility }