Actually, I’m after a hybrid way of working: mostly rich text (to avoid codes in the text and see an approximation of the final result), with the occasional use of code.
For the amount of styles/spans I have to use (for menus, commands, pages…), my markdown text would become unreadable. This would also contradict the initial aim of markdown, that was to remove most of the code and leave (a blogger) with the cleanest of the text documents.
I like this, and would like a way to attach classes to images. It is like object styles in InDesign, and I hope it can translate to object styles when exchanging an IDML file between Scrivener and InDesign/Publisher.
(Ah, what a dream, Scrivener directly compiling to IDML…)
Not sure I’ve understood: can classes only be used in pure markdown? Or, as it seems to be shown in the Scrivener manual’s project, the ability of Scrivener to convert rich text to markdown during compile makes a hybrid approach possible? I think that this is absolutely possible with text styles, but not sure for images.
Would Compile format’s Replacements help with this? If I insert a linked image in a Scrivener document, and make it follow by a line of code written in the text, may I hope to simulate properties added to an image? Something like this in the (rich text) document:
[linked image]
{img-screen}
And then a replacement rule replacing [CR] [anything] [CR] [{img-screen}]
with something like [CR] [div .class img-screen] [the same anything] [/div]
in the compiled code?
But do you use images linked in the text, or, as it seems from the linked procedure, only placeholder tags? I’m still wondering if using these latter couldn’t be easier, despite having to run after the original image files to keep them open in another app.
At least with page layout programs, this is normal practice: having a single source image, and resizing it in the page. A single source file, multiple uses.
Paolo