Skip to content

feat: optional stdout decoding #350

@0xlasm

Description

@0xlasm

Please allow us to convert text (e.g. markdown) to PDF format using convert_text function with the outputfile parameter set to "-" (stdout).

try:
    stdout = stdout.decode('utf-8')
except UnicodeDecodeError:
    # this shouldn't happen: pandoc more or less guarantees that the output is utf-8!
    raise RuntimeError('Pandoc output was not utf-8.')

Currently the function raises the UnicodeDecodeError exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions