mindslide icon indicating copy to clipboard operation
mindslide copied to clipboard

add support for custom section attributes

Open berteh opened this issue 9 years ago • 6 comments

including data-markdown, data-autoslide, data-background_, data-transition_; maybe as node attributes?

berteh avatar Jun 05 '16 21:06 berteh

Love this feature

Especially the idea of markdown

Can I help? I've read through the config.xml and mindslide.xsl but my xslt is rusty.

A little help with design, or functional requirements, might help me create a patch :)

melvincarvalho avatar Jan 21 '20 06:01 melvincarvalho

Hi @melvincarvalho, Help is welcome.

Reveal.js (the engine behind mindslide) already supports markdown and the likes: https://github.com/hakimel/reveal.js#markdown

Such a feature would therefore require to

  • figure out how your user would enter his/her markdown in the Freeplane (editor? simple text node? GUI?)...
  • detect in the Freeplane's XML what node should be interpreted as markdown
  • edit the xslt to translate that particular node into the syntax needed by Reveal, probably around https://github.com/berteh/mindslide/blob/master/mindslide.xsl#L240
  • include the required js files in the generated output header and output files.

Let me know if this speaks to you at all... or if you have other ideas or want more help. Welcome on board, Berteh.

berteh avatar Jan 21 '20 18:01 berteh

Markdown is just one of the many features of Reveal that applies to a section (i.e. slide). So, if on your way to markdown, you figure a more generic way to support multiple features that would be even more interesting.

look in https://github.com/hakimel/reveal.js for, among others:

data-transition, data-autoslide, data-background_, fragments ,...

One of the first question being always: how can the user input this info in a user-friendly way in Freeplane?

Thanks again !

berteh avatar Jan 21 '20 18:01 berteh

Great, thanks for the very clear explanation. Indeed a generic solution would be cool.

For markdown, I see two ways

  • Add an attribute, or something similar, like for slide-hide
  • Sniff the content e.g. with a magic string at the start of the markdown

There may be other approaches. I'll look into more detail!

melvincarvalho avatar Jan 21 '20 20:01 melvincarvalho

I hope it's OK to add this link here, as "food for thought", while we are in design mode

https://rajgoel.github.io/reveal.js-demos/anything-demo.html#/4/1

It's on the topic of making slide content more varied. The reveal plugin "anything" offers some nice use cases

melvincarvalho avatar Jan 22 '20 07:01 melvincarvalho

sure is. thanks for the link.

I would like to keep the mindmaps nicely readable in Fireplane though... and therefore not so sure about more javascript-based content that MM will not be able to display/interpret.... but it's just my view and I'm open to reconsidering.

berteh avatar Jan 23 '20 17:01 berteh