HTML vs HTMLBLOCK and ODF
Hi Fletcher,
What should be the differences (and what is the syntax) for HTMLBLOCK vs HTML ?
if I write a that will run as HTMLBLOCK: https://github.com/fletcher/MultiMarkdown-5/blob/master/src/odf.c#L140
Also on ODF, there is this comment /* don't print HTML block / / but do print HTML comments for raw LaTeX */ Copy past issue?
And it is adding the comment as
g_string_append_printf(out, "<text:p text:style-name=\"Standard\">%s</text:p>", &n->str[4]);
from the ODF source https://github.com/fletcher/MultiMarkdown-5/blob/master/src/odf.c#L707 the HTML is the one that is outputing really raw ODF, how can I use it?
Cheers!
Not sure I'm following.
What are you doing in your source file (MMD) that is not working for you?
Sorry I think something in the text was cuted by github: I was wondering if the line: https://github.com/fletcher/MultiMarkdown-5/blob/master/src/odf.c#L147
g_string_append_printf(out, "<text:p text:style-name=\"Standard\">%s</text:p>", &n->str[4]);
should be instead:
g_string_append_printf(out, "%s", &n->str[4]);
So that would be truly raw data to ODF?
The idea in doing this is that an HTMLBLOCK is by itself, e.g. it is a separate paragraph. A comment within a paragraph would not need it's own paragraph wrapper.
Depending on what one was going to do, I can see the need for both. You can modify your version of MMD either way. If you come up with some good examples, I could consider changing this.