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)