You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
In the Markdown Previewer, Test #6 (preview HTML has all required elements) passes, but #5(markdown has all elements) doesn't. I wrote about it in depth on the forum, but the TL;DR version:
The issue is that the regex used in by the testing suite bundle.js requires a whitespace character after the right-carat/greater-than ">" symbol, but marked.js doesn't require any whitespace in order to render a blockquote. The testing suite reports that it is at line @https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js:10986:14, but Notepad++ says it is on line 20109. Either way, the search string that will find the relevant line is: _chai.assert.notStrictEqual(markdown.search(/>\s.+/), -1, 'write some markdown representing a <blockquote> ');
I forked my Codepen to demonstrate the issue. I use a constant string to initialize the markdown textarea, INITIAL_MARKDOWN, which causes the issue. I have another string called WORKING_MARKDOWN, which is identical except that it has a space after the right-carat/greater-than symbol. You can fix the problem by swapping the names for the variables, at which point it will pass all the non-optional tests (7/9).
Browser Information
Browser Name, Version: Chrome Version 65.0.3325.181
Issue Description
In the Markdown Previewer, Test #6 (preview HTML has all required elements) passes, but #5(markdown has all elements) doesn't. I wrote about it in depth on the forum, but the TL;DR version:
The issue is that the regex used in by the testing suite
bundle.js
requires a whitespace character after the right-carat/greater-than ">" symbol, butmarked.js
doesn't require any whitespace in order to render a blockquote. The testing suite reports that it is at line@https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js:10986:14
, but Notepad++ says it is on line 20109. Either way, the search string that will find the relevant line is:_chai.assert.notStrictEqual(markdown.search(/>\s.+/), -1, 'write some markdown representing a <blockquote> ');
I forked my Codepen to demonstrate the issue. I use a constant string to initialize the markdown textarea,
INITIAL_MARKDOWN
, which causes the issue. I have another string calledWORKING_MARKDOWN
, which is identical except that it has a space after the right-carat/greater-than symbol. You can fix the problem by swapping the names for the variables, at which point it will pass all the non-optional tests (7/9).Browser Information
Your Code / Link to Your Pen
https://codepen.io/vipatron/pen/VxLdoE?editors=0010
Screenshot
The text was updated successfully, but these errors were encountered: