There are two ways you could go about this; maybe three depending on what you use for blogging.
- Firstly, check to see if your blog system accepts Markdown, or has a module for it. If it does, that should make things a lot easier for you in that you can just fix the image references right in the Markdown directly, rather than the HTML.
- Whether you can paste Markdown right in, or would still need to convert it to HTML, you can still take the approach of compiling to MultiMarkdown with Scrivener, instead of having it automate the HTML conversion step for you. This results in an .md file that will be easier to clean up with a simple text editor.
Now if you want to get fancy, and have a little scripting experience available, take a look at the Processing compile format pane. With this you can modify the text of the compiled .md file directly, and even go on to automate the conversion to HTML using an installed copy of Markdown, Pandoc, MultiMarkdown or whatever you prefer. That’s always a good option to keep in mind when you’re trying to fix something that is beyond what the Replacements engine can handle. Even just a simple shell script that runs sed and your preferred Markdown tool could be all you need.
- Solve the problem at the top instead of correcting for it in post. While just dumping a graphic into the editor and letting Scrivener handle the syntax for you is fine for simple things, if you need more, it has other approaches you can take that allow for more control. You’ll find details on that in the user manual, under §21.4.2, scrolling down to the Referencing Images with Document Links subsection.
Of course the example provided here in figure 21.2 would result in the same relative link you get from an embedded graphic, but the key thing is all of the text around the hyperlink is up to you. So you can put this if you want:

Now something to consider is that such a path like that won’t work for PDF output, because presumably your blog directory structure isn’t matched anywhere on your Mac. So a way you could get around that is by selecting the path part of the text, between the opening parentheses and the inserted hyperlink, and assign that to a style like “Blog path”. You can then set up the compiler to leave that text alone for HTML/MMD output, and for PDF output, actually strip the text out leaving just the image name.
Along that vein, another approach would be to have two wholly different image references, one for PDF and one for the blog. That might not be a bad idea since you’d generally want a higher resolution graphic in a PDF than for a web page, anyway. Styles would again solve the problem of having conditional output, one image line for the blog, with its custom path, and another for PDF, each pointing to different resolution images (or even the same, just with different paths, it’s all up to you).
Sorry, I’m a bit lost on this part, in that I don’t quite understand what you’re doing. I’m assuming that you’re compiling to PDF using MultiMarkdown, which means you’re really using LaTeX here? Or are you using the native rich text PDF output? The latter can work, but it’s not really designed with Markdown in mind.
I also am a bit unclear on how you are generating titles. Normally Scrivener uses hashes, you’d have to go to a bit of trouble to make it turn binder titles into bold text. Or are these sections not in your binder at all, rather typed into the file? In that case I don’t understand at all how they end up different than what you typed in.
It would also be odd that you get normal h1 … h6 style HTML headings but just bold text for PDF. Or maybe they are actually hierarchical, but your LaTeX settings are odd? Just kind of stabbing in the dark here.
Maybe a practical example in a sample project would be beneficial, to illustrate what you’re trying to do.
So if it isn’t clear from the above, yeah, that’s kind of how it would work if you didn’t touch any settings and just did things normally. Each hierarchical outline level in the binder would be turned into a heading in the PDF, with a quantity of hashes in front of it that match its depth. The level below the draft is “# Binder Title One”, and a file below that level would be “## Some Subsection”, and so on. Quite how you would expect if you’ve ever generated a PDF from org-mode or similar. Outline = headings, unless you go to some length subverting the default behaviour (which is perfectly acceptable and possible to do).
How that gets turned into fonts and such is again within the domain of LaTeX. Take a look at the “Modern (Custom LaTeX)” compile format, in the “LaTeX Options” compile format pane, to see how one could influence the appearance of the document. If you scroll to the very bottom of the “Header” tab, you’ll see where chapter and section numbering is set up, and what fonts, font sizes and colours are used for section headings.