From c08e8b3bb873f67293967c020958fbebd915038d Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Wed, 7 Sep 2022 07:58:06 -0500 Subject: [PATCH] Improving defaults. --- src/MiniDocs/Markdeep.class.st | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MiniDocs/Markdeep.class.st b/src/MiniDocs/Markdeep.class.st index 6055494..6a667ab 100644 --- a/src/MiniDocs/Markdeep.class.st +++ b/src/MiniDocs/Markdeep.class.st @@ -88,7 +88,7 @@ Markdeep >> commentsSupport [ { #category : #accessing } Markdeep >> config [ - ^ config + ^ config ifNil: [ config := Dictionary new] ] { #category : #accessing } @@ -100,6 +100,7 @@ Markdeep >> config: aDictionary [ { #category : #'instance creation' } Markdeep >> contents [ | output | + self title ifNil: [ ^ self body ]. output := '' writeStream. output nextPutAll: self headContents; lf; lf;