First version of Markdown export plugin

Can this export from TiddlyWiki5 server version?

GitHub - oeyoews/tiddlywiki-markdown-importer-cli: tiddlywiki importer/exporter with markdown This repository may be what you want.

You mean something like this?

I just want to say that I really appreciate the Markdown export plugin. It (combined with good old Pandoc) has been much better for sharing individual tiddlers than the static HTML export.

Michael,

Thanks for reawakening this thread, This related thread was raised TW text formatting for common social media. How? - #5 by TW_Tones

This solution by @cdaven does this conversion from the rendered HTML version that may be fed into Pandoc. However it takes the extra step and converts this to Markdown which is also a Pandoc format available for conversion.

I also made a copy html to clipboard in the past.

The advantages of markdown export includes;

  • It is the method used here in talk.tiddlywiki
  • It is more common than tiddlywiki script (I would like to change this)

However in retrospect I would ask if @cdaven could consider one simple addition to his plugin and that is to provide an additional button, on tiddlers, that copies the markdown format, it currently generates to the clipboard (rather than export). This would allow;

  • Quick per tiddler conversions without needing to access the file system
  • Ease of conversion, then save in a Markdown tiddler in the same or other wiki (using the markdown plugin).
  • Make use of for publishing etc…

@cdaven I just noticed this plugin is hosted on TiddlyWiki version 5.2.3 and unfortunately this includes the bug that can stop the plugin been dragged and dropped, from Chrome to Firefox and possible elsewhere. If it could be updated to a 5.x would help people acquire you plugin more easily.

Hi @cdaven , your plugin is great! Thank you!

I notice some strange substitutions with katex, i export this code to markdown:

<$latex text="
\begin{aligned}
&h > 2 \times C \rightarrow \text{Sapata muito rĂ­gida ou bloco}\\ 
\frac{2}{3} \times C \le &h \le 2 \times C \rightarrow \text{Sapata rĂ­gida}\\ 
\frac{C}{2} \le &h < \frac{2}{3} \times C \rightarrow \text{Sapata semi-rĂ­gida}\\ 
&h < \frac{C}{2} \rightarrow \text{Sapata flexĂ­vel} 
\end{aligned}">
</$latex>

And get this result:

$
\begin{aligned}
&amp;h &gt; 2 \times C \rightarrow \text{Sapata muito rĂ­gida ou bloco}\\ 
\frac{2}{3} \times C \le &amp;h \le 2 \times C \rightarrow \text{Sapata rĂ­gida}\\ 
\frac{C}{2} \le &amp;h &lt; \frac{2}{3} \times C \rightarrow \text{Sapata semi-rĂ­gida}\\ 
&amp;h &lt; \frac{C}{2} \rightarrow \text{Sapata flexĂ­vel} 
\end{aligned}$

I notice the symbols < or > are substituted by &lt and &lt, i can change this using the correct code in latex \lt or \gt, but the symbol & is needed to align the equation, so maybe the & symbol don’t need to be substituted or parsed (i dont know what i talking about :sweat_smile:)

Second, i think the <$latex text=" needed to be show as:

$$
\begin{aligned}
&amp;h \gt 2 \times C \rightarrow \text{Sapata muito rĂ­gida ou bloco}\\ 
\frac{2}{3} \times C \le &amp;h \le 2 \times C \rightarrow \text{Sapata rĂ­gida}\\ 
\frac{C}{2} \le &amp;h \lt \frac{2}{3} \times C \rightarrow \text{Sapata semi-rĂ­gida}\\ 
&amp;h \lt \frac{C}{2} \rightarrow \text{Sapata flexĂ­vel} 
\end{aligned}
$$
1 Like

Look at my answer at the Willing to export "Tiddlers" into a web site template engine like Grav - #6 by Offray thread. I’m using my own Brea instead of Jekill for static site publishing, but the part I’m talking about regarding using, in the future, TW on Bun, takes inspiration of @cdaven’s work to smooth the publication workflow.

1 Like