UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

23 lines (21 loc) 769 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.confluenceInlineComment = void 0; var _markTypes = require("../../next-schema/generated/markTypes"); /** * @name inline_comment_marker * @description This temporary mark represents a Confluence-backed inline comment that wraps a piece of text. It will be replaced with a cross-product inline comment solution at later date. */ var confluenceInlineComment = exports.confluenceInlineComment = (0, _markTypes.confluenceInlineComment)({ parseDOM: [{ tag: 'span[data-mark-type="confluenceInlineComment"]' }], toDOM: function toDOM(node) { return ['span', { 'data-mark-type': 'confluenceInlineComment', 'data-reference': node.attrs.reference }]; } });