hey, do you have an example of code which will let me add SVG “images” in markdown? I don’t want to reinventing the wheel. I want to add also special class for this elements to change style. In general I have to set at least height.
That's why I use AsciiDoc. Much easier to add classes and stuff
hmm interesting, I didn’t know about that
but still I would like to do it using markdown
even if I have to add clj code
Oh this is unexpected…
<img src="/img/logo/docker.svg" alt="Docker" style="height: 40px">
This is rendered as HTML in markdown file. Not as a text.
problem solved
but still I would like to add my own markdown tags to render things
Why unexpected? Markdown sorts html in Markdown (but not Markdown inside html block elements)
Not sure what you mean by "my own Markdown tags". While asciidoctor supports custom inline/block macros, md has no such thing. You might read the docs for the Markdown parser you use. An extreme option is to add custom post - processing with postprocess-article-html-fn, see http://cryogenweb.org/docs/customizing-cryogen.html and https://github.com/cryogen-project/cryogen-core/blob/master/src/cryogen_core/compiler.clj#L574
I don’t. Probably I used to github and I think there this doesn’t work.
own markdown:
for example ##img /img/foo.svg -> H2 img text
Not possible in Markdown.
What do you mean? No way to extend markdown library?
Exactly
You can do fancy/crazy stuff with the Cryogen postprocess fn I mentioned but Markdown itself has no extension mechanism, contrary to asciidoctor.
Do you mean this specific library which Cryogen use?
No. The Markdown "standard" has no extensibility fns thus no Markdown library either, IMO. But do your research, I might be wrong.