Recovering from unexplainable detached repository head.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-03-30 10:17:53 -05:00
parent 2ca24978bc
commit da4c9bf9c4
1 changed files with 11 additions and 0 deletions

View File

@ -61,6 +61,17 @@ Pandoc class >> extractImagesInUnixFor: aFileReference withFilter: aLuaFilter [
]
]
{ #category : #accessing }
Pandoc class >> htmlStringToMarkdown: aString [
OSSUnixSubprocess new
shellCommand: 'echo "', aString , '" | pandoc -f markdown -t html';
redirectStdout;
runAndWaitOnExitDo: [ :command :outString |
^ outString
].
]
{ #category : #converters }
Pandoc class >> htmlToMarkdown: inputFile [