Skip to content

Configurable link rendering #184

@dosmanak

Description

@dosmanak

Relates to issue #3 Improve link pretty printing.

The markdown works with three kinds of links [pandoc docs](https://pandoc.org/MANUAL.html#links-1):
* automatic links just turn an url into clickable link <https://pandoc.org/MANUAL.html#automatic-links>
* [inline links](https://pandoc.org/MANUAL.html#inline-links) are written as part of text body
* [reference links][1]

[1]: https://pandoc.org/MANUAL.html#reference-links "Reference links title is shown on hover"

The markdown works with three kinds of links pandoc docs:

Patat uses ANSI terminal, so it must render the links verbatim. Yet many terminal emulators support OSC-8

I propose to make link rendering more configurable.

Automatic links can stay as is.

Inline and Reference links should be rendered inline using terminal hyperlink.

Reference links should be rendered in slide footer (current behavior) or in extra slide at the and of the presentation.

Or the rendering could be more configurable.

Perhaps some kind of patat config should control the behavior:

patat:
  links:
    inline: <footer|osc8|extraslide>
    reference: <footer|osc8|extraslide>

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