2023-04-04 01:02:24 +00:00
|
|
|
Class {
|
|
|
|
#name : #PPCMHtmlBlock,
|
|
|
|
#superclass : #PPCMDelegateNode,
|
|
|
|
#category : #'PetitMarkdown-AST'
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #'as yet unclassified' }
|
|
|
|
PPCMHtmlBlock >> accept: visitor [
|
|
|
|
^ visitor visitHtmlBlock: self
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #'as yet unclassified' }
|
|
|
|
PPCMHtmlBlock >> isBlockLevel [
|
|
|
|
^ true
|
|
|
|
]
|
2023-05-08 00:21:47 +00:00
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
PPCMHtmlBlock >> viewBody [
|
|
|
|
| aText |
|
|
|
|
aText := (self className ,' ', self text) asRopedText.
|
|
|
|
|
|
|
|
self children do: [ :child |
|
|
|
|
aText append: ' ' asRopedText.
|
|
|
|
aText append: (child text asRopedText foreground:
|
|
|
|
BrGlamorousColors disabledButtonTextColor).
|
|
|
|
aText append: ('= "' asRopedText foreground:
|
|
|
|
BrGlamorousColors disabledButtonTextColor).
|
|
|
|
aText append: (child text asRopedText foreground:
|
|
|
|
BrGlamorousColors disabledButtonTextColor).
|
|
|
|
aText append:
|
|
|
|
('"' asRopedText foreground:
|
|
|
|
BrGlamorousColors disabledButtonTextColor)
|
|
|
|
].
|
|
|
|
|
|
|
|
|
|
|
|
^ aText
|
|
|
|
]
|