Skip to content

Commit

Permalink
Merge pull request #905 from pillar-markup/FixingDuplicatedMethods
Browse files Browse the repository at this point in the history
Fixing duplicated methods
  • Loading branch information
Ducasse authored Oct 28, 2024
2 parents ce38763 + aa249ef commit 8f1f7df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
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

0 comments on commit 8f1f7df

Please sign in to comment.