Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for custom section attributes #17

Open
berteh opened this issue Jun 5, 2016 · 6 comments
Open

add support for custom section attributes #17

berteh opened this issue Jun 5, 2016 · 6 comments
Assignees
Milestone

Comments

@berteh
Copy link
Owner

berteh commented Jun 5, 2016

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

@berteh berteh added this to the 2.0 milestone Jun 5, 2016
@melvincarvalho
Copy link

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 :)

@berteh
Copy link
Owner Author

berteh commented Jan 21, 2020

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
Copy link
Owner Author

berteh commented Jan 21, 2020

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 !

@melvincarvalho
Copy link

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
Copy link

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

@berteh
Copy link
Owner Author

berteh commented Jan 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants