diff --git a/README.md b/README.md index d09fb99..0bc9db1 100644 --- a/README.md +++ b/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: * h * j +Press ctrl+e on a slide with a code block to execute it. + ### Configuration ### Theme diff --git a/internal/model/model.go b/internal/model/model.go index 576c602..f7db1cf 100644 --- a/internal/model/model.go +++ b/internal/model/model.go @@ -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])