Skip to content

[Feature Request] code blocks in imported ePUB files #216

@jokeyrhyme

Description

@jokeyrhyme

Checklist

  • This issue contains only one feature request. I will open one issue for every feature I want to request.
  • I checked, but didn't find any duplicates (open OR closed) of this issue in the repo.
  • This feature is merely an UI/UX update.
  • This feature is not going to conflict with many of the existing features/options.

Is your feature request related to a problem? Please describe.

I mostly read programmer books which tend to have code blocks (I'm not sure what the ePUB standard says, but I'm guessing it's something like <code>let ABC = 123;</code>)

In print form, and in some other eBook readers, these blocks would use a monospace font

I noticed in Myne that they do not e.g. go to the Hello World chapter in this ePUB that can be dowblaoded here: https://golang-for-python-programmers.readthedocs.io/en/latest/about.html#resources

Describe the solution you'd like

I'd love for Myne to use a monospace font to render the contents of these blocks, and it might also be necessary to preserve white space (for indented code as intended by the author)

How will you/everyone benefit from this feature?

I believe this would help Myne users read and enjoy any content that makes use of code blocks

Additional context

Thanks so much for sharing the project! <3

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions