Skip to content

Commit 702fe0f

Browse files
authored
Merge pull request #860 from moufort/846-Annotated-HTML-exporter
Change html visitor and test for annotated paragraph
2 parents d5e808e + 1b34d1a commit 702fe0f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/Microdown-HTMLExporter-Tests/MicHTMLVisitorTest.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ this is another string'.
155155
assert: result trimBoth
156156
equals: '<h1>This is a title</h1>' , newLine
157157
,
158-
'<section id="note"><label for="note">Body of annotated block</label></section>'
158+
'<q id="note">Body of annotated block</q>'
159159
, newLine , '<p>this is another string</p>'
160160
]
161161

@@ -170,7 +170,7 @@ MicHTMLVisitorTest >> testCreateAnnotationSimple [
170170
self
171171
assert: result trimBoth
172172
equals:
173-
'<section id="note"><label for="note">Body of annotated block</label></section>'
173+
'<q id="note">Body of annotated block</q>'
174174
]
175175

176176
{ #category : 'tests' }

src/Microdown-HTMLExporter/MicHTMLVisitor.class.st

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,9 @@ MicHTMLVisitor >> visitAnnotated: anAnnotatedParagraph [
221221

222222
canvas newLine.
223223
canvas tag
224-
name: 'section';
224+
name: 'q';
225225
parameterAt: 'id' put: anAnnotatedParagraph label;
226-
with: [
227-
canvas tag
228-
name: 'label';
229-
parameterAt: 'for' put: anAnnotatedParagraph label;
230-
with: [ super visitAnnotated: anAnnotatedParagraph ] ].
226+
with: [ super visitAnnotated: anAnnotatedParagraph ].
231227
]
232228

233229
{ #category : 'visiting - inline elements' }

0 commit comments

Comments
 (0)