mirror of
https://github.com/maaslalani/slides.git
synced 2026-01-10 23:08:04 -05:00
Remove ~~~ as a slide delimiter
This commit is contained in:
12
README.md
12
README.md
@@ -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
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user