Skip to content

Adding image support #971

@3rd

Description

@3rd

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

Hey, I'm working on a hacky way to add (some) image support to Neovim, and I'm trying to write integration for Neorg. Looking at the spec and #14, I assume a simple query for a macro matching .image https://url would be enough, but I've hit the following problem.

URLs seem to be broken apart when inside a (tag_parameters (param)) and there's also an error in the tree:
image

What works:

  • .image test.png

What doesn't work:

  • .image https://example.com/test.png
  • .image /tmp/test.png
  • .image ./test.png

Thank you!

Help

Yes

Implementation help

I need help with figuring out how to retrieve the images and their target position from a Norg document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssues related to feature proposals. Please attach a module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions