Better default for authors. authorsString needs to be refactored.
This commit is contained in:
parent
b4f2564f67
commit
e7f2910a51
@ -39,14 +39,15 @@ Markdeep >> asMarkdown [
|
||||
|
||||
{ #category : #'instance creation' }
|
||||
Markdeep >> authors [
|
||||
self metadata at: 'authors' ifPresent: [:k | ^ '**', k, '**' ] ifAbsentPut: [ Dictionary new ].
|
||||
^ ''.
|
||||
self metadata at: 'authors' ifAbsentPut: [ Dictionary new ].
|
||||
"self metadata at: 'authors' ifNotEmpty: [:k | ^ '**', k, '**' ]
|
||||
" ^ ''.
|
||||
]
|
||||
|
||||
{ #category : #'instance creation' }
|
||||
Markdeep >> authorsString [
|
||||
self authors
|
||||
ifNil: [ ^ '' ] ifNotNil: [ ^ ' ', self authors ]
|
||||
ifEmpty: [ ^ '' ] ifNotEmpty: [ ^ ' ', self authors ]
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
|
Loading…
Reference in New Issue
Block a user