2023-04-04 01:02:24 +00:00
|
|
|
Class {
|
|
|
|
#name : #PPCMEmphasize,
|
|
|
|
#superclass : #PPCMDelegateNode,
|
|
|
|
#category : #'PetitMarkdown-AST'
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #visiting }
|
|
|
|
PPCMEmphasize >> accept: visitor [
|
|
|
|
^ visitor visitEmphasize: self
|
|
|
|
]
|
2023-05-08 00:21:47 +00:00
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
PPCMEmphasize >> 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
|
|
|
|
]
|