remark-mind-elixir 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remark-mind-elixir",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "remark",
package/src/index.js CHANGED
@@ -3,7 +3,9 @@ import { parse } from 'yaml'
3
3
 
4
4
  import { yaml2MindElixirData } from '@zikojs/mind-elixir/utils'
5
5
 
6
- const remarkElixirMind = () => {
6
+ const remarkElixirMind = ({
7
+ useCdn = true,
8
+ } = {}) => {
7
9
  return function transformer(tree) {
8
10
  let hasElixirMind = false
9
11
 
@@ -36,7 +38,7 @@ const remarkElixirMind = () => {
36
38
 
37
39
  if (!hasElixirMind) return
38
40
 
39
- tree.children.push({
41
+ useCdn && tree.children.push({
40
42
  type: 'html',
41
43
  value: `
42
44
  <style>