I once again added the updated macro to my wiki. I tried various combinations of selections, but the first image was not getting clipped unless I clip in seperately. How you were able to do it?
When I try a straight HTML capture from twitter it doesnât seem to give me code containing the appropriate video information. That is, it doesnât display correctly even as HTML, let alone wikitext. But I can select it here on Discourse and get the working MP4 address. So Discourse must know how to negotiate with the twitter server to get the real video address.
Thats a nice trick.
I did a small testing. I made a private message to myself in this discourse and added a twitter link (which has a video in it) to the message and did html clipping using tiddlyclip from that private message. And it worked. Since I donât have to clip videos from twitter frequently, this sounds like an acceptable compromise.
Remember Tiddlyclip is the tool and you can use it for any content you want. If after setting up some supporting embed code, you can just clip the needed link or info using tiddlyclip. That is âsetup the destination (selected wiki)â to receive the bare minimum of clipped content, yet make it work, you can also save space this way (if necessary).
The problem is that Twitter doesnât expose the actual video address to mere mortals. arunnbabu is pretty much an expert on all things web-clipper â has a docked clip list with 20+ items on it!
Ok â try it now. It was more convoluted than expected because html uses code blocks both for blocks of code and for spans of code, whereas wikitext has different mark-up for each.
I have updated the macro to the latest version in my demo wiki. Here are the chnages I noticed after the new update.
Column 3 first tiddler - The quotes are not getting converted (I guess you havenât added quote conversion yet) and there are some other bugs also which dont know how to explain.
Column 3 second tiddler - This one works perfectly.
Column 3 third tiddler - spans of code are getting converted, but the << isnât getting converted - instead we get <<. Also the numbered list isnât working correctly.
Column 3 fourth tiddler - Code blocks from discourse is not getting clipped even using html clipping, so I dont think the macro will work for code blocks in discourse.
Made some updates. Hereâs what it looks like for 3 of your cases.
However, the problem with âParameterised transclusionsâ is that there is syntax nested inside of tables. AFAIK, most block wikitext doesnât work inside wikitext tables. So blockquotes, multi-line code blocks, headers â none of these work.
Iâm thinking of removing the code that attempts to make wikitext tables and instead keeping tables as HTML, albeit simplified â stripped of classes and arranged so the tags are easy to see. That way other tags could then be rendered as wikitext. Wikitext purists could then change the html table to wikitext by hand, if that seems warranted.
Start selecting with the word âThisâ and select all the way down to the image. The html has to contain both the start and end code tags to be processed correctly.
Hmm. Youâre right. Itâs not working on firefox. Iâve been using chromium on linux. But if itâs not working on Firefox that would probably mean that BJâs clipper extension is returning different HTML on the two platforms.