# Zola 12 Issue with continue-reading

**URL:** <https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590>\
**Category:** Support\
**Created:** [September 16, 2020, 10:35am UTC](https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590 "2020-09-16T10:35:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SgtIria](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sgtiria/32/85_2.png) [@SgtIria](https://zola.discourse.group/u/SgtIria)\
**Post date:** [September 16, 2020, 10:35am UTC](https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590/1 "2020-09-16T10:35:32Z")

</div>

# Zola 12 issues with continue-reading

I’ve observed some issues with `continue-reading` in Zola 12. This time it’s with template output, it looks the same as the issues with the RSS output I noted earlier.

## markdown

```auto
+++

### Get The Mega Bundle **Every Podcast Bundle Episode** All In One Easy Download 

{{ icon(fileName="paperplane",optImgClass="is-pulled-left is-64x64") }}

Do you just want it all? Then why not pay a little more and you will get a **MEGA bundle** of hundreds of brilliant English lessons with **free upgrades** as they become available.
<!-- more -->
It's a massive back catalogue of English podcast lessons we call the **MEGA Bundle**

Click on the `red BUY NOW button` and you could be improving your English fluency **today.**

....

```

> Note the the summary text delineated by \<!-- more →

## The template

```auto
				<div>		  
				  {{ post.summary | safe }}
				</div>

```

> Simple, just pulls the post.summary

## Rendered output (Chrome)

 ![continue-reading-capture](https://global.discourse-cdn.com/free1/uploads/zola1/original/1X/3c42caa1fc5d2858f999b7601c2b6dc74db23f0c.jpeg)

> The output looks ok (browser is ignoring broken tags)

## Zola 11 HTML Output

```auto
<p>Do you just want it all? Then why not pay a little more and you will get a <strong>MEGA bundle</strong> of hundreds of brilliant English lessons with <strong>free upgrades</strong> as they become available.</p>

```

> Works fine.

## Zola 12 HTML Output

```auto
<p>Do you just want it all? Then why not pay a little more and you will get a <strong>MEGA bundle</strong> of hundreds of brilliant English lessons with <strong>free upgrades</strong> as they become available.</p>
<span id="continue-reading"></span>
<p>It's a massive ba

```

> Contains html from beyond the post.summary, which is truncated

## Observations

- A new unnecessary span with the ID is included (It should be harmless unless the ID conflicts)
- The rendered output of post.summary now includes truncated HTML beyond that specified in the markdown using

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [September 16, 2020, 12:59pm UTC](https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590/2 "2020-09-16T12:59:02Z")

</div>

The likely cause: [https://github.com/getzola/zola/pull/941](https://github.com/getzola/zola/pull/941)

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [September 17, 2020, 7:21pm UTC](https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590/3 "2020-09-17T19:21:27Z")

</div>

@SgtIria can you make a small reproduction? I cannot reproduce with your example locally.

---

<div class="post-metadata">

**Author:** ![SgtIria](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sgtiria/32/85_2.png) [@SgtIria](https://zola.discourse.group/u/SgtIria)\
**Post date:** [September 22, 2020, 3:42pm UTC](https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590/5 "2020-09-22T15:42:15Z")

</div>

## Zola V12+13

> The problem: Continue-reading text appearing in content.summary output.

After a lot of trial an error testing, we think we’ve narrowed it down to being a problem with markdown content that has a shortcode before the `<!-- more -->`

Markdown that works fine:

```auto
# Title 
Some text. 
<!-- more -->
Some more text...

```

Markdown that results in an injection of **continue-reading** HTML:

```auto
# Title 
Some text. 
{{ quote(body="Nothing is impossible. The word itself says - I'm Possible" author="Audrey Hepburn")}}
(Optional text here or not results in the same issue)
<!-- more -->
Some more text...

```

The `page.summary` output for this has `<span id="continue-readi` included right at the end of the output, its truncated, the `<span>` is not closed.

## Observation

The spurious text generated seems to be dependent upon the type of shortcode being used. If we use a shortcode for displaying an image we would get a different type of corruption/HTML inserted in the `page.summary` being displayed.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [September 22, 2020, 3:50pm UTC](https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590/6 "2020-09-22T15:50:38Z")

</div>

Thanks for narrowing it down! I think this is the last major bug to be fixed for 0.12.1 ([https://github.com/getzola/zola/issues/1168](https://github.com/getzola/zola/issues/1168))

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [September 22, 2020, 8:17pm UTC](https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590/7 "2020-09-22T20:17:20Z")

</div>

I think [https://github.com/getzola/zola/pull/1181](https://github.com/getzola/zola/pull/1181) might fix it but i’ll add a test tomorrow.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [September 23, 2020, 5:22pm UTC](https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590/8 "2020-09-23T17:22:22Z")

</div>

I’ve added a test for that in [https://github.com/getzola/zola/pull/1181/commits/bbaefdf93fa92107eb0ee136747bf505caf0e1cc](https://github.com/getzola/zola/pull/1181/commits/bbaefdf93fa92107eb0ee136747bf505caf0e1cc) and it seems to work @SgtIria  
Can you clone it and verify? Let me know if you need help with the git/cargo commands

---

<div class="post-metadata">

**Author:** ![SgtIria](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/sgtiria/32/85_2.png) [@SgtIria](https://zola.discourse.group/u/SgtIria)\
**Post date:** [September 23, 2020, 7:31pm UTC](https://zola.discourse.group/t/zola-12-issue-with-continue-reading/590/9 "2020-09-23T19:31:41Z")

</div>

Ok, I rebuilt zola for windows V13 using PR 1181.

```auto
C:\Users\Iria\Zola\zola (zola-pr-1175 -> origin)
λ git fetch origin pull/1181/head:zola-pr-1181
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 88 (delta 52), reused 60 (delta 52), pack-reused 28
Unpacking objects: 100% (88/88), done.
From https://github.com/getzola/zola
 * [new ref] refs/pull/1181/head -> zola-pr-1181

C:\Users\Iria\Zola\zola (zola-pr-1175 -> origin)
λ git branch
  master
* zola-pr-1175
  zola-pr-1181

C:\Users\Iria\Zola\zola (zola-pr-1175 -> origin)
λ git checkout zola-pr-1181
Switched to branch 'zola-pr-1181'
   ...
   Compiling site v0.1.0 (C:\Users\Iria\Zola\zola\components\site)
   Finished release [optimized] target(s) in 8m 42s

```

I then rebuilt our site using V11 and this V13 of Zola. I then `diff` (Meld GUI) them to check for changes. They generated nearly exactly the same outputs for rss feeds.

We will run some more testing tomorrow, but it looks good at this point 🙂
