eleventy-plugin-podcaster 0.10.0 → 0.10.1

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 +2 -2
  2. package/src/excerpts.js +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleventy-plugin-podcaster",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "An Eleventy plugin that allows you to create a podcast and its accompanying website",
5
5
  "main": "eleventy.config.js",
6
6
  "exports": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/nathan-bottomley/eleventy-plugin-podcaster.git"
11
+ "url": "git+https://github.com/nathan-bottomley/eleventy-plugin-podcaster.git"
12
12
  },
13
13
  "homepage": "https://github.com/nathan-bottomley/eleventy-plugin-podcaster/tree/main/docs",
14
14
  "type": "module",
package/src/excerpts.js CHANGED
@@ -9,7 +9,10 @@ export default function (eleventyConfig, options = {}) {
9
9
  return (data) => {
10
10
  if (!data.tags?.includes('podcastEpisode')) return
11
11
 
12
- const md = markdownIt()
12
+ const md = markdownIt({
13
+ html: true,
14
+ typographer: true
15
+ })
13
16
 
14
17
  // If an excerpt is set in front matter, use it
15
18
  if (data.excerpt) {
@@ -36,7 +39,9 @@ export default function (eleventyConfig, options = {}) {
36
39
  const dom = htmlparser2.parseDocument(htmlContent)
37
40
  const paragraph = dom.children.find(item => item.type === 'tag' && item.name === 'p')
38
41
  if (paragraph) {
39
- return render(paragraph)
42
+ const result = render(paragraph, { encodeEntities: 'utf8' })
43
+ console.log(result)
44
+ return result
40
45
  }
41
46
  }
42
47
  })