presently 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e645cb300c0b3005e89e9c384c420e5b0702d48798738dbd5caae47fdf829059
4
- data.tar.gz: d3ed14a08c1df1ee1af2b3ae7188aa40742b2f2f08e202aaf46cd6d31646020e
3
+ metadata.gz: 844d33f102414b2087736e413c95f136363292add732cabb96cdb3910ed0f81c
4
+ data.tar.gz: 6d1e4cbfa13f2efba5fb66bea2552b5107a09177ef40bdda42d5950b4a0d3d4e
5
5
  SHA512:
6
- metadata.gz: b3509544227b7ab61cdec9f70bcaf3487d098dc0f7a5e5c94aea4eff58b828c7c3502122e56e0f1f19cdce21846019b60fd35adfc8f4654e675dc65be25eb6a0
7
- data.tar.gz: 8e701e3f6253f6c9a4385ce745a789df17027763193da89c31e72b5e8136ceec588800400d2576a1c743a25da094f768a96fab38a08096ddc8da19644b5355df
6
+ metadata.gz: 22cf5e3362dbd908de0e48e01d941913124927fd58d8fcd9d66ca83f9884f4426ea1fd8477473199a858171f63769841d876e95f35d12250e87ea72a84a779da
7
+ data.tar.gz: 80c3ce3cf7540038cc69aa291c9ae7f8f5bd00122cf89846c4485fdef2da856f6b51a6fc032e931ffd91fcdddf6a735d3aa51c3aeb1b99392930d0c66fc0796b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -72,7 +72,7 @@ module Presently
72
72
  raw = File.read(source_path)
73
73
 
74
74
  # Parse once, with native front matter support.
75
- document = Markly.parse(raw, flags: Markly::UNSAFE | Markly::FRONT_MATTER, extensions: Fragment::EXTENSIONS)
75
+ document = Markly.parse(raw, flags: Markly::UNSAFE | Markly::FRONT_MATTER | Markly::INLINE_CODE_INFO | Markly::HTML_BLOCK_BLANK_LINES, extensions: Fragment::EXTENSIONS)
76
76
 
77
77
  expand_includes!(document, File.dirname(source_path), presentation.root)
78
78
  rewrite_image_urls!(document, source_path, presentation.root)
@@ -169,7 +169,7 @@ module Presently
169
169
  to_replace.each do |paragraph, relative_path|
170
170
  included_path = File.expand_path(relative_path, base_dir)
171
171
  included_raw = File.read(included_path)
172
- included_document = Markly.parse(included_raw, flags: Markly::UNSAFE | Markly::FRONT_MATTER, extensions: Fragment::EXTENSIONS)
172
+ included_document = Markly.parse(included_raw, flags: Markly::UNSAFE | Markly::FRONT_MATTER | Markly::INLINE_CODE_INFO | Markly::HTML_BLOCK_BLANK_LINES, extensions: Fragment::EXTENSIONS)
173
173
 
174
174
  # Strip front matter from included file if present.
175
175
  front_matter_node = included_document.first_child
@@ -5,5 +5,5 @@
5
5
 
6
6
  # @namespace
7
7
  module Presently
8
- VERSION = "0.18.0"
8
+ VERSION = "0.19.0"
9
9
  end
data/readme.md CHANGED
@@ -67,6 +67,11 @@ The task records the presentation at 1920×1080 and 30 frames per second by defa
67
67
 
68
68
  Please see the [project releases](https://socketry.github.io/presently/releases/index) for all releases.
69
69
 
70
+ ### v0.19.0
71
+
72
+ - Support language-prefixed inline code such as `ruby:` for syntax highlighting.
73
+ - Preserve blank lines within consistently indented HTML blocks in slide Markdown.
74
+
70
75
  ### v0.18.0
71
76
 
72
77
  - Render slides on a responsive 16:9 canvas across the display, presenter, recording, playback, and export interfaces.
@@ -114,11 +119,6 @@ q
114
119
 
115
120
  - Add `Slide#element` and `SlideContext#element` getters — expose the slide body DOM element directly for cases where `find()` is not sufficient, such as measuring dimensions, attaching event listeners, or integrating third-party libraries.
116
121
 
117
- ### v0.10.0
118
-
119
- - Replace internal `SlideChain` with an exported `SlideContext` class. `SlideContext` accumulates elapsed time across `after()` calls exactly as `SlideChain` did, but also exposes `find()`, `setTimeout()`, and a `get elapsed()` getter. `Slide#after()` now returns a `SlideContext` — existing slide scripts are unaffected.
120
- - Add `Slide#loop(callback, {delay})` — runs a callback in a repeating loop until the slide changes. The callback receives a fresh `SlideContext` each iteration so it can schedule steps with `after()`. The loop waits for all steps to complete (`context.elapsed`) plus an optional extra `delay` before starting the next iteration. All timeouts flow through the slide's existing tracked `setTimeout`, so they are cancelled automatically on slide change.
121
-
122
122
  ## See Also
123
123
 
124
124
  - [lively](https://github.com/socketry/lively) — The real-time application framework that powers Presently.
data/releases.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Releases
2
2
 
3
+ ## v0.19.0
4
+
5
+ - Support language-prefixed inline code such as `ruby:` for syntax highlighting.
6
+ - Preserve blank lines within consistently indented HTML blocks in slide Markdown.
7
+
3
8
  ## v0.18.0
4
9
 
5
10
  - Render slides on a responsive 16:9 canvas across the display, presenter, recording, playback, and export interfaces.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presently
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.16'
75
+ version: '0.19'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.16'
82
+ version: '0.19'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: async-webdriver
85
85
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file