Arrow down navigation #614
-
|
An answer https://github.com/orgs/marp-team/discussions/158#discussioncomment-1274628 how to link to other pages, so that's helpful. But how to set up "arrow down" navigation? Example: I can use the link feature (link at the top) to get from 4 to 5 without using "up arrow", but clicking on a link on every slide (meaning, 2 and 3) to replace "down arrow" seems a bit inconvenient and unnatural. I've checked the issues in all the different Marp-related repos for "navigation" and "arrow" but I haven't seen any questions or feature enhancements related to this "down arrow" navigation challenge. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Your description seems to include a concept of vertical slides (like reveal.js's Vertical Slides) that does not exist in Marp. Marp always outputs slide pages in a single direction, so that description might be a bit difficult to understand. If you could provide a sample Marp Markdown with some pages and explain what you want to achieve, it would help maintainers and the community understand your intent and provide specific advice. |
Beta Was this translation helpful? Give feedback.
-
|
Perfect, this is great, also the link with vertical slides issue which is very informative as well. (I didn't search for "vertical" before posting, but for I think the approach makes sense and I agree vertical slides have that downside. |
Beta Was this translation helpful? Give feedback.
I see, I understand what you want to do.
Already described at #141, we have no plans to support vertical slides in Marp, but there is room to support that via a plugin.
For example, Marp (Marpit) plugin can inject a
<script>tag into the end of the HTML via markdown-it tokens and renderers, to override navigation shortcuts that are provided by Marp CLI'sbespoketemplate.Example
Skip sub slides when navigated by ← / → keys: