Skip to content

Conversation

@moufort
Copy link
Contributor

@moufort moufort commented Aug 14, 2024

Issue #845
I add valid label and a default label. If the label is not a valid label, then we use the default label

self assert: result trimBoth equals: '<h1>This is a title</h1>', newLine ,
'<section id="LabelOfAnnotatedBlock"><label for="LabelOfAnnotatedBlock">Body of annotated block</label></section>', newLine ,
'<p>this is another string</p>'.
self
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me it looks strange to create a heading 1 for a note.
Why did you suggest this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And we can let it for now and see later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test with h1 already exist when I have adding the verifiedLabels. I only correct the test for let him pass green

MicAnnotatedParagraph >> initialize [

super initialize.
validLabel := { #note . #important . #todo }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use plurals eg validLabels
Tx

@Ducasse
Copy link
Contributor

Ducasse commented Aug 16, 2024

Thanks for the explanation.

@Ducasse Ducasse merged commit ab4caf2 into pillar-markup:dev Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants