MultiMarkdown-5 icon indicating copy to clipboard operation
MultiMarkdown-5 copied to clipboard

HTML vs HTMLBLOCK and ODF

Open KammutierSpule opened this issue 9 years ago • 3 comments

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!

KammutierSpule avatar Sep 14 '16 19:09 KammutierSpule

Not sure I'm following.

What are you doing in your source file (MMD) that is not working for you?

fletcher avatar Sep 16 '16 00:09 fletcher

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?

KammutierSpule avatar Sep 16 '16 08:09 KammutierSpule

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.

fletcher avatar Oct 29 '16 18:10 fletcher