Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing duplicated methods #905

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Microdown/MicAnnotatedParagraphBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ MicAnnotatedParagraphBlock >> closeMe [
body := self inlineParse: body
]

{ #category : 'testing' }
{ #category : 'accessing' }
MicAnnotatedParagraphBlock >> defaultLabel [

^ #note
]

{ #category : 'testing' }
{ #category : 'initialization' }
MicAnnotatedParagraphBlock >> initialize [

super initialize.
validLabels := { #note. #important. #todo }
]

{ #category : 'testing' }
{ #category : 'accessing' }
MicAnnotatedParagraphBlock >> lineMarkup [

^ AnnotatedParagraphOpeningMarkup
Expand Down
8 changes: 4 additions & 4 deletions src/Microdown/MicEnvironmentBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,19 @@ MicEnvironmentBlock >> arguments [
^ arguments
]

{ #category : 'parse support' }
{ #category : 'accessing' }
MicEnvironmentBlock >> body [

^ String streamContents: [:s | self bodyElements do: [ :each | s nextPutAll: each substring ] ]
]

{ #category : 'parse support' }
{ #category : 'accessing' }
MicEnvironmentBlock >> bodyElements [

^ children
]

{ #category : 'parse support' }
{ #category : 'accessing' }
MicEnvironmentBlock >> bodyFromLine: line [

| newBlock |
Expand Down Expand Up @@ -176,7 +176,7 @@ MicEnvironmentBlock >> extractFirstLineFrom: aLine [
ifFalse: [ firstLine ]
]

{ #category : 'parse support' }
{ #category : 'initialization' }
MicEnvironmentBlock >> initialize [

super initialize.
Expand Down
6 changes: 3 additions & 3 deletions src/Microdown/MicInlineDelimiter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ MicInlineDelimiter class >> at: markup [
^ DelimiterDictionary at: markup ifAbsent: [ nil ]
]

{ #category : 'initialization' }
{ #category : 'class initialization' }
MicInlineDelimiter class >> initialize [

<script>
DelimiterDictionary := nil.
Regex := nil
]

{ #category : 'initialization' }
{ #category : 'class initialization' }
MicInlineDelimiter class >> initializeDelimiters [

self = MicInlineDelimiter ifFalse: [ ^ self ].
DelimiterDictionary := Dictionary new.
self allSubclasses do: [ :class | class initializeDelimiters ]
]

{ #category : 'initialization' }
{ #category : 'class initialization' }
MicInlineDelimiter class >> initializeRegex [

Regex := ((self all collect: [ :each | each markupAsRegex]) joinUsing: '|') asRegex
Expand Down
Loading