# Problems with upgrade (redcarpet) from Jekyll 3.7 to 4.2

**URL:** <https://talk.jekyllrb.com/t/problems-with-upgrade-redcarpet-from-jekyll-3-7-to-4-2/6210>\
**Category:** Help\
**Created:** [July 5, 2021, 12:50pm UTC](https://talk.jekyllrb.com/t/problems-with-upgrade-redcarpet-from-jekyll-3-7-to-4-2/6210 "2021-07-05T12:50:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![immo77](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/immo77/32/3724_2.png) [@immo77](https://talk.jekyllrb.com/u/immo77)\
**Post date:** [July 5, 2021, 12:50pm UTC](https://talk.jekyllrb.com/t/problems-with-upgrade-redcarpet-from-jekyll-3-7-to-4-2/6210/1 "2021-07-05T12:50:59Z")

</div>

Hi, I’ve been using Jekyll for a few years. Now I want to upgrade to 4.2 and I have problems with the MD-HTML parser from Jekyll code to HTML. I have been using redcarpet and the code does not work with other markdown renderers like kramdown. Is there any way to use redcarpet or another better markdown parser? I think the main problem is that I am using csv-database in some FOR loops!  
Is there anyone who has the same problems or a solution?

Kind regards Norbert

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [July 5, 2021, 3:01pm UTC](https://talk.jekyllrb.com/t/problems-with-upgrade-redcarpet-from-jekyll-3-7-to-4-2/6210/2 "2021-07-05T15:01:53Z")

</div>

Is “csv-database” a particular feature of Redcarpet? Certainly Kramdown can be used in a Liquid loop that accesses CSV data from Jekyll’s `_data` directory.

Here’s an older topic that discusses the removal of alternate Markdown engines:

> [@Jekyll 4.0: Many Markdown engines removed. Reason?](https://talk.jekyllrb.com/t/jekyll-4-0-many-markdown-engines-removed-reason/5912):
>
> I’ve finally got around to upgrading my blog from Jekyll 1.5(!) to a more modern version of Jekyll. However I notice that Jekyll 4.0 dropped support for the RDiscount and Redcarpet markdown engines, leaving only(?) the Kramdown engine. I happen to use the RDiscount engine and I’m pretty sure that changing the engine of my site will break lots of old posts in subtle ways. Is there a reason that support was dropped? The [PR](https://github.com/jekyll/jekyll/pull/6988) dropping the support didn’t mention a rationale. Neither did the [release …](https://jekyllrb.com/news/2019/08/20/jekyll-4-0-0-released/)

---

<div class="post-metadata">

**Author:** ![immo77](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/immo77/32/3724_2.png) [@immo77](https://talk.jekyllrb.com/u/immo77)\
**Post date:** [July 5, 2021, 6:28pm UTC](https://talk.jekyllrb.com/t/problems-with-upgrade-redcarpet-from-jekyll-3-7-to-4-2/6210/3 "2021-07-05T18:28:49Z")

</div>

Hi chuckhoupt, thank you very much for your reply. Sorry, but I don’t understand this decision, because I read that redcarpet is a long term project in Git. Well i want a long term solution though! Can I ask you what you mean: Is it a possibility that I try to convert my csv data to xml format data to use in kramdown or would a csv usage somehow still be possible? Do you have any idea? Thanks Norbert

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [July 5, 2021, 7:29pm UTC](https://talk.jekyllrb.com/t/problems-with-upgrade-redcarpet-from-jekyll-3-7-to-4-2/6210/4 "2021-07-05T19:29:49Z")

</div>

CSV data works the same in Jekyll 3 and 4, irrespective of Markdown processor used. To be clear, here’s an example (untested code):

File `_data/contacts.csv`:

```auto
name, phone
Alice, 555-1111
Bob, 555-2222
...

```

Example Liquid loop to create Markdown list:

```auto
# Contact List

{% for contact in site.data.contacts -%}
- Name: {{ contact.name }} Phone: {{ contact.phone }}
{%- endfor %}

```

Is this how you are using CSV data in Jekyll? Or some other mechanism?

---

<div class="post-metadata">

**Author:** ![immo77](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/immo77/32/3724_2.png) [@immo77](https://talk.jekyllrb.com/u/immo77)\
**Post date:** [July 6, 2021, 10:46am UTC](https://talk.jekyllrb.com/t/problems-with-upgrade-redcarpet-from-jekyll-3-7-to-4-2/6210/5 "2021-07-06T10:46:23Z")

</div>

Hi Chuck, yes I do the same mechanism (but without “-%” ?) with redcarped, but with kramdown it doesn’t work :-(!  
I will test the code and answer you afterwards! Thanks Norbert

{% for pictdb2 in site.data.pictdb2s %}  
{% if pictdb2.status contains “whng” %}

```
<figure id="gallery">
<figure> <img align=bottom width=80% height=auto border=0 src="../publ/pict/{{ pictdb2.picturl }}">
<figcaption>{{ pictdb2.pictname }}<div class="d">|{{ pictdb2.pictinx }}|</figcaption>
</figure>
</figure>

{% endif %}

```

{% endfor %}

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [July 6, 2021, 10:55pm UTC](https://talk.jekyllrb.com/t/problems-with-upgrade-redcarpet-from-jekyll-3-7-to-4-2/6210/6 "2021-07-06T22:55:11Z")

</div>

I added a tutorial to the Jekyll docs site on how to load a CSV and render it as HTML

Hope that helps

> **[Tabulate CSV Data](https://jekyllrb.com/tutorials/csv-to-table/)**
>
> This tutorial shows how to use Jekyll to read a CSV and render the data as an HTML table.

```auto
<table>
  {% for row in site.data.authors %}
    {% if forloop.first %}
    <tr>
      {% for pair in row %}
        <th>{{ pair[0] }}</th>
      {% endfor %}
    </tr>
    {% endif %}
  {% endfor %}
</table>

```

And if you want a table you could use `ul` and each row is `li`. And then add ul and li inside that for each value in a row

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [July 7, 2021, 11:44am UTC](https://talk.jekyllrb.com/t/problems-with-upgrade-redcarpet-from-jekyll-3-7-to-4-2/6210/7 "2021-07-07T11:44:24Z")

</div>

> [@immo77](#):
>
> `<figcaption>{{ pictdb2.pictname }}<div class="d">|{{ pictdb2.pictinx }}|</figcaption>`

Inside this `<figcaption>`, there’s an unclosed `<div>`. Possibly that might cause output differences between Redcarpet and Kramdown?
