How to use commonmark-spec - 1 common examples

To help you get started, we’ve selected a few commonmark-spec examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github netlify / netlify-cms / packages / netlify-cms-widget-markdown / src / serializers / __tests__ / commonmark.spec.js View on Github external
describe.skip('Commonmark support', function() {
  const specs =
    onlys.length > 0
      ? commonmarkSpec.filter(({ number }) => onlys.includes(number))
      : commonmarkSpec;
  specs.forEach(spec => {
    const skip = skips.find(({ number }) => {
      return Array.isArray(number) ? number.includes(spec.number) : number === spec.number;
    });
    const specUrl = `https://spec.commonmark.org/0.29/#example-${spec.number}`;
    const parsed = parse(spec.markdown);
    const commonmarkParsedHtml = parseWithCommonmark(parsed);
    const description = `
${spec.section}
${specUrl}

Spec:
${JSON.stringify(spec, null, 2)}

Markdown input:

commonmark-spec

CommonMark spec and test cases

CC-BY-SA-4.0
Latest version published 11 months ago

Package Health Score

66 / 100
Full package analysis

Popular commonmark-spec functions