gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.74k stars 857 forks source link

Separate the "markdown" from the "slideshow" #644

Open alex-rozenshteyn-leapyear opened 3 years ago

alex-rozenshteyn-leapyear commented 3 years ago

I would like to be able to generate a self-contained HTML doc with no markdown and present that. All of the tools in the "static generators" section just embed a markdown doc in the template HTML.

I like the slideshow generated by remark more than any other HTML slideshow tool I've found so far, especially with the easy theming and the presenter view, but it would be nice to be able to use it as an HTML presentation tool and not just a markdown presentation tool.

abelards commented 3 years ago

Hi Alex, I'm not sure what your feelings are bout this.

So... if you're keeping that minimal markdown and you put as much HTML as you want, what's the problem? Is "self-contained HTML doc" some kind of huge page with slides' thumbnails and presenter notes?

Let us know. Cheers,

alex-rozenshteyn-leapyear commented 3 years ago

remark is by definition a markdown tool, it's in the name

Yes, but it's not only a markdown tool; it's also a presentation runtime (unless I'm misunderstanding its architecture).

Is "self-contained HTML doc" some kind of huge page with slides' thumbnails and presenter notes?

Yes. I'm basically imagining the DOM that remark generates, or some simplification of it.

I'm basically imagining a way to use remark as a lightweight opinionated version of reveal.js while delegating the markdown translation to something else.

Thanks for the reply.

seasonedbits commented 3 years ago

@alex-rozenshteyn-leapyear I think you're suggesting to seperate the markup layer from the presentation layer, right? In that way we can "supposedly" turn any markup language into preseatation.

Your suggestion requires a "meta" markup which can store slide meta (layout, attributes, seperator, etc) outside of the content markup. As @abelards said, that is not the aim for remark. remark will always support markdown and have used (or hiajcked one may even say) markdown's syntax as slide seperator. It have its own syntax based on markdown. Since HTML is valid markdown, you can use markdown or plain HTML in your slide.

alex-rozenshteyn-leapyear commented 3 years ago

@alex-rozenshteyn-leapyear I think you're suggesting to seperate the markup layer from the presentation layer, right? In that way we can "supposedly" turn any markup language into preseatation.

I think this is broadly accurate. Digging in one step deeper, I want to extract the presentation layer, so that I can use it without the markup layer (I'd like to do my own markdown processing).

seasonedbits commented 3 years ago

I think you'll have better luck looking for "presentation layout" in static site generators. Try Next.js, Eleventy, Hexo and the likes. They'll be more flexible in processing content files.