Skip to content

Create clickable links when using html filter #11823

Description

@aseques

Explain the problem.

When using the -f csv -t html format, the autolink feature doesn't work, and I need to do extra steps to get the urls highlighted in the resulting html

Name,Category,Description,Link
Item 1,Category A,Description of item 1,"https://www.example.com"
Item 2,Category B,Description of item 2,"<https://www.example.com>"
Item 3,Category C,Description of item 3,"[link](https://www.example.com)"

pandoc -f csv -t html test.csv -o test.html

As seen in the browser:
Image

The html code

<table>
<thead>
<tr>
<th>Name</th>
<th>Category</th>
<th>Description</th>
<th>Link</th>
</tr>
</thead>
<tbody>
<tr>
<td>Item 1</td>
<td>Category A</td>
<td>Description of item 1</td>
<td>https://www.example.com</td>
</tr>
<tr>
<td>Item 2</td>
<td>Category B</td>
<td>Description of item 2</td>
<td>&lt;https://www.example.com&gt;</td>
</tr>
<tr>
<td>Item 3</td>
<td>Category C</td>
<td>Description of item 3</td>
<td>[link](https://www.example.com)</td>
</tr>
</tbody>
</table>

I'd naively expected that the links would be highlighed, a couple of places where it does work in this way in pandoc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions