mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Handle list metadata as list of string in MarkdownReader
This commit is contained in:
parent
06080dd873
commit
22484983e9
3 changed files with 20 additions and 0 deletions
|
|
@ -2,6 +2,12 @@ Title: Article with markdown containing footnotes
|
|||
Date: 2012-10-31
|
||||
Modified: 2012-11-01
|
||||
Summary: Summary with **inline** markup *should* be supported.
|
||||
Multiline: Line Metadata should be handle properly.
|
||||
See syntax of Meta-Data extension of Python Markdown package:
|
||||
If a line is indented by 4 or more spaces,
|
||||
that line is assumed to be an additional line of the value
|
||||
for the previous keyword.
|
||||
A keyword may have as many lines as desired.
|
||||
|
||||
This is some content[^1] with some footnotes[^footnote]
|
||||
|
||||
|
|
|
|||
|
|
@ -214,6 +214,14 @@ class MdReaderTest(ReaderTest):
|
|||
'date': datetime.datetime(2012, 10, 31),
|
||||
'modified': datetime.datetime(2012, 11, 1),
|
||||
'slug': 'article-with-markdown-containing-footnotes',
|
||||
'multiline': [
|
||||
'Line Metadata should be handle properly.',
|
||||
'See syntax of Meta-Data extension of Python Markdown package:',
|
||||
'If a line is indented by 4 or more spaces,',
|
||||
'that line is assumed to be an additional line of the value',
|
||||
'for the previous keyword.',
|
||||
'A keyword may have as many lines as desired.',
|
||||
]
|
||||
}
|
||||
self.assertEqual(content, expected_content)
|
||||
for key, value in metadata.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue