lychee/.github/workflows
Matthias Endler 55797071b0
Fix nested URL extraction in verbatim elements (#988)
Skipping URLs in verbatim elements didn't take nested
elements into consideration, which were not verbatim.

For instance, the following HTML snippet would yield
`https://example.com` in non-verbatim mode, even if
it is nested inside a verbatim `<pre>` element:

```html
<pre><a href="https://example.com">link</a></pre>
```

This commit fixes the behavior for both `html5gum` and
`html5ever`.

Note that nested verbatim elements of the same kind
still are not handled correctly.

For instance,  the following HTML snippet would still yield
`https://example.com`:

```html
<pre>
  <pre></pre>
  <a href="https://example.com">link</a>
</pre>
```

The reason is that we currently only keep track of a single
verbatim element and not a stack of elements, which we
would need to unwind and resolve the situation.

Fixes https://github.com/lycheeverse/lychee/issues/986.
2023-03-11 15:18:25 +01:00
..
auto-merge.yml ci: update checkout action to v3 (#927) 2023-01-21 16:13:48 +01:00
ci.yml Fix nested URL extraction in verbatim elements (#988) 2023-03-11 15:18:25 +01:00
docker.yml Don't build Docker image for pushes to arbitrary branches (#894) 2023-01-02 14:07:29 +01:00
links.yml ci: update checkout action to v3 (#927) 2023-01-21 16:13:48 +01:00
release.yml ci: update checkout action to v3 (#927) 2023-01-21 16:13:48 +01:00