This commit is contained in:
parent
e36bcff4c3
commit
7f3450184d
@ -303,11 +303,12 @@ GrafoscopioNode >> demote [
|
||||
|
||||
{ #category : #exporting }
|
||||
GrafoscopioNode >> exportCodeBlockTo: aStream [
|
||||
"I convert the content of a node taged as 'código' (code) as pandoc markdown and put it Into aStream.
|
||||
"I convert the content of a node taged as 'código' (code) as pandoc markdown and put it
|
||||
into aStream.
|
||||
The code block is decorated with LaTeX commands for proper syntax highlighting using pygments.
|
||||
Pdf exportation requires the installation of pygments and minted package for latex"
|
||||
aStream nextPutAll: ('\begin{minted}{smalltalk}'); lf.
|
||||
aStream nextPutAll: (self body contents withInternetLineEndings); lf.
|
||||
aStream nextPutAll: (self body contents asString withInternetLineEndings); lf.
|
||||
aStream nextPutAll: '\end{minted}';lf;lf.
|
||||
^aStream contents
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user