pfwr 0.7.2 → 0.7.3

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.
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # pfwr
2
2
 
3
- [![CI Status](https://img.shields.io/github/workflow/status/nikku/pfwr/CI/main)](https://github.com/nikku/pfwr/actions?query=workflow%3ACI)
3
+ [![CI](https://github.com/nikku/pfwr/actions/workflows/CI.yml/badge.svg)](https://github.com/nikku/pfwr/actions/workflows/CI.yml)
4
4
 
5
- Turns your [Markdown file](https://github.com/nikku/pfwr/blob/main/README.md#example) into [a beautiful HTML slide deck](https://cdn.statically.io/gh/nikku/pfwr/v0.7.2/example/presentation.html). Batteries included.
5
+ Turns your [Markdown file](https://github.com/nikku/pfwr/blob/main/README.md#example) into [a beautiful HTML slide deck](https://cdn.statically.io/gh/nikku/pfwr/v0.7.3/example/presentation.html). Batteries included.
6
6
 
7
7
 
8
8
  ## Introduction
9
9
 
10
- [![Slide deck generated from Markdown via pfwr](https://raw.githubusercontent.com/nikku/pfwr/main/docs/screenshot.png)](https://cdn.statically.io/gh/nikku/pfwr/v0.7.2/example/presentation.html)
10
+ [![Slide deck generated from Markdown via pfwr](https://raw.githubusercontent.com/nikku/pfwr/main/docs/screenshot.png)](https://cdn.statically.io/gh/nikku/pfwr/v0.7.3/example/presentation.html)
11
11
 
12
12
 
13
13
  ## Usage
@@ -74,7 +74,7 @@ Convert the file to an HTML file:
74
74
  pfwr presentation.md presentation.html
75
75
  ```
76
76
 
77
- Open [the slide deck](https://cdn.statically.io/gh/nikku/pfwr/v0.7.2/example/presentation.html) in your favorite browser.
77
+ Open [the slide deck](https://cdn.statically.io/gh/nikku/pfwr/v0.7.3/example/presentation.html) in your favorite browser.
78
78
 
79
79
 
80
80
  ## Security Considerations
package/dist/index.js CHANGED
@@ -39352,7 +39352,7 @@ var prismScript = "/* PrismJS 1.23.0\nhttps://prismjs.com/download.html#themes=p
39352
39352
 
39353
39353
  var prismStyle = "/* PrismJS 1.23.0\nhttps://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript */\n/**\n * okaidia theme for JavaScript, CSS and HTML\n * Loosely based on Monokai textmate theme by http://www.monokai.nl/\n * @author ocodia\n */\n\ncode[class*=\"language-\"],\npre[class*=\"language-\"] {\n\tcolor: #f8f8f2;\n\tbackground: none;\n\ttext-shadow: 0 1px rgba(0, 0, 0, 0.3);\n\tfont-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n\tfont-size: 1em;\n\ttext-align: left;\n\twhite-space: pre;\n\tword-spacing: normal;\n\tword-break: normal;\n\tword-wrap: normal;\n\tline-height: 1.5;\n\n\t-moz-tab-size: 4;\n\t-o-tab-size: 4;\n\ttab-size: 4;\n\n\t-webkit-hyphens: none;\n\t-moz-hyphens: none;\n\t-ms-hyphens: none;\n\thyphens: none;\n}\n\n/* Code blocks */\npre[class*=\"language-\"] {\n\tpadding: 1em;\n\tmargin: .5em 0;\n\toverflow: auto;\n\tborder-radius: 0.3em;\n}\n\n:not(pre) > code[class*=\"language-\"],\npre[class*=\"language-\"] {\n\tbackground: #272822;\n}\n\n/* Inline code */\n:not(pre) > code[class*=\"language-\"] {\n\tpadding: .1em;\n\tborder-radius: .3em;\n\twhite-space: normal;\n}\n\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n\tcolor: #8292a2;\n}\n\n.token.punctuation {\n\tcolor: #f8f8f2;\n}\n\n.token.namespace {\n\topacity: .7;\n}\n\n.token.property,\n.token.tag,\n.token.constant,\n.token.symbol,\n.token.deleted {\n\tcolor: #f92672;\n}\n\n.token.boolean,\n.token.number {\n\tcolor: #ae81ff;\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.inserted {\n\tcolor: #a6e22e;\n}\n\n.token.operator,\n.token.entity,\n.token.url,\n.language-css .token.string,\n.style .token.string,\n.token.variable {\n\tcolor: #f8f8f2;\n}\n\n.token.atrule,\n.token.attr-value,\n.token.function,\n.token.class-name {\n\tcolor: #e6db74;\n}\n\n.token.keyword {\n\tcolor: #66d9ef;\n}\n\n.token.regex,\n.token.important {\n\tcolor: #fd971f;\n}\n\n.token.important,\n.token.bold {\n\tfont-weight: bold;\n}\n.token.italic {\n\tfont-style: italic;\n}\n\n.token.entity {\n\tcursor: help;\n}\n\n";
39354
39354
 
39355
- var indexScript = "function onLoaded(fn) {\n window.addEventListener('DOMContentLoaded', fn);\n}\n\nfunction onHashChange(fn) {\n window.addEventListener('hashchange', fn, false);\n}\n\nfunction setSlide(slide) {\n window.location.hash = '#' + (slide + 1);\n}\n\nfunction getSlide() {\n const hash = window.location.hash;\n\n const slideHash = hash && hash.substring(1);\n\n return (slideHash && parseInt(slideHash, 10) || 1) - 1;\n}\n\nonLoaded(() => {\n const container = document.querySelector('#slide-container');\n\n // proper emojis\n\n twemoji.parse(container, {\n folder: 'svg',\n ext: '.svg'\n });\n\n // bootstrap presentation\n\n const presentation = pfwr({\n container\n });\n\n presentation.goto(getSlide());\n\n onHashChange(() => {\n presentation.goto(getSlide());\n });\n\n presentation.on('slideChanged', function(event) {\n setSlide(event.slideIndex);\n });\n\n});";
39355
+ var indexScript = "function onLoaded(fn) {\n window.addEventListener('DOMContentLoaded', fn);\n}\n\nfunction onHashChange(fn) {\n window.addEventListener('hashchange', fn, false);\n}\n\nfunction setSlide(slide) {\n window.location.hash = '#' + (slide + 1);\n}\n\nfunction getSlide() {\n const hash = window.location.hash;\n\n const slideHash = hash && hash.substring(1);\n\n return (slideHash && parseInt(slideHash, 10) || 1) - 1;\n}\n\nonLoaded(() => {\n const container = document.querySelector('#slide-container');\n\n // proper emojis\n\n typeof twemoji !== 'undefined' && twemoji.parse(container, {\n folder: 'svg',\n ext: '.svg',\n base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/'\n });\n\n // bootstrap presentation\n\n const presentation = pfwr({\n container\n });\n\n presentation.goto(getSlide());\n\n onHashChange(() => {\n presentation.goto(getSlide());\n });\n\n presentation.on('slideChanged', function(event) {\n setSlide(event.slideIndex);\n });\n\n});";
39356
39356
 
39357
39357
  function pfwr(input) {
39358
39358
 
@@ -39381,7 +39381,7 @@ function pfwr(input) {
39381
39381
  pfwrStyle
39382
39382
  ],
39383
39383
  js: [
39384
- 'https://twemoji.maxcdn.com/v/latest/twemoji.min.js'
39384
+ 'https://unpkg.com/twemoji@latest/dist/twemoji.min.js'
39385
39385
  ],
39386
39386
  script: [
39387
39387
  pfwrScript,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pfwr",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "The last markdown to HTML slide show generator you need",
5
5
  "module": "dist/index.js",
6
6
  "bin": "./bin/cli.js",