diff --git a/packages/super-editor/src/editors/v1/core/super-converter/v2/importer/citationImporter.js b/packages/super-editor/src/editors/v1/core/super-converter/v2/importer/citationImporter.js new file mode 100644 index 0000000000..5ba1fb6dc5 --- /dev/null +++ b/packages/super-editor/src/editors/v1/core/super-converter/v2/importer/citationImporter.js @@ -0,0 +1,7 @@ +import { generateV2HandlerEntity } from '@core/super-converter/v3/handlers/utils'; +import { translator as citationTranslator } from '../../v3/handlers/sd/citation/citation-translator.js'; + +/** + * @type {import("./docxImporter").NodeHandlerEntry} + */ +export const citationHandlerEntity = generateV2HandlerEntity('citationHandler', citationTranslator); diff --git a/packages/super-editor/src/editors/v1/core/super-converter/v2/importer/docxImporter.js b/packages/super-editor/src/editors/v1/core/super-converter/v2/importer/docxImporter.js index 5a80b027d3..9e1802bd29 100644 --- a/packages/super-editor/src/editors/v1/core/super-converter/v2/importer/docxImporter.js +++ b/packages/super-editor/src/editors/v1/core/super-converter/v2/importer/docxImporter.js @@ -32,6 +32,7 @@ import { tableNodeHandlerEntity } from './tableImporter.js'; import { tableOfContentsHandlerEntity } from './tableOfContentsImporter.js'; import { indexHandlerEntity, indexEntryHandlerEntity } from './indexImporter.js'; import { bibliographyHandlerEntity } from './bibliographyImporter.js'; +import { citationHandlerEntity } from './citationImporter.js'; import { preProcessNodesForFldChar } from '../../field-references'; import { preProcessPageFieldsOnly } from '../../field-references/preProcessPageFieldsOnly.js'; import { ensureNumberingCache } from './numberingCache.js'; @@ -251,6 +252,7 @@ export const defaultNodeListHandler = () => { tableOfContentsHandlerEntity, indexHandlerEntity, bibliographyHandlerEntity, + citationHandlerEntity, indexEntryHandlerEntity, autoPageHandlerEntity, autoTotalPageCountEntity,