From 3d88725c97847914a1aae4954d96b68c0ef036f2 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 25 Apr 2019 14:52:57 +0300 Subject: [PATCH] Allow empty summary --- pandoc_reader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandoc_reader.py b/pandoc_reader.py index 504132b..acd072f 100644 --- a/pandoc_reader.py +++ b/pandoc_reader.py @@ -40,6 +40,9 @@ class PandocReader(BaseReader): name, value = k.lower(), parsed[k] metadata[name] = self.process_metadata(name, value) + if (not 'summary' in metadata) or (metadata['summary'] is None): + metadata['summary'] = '' + # Return the text entirely. content = "\n".join(text)