forked from github/pelican
include html comments properly in reader
This commit is contained in:
parent
cc1988fbda
commit
0373c15e43
3 changed files with 36 additions and 9 deletions
|
|
@ -190,6 +190,8 @@ class HTMLReader(Reader):
|
|||
def handle_comment(self, data):
|
||||
if self._in_body and data.strip() == 'PELICAN_END_SUMMARY':
|
||||
self.metadata['summary'] = self._data_buffer
|
||||
else:
|
||||
self._data_buffer += '<!--{}-->'.format(data)
|
||||
|
||||
def handle_data(self, data):
|
||||
self._data_buffer += data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue