Add documentation for using Milkdown with various frameworks
- Created a new document for using components in Milkdown. - Added a guide for using plugins in Milkdown, including toggling plugins programmatically and listing official plugins. - Introduced a recipe for integrating Milkdown with Angular, including installation steps and component creation. - Added a recipe for using Milkdown with Next.js, detailing installation and component setup. - Created a guide for integrating Milkdown with NuxtJS, including installation and component creation. - Added a comprehensive guide for using Milkdown with React, covering both Crepe and core Milkdown usage. - Introduced a recipe for SolidJS integration with Milkdown, including installation and component creation. - Added a guide for using Milkdown with Svelte, detailing installation and component setup. - Created a comprehensive guide for integrating Milkdown with Vue, covering both Crepe and core Milkdown usage. - Added a recipe for using Milkdown with Vue2, including installation and component creation.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { knownLanguages } from '../generatedLanguages';
|
||||
import { languageMarkers } from '../../../../prompt/src/languageMarker';
|
||||
import * as assert from 'assert';
|
||||
|
||||
suite('generated languages', function () {
|
||||
// tex exists as latex and tex in language markers
|
||||
// jsx exists as jsx and javascriptreact in language markers. However jsx is never detected according to telemetry data
|
||||
// vue-html will be detected as html
|
||||
const ignoredMappings = ['jsx', 'tex', 'vue-html'];
|
||||
|
||||
for (const marker in languageMarkers) {
|
||||
if (!ignoredMappings.includes(marker)) {
|
||||
test(`'${marker}' is generated`, function () {
|
||||
assert.ok(
|
||||
marker in knownLanguages,
|
||||
'language for comment marker ' + marker + ' has not been generated'
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user