Skip to content
Snippets Groups Projects
  • chrissi^'s avatar
    c941086b
    flamingo: Treat HTML-files as raw · c941086b
    chrissi^ authored
    Setting `HTML_PARSER_RAW_HTML = True` disables the intelligent parsing
    of HTML files in flamingo.
    In this mode the HTML parser uses Beautiful Soup to parse HTML conent
    files. The soup is used to extract the headline of the document and to
    alter the src-attributes of img-tags.
    
    There seems to be a bug in the behavior of BS4:
    https://github.com/pengutronix/flamingo/issues/15
    
    
    
    Without this parsing any images used in HTML contents need to be copied
    to the `static/`-directory instead of the `content/`-directory!
    
    Signed-off-by: default avatarChris Fiege <chris@tinyhost.de>
    c941086b
    History
    flamingo: Treat HTML-files as raw
    chrissi^ authored
    Setting `HTML_PARSER_RAW_HTML = True` disables the intelligent parsing
    of HTML files in flamingo.
    In this mode the HTML parser uses Beautiful Soup to parse HTML conent
    files. The soup is used to extract the headline of the document and to
    alter the src-attributes of img-tags.
    
    There seems to be a bug in the behavior of BS4:
    https://github.com/pengutronix/flamingo/issues/15
    
    
    
    Without this parsing any images used in HTML contents need to be copied
    to the `static/`-directory instead of the `content/`-directory!
    
    Signed-off-by: default avatarChris Fiege <chris@tinyhost.de>