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
Our current test bed does not reflect the specifications in their entirety. Creating one test at a time is not a viable way forward (see #1124 & #1129).
Use the spec JSON to generate test files. Thinking the following makes the most sense for readability and whatnot.
Template:
// [flavor short name]_[section].jsit('should pass [flavor short name] example [example number]',function(){varresult=marked([specmarkdown]);varexpected=[spechtml];expected(result).toBe(expected);}
Live example:
// cm_list_items.jsit('should pass cm example 230',function(){varresult=marked(0.ok\n);varexpected='<ol start=\"0\">\n<li>ok</li>\n</ol>\n';expected(result).toBe(expected);}it('should pass cm example 234',function(){varresult=marked(' 10. foo\n\n bar\n');varexpected='<ol start=\"10\">\n<li>\n<p>foo</p>\n<pre><code>bar\n</code></pre>\n</li>\n</ol>\n';expected(result).toBe(expected);}
The text was updated successfully, but these errors were encountered:
Marked version: 0.3.18
Markdown flavor: CommonMark
Proposal type: other
What pain point are you perceiving?
Our current test bed does not reflect the specifications in their entirety. Creating one test at a time is not a viable way forward (see #1124 & #1129).
Other resources:
http://spec.commonmark.org/0.28/spec.json
Feder1co5oave@ec2e873
https://github.com/Feder1co5oave/marktex/blob/0e2b3eea3ec8013377e6fc4ea3d72624ad1c40c2/test/index.js
What solution are you suggesting?
Use the spec JSON to generate test files. Thinking the following makes the most sense for readability and whatnot.
Template:
Live example:
The text was updated successfully, but these errors were encountered: