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

Image placement markup #14

Open
andreadev-it opened this issue Mar 19, 2023 · 2 comments
Open

Image placement markup #14

andreadev-it opened this issue Mar 19, 2023 · 2 comments

Comments

@andreadev-it
Copy link

Hi, while looking at the spec, I couldn't find a way to place an image inside my norg file.
In markdown, it is done like this:

![alt text](./link/to/image.png)

Is the syntax allowing something like that? Because when exporting to markdown, pdf or other documents it is often needed...
I know that a lot of thought has been put into the specs, so this might have already be discussed, but how should we do it? Is it supported by the current spec?

@vhyrro
Copy link
Member

vhyrro commented Mar 19, 2023

Image placement is delegated to the currently undocumented macro feature set.

Its syntax looks like this:

.image /path/to/image.png

The implementation of the image macro is not documented anywhere yet though :p

@andreadev-it
Copy link
Author

Ah, that's very interesting. I might have misanderstood macros, since I thought that macros where basically a "shortcut" for other norg syntax, so that they would not be able to add something that wasn't possible to do otherwise.
The implementation of the image macro should be done with other norg syntax, right?

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

2 participants