forked from github/pelican
rename summary references to formatted_fields
Since FORMATTED_FIELDS was introduced the variables are not specific to summary and contain other data as well.
This commit is contained in:
parent
661ee49eda
commit
554cde1a22
1 changed files with 4 additions and 5 deletions
|
|
@ -263,13 +263,12 @@ class MarkdownReader(BaseReader):
|
|||
for name, value in meta.items():
|
||||
name = name.lower()
|
||||
if name in formatted_fields:
|
||||
# handle summary metadata as markdown
|
||||
# summary metadata is special case and join all list values
|
||||
summary_values = "\n".join(value)
|
||||
# formatted metadata is special case and join all list values
|
||||
formatted_values = "\n".join(value)
|
||||
# reset the markdown instance to clear any state
|
||||
self._md.reset()
|
||||
summary = self._md.convert(summary_values)
|
||||
output[name] = self.process_metadata(name, summary)
|
||||
formatted = self._md.convert(formatted_values)
|
||||
output[name] = self.process_metadata(name, formatted)
|
||||
elif name in METADATA_PROCESSORS:
|
||||
if len(value) > 1:
|
||||
logger.warning(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue