Commits

Chris Chambers  committed 900ba20

Render updates as markdown if they have malformed metadata

Currently they are rendered as markdown and also added to the
excerpt

  • Participants
  • Parent commits 5015820

Comments (0)

Files changed (1)

             
             match = matchupdate(section)
             if match:
-                interspersed += match.group('list') or ''
-                interspersed += MANGO_PLACEHOLDER + '\n'
                 update = renderupdate(self, match)
                 if update:
+                    interspersed += match.group('list') or ''
+                    interspersed += MANGO_PLACEHOLDER + '\n'
                     updates.append(update)
-                    continue
- 
+                else:
+                    interspersed += section
+                    logger.warning(
+                      'Failed to correctly render update block - malformed or insufficient metadata: %s'
+                      %section)
+                continue;
+
             if section:
                 interspersed += section
                 self._excerpt += self._convert(section) + '\n'