feat: trying to figure out syntax highlighting

This commit is contained in:
Stevan Freeborn
2023-04-11 17:00:54 -05:00
parent 247c2333fb
commit c87b2a39e8
6 changed files with 43 additions and 6 deletions
+2 -2
View File
@@ -1,9 +1,10 @@
import Markdoc from '@markdoc/markdoc';
import { default as Markdoc } from '@markdoc/markdoc';
import fs from 'fs';
import path from 'path';
import React, { ReactNode } from 'react';
import Code from '../components/Code';
import { Doc, DocSection } from './../types/types';
const DOCS_PATH = path.join(process.cwd(), 'src/docs');
function getCopyPath(version: string, doc: Doc): string {
@@ -36,7 +37,6 @@ const markDocConfig = {
tags: {
code: {
render: 'Code',
children: ['text'],
attributes: {
language: {
type: 'string',