Oliver Eyton-Williams 0bd52f8bd1
Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00

1.1 KiB

id, title, challengeType, videoUrl, forumTopicId
id title challengeType videoUrl forumTopicId
bad87fed1348bd9aedf08833 Delete HTML Elements 0 https://scrimba.com/p/pVMPUv/ckK73C9 17559

--description--

Our phone doesn't have much vertical space.

Let's remove the unnecessary elements so we can start building our CatPhotoApp.

--instructions--

Delete your h1 element so we can simplify our view.

--hints--

Your h1 element should be deleted.

assert(!code.match(/<h1>/gi) && !code.match(/<\/h1>/gi));

Your h2 element should be on the page.

assert(code.match(/<h2>[\w\W]*<\/h2>/gi));

Your p element should be on the page.

assert(code.match(/<p>[\w\W]*<\/p>/gi));

--seed--

--seed-contents--

<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

--solutions--

<h2>CatPhotoApp</h2><p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>