This simplifies the contract for testing.
It's also more idiomatic functional programming.
Also rule of three (i.e. returning three arguments now, so better to return a type).
Moving tests in next commit. Again, demonstrating no gap in coverage.
Introduce a clean separation of concerns between model and navigation.
Note that the tests are not moved in this commit, to prove no break in
functionality. They'll be moved in the next commit.
Supported sequence examples:
* G = go to last slide
* gg = go to first slide
* 4j = go forward 4 slides
* 13G = go to slide 13
Extracted navigateX methods to increase maintainability of
model.Update() given the additional functionality.
Closes https://github.com/maaslalani/slides/issues/96
This patch updates the `sd Find Replace` test case to make use of `sed`
instead of `sd`. This should help tests pass on a wider range of
systems without introducing a testing dependency.
Closes#1.
This change allows users to add a configuration section to their slides,
which allows them to specify a different theme if they would like to
change the styles of the default theme.
A user can add
```
---
theme: ascii
---
```
To use an ascii theme or use `theme: ./styles.json` to specify their own
custom JSON theme using glamour styles.
Co-authored-by: Britton Hayes <brittonhayes@users.noreply.github.com>