diff --git a/nx-dev/ui-markdoc/src/index.ts b/nx-dev/ui-markdoc/src/index.ts index 3a2f2969f4e71..eb8ef223f3090 100644 --- a/nx-dev/ui-markdoc/src/index.ts +++ b/nx-dev/ui-markdoc/src/index.ts @@ -56,7 +56,7 @@ import { pill } from './lib/tags/pill.schema'; import { fence } from './lib/nodes/fence.schema'; import { FenceWrapper } from './lib/nodes/fence-wrapper.component'; import { VideoPlayer, videoPlayer } from './lib/tags/video-player.component'; - +import { td } from './lib/nodes/td.schema'; // TODO fix this export export { GithubRepository } from './lib/tags/github-repository.component'; @@ -70,6 +70,7 @@ export const getMarkdocCustomConfig = ( heading: getHeadingSchema(headingClass), image: getImageSchema(documentFilePath), link, + td, }, tags: { callout, diff --git a/nx-dev/ui-markdoc/src/lib/nodes/td.schema.ts b/nx-dev/ui-markdoc/src/lib/nodes/td.schema.ts new file mode 100644 index 0000000000000..6509493f9b848 --- /dev/null +++ b/nx-dev/ui-markdoc/src/lib/nodes/td.schema.ts @@ -0,0 +1,8 @@ +import { Schema } from '@markdoc/markdoc'; + +export const td: Schema = { + render: 'td', + attributes: { + className: { type: 'String', default: 'text-center' }, + }, +};