Extract the title from a .md file.
| 313 | |
| 314 | |
| 315 | class _GetMarkdownTitle(py_guide_parser.PyGuideParser): |
| 316 | """Extract the title from a .md file.""" |
| 317 | |
| 318 | def __init__(self): |
| 319 | self.title = None |
| 320 | py_guide_parser.PyGuideParser.__init__(self) |
| 321 | |
| 322 | def process_title(self, _, title): |
| 323 | if self.title is None: # only use the first title |
| 324 | self.title = title |
| 325 | |
| 326 | |
| 327 | class _DocInfo(object): |