Skip to content

Preformatted Markdown is split up (even when it doesn't contain spaces #825

Open
@louwers

Description

@louwers

Description

When using preformatted text, such as

`UIViewRepresentable`

the Markdown parser that DocC uses can split it up:

image

Checklist

  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue.

Expected Behavior

Do not split up preformatted text.

Actual behavior

Here is the code that is generated:

<p>To use MapLibre ... (using <code data-v-05f4a5b7="">UIView<wbr data-v-05f4a5b7="">Representable</code>. The...</p>

Steps To Reproduce

  1. Include pre-formatted text near the end of a line
  2. Watch it get split up!

Swift-DocC Version Information

No response

Swift Compiler Version Information

swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions