feat(client): add notes tab to project based curriculum (#44247)
* feat: add notes tab to project based curriculum * feat: add console key to i18n * feat: add reset to i18n * fix: use translations in action-row * fix: use hasEditableBoundaries as check for when to display instructions/editor-tabs * fix: clean up notes components and use prism formatting * feat: add notes to docs/how-to-work-on-challenges * revert: unused code * fix: lint errors? * fix: lint errors * fix: add notes to graphql schema * fix: add notes to challenge schema * fix: only display notes on project based * fix: add env data back to mobile layout * fix: prettify * revert: notes * fix: hide notes on mobile for non project based * rename: switchDisplayTab -> togglePane * revert: hasEditableBoundaries check back to projectBasedChallenge check
This commit is contained in:
@ -45,12 +45,13 @@ const processor = unified()
|
||||
.use(restoreDirectives)
|
||||
.use(addVideoQuestion)
|
||||
.use(addTests)
|
||||
.use(addText, ['description', 'instructions']);
|
||||
.use(addText, ['description', 'instructions', 'notes']);
|
||||
|
||||
exports.parseMD = function parseMD(filename) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const file = readSync(filename);
|
||||
const tree = processor.parse(file);
|
||||
|
||||
processor.run(tree, file, function (err, node, file) {
|
||||
if (!err) {
|
||||
resolve(file.data);
|
||||
|
Reference in New Issue
Block a user