xref: /third_party/node/test/fixtures/snapshot/check-marked.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/snapshot/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_cilet marked;
41cb0ef41Sopenharmony_ciif (process.env.NODE_TEST_USE_SNAPSHOT === 'true') {
51cb0ef41Sopenharmony_ci  console.error('NODE_TEST_USE_SNAPSHOT true');
61cb0ef41Sopenharmony_ci  marked = globalThis.marked;
71cb0ef41Sopenharmony_ci} else {
81cb0ef41Sopenharmony_ci  console.error('NODE_TEST_USE_SNAPSHOT false');
91cb0ef41Sopenharmony_ci  marked = require('./marked');
101cb0ef41Sopenharmony_ci}
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_ciconst md = `
131cb0ef41Sopenharmony_ci# heading
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ci[link][1]
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ci[1]: #heading "heading"
181cb0ef41Sopenharmony_ci`;
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_ciconst html = marked(md)
211cb0ef41Sopenharmony_ciconsole.log(html);
22

Indexes created Thu Nov 07 10:32:03 CST 2024