Skip to content

{ref}link <target> syntax doesn't work if broken with a newline #169

Closed

Description

@asmeurer

For example

{ref}`Name <target>`

works, but

{ref}`Name
<target>`

does not. It just produces

{ref}Name <target>

in the resulting document.

This is annoying because I typically text wrap my Markdown in my editor to 80 characters, and this happens automatically on spaces. Virtually every other Markdown syntax works when broken along newlines, so this is presumably just an oversight.

Activity

  1. added
    bug
    on Jun 17, 2020
  2. chrisjsewell commented on Jun 17, 2020

    @chrisjsewell
    Member
  3. asmeurer commented on Jun 26, 2020

    @asmeurer
    ContributorAuthor

    I think I was trying to use a more specific autodoc thing like func instead of ref so I had to use the {ref} syntax.

  4. chrisjsewell commented on Jun 26, 2020

    @chrisjsewell
    Member

    I think I was trying to use a more specific autodoc thing like func instead of ref so I had to use the {ref} syntax.

    [Name](target) should still work though if the target is a func, since it uses the any role logic to look through all referencable objects

  5. asmeurer commented on Jun 26, 2020

    @asmeurer
    ContributorAuthor

    I guess it does work for the example in my docs. In general though, you sometimes have to specify the type if there is an ambiguity with any.

  6. chrisjsewell commented on Jun 26, 2020

    @chrisjsewell
    Member

    I guess it does work for the example in my docs. In general though, you sometimes have to specify the type if there is an ambiguity with any.

    True

  7. added
    enhancement
    and removed
    bug
    on Jul 20, 2020
  8. added
    wontfix
    upstream
    and removed
    enhancement
    on Aug 25, 2020
  9. webknjaz commented on Nov 30, 2021

    @webknjaz
    Contributor

    I've filed #448 (now closed) when I failed to find this issue. Just wanted to let you know that this is still broken. And yes, I also line-wrap text files for similar reasons. The use-case is pretty valid.

  10. chrisjsewell commented on Dec 2, 2021

    @chrisjsewell
    Member

    Heya, will be fixed with executablebooks/mdit-py-plugins#32

  11. removed
    wontfix
    on Dec 2, 2021
  12. added a commit that references this issue on Dec 3, 2021
    ef4ccd3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions