1.1 --- a/moinformat/parsers/moin.py Mon Feb 25 21:34:41 2019 +0100
1.2 +++ b/moinformat/parsers/moin.py Thu Feb 28 21:24:35 2019 +0100
1.3 @@ -123,6 +123,15 @@
1.4 macro = macro_cls(node, self.region)
1.5 macro.evaluate()
1.6
1.7 + # Metadata extraction.
1.8 +
1.9 + def update_metadata(self, metadata):
1.10 +
1.11 + "Update 'metadata' for the document."
1.12 +
1.13 + if self.headings:
1.14 + metadata.set("title", self.headings[0].text_content())
1.15 +
1.16 # Heading disambiguation.
1.17
1.18 def identify_headings(self):