alan-turing-institute / alan-turing-institute/ReadabiliPy

Unnecessary <div> elements

Open
#55 1 comment 1 reaction 0 assignees View on GitHub
bug future
Dominant language
HTML
Stars
359
Forks
44
PR merge metrics
No merged PRs in 30d

Description

In some cases, there are several wrapping levels of `

` in the `ReadabiliPy` output. These should be flattened.

The rationale behind this, is that the output of `ReadabiliPy` should (ideally) not depend on how deeply wrapped in `

`s the input is.

If we go down this route, we should think about which types of tag can be safely stripped out (eg. `

` and `` are fine, but `` or `` probably aren't).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the code that builds ReadabiliPy's HTML output and any existing handling or tests for nested div and span elements. Determine which wrapper tags can be safely flattened without changing meaningful structures such as tables or figures, then verify the output for nested and non-wrapper elements.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
content
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.