[kdepim] [Bug 406366] Markdown addon: please add support for --github-checkbox
avlas
bugzilla_noreply at kde.org
Tue Apr 16 22:12:11 BST 2019
https://bugs.kde.org/show_bug.cgi?id=406366
--- Comment #10 from avlas <jsardid at gmail.com> ---
(In reply to avlas from comment #9)
> (In reply to avlas from comment #8)
> > (In reply to Laurent Montel from comment #6)
> > > Discount lib
> >
> > Mmm, I didn't realize you meant the lib, but makes total sense. I don't
> > know, will ask Discount dev...
>
> May it be using the following function?
>
> int mkd_css(MMIOT *doc, char **out) allocates a buffer and populates it with
> any style blocks found in the document.
>
> I asked Discount Dev to confirm...
This is what I got from Discount Dev:
Discount sweeps up `<style>` blocks (unless you set MKD_NOSTYLE, which I
presume is not being done here) and returns them, yes. But style blocks go in
the header section of a html document, so the way that the markdown program
(main.c) does it is a good reference:
if ( mkd_compile(doc, flags) ) {
if ( styles )
mkd_generatecss(doc, stdout);
if ( content )
mkd_generatehtml(doc, stdout);
}
(With, of course, the caveat that the style blocks go in the header of the
document)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list