In the case where you have a link around an external image, it tries to do 
something like this:

[ext[[img class="circle-img" [https ...

Unfortunately, AFAIK this is not possible. In any event, it didn't render 
for me. I think you would either have to leave the items as HTML, or put 
the external link either just before or just after the image.


On Friday, April 2, 2021 at 12:38:05 PM UTC-7 mochit...@gmail.com wrote:

> Hello everyone, here are some updates to the converter project:
>
> Most of the standard behaviors of tiddlywiki syntax have been implemented! 
> this includes major elements like (In-line styles, Lists, Headings, Images, 
> Links, Block Quotes, Code Blocks, Definitions, Tables...)
>
> As of my brief tests, most of the syntax will follow tiddlywiki 
> documentations.
>
> One major problem is dealing with "merged" table cells where "merging into 
> a merged cell" will result in unexpected behavior (as illustrated in this 
> issue https://github.com/mistermochi/HTML2TW5/issues/10)
>
> Still figuring out how tiddlywiki handles these edge cases...
>
> Otherwise please feel free to test out the converter and let me know if 
> you run into any issues!
>
> On Sunday, 28 March 2021 at 13:17:18 UTC+8 Mister Mochi wrote:
>
>> Thank you so much for all of your overwhelming response!!!
>>
>> 1. Yes I am using javascript for my codebase as it extends the behavior 
>> of Turndown
>>
>> 2. Thank you very much for the suggestions and references. The project by 
>> @saqimtiaz certainly showcases a possibility of what my project can turn 
>> out to be. Sadly I am not planning on implementing a full featured 
>> round-trip converter yet, because there will be too many tiddlywiki 
>> intestines on my hands (e.g. macro, widgets...) than I could have handled.
>>
>> 3. I have started a code base on github 
>> https://github.com/mistermochi/HTML2TW5 for all of your curious eyes and 
>> eager hands (LOL). Join in the conversation if you have any suggestion/ 
>> ideas/ code to offer!
>>
>> I will continue to post updates in this post shall i make remarkable 
>> progress in the project.
>>
>> On Saturday, 27 March 2021 at 21:37:59 UTC+8 saq.i...@gmail.com wrote:
>>
>>> @pmario OP uses the same JavaScript library (turndown) to achieve the 
>>> HTML to markdown/wikitext conversion as my demo posted above.
>>>
>>> Turndown by default converts to Markdown, but it is relatively simple to 
>>> override or add new rules for wikitext. It would indeed be nice to 
>>> collaborate on getting a complete set or rules for all supported wikitext 
>>> syntax.
>>>
>>> For an example see 
>>> https://saqimtiaz.github.io/sq-tw/typewriter.html#%24%3A%2Fplugins%2Fsq%2Ftypewriter%2Flib%2Fturndown-browser-umd.js
>>>  
>>> and addtional rules defined in 
>>> https://saqimtiaz.github.io/sq-tw/typewriter.html#%24%3A%2Fplugins%2Fsq%2Ftypewriter%2Fengine.js
>>>
>>> This particular demo escapes HTML entered into the editor as part of a 
>>> round trip conversion process. If that escaping was turned off, it would 
>>> save HTML pasted into the editor as wikitext.
>>>
>>> Hope this helps while we wait to hear back from the OP :)
>>>
>>> On Saturday, March 27, 2021 at 1:03:31 PM UTC+1 PMario wrote:
>>>
>>>> On Friday, March 26, 2021 at 11:35:36 AM UTC+1 Saq Imtiaz wrote:
>>>>
>>>>> @pmario I could be wrong, but I am guessing this is a standalone tool 
>>>>> and not something integrated into TiddlyWiki and the editor mechanism.
>>>>
>>>>
>>>> Yea, ... Non the less it would be killer to throw some HTML content 
>>>> into left side and get TW text on the right side. ... right?
>>>>  
>>>>
>>>>> See the original Turndown demo: 
>>>>> https://domchristie.github.io/turndown/
>>>>>
>>>>> I'll be very pleased if I am wrong about that though :)
>>>>>
>>>>
>>>> Saq. As far as I can see in your link to the github repo. It only 
>>>> contains HTML and Javascript. ... I'm interested in the code, that does 
>>>> the 
>>>> conversion. ... As long as it's javascript it can be included into TW. 
>>>>
>>>> I hope the code in the OP-repo is JS too. ... If not, it stays in a SPA 
>>>> ... that's also OK.
>>>>
>>>> Just my thoughts.
>>>> -mario
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3c68d473-2772-41a3-bf51-63dde88f1ce0n%40googlegroups.com.

Reply via email to