Home » Developing U++ » U++ Developers corner » [Proposal] Markdown to QTF converter/parser
Re: [Proposal] Markdown to QTF converter/parser [message #56851 is a reply to message #53137] |
Wed, 21 April 2021 10:13  |
Oblivion
Messages: 1204 Registered: August 2007
|
Senior Contributor |
|
|
Hi,
I have added image span handling to plugin/md. It should be available with U++ nightly builds.
Summary:
U++ md plugin does not render images or recognize any image format. It is up to client code to render and manipulate images. This is done via an event:
Event <VectorMap<String, String>& > WhenImages;
The md plugin will parse/collect the image data of a given md document and hand them to the client code as a string map via the WhenImages event.
The keys of this map are image URLs whereas the values are meant to be filled with some QTF/Richobject data (as qtf).
In this way, the client code can [down]load and manipulate the image data as it sees fit (e.g. it can simply substitute a qtf text on image loading/retrieval failures, or blacklist images from certain domains, or put decorative frames around images, using tables etc...)
This method also allows MT or async calls for image [down]loading and rendering, as it passes to client a complete list of available image span info at once.
Now, the map values can certainly be filled with the "whole" image strings, but this is usually not desireable, as it makes the document larger after a couple of images.
Instead you can use an array of RichObjects to keep the real image data in a cache and only pass the serial/pointer as the map value, using the QtfRichObject() function, for example.
If you have any questions, suggestions etc., let me know.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Wed, 21 April 2021 10:50] Report message to a moderator
|
|
|
 |
|
[Proposal] Markdown to QTF converter/parser
By: Oblivion on Fri, 06 March 2020 21:22
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: zsolt on Mon, 09 March 2020 04:17
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Xemuth on Mon, 09 March 2020 08:43
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: forlano on Mon, 09 March 2020 11:32
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: mirek on Mon, 09 March 2020 16:07
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
|
 |
 |
Re: [Proposal] Markdown to QTF converter/parser
By: Didier on Sat, 11 July 2020 23:10
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: koldo on Sun, 12 July 2020 13:36
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: mirek on Tue, 14 July 2020 10:40
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: koldo on Tue, 14 July 2020 20:30
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Sat, 05 September 2020 00:12
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Didier on Sat, 05 September 2020 20:19
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Sun, 27 September 2020 22:47
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: zsolt on Sun, 27 September 2020 23:52
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: mirek on Fri, 18 December 2020 10:54
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Fri, 18 December 2020 10:59
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: mirek on Fri, 18 December 2020 11:11
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Wed, 23 December 2020 20:40
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: zsolt on Wed, 23 December 2020 22:06
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Wed, 23 December 2020 22:34
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: zsolt on Sat, 26 December 2020 01:22
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Sat, 26 December 2020 09:32
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Sun, 27 December 2020 20:34
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Fri, 01 January 2021 14:39
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: mirek on Thu, 04 February 2021 17:18
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Thu, 04 February 2021 17:22
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: mirek on Thu, 04 February 2021 20:44
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Thu, 04 February 2021 21:03
|
 |
|
Re: [Proposal] Markdown to QTF converter/parser
By: Oblivion on Wed, 21 April 2021 10:13
|
Goto Forum:
Current Time: Wed Apr 30 03:39:31 CEST 2025
Total time taken to generate the page: 0.04457 seconds
|