Skip to content

Commit

Permalink
Merge pull request #916 from pillar-markup/915-LatexQuoteblock-should…
Browse files Browse the repository at this point in the history
…-not-use-verbatim

Fix 915.
  • Loading branch information
Ducasse authored Nov 3, 2024
2 parents 8ba1860 + b70b921 commit 2604363
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ MicAbstractLaTexWriterTest >> testParagraphWithNested [
{ #category : 'tests' }
MicAbstractLaTexWriterTest >> testQuote [

self parse: factory quoteSample andCheckWeGet: '\begin{verbatim}', newLine ,
self parse: factory quoteSample andCheckWeGet: newLine, '\begin{quote}', newLine ,
'Foo', newLine ,
'\end{verbatim}', newLine
'\end{quote}', newLine
]

{ #category : 'tests - figure/link' }
Expand Down
13 changes: 11 additions & 2 deletions src/Microdown-LaTeXExporter/MicLaTeXWriter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,20 @@ MicLaTeXWriter >> visitParagraph: aParagraph [

{ #category : 'blocks' }
MicLaTeXWriter >> visitQuote: aQuote [
canvas environment
"canvas environment
name: 'verbatim';
with: [ aQuote children do: [ :child |
self visit: child.
canvas newLine ] ]
canvas newLine ] ]"


canvas newLine.
canvas environment
name: 'quote';
with: [
aQuote children do: [ :each | each accept: self ].
canvas newLine.].

]

{ #category : 'blocks - inline' }
Expand Down

0 comments on commit 2604363

Please sign in to comment.