lookatme.parser module

This module defines the parser for the markdown presentation file

class lookatme.parser.Parser(single_slide=False)[source]

Bases: object

A parser for markdown presentation files

parse(input_data) → Tuple[Dict[KT, VT], List[lookatme.slide.Slide], str][source]

Parse the provided input data into a Presentation object

Parameters:input_data (str) – The input markdown presentation to parse
parse_meta(input_data) → Tuple[AnyStr, Dict[KT, VT]][source]

Parse the PresentationMeta out of the input data

Parameters:input_data (str) – The input data string
Returns:tuple of (remaining_data, meta)
parse_slides(meta, input_data) → List[lookatme.slide.Slide][source]

Parse the Slide out of the input data

Parameters:
  • meta (dict) – The parsed meta values
  • input_data (str) – The input data string
Returns:

List[Slide]

class lookatme.parser.SlideIsolator[source]

Bases: object

create_slides(tokens, number) → List[lookatme.slide.Slide][source]
lookatme.parser.is_heading(token)[source]
lookatme.parser.is_hrule(token)[source]
lookatme.parser.md_to_tokens(md_text)[source]