Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dprint breaking doxygen style links #86

Open
mnil opened this issue Oct 4, 2023 · 0 comments
Open

dprint breaking doxygen style links #86

mnil opened this issue Oct 4, 2023 · 0 comments

Comments

@mnil
Copy link

mnil commented Oct 4, 2023

Describe the bug

dprint-plugin-markdown version: 0.16.1

We are using doxygen to generate html from .md. The @ref style links do not work if they are wrapped.

Input Code

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
[viverra](@ref mattis) elit, sit amet lacinia nibh lacinia ut.

Expected Output

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer
[viverra](@ref mattis) elit, sit amet lacinia nibh lacinia ut.

Actual Output

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer [viverra](@ref
mattis) elit, sit amet lacinia nibh lacinia ut.

with

{
  "lineWidth": 80,
  "newLineKind": "lf",
  "textWrap": "always",
}

I might be able to workaround this by replacing the space with another char before formatting and removing it afterwards but would be nice to hear your input on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant