Hi Just to complete this thread, I added a Markdown importer to SVN recently. Works ok.
Craig > On 16 Aug 2020, at 18:32, Craig Bradney <[email protected]> wrote: > > > >> On 15 Aug 2020, at 12:31 pm, ale rimoldi <[email protected]> wrote: >> >> salut dimitri >> >> i just made a try with: >> >> ```py >> >> import markdown >> >> md = markdown.Markdown() >> >> markdown_str = """ >> # A new Scripter API documentation >> >> Over and over, I've heard complains about the Scripter documentation >> (among other things, of course!). >> >> Since the Scribus documentation is not really free, there was not much >> I was willing / able to do. >> >> Last week, I got one more critical voice on the API documentation, and >> I've decided that it was time to see if it was possible to get to >> something sane, by exporting the API from the docstrings. >> Have fun >> a.l.e >> """ >> print(md.convert(markdown_str)) >> >> ``` >> >> the generated html imports fine into scribus. >> >> questions: >> >> - wouldn't it be worth to improve the html importer to support what is >> not yet good? (lists...) >> - and then add the command to import html to the scripter. >> >> and, then, when we have the C++ API and a few more "relevant" features >> implement a plugin that imports markdown... >> >> if you want to go this way, i'm more than ready to collaborate... >> i'm not sure that i want to spend my time on an "hardcore" import >> plugin (otherwise i would have made it a long time ago...) >> >> ciao >> a.l.e >> > > Hi Ale > > I am ready to review your API proposal. Send me a URL > > Markdown import should now be done with QTextDocument, with Qt 5.14+ to avoid > any other library inclusion. > > Craig > _______________________________________________ scribus-dev mailing list [email protected] http://lists.scribus.net/mailman/listinfo/scribus-dev
