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

incremental slides with left/right columns #484

Closed
stephentu opened this issue Nov 11, 2017 · 5 comments
Closed

incremental slides with left/right columns #484

stephentu opened this issue Nov 11, 2017 · 5 comments

Comments

@stephentu
Copy link

Hi,

I'm curious if it is possible to get incremental slides working with the .left-column[] and .right-column[] construct featured https://remarkjs.com. Right now, when I do

---
layout: false
.left-column[
## My heading 1
]
.right-column[
First statement 

--

Second statement
]

It does not render the slides incrementally. I could do something like

---
layout: false
.left-column[
## My heading 1
]
.right-column[
First statement 
]
---
layout: false
.left-column[
## My heading 1
]
.right-column[
First statement 

Second statement
]

but I plan to have several statements and having to keep them manually in sync is not ideal.

Thanks for the help!

-- PS: I'm a new user to remark.js coming from reveal.js, and the experience so far has been orders of magnitude better. Thanks for the great work!

@joel-porquet
Copy link
Contributor

Have you tried the following by any chance?

---
layout: false
.left-column[
## My heading 1
]
.right-column[
First statement 
]
--
.right-column[
Second statement
]

@abelards
Copy link
Collaborator

What do you have in mind? 538 is closed and it's documented here now:
https://github.com/gnab/remark/wiki/HTML-CSS-JS-samples
I'm closing the ticket for now, feel free to reopen/open a new one if it's not good enough.

@mhaffner
Copy link

mhaffner commented Jan 7, 2020

I can get this to work with the @joel-porquet 's solution , although it seems a little clunky. The excerpt from the "trick" referenced above is cleaner and more intuitive but I can't get it to work. E.g.,

# Title here

.left-column[

- Item 1
--

- Item 2
--

- Item 3
]

As of Nov. 2018 it seems like this is not expected to work:

@floswald RemarkJS will not examine "inside" a div for parseable content like that. Check out this open issue with possible solution #484

So the original solution in this thread posted by @joel-porquet is still the way to go, no?

@mhaffner
Copy link

mhaffner commented Jan 7, 2020

One other issue I notice is that there is a ton of whitespace between First Statement and Second Statement when using

---
layout: false
.left-column[
## My heading 1
]
.right-column[
First statement 
]
--
.right-column[
Second statement
]

This actually makes sense though since it is essentially slapping multiple div's on top of one another and there ought to be whitespace between the div's. This might not be a problem for two or three sentences, but it starts to look awkward when using a four or five point bulleted list, for instance.

@bkmgit
Copy link

bkmgit commented Nov 22, 2020

This doesn't quite work for me. Had to use HTML and CSS

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

No branches or pull requests

5 participants