chore: rename challenge-md-parser

This commit is contained in:
Oliver Eyton-Williams
2021-02-01 17:46:27 +01:00
committed by Mrugesh Mohapatra
parent f4efb13a21
commit e3511f2930
11 changed files with 15 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@freecodecamp/challenge-md-parser",
"name": "@freecodecamp/challenge-parser",
"version": "2.0.0",
"lockfileVersion": 1,
"requires": true,

View File

@@ -1,5 +1,5 @@
{
"name": "@freecodecamp/challenge-md-parser",
"name": "@freecodecamp/challenge-parser",
"version": "2.0.0",
"description": "",
"main": "index.js",

View File

@@ -3,7 +3,7 @@ const fs = require('fs');
const path = require('path');
const { getText } = require('./get-challenge-text');
const { challengeToString } = require('./create-challenge-string');
const { parseMD } = require('../../challenge-md-parser/mdx');
const { parseMD } = require('../../challenge-parser/mdx');
const challengeDir = '../../../curriculum/challenges/';
const enChalDir = path.resolve(__dirname, challengeDir, 'english');

View File

@@ -1,8 +1,8 @@
const { root } = require('mdast-builder');
const getAllBetween = require('../../../challenge-md-parser/mdx/plugins/utils/between-headings');
const getAllBetween = require('../../../challenge-parser/mdx/plugins/utils/between-headings');
const {
splitOnThematicBreak
} = require('../../../challenge-md-parser/mdx/plugins/utils/split-on-thematic-break');
} = require('../../../challenge-parser/mdx/plugins/utils/split-on-thematic-break');
const { stringifyMd } = require('./text-to-data');

View File

@@ -1,5 +1,5 @@
const chunk = require('lodash/chunk');
const getAllBetween = require('../../../challenge-md-parser/mdx/plugins/utils/between-headings');
const getAllBetween = require('../../../challenge-parser/mdx/plugins/utils/between-headings');
const { stringifyMd } = require('./text-to-data');
function plugin() {

View File

@@ -1,7 +1,7 @@
const stringify = require('remark-stringify');
const { root } = require('mdast-builder');
const unified = require('unified');
const getAllBetween = require('../../../challenge-md-parser/mdx/plugins/utils/between-headings');
const getAllBetween = require('../../../challenge-parser/mdx/plugins/utils/between-headings');
const stringifyMd = nodes =>
unified()

View File

@@ -2,7 +2,7 @@ const readdirp = require('readdirp-walk');
const { has, isEmpty, isNumber } = require('lodash');
const ora = require('ora');
const { parseMarkdown } = require('../../challenge-md-parser');
const { parseMarkdown } = require('../../challenge-parser');
const { challengeRoot, checkFrontmatter } = require('./md-testing-utils');
const scrimbaUrlRE = /^https:\/\/scrimba\.com\//;