Remove ~~~ as a slide delimiter

This commit is contained in:
Maas Lalani
2021-06-25 08:51:55 -04:00
parent cd4053bb69
commit 4e7df034f5
2 changed files with 3 additions and 13 deletions

View File

@@ -60,16 +60,6 @@ Create slides and present them without ever leaving your terminal.
---
## Execute code blocks
Press `ctrl+e` on a slide with a code block to execute it
Slides with display the output at the end of the slide.
~~~ruby
puts "Hello, world!"
~~~
---
Include ASCII graphs with GraphViz + graph-easy.
https://dot-to-ascii.ggerganov.com/
@@ -109,6 +99,8 @@ Go to the previous slide with any of the following keys:
* <kbd>h</kbd>
* <kbd>j</kbd>
Press <kbd>ctrl+e</kbd> on a slide with a code block to execute it.
### Configuration
### Theme

View File

@@ -18,8 +18,7 @@ import (
)
const (
delimiter = "\n---\n"
altDelimiter = "\n~~~\n"
delimiter = "\n---\n"
)
type Model struct {
@@ -67,7 +66,6 @@ func (m *Model) Load() error {
return err
}
content = strings.ReplaceAll(content, altDelimiter, delimiter)
slides := strings.Split(content, delimiter)
metaData, exists := meta.New().ParseHeader(slides[0])