popcodeorg / popcodeorg/popcode

Popcode should error when <ol> nested in <p>

Open
#1,619 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
JavaScript
Stars
191
Forks
143
Avg merge
4d 11h
Merged PRs (30d)
5

Description

N.B. Be sure to read this comment for discussion of the rather subtle nature of this problem / scope of the solution


Submitter: Xavier
Email: krulcik@google.com
Popcode does not detect when a paragraph tag is not closed before the beginning of an ordered list.

Here is the input text in popcode:

Text A

  1. item 1
Text B

In the preview iframe, chrome tries to correct this malformed HTML like this:

Text A

  1. item 1
Text B

Meaning "Text B" does not render as a paragraph. Chrome version:
Google Chrome 70.0.3538.76 (Official Build)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked discussion first, then reproduce the malformed HTML in the Popcode editor and inspect the preview iframe behavior. The work is complete when Popcode detects and reports an

    nested in an open

    , with the intended scope confirmed against the discussion.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
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.