UPDATE from SUPPORT / Help with Images & Assets Integrated with iA Writer and Typora

I would like to do this, but I’m not sure if it is possible or, if so, exactly how to go about it.

I want to create a single folder to keep all images and other assets for embedding in iA Writer. Then, I want to open up a document in Typora containing the image or asset originally embedded in iA Writer and have the image show up in both iA Writer and Typora when I go to preview and export. In other words, I want to insert the image or asset in iA Writer and have it show in Typora if I wish to use Typora to preview and export the document.

I ask because I get the impression that iA Writer uses a non-standard syntax for embedding images, but I may be wrong.

Is this possible? If so, what is the best approach to this?

Instead of content block it is possible to use

![The image for Testing](img/Test.png)

This allows for having a relative path to a folder img with the images.

Do note however in iA writer the text The image for Testing will be used as a caption, whereas in Typora this seems to be left absent.

2 Likes

If your main intention is to use Typora as an export tool, Marked 2 Additional Application Support
is worth a look.

1 Like

For me, Marked 2 shows the figure captions similar to iA Writer, for the example above.

Marked2 looks promising. According to one of the videos I watched, Marked will render iA Writer code blocks. I’m going to test Marked 2 for a while. If this works, I’ll have a very nice workflow setup for all plain text writing because I’ve integrated iA Writer <—>1Writer<—> Marked2 (potentially)<—>DEVONthink, enabling me to work with and manage plain text files in a variety of ways.

Thanks for the tip!

@nationalinterest for some reason I cannot get the image from iA Writer to show up in Marked 2. The Marked 2 site says:

iA Writer Just drag the file you’re working on (in Finder or from the title bar proxy icon) to Marked and you’re good to go with the latest versions of iA Writer. Marked even supports most of the /block include syntax from iA!

But as you can see, the image does not show up in Marked–right image:

What am I doing wrong?

I just circumvent this “on the computer” issue as I upload all my used writing images to a special folder on my server/web space. Then I supply the full URL to the image. Works perfectly in iA Writer, Typora, Marked, etc. However, it obviously requires have a “web space” to upload to. But if you do … then the uploading bit is super easy.

Not using NotePlan? :rofl:

I dragged one of my Daily Notes to the icon for the Marked 2 app in my Mac’s dock, and an image embedded in the Markdown-formatted note was displayed properly along with all of my text.

1 Like

Where is the image relative to the document?

I don’t have iA, but should the image appear there too, or does it just have a reference?

For my purposes, Marked 2’s biggest disadvantage is that unlike Pandoc and iA Writer, it doesn’t convert markdown heading levels into Word’s equivalents. It just formats the attributes individually so they look like headings.

cc @Bmosbacker

2 Likes

Is there an advantage to this approach? I have typically kept images in a subfolder of iA Writer.

I have the images in a sub-folder of iA Writer. Here are two screenshots of my attempt to use standard markdown to embed the images but as you can see, the image only shows up from the iA Writer code block.


Am I doing something wrong?

As you can see below, I cannot get this to work.


The second command has the file name missing. It should be below but I just tried it and didn’t work too:

![biscuit test(/3.0 iA Writer Media
Assets/Biscuit.jpeg)

I added that, thanks for the tip. Unfortunately, it still does not work.

![biscuit test](/Users/barrettmosbacker/Library/Mobile Documents/27N4MQEA55~pro~writer/Documents/3.0 iA Writer Media Assets/Biscuit.jpeg)

Sure, for me there’s a clear advantage: it works all the time!

If you have another approach that works that’s great. However, I thought you were having problems. If you have another way that works simply and 100% of the time then, of course, use that alternative.

To be fair, most of my writing these days is for course websites and other online things … so I have to upload materials to my hosting area anyways. It’s not a new or extra step for me.

The link to the image, needs to be an HTML encoded URL.

Given your directory, the following most probably works:
![biscuit test](3%2E0%20iA%20Writer%20Media%20Assets/Biscuit.jpeg)

(the ‘.’ is replaced with ‘%2E’ and the ’ ’ is replaced with ‘%20’)

If you do not like all the special characters - the easiest way is to use a directory name without the spaces/full stops :smiley:

I am still having problems. I’ve emailed iA Writer support.

I may try your suggestion, it seems to me it will eliminate the issues. If I take this approach, I’d probably use Google for the images. Do you use Google or other online storage? I tried a link in Photos which creates an iCloud link but it does not render in iA Writer.

I tested mine again according to @Sander suggestion, I had the following changes and it works:

  • a dot before any directory
  • folder and file name shouldn’t have any dots
  • spaces replaced by symbols like - or _

So your code can be rewritten as something like this:

![biscuit test](./3-0-iA-Writer-Media
Assets/Biscuit.jpeg)

2 Likes

I’m using a straightforward and “real” web domain that I use for my websites. This is something I have via a hosting company. So my domain is called something like:

https://mymitchell.com

Within that domain, using Transmit (or any FTP app), I created a subfolder named:

writing-images

So if I upload an image named: the-hague-in-fall.jpg then the full address for that image is:

https://mymitchell.com/writing-images/the-hague-in-fall.jpg

… and then you can refer to the iimage using markdown or just html. I know you already have the markdown shortcut (which is fine), and the HTML approach would e written:

<img src="https://mymitchell.com/writing-images/the-hague-in-fall.jpg" alt="image of The Hague" width="100%" />

Note: you have a bit more control over width of image in HTML relative to markdown, but that may not be important for you.

… so whether this approach works with Google images??? I’m not sure, but it “should” . The problem with iCloud links is those aren’t on the web and can’t be seen by others easily. BTW my guess is there IS a solution using images on your hard drive … but whatever that solution … it’s non-obvious and perhaps not possible. I’m just not sure. It’s certainly not as clean and obvious as linking to images with a specific web address .

2 Likes