~/f/rstudio/RPMS.2017 ~/f/rstudio ~/f/rstudio RPMS.2017/rstudio-2022.02.2+485-0.0.x86_64.rpm RPMS/rstudio-2022.02.2+485-0.0.x86_64.rpm differ: byte 225, line 1 Comparing rstudio-2022.02.2+485-0.0.x86_64.rpm to rstudio-2022.02.2+485-0.0.x86_64.rpm comparing the rpm tags of rstudio --- old-rpm-tags +++ new-rpm-tags @@ -1311,7 +1311,7 @@ /usr/libexec/rstudio/www/js/inert-polyfill.min.js 132777e166d15884b14a891aacd314e6311f8993539e8eabf33adb57f0851eb1 0 /usr/libexec/rstudio/www/js/panmirror 0 /usr/libexec/rstudio/www/js/panmirror/panmirror.js f37e6320178d3a0c32e94c73b5558041e41e3a894a50919830f85e910a40e65c 0 -/usr/libexec/rstudio/www/js/panmirror/panmirror_quantum.js.map 66cbc89af4b0d3054407a8ce42a06d81516eddc9f66e99852a741a3c71629c73 0 +/usr/libexec/rstudio/www/js/panmirror/panmirror_quantum.js.map 78356e7e526e9d52dbf6f675c6e7ca69b78b275f3541bbec10d4aaca229569ff 0 /usr/libexec/rstudio/www/js/panmirror/prosemirror-dev-tools.min.js 9824b68839f97d36106f1149625e3267deee661ba469f556f6378e8686f031b9 0 /usr/libexec/rstudio/www/js/signin.js 124f150dafdbb9f54ccf68d18247e86ef139de2494da544f98bdcc19eed02fb4 0 /usr/libexec/rstudio/www/js/text.min.js c4a439dde03ebbabb987cb548737f63b091c31beefb5ba9fdca7ebcbc6bfb72f 0 comparing rpmtags comparing RELEASE comparing PROVIDES comparing scripts comparing filelist comparing file checksum creating rename script RPM file checksum differs. Extracting packages /usr/libexec/rstudio/www/js/panmirror/panmirror_quantum.js.map differs (UTF-8 Unicode text, with very long lines, with no line terminators) --- old//usr/libexec/rstudio/www/js/panmirror/panmirror_quantum.js.map 2022-05-21 00:00:00.000000000 +0000 +++ new//usr/libexec/rstudio/www/js/panmirror/panmirror_quantum.js.map 2022-05-21 00:00:00.000000000 +0000 @@ -1 +1 @@ -{"version":3,"sources":["src/polyfill/index.ts","src/polyfill/isconnected.ts","src/index.ts","src/polyfill/custom-event.ts","src/editor/editor.ts","src/api/cite.ts","src/api/doi.ts","src/api/ui-dialogs.ts","src/api/pandoc_attr.ts","src/api/extension.ts","src/api/pandoc_capabilities.ts","src/api/pandoc.ts","src/api/quote.ts","src/api/math.ts","src/api/mark.ts","src/api/text.ts","src/api/code.ts","src/api/node.ts","src/api/link.ts","src/api/html.ts","src/api/events.ts","src/api/event-types.ts","src/api/pandoc_format.ts","src/api/yaml.ts","src/api/format.ts","src/api/object.ts","src/api/log.ts","src/api/basekeys.ts","src/api/selection.ts","src/api/transaction.ts","src/api/slice.ts","src/api/platform.ts","src/api/outline.ts","src/api/rmd.ts","src/api/list.ts","src/api/command.ts","src/api/ui.ts","src/api/trailing_p.ts","src/api/paragraph.ts","src/api/util.ts","src/api/location.ts","src/api/dom.ts","src/api/scroll.ts","src/api/navigation.ts","src/api/xref.ts","src/api/pandoc_id.ts","src/api/raw.ts","src/api/image.ts","src/api/fixup.ts","src/api/css.ts","src/api/change.ts","src/api/input_rule.ts","src/api/wrap.ts","src/nodes/yaml_metadata/yaml_metadata-title.ts","src/behaviors/outline.ts","src/behaviors/find.ts","src/behaviors/omni_insert/omni_insert.ts","src/api/completion.ts","src/behaviors/omni_insert/omni_insert-completion.tsx","src/api/omni_insert.ts","src/api/placeholder.ts","src/behaviors/completion/completion.ts","src/behaviors/completion/completion-popup.tsx","src/api/widgets/popup.tsx","src/api/promise.ts","src/behaviors/spelling/spelling-interactive.ts","src/behaviors/spelling/spelling.ts","src/api/spelling.ts","src/behaviors/spelling/spelling-realtime.ts","src/pandoc/pandoc_converter.ts","src/api/pandoc_capsule.ts","src/api/base64.ts","src/pandoc/pandoc_to_prosemirror.ts","src/pandoc/pandoc_from_prosemirror.ts","src/api/fragment.ts","src/editor/editor-extensions.ts","src/nodes/text.ts","src/nodes/paragraph.ts","src/nodes/heading.ts","src/nodes/blockquote.ts","src/nodes/code_block.ts","src/nodes/list/list.ts","src/nodes/list/list-commands.ts","src/nodes/div/div.ts","src/nodes/div/div-callout.ts","src/nodes/div/div-tabset.ts","src/nodes/list/list-checked.ts","src/nodes/list/list-pandoc.ts","src/nodes/image/image.ts","src/nodes/image/image-dialog.ts","src/nodes/image/image-util.ts","src/nodes/image/image-textsel.ts","src/nodes/image/figure.ts","src/api/decoration.ts","src/nodes/image/image-view.ts","src/nodes/image/image-resize.ts","src/api/widgets/widgets.ts","src/nodes/image/figure-keys.ts","src/nodes/image/image-events.ts","src/nodes/hr.ts","src/nodes/hard_break.ts","src/nodes/null.ts","src/marks/em.ts","src/marks/strong.ts","src/marks/code.ts","src/marks/link/link.ts","src/marks/link/link-command.ts","src/marks/link/link-auto.ts","src/api/clipboard.ts","src/marks/link/link-headings.ts","src/marks/link/link-popup.tsx","src/api/widgets/tooltip.ts","src/api/widgets/button.tsx","src/api/text-popup.ts","src/api/widgets/react.ts","src/api/widgets/decoration.ts","src/behaviors/select_all.ts","src/behaviors/history.ts","src/behaviors/cursor.ts","src/behaviors/clear_formatting.ts","src/behaviors/smarty.ts","src/behaviors/attr_duplicate_id.ts","src/behaviors/trailing_p.ts","src/behaviors/empty_mark.ts","src/behaviors/escape_mark.ts","src/behaviors/code_block_input.ts","src/behaviors/paste_text.ts","src/behaviors/bottom_padding.ts","src/behaviors/insert_symbol/insert_symbol-plugin-symbol.tsx","src/api/unicode.ts","src/behaviors/insert_symbol/insert_symbol-plugin.tsx","src/behaviors/insert_symbol/insert_symbol-popup.tsx","src/api/focus.ts","src/api/widgets/select.tsx","src/api/widgets/text.tsx","src/behaviors/insert_symbol/insert_symbol-grid.tsx","src/behaviors/insert_symbol/insert_symbol-grid-cell.tsx","src/behaviors/insert_symbol/insert_symbol-grid-preview.tsx","src/behaviors/insert_symbol/symbols.ts","src/behaviors/insert_symbol/insert_symbol-plugin-emoji.tsx","src/api/emoji.ts","src/api/emojis-all.ts","src/marks/emoji/emoji.ts","src/marks/emoji/emoji-completion.tsx","src/behaviors/insert_symbol/insert_symbol-emoji-skintone.tsx","src/behaviors/insert_symbol/insert_special_characters.ts","src/behaviors/nbsp.ts","src/behaviors/remove_section.ts","src/behaviors/slides.ts","src/marks/strikeout.ts","src/marks/superscript.ts","src/marks/subscript.ts","src/marks/smallcaps.ts","src/marks/underline.ts","src/marks/raw_inline/raw_inline.ts","src/marks/raw_inline/raw_tex.ts","src/api/mark-highlight.ts","src/api/tex.ts","src/marks/raw_inline/raw_html.ts","src/marks/math/math.ts","src/marks/math/math-commands.ts","src/marks/math/math-transaction.ts","src/marks/math/math-highlight.ts","src/marks/math/math-popup.ts","src/marks/math/math-view.ts","src/api/attr_edit/attr_edit-decoration.tsx","src/marks/math/math-keys.ts","src/marks/cite/cite.ts","src/api/bibliography/bibliography.ts","src/api/bibliography/bibliography-provider_local.ts","src/api/path.ts","src/api/bibliography/bibDB.ts","src/api/csl.ts","src/api/crossref.ts","src/api/csl-text.ts","src/api/bibtex/bibtex.ts","src/api/bibtex/fields.ts","src/api/bibtex/language.ts","src/api/bibtex/types.ts","src/api/bibtex/formatting.ts","src/api/bibtex/characters.ts","src/api/bibliography/bibliography-provider_zotero.ts","src/api/zotero.ts","src/marks/cite/cite-completion.tsx","src/api/widgets/completion.tsx","src/marks/cite/cite-completion-bibliography.ts","src/marks/cite/cite-completion-quarto-xref.ts","src/marks/xref/xref-completion.tsx","src/marks/cite/cite-completion-search.ts","src/marks/cite/cite-highlight.ts","src/marks/cite/cite-completion_doi.tsx","src/api/widgets/completion-detailed.tsx","src/marks/cite/cite-doi.ts","src/marks/cite/cite-popup.tsx","src/marks/cite/cite-commands.ts","src/behaviors/insert_citation/insert_citation.tsx","src/api/widgets/tag-input.tsx","src/api/widgets/navigation-tree.tsx","src/api/widgets/dialog-buttons.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel.ts","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-bibliography.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-typeahead-search.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-list.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-list-item.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-doi.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-latent-search.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-list-item-detailed.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-crossref.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-pubmed.tsx","src/api/pubmed.ts","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-datacite.tsx","src/api/datacite.ts","src/behaviors/insert_citation/insert_citation-bibliography-picker.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-packages.tsx","src/api/widgets/checkbox-input.tsx","src/marks/cite/cite-popup-xref.tsx","src/marks/span.ts","src/marks/xref/xref.ts","src/marks/xref/xref-popup.tsx","src/behaviors/insert_xref/insert_xref.tsx","src/behaviors/insert_xref/insert_xref_index.ts","src/marks/raw_inline/raw_html_comment.ts","src/marks/shortcode.ts","src/nodes/footnote/footnote.ts","src/api/shortcode.ts","src/nodes/footnote/footnote-editor.ts","src/nodes/footnote/footnote-transaction.ts","src/nodes/raw_block.ts","src/nodes/yaml_metadata/yaml_metadata.ts","src/nodes/yaml_metadata/yaml_metadata-capsule.ts","src/nodes/rmd_chunk/rmd_chunk.ts","src/nodes/rmd_chunk/rmd_chunk-image.ts","src/nodes/rmd_chunk/rmd_chunk-capsule.ts","src/nodes/line_block.ts","src/nodes/table/table.ts","src/nodes/table/table-commands.ts","src/nodes/table/table-nodes.ts","src/nodes/table/table-pandoc.ts","src/nodes/table/table-columns.ts","src/nodes/table/table-capsule.ts","src/nodes/table/table-contextmenu.ts","src/nodes/table/table-paste.ts","src/nodes/definition_list/definition_list.ts","src/nodes/definition_list/definition_list-commands.ts","src/nodes/definition_list/definition_list-insert.ts","src/nodes/definition_list/definition-list-keys.ts","src/nodes/definition_list/definition_list-inputrule.ts","src/api/position.ts","src/nodes/definition_list/definition_list-pandoc.ts","src/nodes/shortcode_block.ts","src/nodes/html_preserve.ts","src/optional/ace/ace.ts","src/api/cursor.ts","src/optional/ace/ace-render-queue.ts","src/optional/ace/ace-placeholder.ts","src/optional/ace/ace-node-views.ts","src/behaviors/attr_edit/attr_edit.ts","src/behaviors/attr_edit/attr_edit-command.ts","src/editor/editor-theme.ts","src/editor/editor-images.ts","src/editor/editor-menus.ts","src/api/table.ts","src/editor/editor-schema.ts","src/api/presentation.ts"],"names":["_d7b4","f","r","id","cached","m","exports","Object","isFrozen","input","default","module","editor_1","Editor","UITools","mod","__esModule","value","custom_event_1","__importDefault","isconnected_1","t","_","label","ops","push","op","pop","trys","body","call","thisArg","e","y","done","__spreadArrays","this","s","i","il","arguments","length","Array","k","a","j","jl","defineProperty","prosemirror_inputrules_1","prosemirror_keymap_1","prosemirror_model_1","prosemirror_state_1","prosemirror_view_1","prosemirror_utils_1","cite_1","ui_dialogs_1","pandoc_capabilities_1","omni_insert_1","spelling_interactive_1","spelling_realtime_1","pandoc_converter_1","editor_extensions_1","EditorCommands","command_1","EditorCommandId","attr","propsToInput","attrPropsToInput","inputToProps","attrInputToProps","pandocAutoIdentifier","text","pandoc_id_1","image","validUnits","percentUnit","css_1","kPercentUnit","unitToPixels","image_1","pixelsToUnit","roundUnit","format","parseFormatConfig","pandoc_format_1","pandocFormatConfigFromCode","citation","citeUI","PluginKey","parent","context","options","pandocFormat","pandocCapabilities","_this","maxContentWidth","events","events_1","DOMEditorEvents","keybindings","initExtensions","editorSchema","extensions","EditorState","create","initialDoc","attributes","dispatchTransaction","bind","EditorDOMParser","schema","view","dom","add","editor_theme_1","defaultTheme","PandocConverter","server","pandoc","setAttribute","addEventListener","event_types_1","ScrollEvent","pandocFmt","editor","_a","spellCheck","codeEditor","rmdImagePreview","hideFormatComment","className","codeChunks","bookdownXRef","bookdownPart","blogdownMathInCode","rmdExtensions","hugoExtensions","__assign","shortcodes","docTypes","ui","images","defaultImages","omni_insert","sent","resolve","event","handler","subscribe","eventName","title","setTitle","state","setMarkdown","markdown","emitUpdate","Promise","doc","line_wrapping","unrecognized","example_lists","unparsed_meta","loc","tr_1","i_1","getMarkdownTr","canonical","location","pandocConverter","toProsemirror","result","isInitialDoc","plugins","updateState","getEditingLocation","tr","setTextSelection","pos","applyFixups","fixup_1","FixupContext","Load","emitEvent","UpdateEvent","getMarkdownCode","prototype","attrs","initial","getMarkdown","__generator","code","outline_1","getEditingOutlineLocation","getHTML","getTitle","getSelection","navigation_id","navigationIdForSelection","setEditingLocation","outlineLocation","previousLocation","getOutline","getFindReplace","selectCurrent","find_1","selectFirst","selectNext","selectPrevious","replace","getSpellingDoc","pandocMarks","spelling","spellingInvalidateAllWords","invalidateAllWords","spellingInvalidateWord","word","invalidateWord","extensionFixups","getSelectedText","replaceSelection","selection","from","empty","marks","$from","dispatch","sel","TextSelection","trSetSel","getYamlFrontMatter","nodes","yaml_metadata","yaml_1","yamlFrontMatter","presentation_1","getPresentationEditorLocation","navigateToPresentationEditorLocation","positionForPresentationEditorLocation","navigate","navigation_1","NavigationType","Pos","String","applyYamlFrontMatter","yaml","focus","blur","insertChunk","chunkPlaceholder","type","recordCurrent","animate","NavigateEvent","nav","resize","applyFixupsOnResize","ResizeEvent","initFn","getMenus","commands","commandKeys","map","command","keymap","isActive","isEnabled","plural","execute","keepFocus","applyTheme","theme","classList","toggle","darkMode","setMaxContentWidth","maxWidth","minPadding","minContentPadding","syncContentWidth","setKeybindings","keyBindings","reconfigure","createPlugins","getEditorFormat","getPandocFormat","getPandocFormatConfig","isRmd","pandocFormatConfigFromDoc","lastTrSelectionOnly","selectionSet","docChanged","apply","StateChangeEvent","storedMarksSet","getMeta","transaction_1","kFixupTransaction","outline_2","previousOutline","OutlineChangeEvent","DispatchEvent","eventType","detail","emit","pandocExtensions","navigation","registerCompletionExtension","register","omniInsertExtension","omniInserters","markFilter","registerRealtimeSpelling","registerPlugins","realtimeSpellingPlugin","baseKeysPlugin","baseKeys","appendTransactionsPlugin","appendTransactions","hooks","Plugin","inputRulesPlugin","input_rule_1","markInputRuleFilter","plugin","inputRules","rules","handleTextInput","props","to","domEventsPlugin","key","handleDOMEvents","FocusEvent","keydown","prefs","tabKeyMoveFocus","pluginKeys","forEach","keys","ctrlKeyCodes","keyCombo","match","keyCode","toUpperCase","prosemirrorKeydownHandler","keydownHandler","keybindingsPlugin","keyEvent","ctrlKey","keyCommand","defaultKeys","clientWidth","applyPadding","LayoutEvent","fixups","fixup","nodeFromJSON","content","__awaiter","outlineNode","getOutlineNodes","reverse","find","node","_super","DOMParser","fromSchema","parse","preserveWhitespace","parseSlice","doi_1","pinyin_1","transliteration_1","kInvalidCiteKeyChars","existingIds","baseId","char","charCodeAt","fromCharCode","isHanzi","asciiOnlyBaseId","includes","proposedId","count","safeBaseId","suggestCiteId","csl","citeIdLeading","author","family","literal","shortTitle","substr","Math","min","issued","yearIssued","datePart","formatForPreview","pairs","name","undefined","dateParts","formatIssuedDate","containerTitle","volume","page","cslAny","charAt","slice","createUniqueCiteId","URL","DOI","urlForDOI","formatAuthors","authors","maxLength","_b","_c","_d","previous","endsWith","index","current","substring","array","addAuthorOrEtAl","previousAuthorStr","newAuthorStr","authorStr","etAlStr","lastSpace","lastIndexOf","etAl","date","singleDatePart","citeProps","suggestedId","previewFields","kCrossrefMatches","findDOI","token","regex","hasDOI","doi","asPandocClass","clz","asHtmlId","startsWith","asHtmlClass","kAlertTypeInfo","kAlertTypeWarning","keyvalue","classes","split","style","pandoc_attr_1","pandocAttrKeyvalueFromText","kv","join","extension_1","kPandocAttrClasses","kPandocAttrKeyvalue","separator","convertedText","inQuotes","ch","trim","line","parts","kWidthAttrib","kAlignAttrib","kFigAltAttrib","kFigAlignAttrib","kFigEnvAttrib","kCodeBlockAttr","kCodeBlockText","pandocAttrAvailable","pandocAttrFrom","pandocAttr","pandocAttrRemoveClass","isArray","_i","predicate","foundClass","pandocAttrGetKeyvalue","keyval","entry","keyvalue_1","pandocAttrRemoveKeyvalue","filter","pandocAttrInSpec","spec","tok","c","kPandocAttrId","pandocAttrToDomAttr","marker","domAttr","el","forceAttrs","excludedNames","includedNames","hasAttribute","getAttribute","val","resolveCurrent","remainder","partitioned","partition","base","extensionIfEnabled","extension","kPandocAttrExtensions","extensionEnabled","getPandocCapabilities","getCapabilities","version","api_version","output_formats","pandoc_1","parsePandocListOutput","highlight_languages","PandocTokenType","quote_1","math_1","code_1","link_1","tokens","hasOwnProperty","mapValue","mapToken","mappedTok","tokenHasChildren","imageAttributesAvailable","link_attributes","raw_html","output","kRawBlockFormat","kRawBlockContent","kWriteSpaces","stringifyTokens","unemoji","elem","Str","Space","SoftBreak","LineBreak","kLinkChildren","Span","kSpanChildren","Quoted","kQuoteType","stringifyMath","Code","kCodeText","forEachToken","mapTokens","tokenTextEscaped","marksByPriority","markWriters","aPriority","priority","QuoteType","DoubleQuote","kSingleQuoteRegEx","RegExp","kSingleQuotes","begin","end","kDoubleQuotes","quotesForType","kDoubleQuoteRegEx","MathType","Inline","kMathType","kMathContent","kMathId","editorMath","delimter","delimiterForType","mathTypeIsActive","text_1","$pos","start","link","mark","offset","startIndex","startPos","child","nodeSize","endIndex","childCount","isInSet","endPos","markIsActive","storedMarks","range","nodesBetween","markItem","getMarkRange","markType","$head","removeInvalidatedMarks","re","findChildrenByMark","markedNode","removeStoredMark","validLength","removeMark","nd","markRange","trimmedText","trimStart","countSpace","mergedTextNodes","_node","_pos","parentNode","allowsMarkType","textNode","exec","refText","rangeHasMark","anchor","lastIndex","nodeIndex","textNodes","str1","str2","sensitivity","clipboardTextParser","$context","codeViews","codeViewType","codeView","createFromPastePattern","test","codeNode","nodeType","createAndFill","Slice","Fragment","n","p","canInsertNode","canInsertNodeAtPos","asSelection","d","depth","canReplaceWith","findTopLevelBodyNodes","findNodeOfTypeInSelection","foundNode","lastNode","last","nodeIsActive","findSelectedNodeOfType","findParentNode","kLinkTarget","LinkType","ids","headings","findChildren","findChildrenByType","heading","level","textContent","escapeHTMLAttribute","div","appendChild","innerHTML","kHTMLCommentRegEx","isHTMLComment","html","noEmptyAttribs","tag","attribs","selfClosing","DOMSerializer","serializeNode","generateHTML","firstYamlBlock","mdExtensions","object_1","findValue","yamlMarkdownOptions","yamlFormatConfig","readPandocFormatConfig","formatConfig","pandocFormatConfigFromCommentInCode","keyValueRegEx","matchPandocFormatComment","field","fields","keyValueMatch","variables_1","source","obj","toString","mode","asString","rmd_extensions","doctype","str","references","references_location","references_prefix","prefix","toLowerCase","asBoolean","parseExtensions","enabled","splitPandocFormatString","optionsPos","indexOf","commonmarkExtensions","rawHTML","includeTexMathDollars","format_1","kHugoDocType","kMarkdownGithubFormat","yamlMetadataNodes","foundFirstRawInline","config","pandocFormatConfigFromYamlInCode","warnings","baseName","formatOptions","variant","validOptionNames","fullName","invalidFormat","invalidOptions","pandocMode","kMarkdownMmdFormat","kMarkdownStrictFormat","kGfmFormat","kCommonmarkFormat","kCommonmarkXFormat","kMarkdownVariants","listExtensions","option","pandocFormatWith","hasFencedCodeBlocks","backtick_code_blocks","fenced_code_blocks","kBookdownDocType","kPresentationDocType","node_1","isYamlMetadataNode","titleMatch","kYamlMetadataTitleRegex","firstYaml","firstYamlNode","stripYamlDelimeters","yamlText","updatedYaml","replaceRangeWith","updatedYamlNode","insert","yamlNodes_1","titleFromYamlMetadataNode","yamlMetadataNameValueRegex","valueMatch","parseYaml","kFirstYamlBlockRegex","yamlCode","js_yaml_1","load","onWarning","log_1","logException","yamlParsed","dump","object","some","ignoreKey","homeKey","editingNode","head","coordsAtPos","beginDocPos","isOnPreviousLine","endKey","editingRootNode","endDocPos","top","bottom","arrowBodyNodeBoundary","dir","endOfTextblock","selection_1","selectionIsBodyTopLevel","side","nextPos","Selection","near","after","before","currentRootNode","nextRootNode","endTopLevelBodyNodeBoundary","scrollIntoView","BaseKey","Enter","prosemirror_commands_1","splitBlock","liftEmptyBlock","createParagraphNear","Backspace","selectNodeBackward","joinBackward","deleteSelection","Tab","ShiftTab","Delete","selectNodeForward","joinForward","platform_1","kPlatformMac","Home","End","ArrowLeft","ArrowUp","ArrowDown","ModArrowDown","undoInputRule","x","commandMap","baseKey","unshift","values","_e","isTextblock","cursorOffset","parentOffset","nodeText","prosemirror_gapcursor_1","selectionIsWithinRange","selectionIsWithin","nodeWithPos","selectionHasRange","selectionIsImageNode","NodeSelection","figure","selectionIsEmptyParagraph","paragraph","selectionWithinLastBodyParagraph","editingRoot","lastChild","slice_1","kPasteTransaction","kSetMarkdownTransaction","kNavigationTransaction","kInsertSymbolTransaction","kInsertCompletionTransaction","MarkTransaction","addMark","insertText","transactionsDocChanged","transactions","transaction","transactionsChangeSet","oldState","newState","transactions_1","changeSet","addSteps","mapping","maps","complete","oldSize","old","curSize","cur","outer","scan","sameMarkup","size","step","sliceContentLength","handlers","handlers_1","nodeAt","nodeFilter","haveChange","changes","change","fromA","toA","checkForChange","append","_loop_1","handlers_2","trTransform","prosemirror_transform_1","Transform","transactionsAreTypingChange","hasNode","descendants","navigator","platform","rmd_chunk","bullet_list","outlineNodes","bodyNode","childNode","kYamlMetadataOutlineItemType","itemsWithPos","getDocumentOutline","item","active","position","chunk","rmd_1","rmdChunkEngineAndLabel","kHeadingOutlineItemType","isOutlineNode","canInsertRmdChunk","within","findParentNodeOfType","table","list_item","blockquote","activeRmdChunk","rmdNode","rmdChunk","rmdChunkNodes_1","rmdChunkNode","chunks","lines","trimLeft","meta","matchLang","isContainerChunk","lang","delimiter","reduce","ticks","idx","insertRmdChunk","GapCursor","toggleBlockType","list_1","precedingListItemInsertPos","rmdText","util_1","uuidv4","prevListItemPos","precedingListItemInsert","previousRmdChunks","localeCompare","kEvalFalseRegEx","table_cell","table_header","cell","markedRange","mark_1","textBetween","ListType","extendStatics","__extends","b","setPrototypeOf","__proto__","__","constructor","assign","prosemirror_schema_list_1","ui_1","trailing_p_1","ProsemirrorCommand","omniInsert","MarkCommand","toggleMarkType","NodeCommand","BlockCommand","blockType","toggleType","WrapCommand","wrapType","toggleWrap","InsertCharacterCommand","codeRange","defaultToggleMark","toggletype","setBlockType","$anchor","lift","wrapIn","listType","itemType","blockRange","$to","isList","parentList","tight","setNodeMarkup","listSpacing","kListSpacingTight","replaceSelectionWith","selectAfter","requiresTrailingP","insertTrailingP","sameParent","allowKey","endCaptionPos","above","indexAfter","contentMatchAt","defaultType","abs","paragraph_1","insertTrailingPTransform","dom_1","outlineItemSimillarToNode","outlineItem","docOutlneNode","nodeA","nodeB","scrollTop","docOutlineLocationNode","items","documentOutline","docOutlineNode","locationIsBetweenDocOutlineNodes","restoreSelection","scroll_1","scrollToPos","cs","getComputedStyle","asNumber","parseFloat","paddingX","paddingLeft","paddingRight","paddingY","paddingTop","paddingBottom","borderY","borderTopWidth","borderBottomWidth","width","offsetWidth","borderX","height","offsetHeight","onElementRemoved","container","onRemoved","mutationsList","mutation","removedNodes","center","ordered_list","parentDiv","findParentNodeOfTypeClosestToPos","resultPos","resultNode","nodeDOM","scroller","zenscroll_1","createScroller","containerEl","duration","onDone","intoView","HTMLElement","xref_1","navigateToId","navigateToHref","href","editorFormat","xref","xrefPosition","xrefType","xrefPos","prevPos","max","dest","parentElement","navigateToPos","Id","Href","navigateToHeading","XRef","navigateToXRef","locators","colonPos","xrefInfo","id_1","locator_1","markType_1","hasXRef","nodeTypes","suffix","dashPos","xrefPositionLocate","quartoXrefPositionLocators","bookdownXrefPositionLocators","captions","prosemirror_utils_2","table_caption","mathType","math","prevNodeMath","thm","quartoDivLocator","lem","h2","headingLocator","h3","h4","h5","h6","fig","rmdChunkHasXRef","tab","raw_1","kTexFormat","cnj","thereomLocator","def","engine","pattern","pandocAsciify","newch","chars","len","asciify","gfmAutoIdentifier","editRawBlockCommand","raw_block","action","rawBlock","raw","prevSel","createRawNode","asyncEditRawBlock","containerWidth","kPixelUnit","ImageType","isValidImageSizeUnit","unit","kValidUnits","imageSizePropWithUnit","prop","isNaturalAspectRatio","dims","defaultValue","naturalWidth","naturalHeight","pixels","round","attrib","_match","p1","p2","removeStyleAttrib","extractSizeStyles","keyvalues","newKeyvalues","getValue","pair","kHeightAttrib","kStyleAttrib","_attrib","setProperty","replaceClassWithStyle","contains","remove","removeAttribute","children_1","children","EditorChangeType","diff_match_patch_1","timeout","dmp","diff_match_patch","Diff_Timeout","diff","diff_main","diff_cleanupSemantic","DIFF_INSERT","Insert","DIFF_DELETE","Error","regexp","getAttrs","InputRule","textIndex","delimStart","delete","Function","markStart","markInputRule","delimiterMarkInputRule","prefixMask","delim","contentPattern","textStart","textEnd","maskOffset","disabledMarks","marksWithNoInputRules","marksInRange_1","maskedMarkTypes","maskedMarkTypes_1","wrappingRule","wrappingInputRule","joinPredicate","paraContent","isText","sentence","hardBreak","hardBreakPos","init","_config","titleFromState","titleLine","foundTitle","updatedMetadata","updatedNode","yamlNode","hasOutlineIdsTransaction","usedIds","Set","outlineId","setMeta","GoToNextSection","goToOutlineCommand","GoToPreviousChunk","editorOutline","transactionsHaveChange","transactionsAffectOutline","targetType","outline","target","sequence","Map","rootOutlineItem","defaultLevel","typename","sequenceLast","getState","FindPlugin","instance","DecorationSet","updating","update","prevState","clearResultObserver","isResultSelected","scrollToSelectedResult","decorations","resultElement","resultObserverTimer","term","escape","updateResults","selectResult","afterSelection","matchesTerm","selectedText","wrap","searchTo","decorationSet","withResultUpdates","searchFrom","decoration","lastDecoration","nextDecoration","tr_3","tr_4","selectionMarks","marksAcross","replaceAll","replaced","hasTerm","tr_5","clear","kAddToHistoryTransaction","resultDecorations","search","findRegEx","Decoration","inline","class","setSelection","watchForSelectedResult","MutationObserver","records","observer","ele","isResultNode","observe","childList","window","setTimeout","resultObserver","disconnect","clearTimeout","querySelector","scrollElement","nextParent","offsetParent","caseSensitive","findPlugin","inclusive","parseDOM","toDOM","readers","writer","writeInlines","OmniInsertCommand","inputRuleFilter","completionHandlers","omni_insert_completion_1","omniInsertCompletionHandler","OmniInsert","completion_1","selectionAllowsCompletions","kCompletionDefaultMaxVisible","prevHandler","scope","Node","replacement","omniInsertCompletions","inserter","keywords","keyword","sort","thenby_1","firstBy","omniInsertGroupCompare","thenBy","omniInsertPriorityCompare","direction","completion","deleteRange","selectionOffset","removeCommandText","component","OmniInserterView","kOmniInsertRegex","query","placeholder_1","placeholderDecoration","translateText","completions","OmniInsertGroup","placeholder","pluginKey","set","emptyNode","textBefore","completionTextBeforeCursor","prevToken","isPaste","scrollUnsubscribe","removeEventListener","clearCompletions","pluginState","handled","horizontal","completionsActive","kbEvent","insertCompletion","selectedIndex","renderCompletions","forwardKey","completionPageSize","preventDefault","stopPropagation","promise_1","PromiseQueue","resetSelection","setAllCompletions","updatedCompletions","requestVersion_1","setDisplayedCompletions","displayedCompletions","updateCompletions","completionStream_1","stream","filteredCompletions","allCompletions","requestAllCompletions_1","hideNoResults","completionPopup","completion_popup_1","createCompletionPopup","renderCompletionPopup","performCompletionReplacement","CompletionPlugin","__importStar","document","createElement","zIndex","popup","completionPopupSize","positionStyles","selectionCoords","left","innerHeight","innerWidth","cursorCoords","completionPopupPositionStyles","applyStyles","render","react_1","CompletionPopup","destroyCompletionPopup","unmountComponentAtNode","concat","popup_1","Popup","CompletionList","kCompletionDefaultItemHeight","useRef","containerRef","scrollToRow","getElementsByClassName","ref","completionCount","header","completionHeader","headerProps","message","lineHeight","colSpan","completionsHeader","itemHeight","kNoResultsHeight","noResults","completionsNoResults","verticalCompletions","itemEventHandler","completionItemCell","onClick","onMouseMove","onHover","cellWidths","maxVisible","kCompletionDefaultWidth","headerHeight","horizontalCellWidths","total","contentEditable","queue","catch","err","running","reject","dequeue","spelling_1","excludedMarks","onCheckBegin","getWords","excluded","spellingDocPlugin","createAnchor","getText","wordRange","fromCoords","toCoords","spellingDocKey","get","SpellingDocPlugin","checking","anchors","setPosition","getPosition","SpellingAnchor","onCheckEnd","isBlock","classifier","findBeginWord","findEndWord","beginPos","classifyCharacter","currentPos","advanceToWord","endWordPos","excludeWord","words","shift","spellcheckerWord","kCharClassWord","kCharClassBoundary","kCharClassNonWord","spelling_2","hasFocus","realtimeEnabled","hasBeenFocused","word_1","wordDecos","decos","prosemirror_changeset_1","ChangeSet","steps","AddMarkStep","RemoveMarkStep","markStep","markRanges","removeRanges_1","fromPos","toPos","fromB","toB","addRanges_1","spellingDecorations","cursorDecos","realtimeSpellingKey","contextmenu","spellingSuggestionContextMenuHandler","focusUnsubscribe","updateSpelling","v_1","isConnected","excludeCursor","ranges","rangeMap","wordText","incorrectWords_1","checkWords","wordsToCheck","incorrectWord","ranges_1","cursor","menuItems","showContextMenu","clientX","clientY","schema_1","posAtDOM","deco","from_1","to_1","word_2","suggestionList","suggestions","suggestion","menuAction","ignoreWord","pandocPreprocessors","pandocTokensFilters","pandocBlockReaders","pandocInlineHTMLReaders","pandocBlockCapsuleFilters","pandocMarkWriters","autoIds","preprocessor","blockCapsuleFilters","pandoc_capsule_1","pandocMarkdownWithBlockCapsules","original","pandoc_to_prosemirror_1","pandocToProsemirror","ast","tokensFilters","blockReaders","inlineHTMLReaders","postprocessor","fromProsemirror","pandocOptions","referenceLocation","isParagraphNode","firstChild","paraNode","hard_break","disabledTableTypes","disabledFormatOptions","atxHeaders","dpi","column","parseInt","wrapOptions","astToMarkdown","adjustedFormat","disabled","newFormat","ext","kBlockCapsuleSentinel","handleText","encodedBlockCapsuleRegex","flags","envelopeLen","base64_1","base64Decode","record","fieldValue","blockCapsuleSourceWithoutPrefix","capsuleFilter","p3","p4","originalPos","positions","discard","extract","defaultExtractor","capsule","base64Encode","enclose","encodedRecord","decodeBlockCapsuleText","filters","blockCapsuleTextHandler","textFilter","stripPrefix","CodeBlock","RawBlock","parsePandocBlockCapsule","blockCapsuleParagraphTokenHandler","tokenRegex","Para","codeUnits","Uint16Array","Uint8Array","buffer","bytes","binary","Parser","createHandlers","ParserState","openNode","addNode","closeMark","writeText","hasInlineHTMLWriter","parser","writeInlineHTML","logUnrecognized","logExampleList","isNodeOpen","blocks","resolvePandocBlockCapsuleText","Null","prevTok","lineBreaks","columnBreaks","sentenceBreaks","gfm_auto_identifiers","heading_ids","hasShortcutHeadingLinks","equalsIgnoreCase","autoIdentifier","ascii_identifiers","headingIds","has","toLocaleLowerCase","Link","heading_1","kHeadingLevel","kHeadingAttr","kHeadingChildren","astBlocks","writeTokens","targetAst","lineWrapping","targetTokens","writeToken","blockCapsule","writeNode","reader","getChildren","this_1","block","blockReaders_1","blockReader","nodeType_2","closeNode","code_block","pandocAttrReadAST","readers_1","stack","Mark","none","notes","topNodeType","hasExampleLists","exampleLists","merged","info","isInline","openMark","addToSet","removeFromSet","openNoteNode","note","footnoteNumber","unrecognizedTokens","maybeMerge","sameSet","pandocFromProsemirror","apiVersion","nodeWriters","notesNode","PandocWriter","writeNodes","initEscapeCharacters","write","writeSpaces","spaceAfter","output_1","spaceBefore","outputText","trimRight","writeArray","writeAttr","preventEscapeCharacters","kPreventBracketEscape","flushTextRun","textRun_1","smart","manualEscapeCharacters","writeNote","Note","noteBody","fragment","nextNode","childIndex","currentChild","nodeMarks","next","markedNodes","activeMarks","md","fragment_1","fragmentText","escapeSymbols","escaped","escapeCharacters","RawInline","withOption","fill","tex_math_single_backslash","allEscapeCharacters","emjojiMark","emoji","emojihint","blockquote_1","code_block_1","figure_1","hr_1","hard_break_1","null_1","em_1","strong_1","history_1","select_all_1","cursor_1","clear_formatting_1","smarty_1","attr_duplicate_id_1","empty_mark_1","escape_mark_1","code_block_input_1","paste_text_1","footnote_1","manager","ExtensionManager","slides_1","bottom_padding_1","insert_symbol_plugin_symbol_1","insert_special_characters_1","nbsp_1","remove_section_1","yaml_metadata_1","rmd_chunk_1","table_1","definition_list_1","raw_block_1","shortcode_block_1","html_preserve_1","superscript_1","code_2","codeViewClipboardPlugin","collect","pandocNodes","collectFrom","pandocPostprocessors","pandocReaders","flatMap","tokensFilter","inlineHTMLReader","blockCapsuleFilter","pandocNodeWriters","code_view","views","attrEditors","appendMarkTransactions","appendMarkTransaction","collector","results","visitor","quote","Plain","InsertParagraphCommand","HeadingCommand","headingCommandFn","heading1","heading1_dark","heading2OmniInsert","heading2","heading2_dark","headingOmniInsert","heading4OmniInsert","heading4","heading4_dark","description","group","Headings","headingName","pandocAttrSupported","pandocAttrParseDom","header_attributes","mmd_header_identifiers","headingAttrs","headingAttr","data-link","preferHidden","partMatch","cut","writeBookdownH1","Heading1","heading1OmniInsert","Heading5","Heading6","textblockTypeInputRule","kHeadingLevels","pandocAttrParseText","emptyHeadingPlaceholderPlugin","CodeBlockFormat","codeBlockFormatCommandFn","languages","code_block_dark","fenced_code_attributes","potentialLang","codeBlockProps","dialogs","editCodeBlock","applyProps","propsWithLangClass","codeBlock","tags","right","editFn","codeNodeSpec","hasAttr","pandocAttrSpec","codeBlockLang","attrEditFn","codeBlockAttrEdit","CodeBlockFormatCommand","exitCode","ListNumberStyle","listAttrEdit","capabilities","list_commands_1","editListPropertiesCommandFn","task_lists","fancy_lists","startnum","tasks","checked","list_pandoc_1","readPandocList","number_delim","ListNumberDelim","DefaultDelim","order","number_style","typeToNumberStyle","numberDelim","fancy","DefaultStyle","Decimal","UpperAlpha","LowerRoman","UpperRoman","Example","OrderedList","writePandocOrderedList","nodeViews","ListCommand","BulletList","bulletListOmniInsert","orderedListOmniInsert","ListItemSink","sinkListItem","ListItemLift","liftListItem","ListItemSplit","splitListItem","list_checked_1","CheckedListItemCommand","CheckedListItemToggleCommand","basekeys_1","isNotInHeading","conditionalWrappingInputRule","tightFn","div_1","listItemType","autoJoin","toggleList","TightListCommand","editList","EditListPropertiesCommand","incrementalDiv","divAttrs","$endPos","wrapping","incremental","Ordered","liftTarget","nodeRange","targetLiftDepth","isFullDivSelection","pandocAttrHasClass","editDiv","createDiv","removeDiv","defining","data-div","divCommand","Div","canApplyDivInputRule","attribMatch","cmds","DivCommand","Common","div_dark","appendTransaction","_transactions","_oldState","createCalloutDiv","Content","generic","calloutType","calloutAppearance","calloutIcon","calloutCaption","resultAttr","_l","callout","pandocAttrSetKeyvalue","appearance","icon","caption","_h","Tabset","insertTabsetCommandFn","tabset_dark","tabset","CheckedListItemNodeView","getPos","editable","ev","contentDOM","checkedListItemCommandFn","itemNode","setItemChecked","checkedListItemToggleCommandFn","check","baseInputRule","fragmentWithCheck","raw_inline","mappedTokens","lastWasChecked","writeListItemInlines","example","readNumberStyle","childAttrs","childWithChecked","listNodeOptions","writePandocListItem","writePandocBulletList","imageAttributes","src","decodeURI","readPandocTitle","requireHTML","writeRawMarkdown","linkTo","writeFigure","writeLink","imageInlineHTMLReader","isImage","image_util_1","inlineHTMLIsImage","imageAttrsFromHTML","imageDOMOutputSpec","imageDOMAttributes","alt","parseFromString","imageCommand","editorUI","img","imgDimensions","pandocImageHandler","imagePandocOutputWriter","imageNodeAttrsSpec","imageAttr","imageAttrsFromDOM","Image","attr_edit","noDecorator","_schema","imageTextSelectionPlugin","imageEventsPlugin","imagePropsWithSizes","linkMark","Figure","kQuartoDocType","align","env","editImage","units","isNaturalHeight","newImage","imageProps","insertAndSelectNode","partitionedKeyvalue","sizeWithUnit","ensureContainerWidth","imagePos","findParentNodeClosestToPos","domAtPos","resizeContainer","elementInnerDimensions","resizeEl","definition_list","convertImagesToFigure","imagesToFiguresTransform","linkAttrs","getMarkAttrs","mappedImagePos","writerHasProhibitedFigureParent","contentElement","isParaWrappingFigure","html_1","isSingleLineHTML","isHTMLImageBlock","fixupContext","figureKeys","image_view_1","imageNodeViewPlugins","ImageNodeView","editorEvents","unregisterWatchImg","implicitFigures","implicit_figures","resizeUI","selectOnClick","imgBroken","onerror","onclick","ondblclick","image_dialog_1","imageDialog","imageDimensionsFromImg","updateImg","figcaption","noPropagateClick","manageFigcaption","ondragstart","initResizeContainer","updateImageSize","destroy","clearSizeOnVisibleTimer","detachResizeUI","selectNode","draggable","image_resize_1","isResizeUICompatible","detach","attachResizeUI","ignoreMutation","mapResourceToURL","updateImageViewSize","isFigure","sizeOnVisibleTimer","setInterval","clearInterval","imageContainerWidth","noImplicitFigures","emptyFigcaption","selectionInFigcaption","hide","display","minHeight","margin","widthWithUnit","heightWithUnit","setMarginsForAlignment","marginWidth","marginRight","marginLeft","overflow","incompatibleWidth","incompatibleHeight","imageNode","imgContainerWidth","updateImageNodeFromShelf","hasPercentWidth","updateImageNodeSize","shelf","onInit","onWidthChanged","onHeightChanged","onUnitsChanged","onEditImage","uiImages","widgets_1","createPopup","editorContainer","updatePosition","editorBox","getBoundingClientRect","imageBox","editingScrollContainerEl","editingRootScrollContainerElement","positionTimer","panel","createHorizontalPanel","addToPanel","widget","addHorizontalPanelCell","paddingSpan","createInputLabel","wLabel","createTextInput","inputClasses","hLabel","hInput","onchange","hAutoLabel","unitsSelect","checkboxWrapper","lockCheckbox","lockLabel","createImageButton","properties","onload","manageUnitsUI","percentSizing","isNaN","getDim","wInput","shelfSizeFromImage","setWidth","setHeight","lock","resizeShelf","sync","lockRatio","prevUnits","widthPixels","widthInUnits","handle","onSizing","onSizingComplete","onPointerDown","startWidth","pageX","pageY","movedX","startX","movedY","startHeight","onPointerUp","havePointerEvents","releasePointerCapture","pointerId","onPointerMove","setPointerCapture","resizeHandle","cssFloat","liftStyle","liftImgStyle","widthProp","heightProp","verticalAlign","onDestroyed","observer_1","subtree","button","imageEl","optionEl","widthChars","atEnd","selectFigureCaption","selectFigure","verticalArrowCanAdvanceWithinTextBlock","exitNode","isWithinEmptyCaption","parentIndex","previousNode","parentTextBlock","figureSelection","nodePos","arrowHandler","ArrowRight","clipboardEvent","clipboardData","types","clipboardUris","then","uris","handleImageUris","getData","dragEvent","dataTransfer","coordinates","posAtCoords","uriList","droppedUris","imageUris","uri","drop","imageDrop","handlePaste","imagePaste","horizontal_rule_dark","horizontal_rule","HorizontalRule","insertNode","hrOmniInsert","selectable","ModEnter","ShiftEnter","atom","Emph","_mark","writeMark","Em","em","Strong","strong","inline_code_attributes","codeAttrs","autolink_bare_uris","citations","linkAttr","data-heading","extraAttr","kLinkTargetUrl","kLinkTargetTitle","linkCommand","onEditLink","result_1","Heading","asyncEditLink","link_dark","remainStart","linkEnd","matchText","copy","fromArray","linkText_1","attrs_1","matchedHeading_1","headingLink","headingText","headingPos","linkPos","clipboard_1","tooltip_1","button_1","linkCmd","removeLinkCmd","kMaxLinkWidth","React","LinkPopup","maxLinkWidth","openURL","clipboard","linkText","isSupported","LinkButton","showCopyButton","ImageButton","on","grav","show","onKeyDown","forwardRef","tabIndex","specKey","dismissOnEdit","makeLinksAccessible","onCmdClick","kRestoreLocationTransaction","target_1","decorationPosition_1","decoration_1","textRangePopupDecorationPosition","editorView","ignoreSelection","stopEvent","textPopupDecorator","decorationEl","visibility","reactRenderForEditorView","links","getElementsByTagName","onkeydown","click","ReactDOM","element","editingBox","editingEl","editingBoxStyle","topPadding","popupStyle","rangeCoords","rightPos","prosemirror_history_1","history","SelectAll","selectAll","findBlockNodes","childBlocksSelection","gapArrowHandler","prosemirror_dropcursor_1","dropCursor","gapClickHandler","createGapCursor","$divPos","nodeBefore","mouseEvent","clickPos","inside","divNode","blockRequiresGap","$clickPos_1","nodeAfter","kFormattingMarks","markName","setStoredMarks","definition_list_term","definition_list_description","clearFormatting","enDash","ellipsis","emDash","fancyQuotesToSimple","hasAttrId","attrNode","mk","markRange_1","scannedRanges","extensionIfPandocAttrEnabled","fencedAttributes","langAttrib","codeBlockInputRuleEnter","canApplyCodeBlockInputRule","paragraphNode","paragraphRect","editorRect","bodyEl","bodyElement","insert_symbol_plugin_1","symbol_dark","symbol","filterPlaceholderHint","symbolGroups","symbols_1","insertSymbolTransaction","symbolCharacter","searchTerm","UnicodeSymbolDataProvider","symbolGroupNames","symbolGroup","flat","codepoint","groupName","symbols","unicode_1","parseCodepoint","filterText","filteredSymbols","fromCodePoint","Symbol","performInsertSymbol","symbolOmniInsert","InsertSymbolPlugin","isValidCodepoint","hexOnlyText","hexValue","Number","valueOf","showPopup","closePopup","focusChanged","panelPositionStylesForCurrentSelection","react_dom_1","insertSymbolPopup","maximumTopPosition","minimumTopPosition","popupTopPosition","maximumLeftPosition","minimumLeftPosition","searchImage","searchPlaceholder","dataProvider","insert_symbol_grid_preview_1","InsertSymbolPopup","popupHeight","popupWidth","useState","setFilterText","selectedSymbolGroup","setSelectedSymbolGroup","selectedSymbolIndex","setSelectedSymbolIndex","preferenceChanged","setPreferenceChanged","symbolDataProvider","getSymbols","useMemo","filterSymbols","useEffect","focusElement","textRef","handleSelectedSymbolCommitted","onInsertSymbol","preferencesProps","onPreferencesChanged","preferenceRef","lastElement","onClose","shiftKey","focus_1","isElementFocused","gridRef","altKey","newIndex","insert_symbol_grid_1","newIndexForKeyboardEvent","gridWidth","TextInput","iconAdornment","onChange","selectRef","selectedOptions","selectedGroupName","symbolIndex","activeElement","SelectInput","characterWidth","onKeyUp","onKeyPress","onFocus","onPaste","SymbolCharacterGrid","columnWidth","floor","numberOfColumns","characterCellData","onSelectionChanged","selectedItemClassName","scrollToItem","rowIndex","symbolCharacters","react_window_1","FixedSizeGrid","columnCount","rowCount","ceil","rowHeight","itemData","SymbolCharacterCell","numberOfCells","prevRow","currentIndex","nextRow","nextPage","prevPage","itemIndex","characterGridCellItemData","onSelectionCommitted","symbolPreviewStyle","fontSize","insert_symbol_emoji_skintone_1","SymbolEmojiPreferencesPanel","bestAlias","aliases","alias","emoji_2","nodeForEmoji","kCategoryAll","emoji_1","emojiCategories","EmojiSymbolDataProvider","skinTone","emojiSkinTone","symbolForEmoji","hasMarkdownRepresentation","Emoji","emojiOmniInsert","emojis_all_1","emojis","emojiWithSkinTone","supportsSkinTone","emojiRaw","category","characterForSkinTone","SkinTone","Default","None","hasSkinTone","kEmojiAttr","kEmojiContent","catgegory","categories","emojiString","emojiWithSkinTonePreference","emojiFromChar","emojiAlias","kEmojis_1","emojiForAllSkinTones","Light","MediumLight","Medium","MediumDark","Dark","hint","prompt","emojiMark","emojiChar","emojiFromAlias","emojiName","emojiCompletionHandler","emojiSkintonePreferenceCompletionHandler","charLoc","skinToneEmoji","Save","markTr","markFrom","EmojiView","kEmojiCompletionRegEx","prefix_1","completions_1","setEmojiSkinTone","EmojiSkintonePreferenceHeaderView","kHeaderHeight","pref","kCellWidth","emojiText","selectedSkinTone","setSelectedSkinTone","previewEmoji","setSelectSkinTone","getCurrentSkinToneIndex","previewEmojiWithSkinTones","findIndex","nextSkinTone","selectSkinTone","commitSkinTonePreference","skinToneSelectedClass","handleButtonClick","EmDash","pastePluginKey","transformPastedHTML","highlightNode","forChangedNodes","highlightPluginKey","ReplaceStep","isRemoval","isSectionRemoval","fullySelectedDiv","divSelFrom","divSelTo","fullySelectedDivSection","insertSlideColumns","columnsContent","columnAttrs","insertSlidePause","InsertSlidePause","slide_pause_dark","slide_pause","InsertSlideNotes","insertSlideNotes","slide_notes_dark","slide_notes","InsertSlideColumns","slide_columns_dark","slide_columns","Strikeout","strikeout","Superscript","superscript","Subscript","subscript","SmallCaps","Smallcaps","smallcaps","RawInlineInsertCommand","defaultFormat","outputFormats","editRawInline","raw_inline_dark","RawInlineCommand","kRawInlineFormat","kRawInlineContent","raw_attribute","rawTexMark","raw_tex","texText","texMatchLength","tex_1","texLength","addStoredMark","setTexSelectionAfterInsert","InsertInlineLatexCommand","TexInline","latexHighlightingPlugin","mark_highlight_1","markHighlightPlugin","_attrs","markHighlightDecorations","noInputRules","splitInvalidatedMarks","texInputRule","braces","highlighter","decorationsForDoc","removeDecorations","addDecorations","markDecorations","rehighlightParent_1","isLetter","inBraces","braceLevel","inBrackets","bracketLevel","rawhtmlMark","endLoc","startLoc","isHTMLTag","close","void","isVoidTag","endTag","tagStartLoc","inSingleQuote","inDoubleQuote","rawHtmlInputRule","raw_inline_1","isRawHTMLFormat","writeInlneHTML","isSingleTag","data-type","spellcheck","kInlineMathRegex","mathText","Display","beginMatch","endMatch","splice","pendingTokens","filteredTokens","tokens_1","mathToken","flushPendingTokens","inlineMathNav","math_keys_1","displayMathNewline","mathLength","startMath","math_commands_1","InsertInlineMathCommand","InsertDisplayMathCommand","singleLineDisplayMath","math_transaction_1","mathAppendMarkTransaction","math_inline_dark","math_inline","allowNewline","DisplayMath","insertMathCommand","math_display_dark","math_display","displayMathOmniInsert","insertMath","mathMark","mathRange","mathAttrs","editMath","maths_1","mathAttr","MathPopupPlugin","lodash_debounce_1","updatePopup","updatePopupTimer","resizeUnsubscribe","mousemove","lastRenderedMath","$mousePos","equationPreview","rangeStartCoords","rangeEndCoords","editingRootNodeClosestToPos","editingElStyle","styles","inlineMath","typeset","error","autoscollPopup","popupBox","mathBottom","editorEl","toY","mathText_1","mathjaxDiv","isActiveTab","editMathAttributesEnabled","attr_edit_decoration_1","attrEditDecorationWidget","editMathAttributes","prevMathRange","delta","verticalArrowHandler","mathPos","kEditAttrShortcut","rightPaddingOffset","attrsNode","attrsEl","offsetParentStyle","AttrEditDecoration","cssProps","noSelectOnClick","attrEdit","buttonTitle","lodash_uniqby_1","kCiteIdBasePattern","bibManager","_event","cite_id","parsedDOI","cite_doi_1","doiFromSlice","doiText","findDoiInLocalBibliography","allowsWrites","citeIdInputRule","citeIdLen","citeIdLength","citeStart","citeEnd","readPandocCite","citeMark","cite","writeCitation","citationPrefix","suppress","citationMode","CitationMode","SuppressAuthor","citeIdMark","citationId","inTextSuffix","AuthorInText","citationSuffix","kNoteCiteRegex","kInTextCiteRegex","kInTextCiteWithSuffixRegEx","kCiteId","kFindInTextCiteWithSuffixRegex","applyCiteMarks","provider","performCiteCompletionReplacement","existingEntry","bibliographyFiles","writableBibliographyFiles","writableFile","insertCite","writableBiblios","thisWritableBiblio","writable","displayPath","bibliographyFile","fullPath","writableBiblioPath","isProject","project","providerKey","ensureSourcesInBibliography","idText","sources","providersWithWarnings","zoteroUseBetterBibtex","isBibTexBibliography","all","withWarning","warning","warningForProvider","yesNoMessage","every","idMark","kCitationIdRegex","citeText","bibliography_1","BibliographyManager","zotero","Cite","closeCite","openCite","cite_2","parentText","beginBracketPos","prefixMatch","cite_commands_1","InsertCitationCommand","bibliographyManager","trans","citeLength","cite_completion_doi_1","citationDoiCompletionHandler","citationCompletionHandler","cite_popup_xref_1","citeXrefPopupPlugin","cite_popup_1","citePopupPlugin","bibliography_provider_local_1","bibliographyFileForPath","path","bibliographyTypes","defaultBiblioType","bibliographyDefaultType","displayName","kFields","weight","zoteroServer","BibliographyDataProviderZotero","refreshCollectionData","parsedYamlNodes","docPath","providersNeedUpdate","providersEntries","idSort","parseYamlNodes","providers","getDefaultResourceDir","prev","curr","isWritable","hasSources","allSources","kLocalBibliographyProviderKey","sourcesForProvider","sourcesForProviderCollection","collectionKey","localSources","bibFile","localProviders","providerName","prov","dataProviderBibTeX","generateBibTeX","bibDB_1","toBibTeX","warningMessage","warningProvider","findIdInLocalBibliography","searchProviderCollection","searchProvider","searchSources","limit","searchIndex","kSearchOptions","$and","q","prime","resourcePath","yamlBlocks","parsedYamls","refBlockParsedYamls","parsedYaml","lastReferenceParsedYaml","referenceBlockFromYaml","getBibliography","bibliographiesAbsolute","refBlock","etag","bibliography","updateIndex","collections","collectionKeys","itemsForCollection","project_biblios","kPermissableFileExtensions","projectBiblio","path_1","getExtension","bibliographyFilesFromDocument","BibliographyDataProviderLocal","bibliographyFilesFromDoc","bibliographyValues","valueFromYamlText","bibliographiesRelative","biblioNode","createBiblographyYamlNode","yamlWithBib","addBibliographyToYamlNode","firstBlock","joinPaths","root","expandPaths","rootPath","isAbsolute","isWindows","isWinPathSeparator","CHAR_COLON","CHAR_FORWARD_SLASH","fileName","lastDot","biblatex_csl_converter_1","BibTypes","bibTypeKey","cslType","bibType","misc","keySortOrder","publisher","enumerableCSL","aOrder","bOrder","cslKey","biblatex","BibFieldTypes","bibFieldKey","bibField","cslFieldName","bibFieldDatas","bibFieldData","nodeValue_1","cslDate","edtfDate","csl_1","cslDateToEDTFDate","options_1","optionKey","options_2","rangeArray","bibDBFieldName","required","optional","eitheror","shouldIncludeField","bibObject","pmNode","csl_text_1","cslTextToProsemirrorNode","nodes_1","BibLatexExporter","bibDB","traditionalNames","cslToBibDB","bibtex_1","bibDbToBibTeX","ensureValidCSLType","cslTypes","crossref_1","crossRefTypeToCSLType","sanitizeForCiteproc","sanitizeProperties","property","license","contributor","abstract","cslFromDoc","cslParsedYamls","part","partStr","_f","_g","_j","_k","_m","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","article","articleJournal","articleMagazine","articleNewspaper","review","reviewBook","article_dark","bill","legislation","legalCase","treaty","legal","legal_dark","book","manuscript","thesis","book_dark","broadcast","broadcast_dark","dataset","data","data_dark","entryDictionary","entryEncylopedia","entry_dark","image_dark","map_dark","motionPicture","movie","movie_dark","musicalScore","song","song_dark","post","postWeblog","webpage","web","web_dark","paperConference","interview","pamphlet","personalCommunication","report","speech","other","other_dark","chapter","graphic","patent","kCrossrefItemsPerPage","imageForCrossrefType","crossRefTypes","monograph","journalArticle","journalVolume","journal","journalIssue","proceedingsArticle","dissertation","reportSeries","editedBook","bookChapter","bookSet","bookTrack","referenceBook","referenceEntry","postedContent","standard","standardSeries","peerReview","proceedingsSeries","proceedings","prettyType","bookSection","bookPart","bookSeries","kCslDOMParser","cslDOMParser","tagSpec","sup","sub","spanSpec","nocase","keysToExport","entryObject","csl_type","types_1","typeMapping","bibtex","bib_type","bibTexType","entry_key","fieldsForExport","fieldKey","fields_1","FieldMap","fieldType","typeReader","bibtexKey_1","outputFields","bibtexValue","year","month","formatText","formatRange","formatKey","escapeNonAscii","bibtexEntry","bibtexEntries","toBibtex","entries","bibTexStr","sortedKeys","rawValue","booktitle","howpublished","pages","edition","issue","url","codePointAt","characters_1","thisNodeMarks","closing","closeTags","lastNodeMarks","closeTag","formatting_1","FormattingTags","open","opening","formattedText","verbatim","doNotEscape","formatNames","names","formattedNames","given","protect","bookauthor","language_1","lanagugeMappings","series","swedish","thai","BibTextTypes","inbook","phdthesis","unpublished","inproceedings","bibtexType","manual","incollection","conference","mastersthesis","techreport","fieldsRequired","fieldsOptional","booklet","fieldsEitherOr","character","latex","decimal","731","ungrouped","780","__rest","kZoteroProviderKey","_ui","_resourcePath","useCache_1","newCollections","specResult","zoteroConfig","getCollections","collectionSpecs","status","collection","existingCollection","allCollections","col","allCollectionSpecs","toBibliographyCollection","hasUpdates","zoteroSpec","parentKey","bibliographyPaths","bibTeX","betterBibtexExport","zotero_1","kZoteroBibTeXTranslator","libraryID","orderedByType","completionProviders","citeSearch","_state","currentEntries_1","loadedEntries_1","providerCount_1","promises","currentEntries","streamEntries","sortEntries","updatedEntries","_events","cite_completion_bibliography_1","bibliographyCiteCompletionProvider","cite_completion_search_1","completionIndex","completionId","filterCitations","CiteCompletionItemView","CompletionItemView","kCiteCompletionWidth","imageAdornment","primaryText","secondaryText","detailText","htmlTitle","imageForType","forceLightMode","bibliography_provider_zotero_1","zoteroOverlay","cslName","referenceEntryForSource","kQuartoXRefTypes","kCiteCompletionTypeXref","getDocumentPath","referenceEntryForXref","loadedEntries","FuseIndex","xrefCompletions","xrefKey","xrefView","xrefs","fuse","createIndex","typeQuery","colonLoc","isCaseSensitive","shouldSort","withSavedDocument","refs","kXRefTypes","subTitle","kTableType","table_dark","h1","kEqType","exr","kGenericType","kTheoremType","theorem_dark","theorem","equation_dark","equation","defaultEntries","includeMatches","threshold","completion_detailed_1","cslEntry","CompletionItemDetailedView","kCompletionWidth","bibMgr","isXRef","source_1","previewHtml","finalHtml","citationHTML","JSON","stringify","rootDiv","classNames","ensureSafeLinkIsPresent","urlForCitation","CitePopup","Citation","alreadyInCite","includeWrapper","wrapperText","preCiteIdRange","endOfWrapper","initialSelectionKey","selectionKey","setCitationDefaultInText","intextCitationStyle","bibliographySources","bibliographySources_1","citeIdText","performInsertCitations","initiallySelectedNodeKey","containerHeight","confirm","cancel","showProgress","hideProgress","windowHeight","crossrefSourcePanel","crossref","dataciteSourcePanel","datacite","packageSourcePanel","environment","bibliographySourcePanel","InsertCitationPanel","onOk","requiresProgress","bibliographySourceProviders","sourceProvider","isSlowGeneratingBibliographySource","toBibliographySource","onCancel","configuration","insertCitationConfiguration","setInsertCitationConfiguration","treeSourceData","statusMessage","selectedPanelProvider","placeHolderMessage","existingBibliographyFile","createBibliographyFile","changeExtension","citationDefaultInText","setInsertCitationPanelState","insertCitationPanelState","updatedState","citationsToAdd","displayedCitations","mergeCitations","selectedCitation","mergedCitationsToAdd","typeAheadSearch","selectedNode","panelRef","streamTimerId","panelProvider","panelForNode","setSelectedPanelProvider","refreshSearchCallback","insert_citation_source_panel_1","CitationSourceListStatus","useCallback","existingState","panelHeight","memoizedTypeaheadSearch","onExecuteSearch","searchCanceled","inProgress","progressMessage","existingCitationIds","searchResult","onConfirm","deleteCitation","selCite","filteredCitations","totalCitationCount","panelToDisplay","citationProps","navigation_tree_1","NavigationTree","suggestedPanel","tag_input_1","TagInput","displayText","isEditable","isIdEditable","targetSource","currentlySelectedCitation","onTagValidate","insert_citation_bibliography_picker_1","CitationBibliographyPicker","onCreateBibliographyFileNameChanged","biblographyFile","dialog_buttons_1","DialogButtons","nodeForKey","selected","toAdd","Tag","onTagDeleted","onTagChanged","editing","setEditing","editingText","setEditingText","setDisplayText","restoreFocusAfterCancel","useLayoutEffect","editTextInput","onEditClick","validationMessage","alert","kAlertTypeError","showingValidationError","commitTagEdit","pathToNode","expanded","visibleNodes","vizNodes","fixedList","stepNode","onSelectedNodeChanged","FixedSizeList","itemSize","showSelection","preventFocus","NavigationTreeItem","indentLevel","selectedClassName","nodeList","allNodes","increment","containsChild","existingSource","finalId","rootImageForProvider","zotero_root","bibligraphy","toTree","containers","folderImage","treeMap","currentNode","hasParent","rootNodes","zotero_collection","bibligraphy_folder","folderImageForProvider","BibligraphySourcePanel","treeNode","local_sources","providerNodes","onResults","useBetterBibTex","toCitationListEntries","insert_citation_source_panel_typeahead_search_1","CitationSourceTypeheadSearchPanel","onSearchTermChanged","onSelectedIndexChanged","onAddCitation","listContainer","searchBoxRef","focusSearch","insert_citation_source_panel_list_1","CitationSourceList","focusPrevious","insert_citation_source_panel_list_item_1","CitationSourcePanelListItem","currentCitation","handleListKeyDown","handleIncrementIndex","itemsPerPage","onBlur","itemCount","onRemoveCitation","showSeparator","itemProvider","search_progress","citationListData","citationEntry","maxIdLength","alreadyAdded","_selectedNode","e_1","matchExistingSourceCitationListEntry","toCitationListEntry","errorForStatus","insert_citation_source_panel_list_item_detailed_1","pasted","performSearch","lastSearch","initialFocusSet","CitationSourcePanelListItemDetailed","doiServer","dedupeCitationIds_1","citationEntries","works","work","coercedCSL","crossrefWork","crossrefWorkTitle","pubmed","pubMedResult","docs","pubmed_1","pubTypes","doiResult","sanitizedCSL","noResultsMessage","sortFirstAuthor","pubDate","creators","creator","fetchCSL","dataciteResult","familyName","publicationYear","packageInfo","citeInfos","packageCitationToCSL","citeInfo","people","bibtextTypeToCSLType","person","date-parts","suggestPackageCiteId","incrementName","retryCount","pkgIndex","getRPackageState","pkg","pkgInfos","sorted","fuse_js_1","searchFields","searchField","PackageSourcePanel","packages","getPackageIndex","packageInfos","parsed","quartoXrefForId","xrefs_1","span","getSelectionMarkRange","asyncEditSpan","native_spans","data-span","all_symbols_escapable","stripRefBackslashTransform","potentialXRef","bookdownXRefUI","CrossReference","References","cross_reference_dark","cross_reference","insert_xref_1","insertXref","xref_2","xrefForId","select_1","xref_completion_1","insert_xref_index_1","lastSelectedStyleIndex","kXRefStyles","fn","xRefTypes","kTheoremTypes","type_table","type_equation","type_listing","htmlDialog","_showProgress","_hideProgress","windowWidth","InsertXrefPanel","styleIndex","onInsertXref","loadXRefs","quartoIndexForFile","setXrefs","selectedXRefIndex","setSelectedXRefIndex","selectedTypeIndex","setSelectedTypeIndex","selectedStyleIndex","setSelectedStyleIndex","styleSelectRef","prefixRef","typeOrder","unique","filteredXrefs","filtered","xrefIndex","filterXrefs","typeNodes","insertItem","currentStyle","currentPrefix","memoizedTextFilter","txt","handleKeyboardEvent","incrementIndex","acceptSelected","ondoubleclick","thisXref","onDoubleClick","InsertHTMLCommentCommand","HTMLComment","raw_html_comment","comment_dark","comment","data-format","isComment","kHTMLCommentMarkRegEx","detectAndApplyMarks","commentMarkAttribs","detectAndCreateShortcodes","shortcode_1","kShortcodeRegEx","shortcode","noSpelling","excludes","markTr_1","kShortcodePattern","writePandocNote","noteNode","footnote","number","footnoteOmniInsert","footnote_dark","selectedFootnote","findNoteNode","data-ref","data-content","footnote_editor_1","footnoteEditorActivationPlugin","footnoteEditorNodeViews","filterTransaction","footnote_transaction_1","footnoteFilterTransaction","footnoteSelectNoteAppendTransaction","Footnote","canInsertFootnote","edit","selectedNote","footnoteNode","ref_1","matching","ref_2","nodeDecoration","findFootnoteNode","NoteEditorView","footnoteEditorKeyDownHandler","firstNode","lastTextBlock","selectFootnote","findNotesContainer","noteWithPos","footnotes","findAllFootnotes","notesContainer","findAllNotes","toJSON","newNote","fromJSON","allNotes","footnoteFixupTransform","activeNote","tex","isLatexBeginOrEnd","RawBlockCommand","rawAttribute","textTrimmed","isSingleChildParagraph","isParagraphWrappingLatexBeginOrEnd","isParagraphWrappingRawLatexBeginOrEnd","matches","embeddedTickRegEx","matchRev","FormatRawBlockCommand","HTMLBlock","kHTMLFormat","Blocks","html_block_dark","html_block","TexBlock","YamlMetadata","yaml_block_dark","yaml_block","yaml_metadata_capsule_1","yamlMetadataBlockCapsuleFilter","YamlMetadataCommand","yaml_metadata_title_1","yamlMetadataTitlePlugin","RmdChunkCommand","Chunks","RChunkCommand","r_chunk_dark","r_chunk","PythonChunkCommand","python_chunk","BashChunkCommand","bash_chunk_dark","bash_chunk","rcpp_chunk_dark","rcpp_chunk","RcppChunkCommand","SQLChunkCommand","SQLCodeChunk","D3ChunkCommand","D3CodeChunk","d3_chunk","ExpandAllChunksCommand","ExpandAllChunks","ChunkExpansionCommand","CollapseAllChunksCommand","CollapseAllChunks","md_index","firstLineMeta","lineNumbers","lineNumberFormatter","lineNumber","lineCount","bookdownTheorems","StanChunkCommand","rmd_chunk_image_1","RmdChunkImagePreviewPlugin","uiContext","imagePreviewDecorations","isRmdChunkNode","widthMatch","firstLine","width_1","stripQuotes","imagePath_1","unsubscribe","watchResource","alignCenter_1","kBlockCapsuleType","capsuleText","LineBlock","line_block","tableTabKey","grid_tables","pipe_tables","simple_tables","multiline_tables","table_captions","table_nodes_1","tableCaptionNode","tableCellNode","tableHeaderNode","tableRowNode","Table","table_commands_1","insertTable","insertTableOmniInsert","TableInsertTable","TablePreviousCell","prosemirror_tables_1","goToNextCell","TableColumnCommand","TableAddColumnAfter","addColumns","TableAddColumnBefore","TableRowCommand","TableAddRowAfter","addRows","TableAddRowBefore","TableDeleteRow","deleteRow","TableColumnAlignmentCommand","TableAlignColumnRight","CssAlignment","Right","TableAlignColumnCenter","Center","TableAlignColumnDefault","TableToggleCaptionCommand","headerOptional","columnResizing","handleWidth","table_paste_1","tablePaste","table_contextmenu_1","TableContextMenuPlugin","tableShiftTabKey","multiline","table_columns_1","fixupTableWidths","tableRepairTransform","table_container","numRows","rows","cells","cellType","tableCaption","tableContainer","selectionPos","cols","inactive","Lists","deleteTable","columns","rect","selectedRect","addRow","alignments_1","rowNode","rowOffset","cellPos","cellOffset","cellNode","colIndex","TableToggleHeaderCommand","TableToggleHeader","toggleHeader","isInTable","TableToggleCaption","tr_2","left_1","right_1","selectionCell","tableStart","TableMap","CellSelection","rectBetween","$anchorCell","$headCell","tableGroup","getFromDOM","textAlign","kDefaultCellClasses","table_pandoc_1","readPandocTable","writePandocTableContainer","table_capsule_1","tableBlockCapsuleFilter","colgroup","childElementCount","colpercents","firstRow","colWidth","colWidths","tableColumnWidths","writePandocTable","writePandocTableCaption","table_row","writePandocTableNodes","writePandocTableHeaderNodes","alignments","AlignLeft","Left","AlignRight","AlignCenter","AlignDefault","tableToken","ColWidth","columnPercents","parseRow","row","captionBlock","widths","ColWidthDefault","headerCut","tableColumnAlignments","colwidth","availableWidth","colsWithWidth","totalWidth","pct","extraPercent_1","totalPercent","colWidths_1","tables_1","kTableBlockCapsuleType","DefinitionList","definition","unparsedTable_1","TableDeleteColumn","subMenu","TableAlignColumnLeft","menuVisible","sliceHasNode","currentColumn","columnAlignments","headerPos","childPos","definition_lists","definition_list_pandoc_1","writePandocDefinitionListDescription","readPandocDefinitionList","writePandocDefinitionList","definition_list_inputrule_1","definitionInputRule","definition_list_insert_1","insertDefinitionListAppendTransaction","emptyNodePlaceholderPlugin","termText","insertTermText","insertDefinitionList","createDefinitionDescription","definition_list_dark","InsertDefinitionList","InsertDefinitionListItemCommand","createFn","dlTypes","insertPos","InsertDefinitionTerm","InsertDefinitionDescription","lists_1","listPos","list","listParent","listIndex","definitionList","prevCursor","definitionListEnter","parentTerm","selectionNode","isParagraph","isEmpty","position_1","isLastChild","descriptionNode","endOfDescriptionEnter","isOnlyChild","emptyTermBackspace","emptyDescriptionBackspace","advancePos","definitionListShiftTab","backwardPos","prevNode","listNode","depthOffset","isParagraphAfterParagraph","prevPara","writeCurrent","writePandocDefinitionListTerm","kShortcodeBlockCapsuleType","_p3","shortcode_block","borderColorClass","isParaWrappingShortcode","Shortcode","shortcodeNode","htmlPreserveBlockCapsuleFilter","kHtmlPreserveBlockCapsuleType","handleToken","html_preserve","aceExtension","aceRenderQueue","ace_render_queue_1","AceRenderQueue","ace_node_views_1","AceNodeViews","AceNodeView","aceNodeViews","activeView","handleClick","ExpandChunk","activeAceNodeViewCommand","nodeView","setExpanded","CollapseChunk","editorOptions","gapCursorPending","selectionMarker","queuedSelection","subscriptions","renderedWidth","scrollRow","mouseDown","preview","ace_placeholder_1","AcePlaceholder","getElement","updateMode","onEditorDispatch","initEditor","renderQueue","unsub","_decos","editSession","AceRange","require","Range","getDocument","computeChange","fromPoints","indexToPosition","findMarkers","removeMarker","findPluginState","markerTo","markerFrom","markerId","addMarker","escaping","aceEditor","setSelectionRange","QueuedSelection","setGapCursorPending","pending","getExpanded","_mutation","forwardSelection","asProseMirrorSelection","session","getRange","positionToIndex","highlightSelectionAcross","valueChanged","getContents","replaceWith","scrollParent","offsetTop","viewTop","viewBottom","createChunkEditor","scrollCursorIntoView","getSession","cursorDirty","addCommand","arrowMaybeEscape","readOnly","bindKey","backspaceMaybeDeleteNode","undo","redo","win","insertParagraph","mac","getCursorPosition","executeSelection","renderer","metrics","$fontMetrics","$observer","setContainer","debounceResize","evt","resizeTimer","setMode","execCommand","getLength","innerText","getCursor","containerRect","cursorRect","down","up","oldEnd","oldVal","newEnd","newVal","cursorPos","prevNodePos","nextNodePos","nextNodeTextBlock","nextNodeCode","targetPos","renderCompleted","updateTimer","needsSort","bypass","visible","onUpdate","IntersectionObserver","entries_1","processRenderQueue","isIntersecting","cancelTimer","onScroll","scheduleRender","isRenderCompleted","renderTimer","delayMs","activeNodeView","prevNodePos_1","nv","state_1","editors","pandocAttrEnabled","attr_edit_command_1","AttrEditCommand","AttrEditDecorationPlugin","noKeyvalueTags","editorNode","attrTags","attrEditNodeCommandFn","ed","decoratorsForDoc","preferHiddenDecorators_1","dec","parentWithAttrs","decorator","editMarkAttrs","editAttr","idHint","gutterBackgroundColor","gutterTextColor","textColor","surfaceWidgetTextColor","lightTextColor","linkTextColor","invisibleTextColor","markupTextColor","findTextBackgroundColor","findTextBorderColor","blockBorderColor","focusOutlineColor","paneBorderColor","fixedWidthFont","fixedWidthFontSizePt","proportionalFont","proportionalFontSizePt","atomColor","tagColor","attributeColor","hrColor","linkColor","errorColor","setStyleElement","css","styleEl","getElementById","defaults","backgroundColor","borderBackgroundColor","placeholderTextColor","selectionColor","cursorColor","metadataBackgroundColor","chunkBackgroundColor","spanBackgroundColor","divBackgroundColor","commentColor","commentBackgroundColor","nodeSelectionColor","padding","copy_png_1","properties_png_1","properties_deco_png_1","properties_deco_dark_png_1","removelink_png_1","runchunk_png_1","runprevchunks_png_1","search_png_1","search_progress_gif_1","generic_png_1","heading1_png_1","heading1_dark_png_1","heading2_png_1","heading2_dark_png_1","heading3_png_1","heading3_dark_png_1","heading4_png_1","heading4_dark_png_1","bullet_list_png_1","bullet_list_dark_png_1","ordered_list_png_1","ordered_list_dark_png_1","blockquote_png_1","blockquote_dark_png_1","math_inline_png_1","math_inline_dark_png_1","math_display_png_1","math_display_dark_png_1","html_block_png_1","html_block_dark_png_1","line_block_png_1","line_block_dark_png_1","emoji_png_1","emoji_dark_png_1","comment_png_1","comment_dark_png_1","div_png_1","div_dark_png_1","code_block_png_1","code_block_dark_png_1","footnote_png_1","footnote_dark_png_1","citation_png_1","citation_dark_png_1","cross_reference_png_1","cross_reference_dark_png_1","symbol_png_1","symbol_dark_png_1","table_png_1","table_dark_png_1","definition_list_png_1","definition_list_dark_png_1","horizontal_rule_png_1","horizontal_rule_dark_png_1","image_png_1","image_dark_png_1","link_png_1","link_dark_png_1","paragraph_png_1","paragraph_dark_png_1","raw_block_png_1","raw_block_dark_png_1","raw_inline_png_1","raw_inline_dark_png_1","tex_block_png_1","tex_block_dark_png_1","yaml_block_png_1","yaml_block_dark_png_1","python_chunk_png_1","sql_chunk_png_1","d3_chunk_png_1","stan_chunk_png_1","bash_chunk_png_1","bash_chunk_dark_png_1","r_chunk_png_1","r_chunk_dark_png_1","rcpp_chunk_png_1","rcpp_chunk_dark_png_1","tabset_png_1","tabset_dark_png_1","slide_columns_png_1","slide_columns_dark_png_1","slide_pause_png_1","slide_pause_dark_png_1","slide_notes_png_1","slide_notes_dark_png_1","article_png_1","article_dark_png_1","book_png_1","book_dark_png_1","broadcast_png_1","broadcast_dark_png_1","data_png_1","data_dark_png_1","entry_png_1","entry_dark_png_1","image_png_2","image_dark_png_2","legal_png_1","legal_dark_png_1","map_png_1","map_dark_png_1","movie_png_1","movie_dark_png_1","other_png_1","other_dark_png_1","heading3","heading3_dark","bullet_list_dark","ordered_list_dark","blockquote_dark","line_block_dark","emoji_dark","citation_dark","paragraph_dark","raw_block_dark","tex_block","tex_block_dark","sql_chunk","stan_chunk","song_png_1","song_dark_png_1","local_sources_png_1","formatMenu","Underline","ListItemCheck","ListItemCheckToggle","EditListProperties","Blockquote","haveAnyOf","HTMLInline","ClearFormatting","AttrEdit","RCodeChunk","PythonCodeChunk","BashCodeChunk","StanCodeChunk","InlineMath","DefinitionDescription","EnDash","NonBreakingSpace","commands_1","editorMenus","TableDeleteTable","excludeInCode","kPresentationEditorLocationTitle","foundCursor","bodyNodes_1","bodyNodes","autoSlideLevel","kPresentationEditorLocationHeading"],"mappings":"YAeA,IAAAA,EA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SACH,IACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,UACH,KACAA,EAAA,IAEF,WACE,KACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,KAEFA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,UACH,UACA,KAEF,KAAK,KACLA,EAAK,IACL,WACE,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,KAEF,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,SACH,SACA,IAEF,KAAK,KACL,KAAK,UACH,KACAA,EAAA,IAEF,MACA,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,WACE,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,SACH,SACA,IAEF,KAAK,KACL,KAAK,UACH,UACA,KAEFA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,UACH,UACA,KAEF,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,UACH,KACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,UACH,KACAA,EAAA,IAEF,WACE,UACA,KAEF,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,IACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACH,WACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,KACLA,EAAK,IACH,WACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,KACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,UACH,UACA,KAEF,KAAK,KACLA,EAAK,IACL,WACE,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,KAEF,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,SACH,SACA,KAEF,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,SACH,SACA,KAEF,KAAK,KACL,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Kd,YA+CN56D,SACA,CACA,IACA,UACA,QACA,OAGA,KACA,UACA,MACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,SACA,SACA,KACA,OACA,SACA,MACA,IACA,UACA,OACA,UACA,OACA,WACA,OACA,OACA,QACA,QACA,SACA,WACA,WACA,OACA,QACA,SACA,QACA,SACA,QACA,WACA,SAGA,SACA,WACA,OACA,UACA,UACA,IACA,MACA,MAGA,MACA,aACA,SACA,OACA,OACA,MACA,MACA,KACA,OACA,IAGA,MACA,MAGA,OACA,SACA,MACA,WACA,IACA,KACA,KACA,OACA,IACA,OACA,QACA,SACA,SACA,MACA,MACA,KACA,IACA,MACA,WAGJ,MACE,KACE,KACA,KACA,KACA,OACA,KACA,UACA,MACA,WACA,QACA,QACA,KACA,QACA,QACA,KACA,KACA,SACA,oBAGJ,0HC1WA,SAEA,OAGA,SACAxS,SAAAwS,EAAAiC,eDkMU64D,CAAAnsE,UAGSA,KAAW3D,EAAA,GACrB+vE,MAAA/vE,EAAA,GAAA5S,OAAA,EAEL4iF,KAAAC,EAAAtsE,GACAwL,MAAA0gE,EACAzhE,IAAAwhE,EAAA,WAKA,MAzDMx/E,EAAKmkB,kCAUT,GALG7e,EAAA6qB,WAAA,0CAGA7qB,EAAA4qB,QAA0BnR,EAAAf,EAAc,EAAAuhE,EAAAx+E,UAC3CuE,EAAAib,iBAAgBg/D,IAChB36D,EAAgB+6D,QAAA/6D,EAAAg7D,KAAA,CAChB,IAAAE,EAAAz+E,EAAAvC,KAAA,KAAA8lB,EAAArR,KAAA,KACKjO,EAAQ2zB,qBAAa6mD,GAAA,GAEjBliF,EAAK2H,iBAAAD,EAAA6C,UAAAC,KAAA03E,EAAA37D,YAAAnnB,OAALY,CAAK0H,GAGLA,EAAA4qB,QAAQ5qB,EAAA6C,UAAiBC,KAAC9C,EAAA6C,UAAeC,KAAA03E,EAAA37D,YAAAnnB,OAAAuiF,EAAAx+E,UAC1CuE,EAAAib,iBAAAg/D,GAIN,OAAOj6E,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,0CAEN,yCACF","sourcesContent":["/*\n * index.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport polyfillIsConnected from './isconnected';\nimport polyfillCustomEvent from './custom-event';\n\nfunction polyfill() {\n polyfillIsConnected();\n polyfillCustomEvent();\n}\n\nexport default polyfill;\n","/*\n * Node.isConnected polyfill for IE and EdgeHTML\n * 2020-02-04\n *\n * By Eli Grey, https://eligrey.com\n * Public domain.\n * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.\n */\n\nfunction polyfill() {\n if (!('isConnected' in Node.prototype)) {\n Object.defineProperty(Node.prototype, 'isConnected', {\n get() {\n return (\n !this.ownerDocument ||\n !(\n // tslint:disable-next-line: no-bitwise\n (this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED)\n )\n );\n },\n });\n }\n}\n\nexport default polyfill;\n","// apply polyfills\nimport polyfill from './polyfill/index';\npolyfill();\n\n// objects instantiated by the IDE\nexport { Editor, UITools } from './editor/editor';\n","/**\n * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent\n *\n * From https://developer.mozilla.org/en-US/docs/MDN/About:\n * \"Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/\"\n */\nexport default function() {\n if (typeof window.CustomEvent === 'function') return false;\n\n function CustomEvent(event: any, params: any) {\n params = params || { bubbles: false, cancelable: false, detail: null };\n var evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n }\n\n window.CustomEvent = CustomEvent as any;\n}\n","/*\n * editor.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { inputRules } from 'prosemirror-inputrules';\nimport { keydownHandler } from 'prosemirror-keymap';\nimport { Node as ProsemirrorNode, Schema, DOMParser, ParseOptions } from 'prosemirror-model';\nimport { EditorState, Plugin, PluginKey, TextSelection, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport 'prosemirror-view/style/prosemirror.css';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { citeUI } from '../api/cite';\nimport { EditorOptions } from '../api/options';\nimport { ProsemirrorCommand, CommandFn, EditorCommand } from '../api/command';\nimport { EditorUI } from '../api/ui';\nimport {\n attrPropsToInput,\n attrInputToProps,\n AttrProps,\n AttrEditInput,\n InsertCiteProps,\n InsertCiteUI,\n} from '../api/ui-dialogs';\n\nimport { Extension } from '../api/extension';\nimport { PandocWriterOptions } from '../api/pandoc';\nimport { PandocCapabilities, getPandocCapabilities } from '../api/pandoc_capabilities';\nimport { fragmentToHTML } from '../api/html';\nimport { DOMEditorEvents, EventType, EventHandler } from '../api/events';\nimport {\n ScrollEvent,\n UpdateEvent,\n OutlineChangeEvent,\n StateChangeEvent,\n ResizeEvent,\n LayoutEvent,\n FocusEvent,\n DispatchEvent,\n NavigateEvent,\n BlurEvent,\n} from '../api/event-types';\nimport {\n PandocFormat,\n resolvePandocFormat,\n PandocFormatConfig,\n pandocFormatConfigFromCode,\n pandocFormatConfigFromDoc,\n} from '../api/pandoc_format';\nimport { baseKeysPlugin } from '../api/basekeys';\nimport {\n appendTransactionsPlugin,\n appendMarkTransactionsPlugin,\n kFixupTransaction,\n kAddToHistoryTransaction,\n kSetMarkdownTransaction,\n} from '../api/transaction';\nimport { EditorOutline, getOutlineNodes, EditingOutlineLocation, getEditingOutlineLocation } from '../api/outline';\nimport { EditingLocation, getEditingLocation, setEditingLocation } from '../api/location';\nimport { navigateTo, NavigationType } from '../api/navigation';\nimport { FixupContext } from '../api/fixup';\nimport { unitToPixels, pixelsToUnit, roundUnit, kValidUnits } from '../api/image';\nimport { kPercentUnit } from '../api/css';\nimport { EditorFormat } from '../api/format';\nimport { diffChars, EditorChange } from '../api/change';\nimport { markInputRuleFilter } from '../api/input_rule';\nimport { editorMath } from '../api/math';\nimport { EditorEvents } from '../api/events';\nimport { insertRmdChunk } from '../api/rmd';\nimport { EditorServer } from '../api/server';\nimport { pandocAutoIdentifier } from '../api/pandoc_id';\nimport { wrapSentences } from '../api/wrap';\nimport { yamlFrontMatter, applyYamlFrontMatter } from '../api/yaml';\nimport { EditorSpellingDoc } from '../api/spelling';\n\nimport { getTitle, setTitle } from '../nodes/yaml_metadata/yaml_metadata-title';\nimport { getOutline } from '../behaviors/outline';\nimport {\n FindOptions,\n find,\n matchCount,\n selectFirst,\n selectNext,\n selectPrevious,\n replace,\n replaceAll,\n clear,\n selectCurrent,\n} from '../behaviors/find';\n\nimport { omniInsertExtension } from '../behaviors/omni_insert/omni_insert';\nimport { completionExtension } from '../behaviors/completion/completion';\n\nimport { getSpellingDoc } from '../behaviors/spelling/spelling-interactive';\nimport { realtimeSpellingPlugin, invalidateAllWords, invalidateWord } from '../behaviors/spelling/spelling-realtime';\n\nimport { PandocConverter, PandocLineWrapping } from '../pandoc/pandoc_converter';\n\nimport { ExtensionManager, initExtensions } from './editor-extensions';\nimport { defaultTheme, EditorTheme, applyTheme, applyPadding } from './editor-theme';\nimport { defaultEditorUIImages } from './editor-images';\nimport { editorMenus, EditorMenus } from './editor-menus';\nimport { editorSchema } from './editor-schema';\n\n// import styles before extensions so they can be overriden by extensions\nimport './styles/frame.css';\nimport './styles/styles.css';\nimport { getPresentationEditorLocation, PresentationEditorLocation, positionForPresentationEditorLocation } from '../api/presentation';\n\nexport interface EditorCode {\n code: string;\n selection_only: boolean;\n location: EditingOutlineLocation;\n}\n\nexport interface EditorSetMarkdownResult {\n // editor view of markdown (as it will be persisted)\n canonical: string;\n\n // line wrapping\n line_wrapping: PandocLineWrapping;\n\n // unrecoginized pandoc tokens\n unrecognized: string[];\n\n // example lists?\n example_lists: boolean;\n\n // unparsed meta\n unparsed_meta: { [key: string]: any };\n\n // updated outline \n location: EditingOutlineLocation;\n}\n\nexport interface EditorContext {\n readonly server: EditorServer;\n readonly ui: EditorUI;\n readonly hooks?: EditorHooks;\n readonly extensions?: readonly Extension[];\n}\n\nexport interface EditorHooks {\n isEditable?: () => boolean;\n}\n\nexport interface EditorKeybindings {\n [id: string]: string[];\n}\n\nexport interface EditorSelection {\n from: number;\n to: number;\n navigation_id: string | null;\n}\n\nexport interface EditorFindReplace {\n find: (term: string, options: FindOptions) => boolean;\n matches: () => number;\n selectFirst: () => boolean;\n selectCurrent: () => boolean;\n selectNext: () => boolean;\n selectPrevious: () => boolean;\n replace: (text: string) => boolean;\n replaceAll: (text: string) => number;\n clear: () => boolean;\n}\n\nexport { EditorCommandId as EditorCommands } from '../api/command';\n\nexport interface UIToolsAttr {\n propsToInput(attr: AttrProps): AttrEditInput;\n inputToProps(input: AttrEditInput): AttrProps;\n pandocAutoIdentifier(text: string): string;\n}\n\nexport interface UIToolsImage {\n validUnits(): string[];\n percentUnit(): string;\n unitToPixels(value: number, unit: string, containerWidth: number): number;\n pixelsToUnit(pixels: number, unit: string, containerWidth: number): number;\n roundUnit(value: number, unit: string): string;\n}\n\nexport interface UIToolsFormat {\n parseFormatConfig(markdown: string, isRmd: boolean): PandocFormatConfig;\n}\n\nexport interface UIToolsSource {\n diffChars(from: string, to: string, timeout: number): EditorChange[];\n}\n\nexport interface UIToolsCitation {\n citeUI(citeProps: InsertCiteProps): InsertCiteUI;\n}\n\nexport class UITools {\n public readonly attr: UIToolsAttr;\n public readonly image: UIToolsImage;\n public readonly format: UIToolsFormat;\n public readonly source: UIToolsSource;\n public readonly citation: UIToolsCitation;\n\n constructor() {\n this.attr = {\n propsToInput: attrPropsToInput,\n inputToProps: attrInputToProps,\n pandocAutoIdentifier: (text: string) => pandocAutoIdentifier(text, false),\n };\n\n this.image = {\n validUnits: () => kValidUnits,\n percentUnit: () => kPercentUnit,\n unitToPixels,\n pixelsToUnit,\n roundUnit,\n };\n\n this.format = {\n parseFormatConfig: pandocFormatConfigFromCode,\n };\n\n this.source = {\n diffChars,\n };\n\n this.citation = {\n citeUI,\n };\n }\n}\n\nconst keybindingsPlugin = new PluginKey('keybindings');\n\nexport class Editor {\n // core context passed from client\n private readonly parent: HTMLElement;\n private readonly context: EditorContext;\n private readonly events: EditorEvents;\n\n // options (derived from defaults + config)\n private readonly options: EditorOptions;\n\n // format (pandocFormat includes additional diagnostics based on the validity of\n // provided mode + extensions)\n private readonly format: EditorFormat;\n private readonly pandocFormat: PandocFormat;\n\n // pandoc capabilities\n private pandocCapabilities: PandocCapabilities;\n\n // core prosemirror state/behaviors\n private readonly extensions: ExtensionManager;\n private readonly schema: Schema;\n private state: EditorState;\n private readonly view: EditorView;\n private readonly pandocConverter: PandocConverter;\n\n // setting via setKeybindings forces reconfiguration of EditorState\n // with plugins recreated\n private keybindings: EditorKeybindings;\n\n // content width constraints (if unset uses default editor CSS)\n private maxContentWidth = 0;\n private minContentPadding = 0;\n\n // keep track of whether the last transaction was selection-only\n private lastTrSelectionOnly = false;\n\n // create the editor -- note that the markdown argument does not substitute for calling\n // setMarkdown, rather it's used to read the format comment to determine how to\n // initialize the various editor features\n public static async create(\n parent: HTMLElement,\n context: EditorContext,\n format: EditorFormat,\n options: EditorOptions,\n ): Promise {\n // provide option defaults\n options = {\n autoFocus: false,\n spellCheck: false,\n codeEditor: 'codemirror',\n rmdImagePreview: false,\n hideFormatComment: false,\n className: '',\n ...options,\n };\n\n // provide format defaults\n format = {\n pandocMode: format.pandocMode || 'markdown',\n pandocExtensions: format.pandocExtensions || '',\n rmdExtensions: {\n codeChunks: false,\n bookdownXRef: false,\n bookdownXRefUI: false,\n bookdownPart: false,\n blogdownMathInCode: false,\n ...format.rmdExtensions,\n },\n hugoExtensions: {\n shortcodes: false,\n ...format.hugoExtensions,\n },\n docTypes: format.docTypes || [],\n };\n\n // provide context defaults\n const defaultImages = defaultEditorUIImages();\n context = {\n ...context,\n ui: {\n ...context.ui,\n images: {\n ...defaultImages,\n ...context.ui.images,\n omni_insert: {\n ...defaultImages.omni_insert,\n ...context.ui.images,\n },\n citations: {\n ...defaultImages.citations,\n ...context.ui.images,\n },\n },\n },\n };\n\n // resolve the format\n const pandocFmt = await resolvePandocFormat(context.server.pandoc, format);\n\n // get pandoc capabilities\n const pandocCapabilities = await getPandocCapabilities(context.server.pandoc);\n\n // create editor\n const editor = new Editor(parent, context, options, format, pandocFmt, pandocCapabilities);\n\n // return editor\n return Promise.resolve(editor);\n }\n\n private constructor(\n parent: HTMLElement,\n context: EditorContext,\n options: EditorOptions,\n format: EditorFormat,\n pandocFormat: PandocFormat,\n pandocCapabilities: PandocCapabilities,\n ) {\n // initialize references\n this.parent = parent;\n this.events = new DOMEditorEvents(parent);\n this.context = context;\n this.options = options;\n this.format = format;\n this.keybindings = {};\n this.pandocFormat = pandocFormat;\n this.pandocCapabilities = pandocCapabilities;\n\n // create core extensions\n this.extensions = this.initExtensions();\n\n // create schema\n this.schema = editorSchema(this.extensions);\n\n // register completion handlers (done in a separate step b/c omni insert\n // completion handlers require access to the initializezd commands that\n // carry omni insert info)\n this.registerCompletionExtension();\n\n // register realtime spellchecking (done in a separate step b/c it\n // requires access to PandocMark definitions to determine which\n // marks to exclude from spellchecking)\n this.registerRealtimeSpelling();\n\n // create state\n this.state = EditorState.create({\n schema: this.schema,\n doc: this.initialDoc(),\n plugins: this.createPlugins(),\n });\n\n // additional dom attributes for editor node\n const attributes: { [name: string]: string } = {};\n if (options.className) {\n attributes.class = options.className;\n }\n\n // create view\n this.view = new EditorView(this.parent, {\n state: this.state,\n dispatchTransaction: this.dispatchTransaction.bind(this),\n domParser: new EditorDOMParser(this.schema),\n attributes,\n });\n\n // add custom restoreFocus handler to the view -- this provides a custom\n // handler for RStudio's FocusContext, necessary because the default\n // ProseMirror dom mutation handler picks up the focus and changes the\n // selection.\n Object.defineProperty(this.view.dom, 'restoreFocus', {\n value: () => {\n this.focus();\n },\n });\n\n // add proportinal font class to parent\n this.parent.classList.add('pm-proportional-font');\n\n // apply default theme\n this.applyTheme(defaultTheme());\n\n // create pandoc translator\n this.pandocConverter = new PandocConverter(\n this.schema,\n this.extensions,\n context.server.pandoc,\n this.pandocCapabilities,\n );\n\n // focus editor immediately if requested\n if (this.options.autoFocus) {\n setTimeout(() => {\n this.focus();\n }, 10);\n }\n\n // disale spellcheck if requested\n if (!this.options.spellCheck) {\n this.parent.setAttribute('spellcheck', 'false');\n }\n\n {\n // scroll event optimization, as recommended by\n // https://developer.mozilla.org/en-US/docs/Web/API/Document/scroll_event\n let ticking = false;\n this.parent.addEventListener(\n 'scroll',\n () => {\n if (!ticking) {\n window.requestAnimationFrame(() => {\n this.emitEvent(ScrollEvent);\n ticking = false;\n });\n ticking = true;\n }\n },\n { capture: true },\n );\n }\n }\n\n public destroy() {\n this.view.destroy();\n }\n\n public subscribe(event: EventType | string, handler: EventHandler): VoidFunction {\n if (typeof event === 'string') {\n return this.events.subscribe({ eventName: event }, handler);\n } else {\n return this.events.subscribe(event, handler);\n }\n }\n\n public setTitle(title: string) {\n const tr = setTitle(this.state, title);\n if (tr) {\n this.view.dispatch(tr);\n }\n }\n\n public async setMarkdown(\n markdown: string,\n options: PandocWriterOptions,\n emitUpdate: boolean,\n ): Promise {\n // get the result\n const result = await this.pandocConverter.toProsemirror(markdown, this.pandocFormat);\n const { doc, line_wrapping, unrecognized, example_lists, unparsed_meta } = result;\n\n // if we are preserving history but the existing doc is empty then create a new state\n // (resets the undo stack so that the initial setting of the document can't be undone)\n if (this.isInitialDoc()) {\n this.state = EditorState.create({\n schema: this.state.schema,\n doc,\n plugins: this.state.plugins,\n });\n this.view.updateState(this.state);\n } else {\n // note current editing location\n const loc = this.getEditingLocation();\n\n // replace the top level nodes in the doc\n const tr = this.state.tr;\n tr.setMeta(kSetMarkdownTransaction, true);\n let i = 0;\n tr.doc.descendants((node, pos) => {\n const mappedPos = tr.mapping.map(pos);\n tr.replaceRangeWith(mappedPos, mappedPos + node.nodeSize, doc.child(i));\n i++;\n return false;\n });\n // set selection to previous location if it's still valid\n if (loc.pos < tr.doc.nodeSize) {\n // eat exceptions that might result from an invalid position\n try {\n setTextSelection(loc.pos)(tr);\n } catch (e) {\n // do-nothing, this error can happen and shouldn't result in \n // a failure to setMarkdown\n }\n }\n // dispatch\n this.view.dispatch(tr);\n }\n\n // apply fixups\n this.applyFixups(FixupContext.Load);\n\n // notify listeners if requested\n if (emitUpdate) {\n this.emitEvent(UpdateEvent);\n this.emitEvent(OutlineChangeEvent);\n this.emitEvent(StateChangeEvent);\n }\n\n // return our current markdown representation (so the caller know what our\n // current 'view' of the doc as markdown looks like\n const getMarkdownTr = this.state.tr;\n const canonical = await this.getMarkdownCode(getMarkdownTr, options);\n const location = getEditingOutlineLocation(this.state);\n\n // return\n return {\n canonical,\n line_wrapping,\n unrecognized,\n example_lists,\n unparsed_meta,\n location\n };\n }\n\n // flag indicating whether we've ever had setMarkdown (currently we need this\n // because getMarkdown can only be called after setMarkdown b/c it needs\n // the API version retreived in setMarkdown -- we should remedy this)\n public isInitialDoc() {\n return this.state.doc.attrs.initial;\n }\n\n public async getMarkdown(options: PandocWriterOptions): Promise {\n // get the code\n const tr = this.state.tr;\n const code = await this.getMarkdownCode(tr, options);\n\n // return code + perhaps outline location\n return {\n code,\n selection_only: this.lastTrSelectionOnly,\n location: getEditingOutlineLocation(this.state),\n };\n }\n\n public getEditingOutlineLocation(): EditingOutlineLocation {\n return getEditingOutlineLocation(this.state);\n }\n\n public getHTML(): string {\n return fragmentToHTML(this.state.schema, this.state.doc.content);\n }\n\n public getTitle() {\n return getTitle(this.state);\n }\n\n public getSelection(): EditorSelection {\n const { from, to } = this.state.selection;\n return {\n from,\n to,\n navigation_id: navigationIdForSelection(this.state),\n };\n }\n\n public getEditingLocation(): EditingLocation {\n return getEditingLocation(this.view);\n }\n\n public setEditingLocation(outlineLocation?: EditingOutlineLocation, previousLocation?: EditingLocation) {\n setEditingLocation(this.view, outlineLocation, previousLocation);\n }\n\n public getOutline(): EditorOutline {\n return getOutline(this.state) || [];\n }\n\n public getFindReplace(): EditorFindReplace {\n return {\n find: (term: string, options: FindOptions) => find(this.view, term, options),\n matches: () => matchCount(this.view),\n selectCurrent: () => selectCurrent(this.view),\n selectFirst: () => selectFirst(this.view),\n selectNext: () => selectNext(this.view),\n selectPrevious: () => selectPrevious(this.view),\n replace: (text: string) => replace(this.view, text),\n replaceAll: (text: string) => replaceAll(this.view, text),\n clear: () => clear(this.view),\n };\n }\n\n public getSpellingDoc(): EditorSpellingDoc {\n return getSpellingDoc(this.view, this.extensions.pandocMarks(), this.context.ui.spelling);\n }\n\n public spellingInvalidateAllWords() {\n invalidateAllWords(this.view);\n }\n\n public spellingInvalidateWord(word: string) {\n invalidateWord(this.view, word);\n }\n\n // get a canonical version of the passed markdown. this method doesn't mutate the\n // visual editor's state/view (it's provided as a performance optimiation for when\n // source mode is configured to save a canonical version of markdown)\n public async getCanonical(markdown: string, options: PandocWriterOptions): Promise {\n // convert to prosemirror doc\n const result = await this.pandocConverter.toProsemirror(markdown, this.pandocFormat);\n\n // create a state for this doc\n const state = EditorState.create({\n schema: this.schema,\n doc: result.doc,\n plugins: this.state.plugins,\n });\n\n // apply load fixups (eumlating what a full round trip will do)\n const tr = state.tr;\n this.extensionFixups(tr, FixupContext.Load);\n\n // return markdown (will apply save fixups)\n return this.getMarkdownCode(tr, options);\n }\n\n public getSelectedText(): string {\n return this.state.doc.textBetween(this.state.selection.from, this.state.selection.to);\n }\n\n public replaceSelection(value: string): void {\n // retrieve properties we need from selection\n const { from, empty } = this.view.state.selection;\n\n // retrieve selection marks\n const marks = this.view.state.selection.$from.marks();\n\n // insert text\n const tr = this.view.state.tr.replaceSelectionWith(this.view.state.schema.text(value, marks), false);\n this.view.dispatch(tr);\n\n // update selection if necessary\n if (!empty) {\n const sel = TextSelection.create(this.view.state.doc, from, from + value.length);\n const trSetSel = this.view.state.tr.setSelection(sel);\n this.view.dispatch(trSetSel);\n }\n }\n\n public getYamlFrontMatter() {\n if (this.schema.nodes.yaml_metadata) {\n return yamlFrontMatter(this.view.state.doc);\n } else {\n return '';\n }\n }\n\n public getPresentationEditorLocation() {\n return getPresentationEditorLocation(this.state);\n }\n\n public navigateToPresentationEditorLocation(location: PresentationEditorLocation) {\n const pos = positionForPresentationEditorLocation(this.state, location);\n if (pos !== -1) {\n this.navigate(NavigationType.Pos, String(pos));\n }\n }\n\n public applyYamlFrontMatter(yaml: string) {\n if (this.schema.nodes.yaml_metadata) {\n applyYamlFrontMatter(this.view, yaml);\n }\n }\n\n public focus() {\n this.view.focus();\n }\n\n public blur() {\n (this.view.dom as HTMLElement).blur();\n }\n\n public insertChunk(chunkPlaceholder: string) {\n const insertCmd = insertRmdChunk(chunkPlaceholder);\n insertCmd(this.view.state, this.view.dispatch, this.view);\n this.focus();\n }\n\n public navigate(type: NavigationType, location: string, recordCurrent = true, animate = false) {\n // perform navigation\n const nav = navigateTo(this.view, this.format, type, location, animate);\n\n // emit event\n if (nav !== null) {\n if (!recordCurrent) {\n nav.prevPos = -1;\n }\n this.emitEvent(NavigateEvent, nav);\n }\n }\n\n public resize() {\n this.syncContentWidth();\n this.applyFixupsOnResize();\n this.emitEvent(ResizeEvent);\n }\n\n public enableDevTools(initFn: (view: EditorView, stateClass: any) => void) {\n initFn(this.view, { EditorState });\n }\n\n public getMenus(): EditorMenus {\n return editorMenus(this.context.ui, this.commands());\n }\n\n public commands(): EditorCommand[] {\n // get keybindings (merge user + default)\n const commandKeys = this.commandKeys();\n\n return this.extensions.commands(this.schema).map((command: ProsemirrorCommand) => {\n return {\n id: command.id,\n keymap: commandKeys[command.id],\n isActive: () => command.isActive(this.state),\n isEnabled: () => command.isEnabled(this.state),\n plural: () => command.plural(this.state),\n execute: () => {\n command.execute(this.state, this.view.dispatch, this.view);\n if (command.keepFocus) {\n this.focus();\n }\n },\n };\n });\n }\n\n public applyTheme(theme: EditorTheme) {\n // set global mode classes\n this.parent.classList.toggle('pm-dark-mode', !!theme.darkMode);\n this.parent.classList.toggle('pm-solarized-mode', !!theme.solarizedMode);\n // apply the rest of the theme\n applyTheme(theme);\n }\n\n public setMaxContentWidth(maxWidth: number, minPadding = 10) {\n this.maxContentWidth = maxWidth;\n this.minContentPadding = minPadding;\n this.syncContentWidth();\n }\n\n public setKeybindings(keyBindings: EditorKeybindings) {\n // validate that all of these keys can be rebound\n\n this.keybindings = keyBindings;\n this.state = this.state.reconfigure({\n schema: this.state.schema,\n plugins: this.createPlugins(),\n });\n }\n\n public getEditorFormat() {\n return this.format;\n }\n\n public getPandocFormat() {\n return this.pandocFormat;\n }\n\n public getPandocFormatConfig(isRmd: boolean): PandocFormatConfig {\n return pandocFormatConfigFromDoc(this.state.doc, isRmd);\n }\n\n private dispatchTransaction(tr: Transaction) {\n // track previous outline\n const previousOutline = getOutline(this.state);\n\n // track whether this was a selection-only transaction\n this.lastTrSelectionOnly = tr.selectionSet && !tr.docChanged;\n\n // apply the transaction\n this.state = this.state.apply(tr);\n this.view.updateState(this.state);\n\n // notify listeners of state change\n this.emitEvent(StateChangeEvent);\n\n // notify listeners of updates\n if (tr.docChanged || tr.storedMarksSet) {\n // fire updated (unless this was a fixup)\n if (!tr.getMeta(kFixupTransaction)) {\n this.emitEvent(UpdateEvent);\n }\n\n // fire outline changed if necessary\n if (getOutline(this.state) !== previousOutline) {\n this.emitEvent(OutlineChangeEvent);\n }\n }\n\n this.emitEvent(DispatchEvent, tr);\n\n this.emitEvent(LayoutEvent);\n }\n\n private emitEvent(eventType: EventType, detail?: TDetail) {\n this.events.emit(eventType, detail);\n }\n\n private initExtensions() {\n return initExtensions(\n {\n format: this.format,\n options: this.options,\n ui: this.context.ui,\n math: this.context.ui.math.typeset ? editorMath(this.context.ui) : undefined,\n events: {\n subscribe: this.subscribe.bind(this),\n emit: this.emitEvent.bind(this),\n },\n pandocExtensions: this.pandocFormat.extensions,\n pandocCapabilities: this.pandocCapabilities,\n server: this.context.server,\n navigation: {\n navigate: this.navigate.bind(this),\n },\n },\n this.context.extensions,\n );\n }\n\n private registerCompletionExtension() {\n // mark filter used to screen completions from noInputRules marks\n const markFilter = markInputRuleFilter(this.schema, this.extensions.pandocMarks());\n\n // register omni insert extension\n this.extensions.register([\n omniInsertExtension(this.extensions.omniInserters(this.schema), markFilter, this.context.ui),\n ]);\n\n // register completion extension\n this.extensions.register([\n completionExtension(this.extensions.completionHandlers(), markFilter, this.context.ui, this.events),\n ]);\n }\n\n private registerRealtimeSpelling() {\n this.extensions.registerPlugins(\n [realtimeSpellingPlugin(this.schema, this.extensions.pandocMarks(), this.context.ui, this.events)],\n true,\n );\n }\n\n private createPlugins(): Plugin[] {\n return [\n baseKeysPlugin(this.extensions.baseKeys(this.schema)),\n this.keybindingsPlugin(),\n appendTransactionsPlugin(this.extensions.appendTransactions(this.schema)),\n appendMarkTransactionsPlugin(this.extensions.appendMarkTransactions(this.schema)),\n ...this.extensions.plugins(this.schema),\n this.inputRulesPlugin(),\n this.editablePlugin(),\n this.domEventsPlugin(),\n ];\n }\n\n private editablePlugin() {\n const hooks = this.context.hooks || {};\n return new Plugin({\n key: new PluginKey('editable'),\n props: {\n editable: hooks.isEditable || (() => true),\n },\n });\n }\n\n private inputRulesPlugin() {\n // filter for disabling input rules for selected marks\n const markFilter = markInputRuleFilter(this.schema, this.extensions.pandocMarks());\n\n // create the defautl inputRules plugin\n const plugin = inputRules({ rules: this.extensions.inputRules(this.schema) });\n const handleTextInput = plugin.props.handleTextInput!;\n\n // override to disable input rules as requested\n // https://github.com/ProseMirror/prosemirror-inputrules/commit/b4bf67623aa4c4c1e096c20aa649c0e63751f337\n plugin.props.handleTextInput = (view: EditorView, from: number, to: number, text: string) => {\n if (!markFilter(view.state)) {\n return false;\n }\n return handleTextInput(view, from, to, text);\n };\n return plugin;\n }\n\n private domEventsPlugin(): Plugin {\n return new Plugin({\n key: new PluginKey('domevents'),\n props: {\n handleDOMEvents: {\n blur: (view: EditorView, event: Event) => {\n this.emitEvent(BlurEvent);\n return false;\n },\n focus: (view: EditorView, event: Event) => {\n this.emitEvent(FocusEvent, view.state.doc);\n return false;\n },\n keydown: (view: EditorView, event: Event) => {\n const kbEvent = event as KeyboardEvent;\n if (kbEvent.key === 'Tab' && this.context.ui.prefs.tabKeyMoveFocus()) {\n return true;\n } else {\n return false;\n }\n },\n },\n },\n });\n }\n\n private keybindingsPlugin(): Plugin {\n // get keybindings (merge user + default)\n const commandKeys = this.commandKeys();\n\n // command keys from extensions\n const pluginKeys: { [key: string]: CommandFn } = {};\n const commands = this.extensions.commands(this.schema);\n commands.forEach((command: ProsemirrorCommand) => {\n const keys = commandKeys[command.id];\n if (keys) {\n keys.forEach((key: string) => {\n pluginKeys[key] = command.execute;\n });\n }\n });\n\n // for windows desktop, build a list of control key handlers b/c qtwebengine\n // ends up corrupting ctrl+ keys so they don't hit the ace keybinding\n // (see: https://github.com/rstudio/rstudio/issues/7142)\n const ctrlKeyCodes: { [key: string]: CommandFn } = {};\n Object.keys(pluginKeys).forEach(keyCombo => {\n const match = keyCombo.match(/^Mod-([a-z\\\\])$/);\n if (match) {\n const key = match[1];\n const keyCode = key === '\\\\' ? 'Backslash' : `Key${key.toUpperCase()}`;\n ctrlKeyCodes[keyCode] = pluginKeys[keyCombo];\n }\n });\n\n // create default prosemirror handler\n const prosemirrorKeydownHandler = keydownHandler(pluginKeys);\n\n // return plugin\n return new Plugin({\n key: keybindingsPlugin,\n props: {\n handleKeyDown: (view: EditorView, event: KeyboardEvent) => {\n // workaround for Ctrl+ keys on windows desktop\n if (this.context.ui.context.isWindowsDesktop()) {\n const keyEvent = event as KeyboardEvent;\n if (keyEvent.ctrlKey) {\n const keyCommand = ctrlKeyCodes[keyEvent.code];\n if (keyCommand && keyCommand(this.view.state)) {\n keyCommand(this.view.state, this.view.dispatch, this.view);\n return true;\n }\n }\n }\n // default handling\n return prosemirrorKeydownHandler(view, event);\n },\n },\n });\n }\n\n private commandKeys(): { [key: string]: readonly string[] } {\n // start with keys provided within command definitions\n const commands = this.extensions.commands(this.schema);\n const defaultKeys = commands.reduce((keys: { [key: string]: readonly string[] }, command: ProsemirrorCommand) => {\n keys[command.id] = command.keymap;\n return keys;\n }, {});\n\n // merge with user keybindings\n return {\n ...defaultKeys,\n ...this.keybindings,\n };\n }\n\n // update parent padding based on content width settings (if specified)\n private syncContentWidth() {\n if (this.maxContentWidth && this.parent.clientWidth) {\n const minContentPadding = this.minContentPadding || 10;\n const parentWidth = this.parent.clientWidth;\n if (parentWidth > this.maxContentWidth + 2 * minContentPadding) {\n applyPadding(`calc((100% - ${this.maxContentWidth}px)/2)`);\n } else {\n applyPadding(this.minContentPadding + 'px');\n }\n }\n }\n\n private applyFixupsOnResize() {\n const docChanged = this.applyFixups(FixupContext.Resize);\n if (!docChanged) {\n // If applyFixupsOnResize returns true, then layout has already\n // been fired; if it hasn't, we must do so now\n this.emitEvent(LayoutEvent);\n }\n }\n\n private applyFixups(context: FixupContext) {\n let tr = this.state.tr;\n tr = this.extensionFixups(tr, context);\n if (tr.docChanged) {\n tr.setMeta(kAddToHistoryTransaction, false);\n tr.setMeta(kFixupTransaction, true);\n this.view.dispatch(tr);\n return true;\n }\n return false;\n }\n\n private extensionFixups(tr: Transaction, context: FixupContext) {\n this.extensions.fixups(this.schema, this.view).forEach(fixup => {\n tr = fixup(tr, context);\n });\n return tr;\n }\n\n private initialDoc(): ProsemirrorNode {\n return this.schema.nodeFromJSON({\n type: 'doc',\n attrs: {\n initial: true,\n },\n content: [\n { type: 'body', content: [{ type: 'paragraph' }] },\n { type: 'notes', content: [] },\n ],\n });\n }\n\n private async getMarkdownCode(tr: Transaction, options: PandocWriterOptions) {\n // apply save fixups\n this.extensionFixups(tr, FixupContext.Save);\n\n // apply sentence wrapping if requested\n if (options.wrap === 'sentence') {\n wrapSentences(tr);\n }\n\n // get code\n return this.pandocConverter.fromProsemirror(tr.doc, this.pandocFormat, options);\n }\n}\n\nfunction navigationIdForSelection(state: EditorState): string | null {\n const outline = getOutlineNodes(state.doc);\n const outlineNode = outline.reverse().find(node => node.pos < state.selection.from);\n if (outlineNode) {\n return outlineNode.node.attrs.navigation_id;\n } else {\n return null;\n }\n}\n\n// custom DOMParser that preserves all whitespace (required by display math marks)\nclass EditorDOMParser extends DOMParser {\n constructor(schema: Schema) {\n super(schema, DOMParser.fromSchema(schema).rules);\n }\n public parse(dom: Node, options?: ParseOptions) {\n return super.parse(dom, { ...options, preserveWhitespace: 'full' });\n }\n\n public parseSlice(dom: Node, options?: ParseOptions) {\n return super.parseSlice(dom, { ...options, preserveWhitespace: 'full' });\n }\n}\n","/*\n * cite.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { CSLName, CSLDate, CSL } from './csl';\nimport { InsertCiteProps, InsertCiteUI } from './ui-dialogs';\nimport { urlForDOI } from './doi';\n\nimport pinyin from 'pinyin';\nimport { transliterate } from 'transliteration';\n\nexport const kInvalidCiteKeyChars = /[\\]\\[\\s@',\\\\\\#}{~%&\\$\\^_]/g;\nconst kCiteIdLeadingLength = 8;\n\nexport function createUniqueCiteId(existingIds: string[], baseId: string): string {\n let count = 0;\n\n // Remove any non-8bit ascii characters, if possible\n // convert Hanzi characters to ascii\n let asciiOnlyBaseId = '';\n\n const isHanzi = (char: number) => {\n return char >= 13312 && char <= 40895;\n };\n\n for (let i = 0; i < baseId.length; i++) {\n const char = baseId.charCodeAt(i);\n if (char <= 255) {\n asciiOnlyBaseId = asciiOnlyBaseId + String.fromCharCode(char);\n } else if (isHanzi(char)) {\n asciiOnlyBaseId = asciiOnlyBaseId + pinyin(String.fromCharCode(char));\n } else {\n // Transliterate other non ascii characters to the citekey\n asciiOnlyBaseId = asciiOnlyBaseId + transliterate(String.fromCharCode(char));\n }\n }\n\n // If there are no characters left, just used a placeholder\n if (asciiOnlyBaseId.length === 0) {\n asciiOnlyBaseId = 'cite';\n }\n\n // The base ID but with invalid characters replaced\n let safeBaseId = asciiOnlyBaseId.replace(kInvalidCiteKeyChars, '');\n\n // Ensure that this is a valid citation, stripping any invalid characters\n let proposedId = safeBaseId;\n\n // If there is a conflict with an existing id, we will append\n // the following character and try again. If the conflict continues with\n // the postfix character added, we'll increment and keep going through the\n // alphabet\n const disambiguationStartCharacter = 97; // a\n\n while (existingIds.includes(proposedId)) {\n // If we've wrapped around to a and we haven't found a unique entry\n // Add an 'a' to the end and try again. Will ultimately create an entry like\n // Teague2012aaaf\n if (count !== 0 && count % 26 === 0) {\n safeBaseId = safeBaseId + String.fromCharCode(disambiguationStartCharacter);\n }\n\n const postfix = String.fromCharCode(disambiguationStartCharacter + (count % 26));\n proposedId = safeBaseId + postfix;\n count++;\n }\n return proposedId;\n}\n\n// Suggests a bibliographic identifier based upon the source\nexport function suggestCiteId(existingIds: string[], csl: CSL) {\n const author = csl.author;\n const issued = csl.issued;\n\n // Try to get the last name\n let citeIdLeading = '';\n if (author && author.length > 0) {\n if (author[0].family) {\n citeIdLeading = author[0].family;\n } else if (author[0].literal) {\n citeIdLeading = author[0].literal;\n }\n }\n\n // If we can't use author information, try using short title,\n // the title, or perhaps the type to construct a leading part of the\n // citeId.\n if (citeIdLeading.length === 0) {\n const shortTitle = csl['short-title'];\n if (shortTitle && shortTitle?.length > 0) {\n citeIdLeading = shortTitle.substr(0, Math.min(kCiteIdLeadingLength, shortTitle.length));\n } else if (csl.title) {\n citeIdLeading = csl.title.substr(0, Math.min(kCiteIdLeadingLength, csl.title.length));\n } else {\n citeIdLeading = csl.type;\n }\n }\n\n // Try to get the publication year\n let datePart = '';\n if (issued && issued['date-parts'] && issued['date-parts'].length > 0) {\n const yearIssued = issued['date-parts'][0][0];\n // Sometimes, data arrives with a null value, ignore null\n if (yearIssued) {\n datePart = yearIssued + '';\n }\n }\n\n // Create a deduplicated string against the existing entries\n let baseId = `${citeIdLeading.toLowerCase()}${datePart}`;\n if (baseId.length === 0) {\n baseId = 'untitled';\n }\n\n return createUniqueCiteId(existingIds, baseId);\n}\n\nexport interface CiteField {\n name: string;\n value: string;\n}\n\nexport function urlForCitation(csl: CSL): string | undefined {\n if (csl.URL) {\n return csl.URL;\n } else if (csl.DOI) {\n return urlForDOI(csl.DOI);\n }\n}\n\nexport function formatForPreview(csl: CSL): CiteField[] {\n const pairs = new Array();\n if (csl.title) {\n pairs.push({ name: 'Title', value: csl.title });\n }\n pairs.push({ name: 'Authors', value: formatAuthors(csl.author, 255) });\n if (csl.issued && isValidDate(csl.issued)) {\n pairs.push({ name: 'Issue Date', value: formatIssuedDate(csl.issued) });\n }\n\n const containerTitle = csl['container-title'];\n if (containerTitle) {\n pairs.push({ name: 'Publication', value: containerTitle });\n }\n\n const volume = csl.volume;\n if (volume) {\n pairs.push({ name: 'Volume', value: volume });\n }\n\n const page = csl.page;\n if (page) {\n pairs.push({ name: 'Page(s)', value: page });\n }\n\n const cslAny = csl as { [key: string]: any };\n Object.keys(csl).forEach(key => {\n if (!kFilteredFields.includes(key)) {\n const value = cslAny[key];\n // Don't display complex fields or fields that aren't strings\n if (typeof value === 'string') {\n // Capitalize preview names\n const name = key.charAt(0).toUpperCase() + key.slice(1);\n pairs.push({ name, value });\n }\n }\n });\n\n return pairs;\n}\n\nconst kFilteredFields = [\n 'id',\n 'title',\n 'author',\n 'issued',\n 'container-title',\n 'volume',\n 'page',\n 'abstract',\n 'provider',\n];\n\n// Sometimes, data arrives with a null value\n// This function will validate that the year (required) doesn't\n// contain null\nfunction isValidDate(date: CSLDate): boolean {\n const dateParts = date['date-parts'];\n if (dateParts) {\n const invalidElement = dateParts.find(datePart => datePart[0] === null);\n return invalidElement === undefined;\n }\n return true;\n}\n\n// TODO: Needs to support localization of the templated strings\nconst kEtAl = 'et al.';\nexport function formatAuthors(authors?: CSLName[], maxLength?: number): string {\n // No author(s) specified\n if (!authors || authors.length === 0) {\n return '';\n }\n\n return authors\n .map(author => {\n if (author.literal?.length) {\n return author.literal;\n } else if (author.given?.length && author.family?.length) {\n // Family and Given name\n return `${author.family}, ${author.given.substring(0, 1)}`;\n } else if (author.family?.length) {\n // Family name only\n return `${author.family}`;\n } else {\n return '';\n }\n })\n .reduce((previous, current, index, array) => {\n // Ignore any additional authors if the string\n // exceeds the maximum length\n if ((maxLength && previous.length >= maxLength) || previous.endsWith(kEtAl)) {\n return previous;\n }\n\n if (index === 0) {\n // Too long, truncate\n if (maxLength && current.length > maxLength) {\n return `${current.substring(0, maxLength - 1)}…`;\n }\n // The first author\n return current;\n } else if (index > 0 && index === array.length - 1) {\n // The last author\n return addAuthorOrEtAl(previous, `${previous}, and ${current}`, maxLength);\n } else {\n // Middle authors\n return addAuthorOrEtAl(previous, `${previous}, ${current}`, maxLength);\n }\n });\n}\n\nfunction addAuthorOrEtAl(previousAuthorStr: string, newAuthorStr: string, maxLength?: number) {\n // if adding the string would make it too long, truncate\n if (maxLength && newAuthorStr.length > maxLength) {\n return etAl(previousAuthorStr, maxLength);\n }\n return newAuthorStr;\n}\n\nfunction etAl(authorStr: string, maxLength: number) {\n // First try just using et al., then shorten existing\n // author to accomodate\n const etAlStr = `${authorStr} ${kEtAl}`;\n if (maxLength && etAlStr.length > maxLength) {\n // First try to truncate to a space\n const lastSpace = authorStr.lastIndexOf(' ');\n if (lastSpace) {\n return `${authorStr.substr(0, lastSpace)} ${kEtAl}`;\n } else {\n // As a last resort, truncate with ellipsis\n const excessLength = etAlStr.length - maxLength - 1;\n return `${authorStr.substr(0, authorStr.length - excessLength)}… ${kEtAl}`;\n }\n }\n return etAlStr;\n}\n\n// TODO: Needs to support localization of the templated strings\nexport function formatIssuedDate(date: CSLDate | undefined): string {\n // No issue date for this\n if (!date) {\n return '';\n }\n\n const dateParts = date['date-parts'];\n if (dateParts) {\n switch (dateParts.length) {\n // There is a date range\n case 2:\n return `${dateParts[0][0]}-${dateParts[1][0]}`;\n // Only a single date\n case 1:\n // Note that it is possible to receive an entry with a single null entry\n // For examples:\n // 10.1163/1874-6772_seg_a44_588\n const singleDatePart = dateParts[0][0];\n return `${singleDatePart ? singleDatePart : ''}`;\n\n // Seems like a malformed date :(\n case 0:\n default:\n return '';\n }\n }\n return '';\n}\n\nexport function citeUI(citeProps: InsertCiteProps): InsertCiteUI {\n if (citeProps.csl) {\n const suggestedId = suggestCiteId(citeProps.existingIds, citeProps.csl);\n const previewFields = formatForPreview(citeProps.csl);\n return {\n suggestedId,\n previewFields,\n };\n } else {\n // This should never happen - this function should always be called with a work\n return {\n suggestedId: '',\n previewFields: [],\n };\n }\n}\n","/*\n * doi.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport interface DOIResult {\n status: 'ok' | 'notfound' | 'nohost' | 'error';\n message: any | null;\n error: string;\n}\n\nexport interface DOIServer {\n fetchCSL: (doi: string, progressDelay: number) => Promise;\n}\n\n// ^10.\\d{4,9}/[-._;()/:A-Z0-9]+$\n// Core regexes come from https://www.crossref.org/blog/dois-and-matching-regular-expressions/\nconst kModernCrossrefDOIRegex = /10.\\d{4,9}\\/[-._;()/:A-Z0-9]+$/i;\nconst kEarlyWileyCrossrefDOIRegex = /10.1002\\/[^\\s]+$/i;\nconst kOtherCrossrefDOIRegex1 = /10.\\\\d{4}\\/\\d+-\\d+X?(\\d+)\\d+<[\\d\\w]+:[\\d\\w]*>\\d+.\\d+.\\w+;\\d$/i;\nconst kOtherCrossrefDOIRegex2 = /10.1021\\/\\w\\w\\d+$/i;\nconst kOtherCrossrefDOIRegex3 = /10.1207\\/[\\w\\d]+\\&\\d+_\\d+$/i;\n\nconst kCrossrefMatches = [\n kModernCrossrefDOIRegex,\n kEarlyWileyCrossrefDOIRegex,\n kOtherCrossrefDOIRegex1,\n kOtherCrossrefDOIRegex2,\n kOtherCrossrefDOIRegex3,\n];\n\n// Determines whether a a given string may be a DOI\n// Note that this will validate the form of the string, but not\n// whether it is actually a registered DOI\nexport function hasDOI(token: string): boolean {\n return findDOI(token) !== undefined;\n}\n\nexport function findDOI(token: string): string | undefined {\n let match = null;\n kCrossrefMatches.find(regex => {\n match = token.match(regex);\n return match && match[0].length > 0;\n });\n\n if (match === null) {\n return undefined;\n } else {\n return match[0];\n }\n}\n\nexport function urlForDOI(doi: string): string {\n return `https://doi.org/${doi}`;\n}\n","/*\n * ui-dialogs.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { LinkTargets, LinkCapabilities, LinkType } from './link';\nimport { ImageDimensions } from './image';\nimport { ListCapabilities, ListType } from './list';\nimport { TableCapabilities } from './table';\nimport { CSL } from './csl';\nimport { CiteField } from './cite';\nimport { kStyleAttrib, attrPartitionKeyvalue, pandocAttrKeyvalueFromText } from './pandoc_attr';\n\nexport interface EditorDialogs {\n alert: AlertFn;\n yesNoMessage: YesNoMessageFn;\n editLink: LinkEditorFn;\n editImage: ImageEditorFn;\n editCodeBlock: CodeBlockEditorFn;\n editList: ListEditorFn;\n editAttr: AttrEditorFn;\n editSpan: AttrEditorFn;\n editDiv: DivAttrEditorFn;\n editCallout: CalloutEditorFn;\n editRawInline: RawFormatEditorFn;\n editRawBlock: RawFormatEditorFn;\n editMath: MathEditorFn;\n insertTable: InsertTableFn;\n insertTabset: InsertTabsetFn;\n insertCite: InsertCiteFn;\n htmlDialog: EditorHTMLDialogFn;\n}\n\nexport type EditorHTMLDialogFn = (\n title: string,\n okText: string | null,\n create: EditorHTMLDialogCreateFn,\n focus: VoidFunction,\n validate: EditorHTMLDialogValidateFn,\n) => Promise;\n\nexport type EditorHTMLDialogCreateFn = (\n containerWidth: number,\n containerHeight: number,\n confirm: VoidFunction,\n cancel: VoidFunction,\n showProgress: (message: string) => void,\n hideProgress: VoidFunction,\n) => HTMLElement;\n\nexport type EditorHTMLDialogValidateFn = () => string | null;\n\nexport const kAlertTypeInfo = 1;\nexport const kAlertTypeWarning = 2;\nexport const kAlertTypeError = 3;\n\nexport type AlertFn = (message: string, title: string, type: number) => Promise;\n\nexport type YesNoMessageFn = (\n message: string,\n title: string,\n type: number,\n yesLabel: string,\n noLabel: string,\n) => Promise;\n\nexport type AttrEditorFn = (attr: AttrProps, idHint?: string) => Promise;\n\nexport type DivAttrEditorFn = (attr: AttrProps, removeEnabled: boolean) => Promise;\n\nexport type CalloutEditorFn = (props: CalloutEditProps, removeEnabled: boolean) => Promise;\n\nexport type LinkEditorFn = (\n link: LinkProps,\n targets: LinkTargets,\n capabilities: LinkCapabilities,\n) => Promise;\n\nexport type ImageEditorFn = (\n image: ImageProps,\n dims: ImageDimensions | null,\n figure: boolean,\n editAttributes: boolean,\n) => Promise;\n\nexport type CodeBlockEditorFn = (\n codeBlock: CodeBlockProps,\n attributes: boolean,\n languages: string[],\n) => Promise;\n\nexport type ListEditorFn = (list: ListProps, capabilities: ListCapabilities) => Promise;\n\nexport type MathEditorFn = (id: string) => Promise;\n\nexport type RawFormatEditorFn = (raw: RawFormatProps, outputFormats: string[]) => Promise;\n\nexport type InsertTableFn = (capabilities: TableCapabilities) => Promise;\n\nexport type InsertCiteFn = (props: InsertCiteProps) => Promise;\n\nexport type InsertTabsetFn = () => Promise;\n\nexport interface AttrProps {\n readonly id?: string;\n readonly classes?: string[];\n readonly keyvalue?: Array<[string, string]>;\n}\n\nexport interface AttrEditResult {\n readonly action: 'edit' | 'remove';\n readonly attr: AttrProps;\n}\n\nexport interface CalloutEditProps {\n attr: AttrProps;\n callout: CalloutProps;\n}\n\nexport interface CalloutEditResult extends CalloutEditProps {\n readonly action: \"edit\" | \"remove\";\n}\n\nexport interface CalloutProps {\n type: string;\n appearance: string;\n icon: boolean;\n caption: string;\n}\n\nexport interface LinkProps extends AttrProps {\n readonly type: LinkType;\n readonly text: string;\n readonly href: string;\n readonly heading?: string;\n readonly title?: string;\n}\n\nexport interface LinkEditResult {\n readonly action: 'edit' | 'remove';\n readonly link: LinkProps;\n}\n\nexport interface ImageProps extends AttrProps {\n src: string | null;\n title?: string;\n caption?: string;\n alt?: string;\n align?: string;\n env?: string;\n linkTo?: string;\n width?: number;\n height?: number;\n units?: string;\n lockRatio?: boolean;\n}\n\nexport type ImageEditResult = ImageProps;\n\nexport interface CodeBlockProps extends AttrProps {\n lang: string;\n}\n\nexport type CodeBlockEditResult = CodeBlockProps;\n\nexport interface ListProps {\n type: ListType;\n tight: boolean;\n order: number;\n number_style: string;\n number_delim: string;\n incremental: \"default\" | \"incremental\" | \"nonincremental\";\n}\n\nexport type ListEditResult = ListProps;\n\nexport interface InsertTableResult {\n rows: number;\n cols: number;\n header: boolean;\n caption?: string;\n}\n\nexport interface InsertTabsetResult {\n tabs: string[];\n attr: AttrProps;\n}\n\nexport interface InsertCiteProps {\n doi: string;\n existingIds: string[];\n bibliographyFiles: string[];\n provider?: string;\n csl?: CSL;\n citeUI?: InsertCiteUI;\n}\n\nexport interface InsertCiteUI {\n suggestedId: string;\n previewFields: CiteField[];\n}\n\nexport interface InsertCiteResult {\n id: string;\n bibliographyFile: string;\n csl: CSL;\n}\n\nexport interface RawFormatProps {\n content: string;\n format: string;\n}\n\nexport interface RawFormatResult {\n readonly action: 'edit' | 'remove';\n readonly raw: RawFormatProps;\n}\n\nexport interface AttrEditInput {\n id?: string;\n classes?: string;\n style?: string;\n keyvalue?: string;\n}\n\nexport function attrInputToProps(attr: AttrEditInput): AttrProps {\n const classes = attr.classes ? attr.classes.split(/\\s+/) : [];\n let keyvalue: Array<[string, string]> | undefined;\n if (attr.keyvalue || attr.style) {\n let text = attr.keyvalue || '';\n if (attr.style) {\n text += `\\nstyle=${attr.style}\\n`;\n }\n keyvalue = pandocAttrKeyvalueFromText(text, '\\n');\n }\n return {\n id: asPandocId(attr.id || ''),\n classes: classes.map(asPandocClass),\n keyvalue,\n };\n}\n\nfunction asPandocId(id: string) {\n return id.replace(/^#/, '');\n}\n\nfunction asPandocClass(clz: string) {\n return clz.replace(/^\\./, '');\n}\n\nexport function attrPropsToInput(attr: AttrProps): AttrEditInput {\n let style: string | undefined;\n let keyvalue: string | undefined;\n if (attr.keyvalue) {\n const partitionedKeyvalue = attrPartitionKeyvalue([kStyleAttrib], attr.keyvalue);\n if (partitionedKeyvalue.partitioned.length > 0) {\n style = partitionedKeyvalue.partitioned[0][1];\n }\n keyvalue = attrTextFromKeyvalue(partitionedKeyvalue.base);\n }\n\n return {\n id: asHtmlId(attr.id) || undefined,\n classes: attr.classes ? attr.classes.map(asHtmlClass).join(' ') : undefined,\n style,\n keyvalue,\n };\n}\n\nfunction attrTextFromKeyvalue(keyvalue: Array<[string, string]>) {\n return keyvalue.map(kv => `${kv[0]}=${kv[1]}`).join('\\n');\n}\n\nfunction asHtmlId(id: string | undefined) {\n if (id) {\n if (id.startsWith('#')) {\n return id;\n } else {\n return '#' + id;\n }\n } else {\n return id;\n }\n}\n\nfunction asHtmlClass(clz: string | undefined) {\n if (clz) {\n if (clz.startsWith('.')) {\n return clz;\n } else {\n return '.' + clz;\n }\n } else {\n return clz;\n }\n}\n","/*\n * pandoc_attr.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { NodeSpec, MarkSpec } from 'prosemirror-model';\n\nimport { PandocToken, PandocExtensions } from './pandoc';\nimport { extensionEnabled, extensionIfEnabled, Extension } from './extension';\n\nexport const kPandocAttrId = 0;\nexport const kPandocAttrClasses = 1;\nexport const kPandocAttrKeyvalue = 2;\n\nconst kDataPmPandocAttr = 'data-pm-pandoc-attr';\n\nexport const kWidthAttrib = 'width';\nexport const kHeightAttrib = 'height';\nexport const kStyleAttrib = 'style';\nexport const kAlignAttrib = 'align';\nexport const kFigAltAttrib = 'fig-alt';\nexport const kFigAlignAttrib = 'fig-align';\nexport const kFigEnvAttrib = 'fig-env';\n\nexport const kCodeBlockAttr = 0;\nexport const kCodeBlockText = 1;\n\nexport const kSpanAttr = 0;\nexport const kSpanChildren = 1;\n\nexport interface PandocAttr {\n id: string;\n classes: string[];\n keyvalue: Array<[string, string]>;\n}\n\nexport const pandocAttrSpec = {\n id: { default: null },\n classes: { default: [] },\n keyvalue: { default: [] },\n};\n\nexport function pandocAttrAvailable(attrs: any, keyvalue = true) {\n return !!attrs.id || \n (attrs.classes && attrs.classes.length > 0) || \n (keyvalue && attrs.keyvalue && attrs.keyvalue.length > 0);\n}\n\nexport function pandocAttrFrom(attrs: any) {\n const pandocAttr: any = {};\n if (attrs.id) {\n pandocAttr.id = attrs.id;\n }\n if (attrs.classes) {\n pandocAttr.classes = attrs.classes;\n }\n if (attrs.keyvalue) {\n pandocAttr.keyvalue = attrs.keyvalue;\n }\n\n return pandocAttr;\n}\n\nexport function pandocAttrEnsureClass(attr: any, name: string) {\n attr.classes = [name].concat((attr.classes || []).filter((clz: string) => clz !== name));\n}\n\nexport function pandocAttrRemoveClass(attr: any, predicate: (str: string) => boolean) : string | undefined {\n let foundClass: string | undefined;\n if (Array.isArray(attr.classes)) {\n const classes: string[] = [];\n for (const clz of attr.classes) {\n if (predicate(clz)) {\n foundClass = clz;\n } else {\n classes.push(clz);\n }\n }\n attr.classes = classes;\n return foundClass;\n \n } else {\n return undefined;\n }\n}\n\nexport function pandocAttrHasClass(attrs: any, predicate: (str: string) => boolean) {\n if (Array.isArray(attrs.classes)) {\n const classes = attrs.classes as string[];\n return classes.some(clz => predicate(clz));\n } else {\n return false;\n }\n}\n\nexport function pandocAttrGetKeyvalue(attr: any, key: string) {\n if (attr.keyvalue) {\n const entry = attr.keyvalue.find((keyval: string[]) => keyval[0] === key);\n if (entry) {\n return entry[1];\n } else {\n return undefined;\n }\n } else {\n return undefined;\n }\n}\n\nexport function pandocAttrSetKeyvalue(attr: any, key: string, value: string) {\n const keyvalue = [...(attr.keyvalue || [])] as string[][];\n let add = true;\n for (const entry of keyvalue) {\n if (entry[0] === key) {\n entry[1] = value;\n add = false;\n break;\n }\n }\n if (add) {\n keyvalue.push([key, value]);\n }\n attr.keyvalue = keyvalue;\n}\n\nexport function pandocAttrRemoveKeyvalue(attr: any, key: string) {\n if (attr.keyvalue) {\n attr.keyvalue = attr.keyvalue.filter((entry: string[]) => entry[0] !== key);\n }\n}\n\nexport function pandocAttrInSpec(spec: NodeSpec | MarkSpec) {\n const keys = Object.keys((spec.attrs as object) || {});\n return keys.includes('id') && keys.includes('classes') && keys.includes('keyvalue');\n}\n\nexport function pandocAttrReadAST(tok: PandocToken, index: number) {\n const pandocAttr = tok.c[index];\n return {\n id: pandocAttr[kPandocAttrId] || undefined,\n classes: pandocAttr[kPandocAttrClasses],\n keyvalue: pandocAttr[kPandocAttrKeyvalue],\n };\n}\n\nexport function pandocAttrToDomAttr(attrs: any, marker = true) {\n // id and class\n const domAttr: any = {};\n if (attrs.id) {\n domAttr.id = attrs.id;\n }\n if (attrs.classes && attrs.classes.length > 0) {\n domAttr.class = attrs.classes.join(' ');\n }\n\n // keyvalue pairs\n attrs.keyvalue.forEach((keyvalue: [string, string]) => {\n domAttr[keyvalue[0]] = keyvalue[1];\n });\n\n // marker\n if (marker) {\n domAttr[kDataPmPandocAttr] = '1';\n }\n\n return domAttr;\n}\n\nexport function pandocAttrParseDom(el: Element, attrs: { [key: string]: string | null }, forceAttrs = false) {\n // exclude any keys passed to us\n const excludedNames = Object.keys(attrs);\n\n // if this isn't from a prosemirror pandoc node then include only src and alt\n const includedNames: string[] = [];\n if (!forceAttrs && !el.hasAttribute(kDataPmPandocAttr)) {\n includedNames.push('src', 'alt');\n }\n\n // read attributes\n const attr: any = {};\n attr.classes = [];\n attr.keyvalue = [];\n el.getAttributeNames().forEach(name => {\n const value: string = el.getAttribute(name) as string;\n // exclude attributes already parsed and prosemirror internal attributes\n if (excludedNames.indexOf(name) === -1 && !name.startsWith('data-pm')) {\n // if we have an include filter then use it\n if (!includedNames.length || includedNames.includes(name)) {\n if (name === 'id') {\n attr.id = value;\n } else if (name === 'class') {\n attr.classes = value\n .split(/\\s+/)\n .filter(val => !!val.length)\n .filter(val => !val.startsWith('pm-'));\n } else {\n attr.keyvalue.push([name, value]);\n }\n }\n }\n });\n return attr;\n}\n\nexport function pandocAttrParseText(attr: string): PandocAttr | null {\n attr = attr.trim();\n\n let id = '';\n const classes: string[] = [];\n let remainder = '';\n\n let current = '';\n const resolveCurrent = () => {\n const resolve = current;\n current = '';\n\n if (resolve.length === 0) {\n return true;\n } else if (resolve.startsWith('#')) {\n if (id.length === 0 && resolve.length > 1) {\n id = resolve.substr(1);\n return true;\n } else {\n return false;\n }\n } else if (resolve.startsWith('.')) {\n if (resolve.length > 1) {\n classes.push(resolve.substr(1));\n return true;\n } else {\n return false;\n }\n } else {\n remainder = resolve;\n return true;\n }\n };\n\n for (let i = 0; i < attr.length; i++) {\n let inQuotes = false;\n const ch = attr[i];\n inQuotes = ch === '\"' ? !inQuotes : inQuotes;\n if (ch !== ' ' && !inQuotes) {\n current += ch;\n } else if (resolveCurrent()) {\n // if we have a remainder then the rest of the string is the remainder\n if (remainder.length > 0) {\n remainder = remainder + attr.substr(i);\n break;\n }\n } else {\n return null;\n }\n }\n\n if (resolveCurrent()) {\n if (id.length === 0 && classes.length === 0) {\n remainder = attr;\n }\n return {\n id,\n classes,\n keyvalue: remainder.length > 0 ? pandocAttrKeyvalueFromText(remainder, ' ') : [],\n };\n } else {\n return null;\n }\n}\n\nexport function pandocAttrKeyvalueFromText(text: string, separator: ' ' | '\\n'): Array<[string, string]> {\n // if the separator is a space then convert unquoted spaces to newline\n if (separator === ' ') {\n let convertedText = '';\n let inQuotes = false;\n for (let i = 0; i < text.length; i++) {\n let ch = text.charAt(i);\n if (ch === '\"') {\n inQuotes = !inQuotes;\n } else if (ch === ' ' && !inQuotes) {\n ch = '\\n';\n }\n convertedText += ch;\n }\n text = convertedText;\n }\n\n const lines = text.trim().split('\\n');\n return lines.map(line => {\n const parts = line.trim().split('=');\n return [parts[0], (parts[1] || '').replace(/^\"/, '').replace(/\"$/, '')];\n });\n}\n\nexport interface AttrKeyvaluePartitioned {\n base: Array<[string, string]>;\n partitioned: Array<[string, string]>;\n}\n\nexport function attrPartitionKeyvalue(partition: string[], keyvalue: Array<[string, string]>): AttrKeyvaluePartitioned {\n const base = new Array<[string, string]>();\n const partitioned = new Array<[string, string]>();\n\n keyvalue.forEach(kv => {\n if (partition.includes(kv[0])) {\n partitioned.push(kv);\n } else {\n base.push(kv);\n }\n });\n\n return {\n base,\n partitioned,\n };\n}\n\nexport function extensionIfPandocAttrEnabled(extension: Extension) {\n return extensionIfEnabled(extension, kPandocAttrExtensions);\n}\n\nexport function pandocAttrEnabled(pandocExtensions: PandocExtensions) {\n return extensionEnabled(pandocExtensions, kPandocAttrExtensions);\n}\n\nconst kPandocAttrExtensions = [\n 'link_attributes',\n 'mmd_link_attributes',\n 'mmd_header_identifiers',\n 'header_attributes',\n 'fenced_code_attributes',\n 'inline_code_attributes',\n 'bracketed_spans',\n 'native_spans',\n 'fenced_divs',\n 'native_divs',\n];\n","/*\n * extension.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { InputRule } from 'prosemirror-inputrules';\nimport { Schema } from 'prosemirror-model';\nimport { Plugin } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { ProsemirrorCommand } from './command';\nimport { PandocMark } from './mark';\nimport { PandocNode } from './node';\nimport { EditorUI } from './ui';\nimport { BaseKeyBinding } from './basekeys';\nimport { AppendTransactionHandler, AppendMarkTransactionHandler } from './transaction';\nimport { EditorOptions } from './options';\nimport { PandocExtensions } from './pandoc';\nimport { FixupFn } from './fixup';\nimport { EditorEvents } from './events';\nimport { PandocCapabilities } from './pandoc_capabilities';\nimport { EditorFormat } from './format';\nimport { MarkInputRuleFilter } from './input_rule';\nimport { CompletionHandler } from './completion';\nimport { EditorNavigation } from './navigation';\nimport { EditorMath } from './math';\nimport { EditorServer } from './server';\n\nexport interface Extension {\n marks?: PandocMark[];\n nodes?: PandocNode[];\n baseKeys?: (schema: Schema) => readonly BaseKeyBinding[];\n inputRules?: (schema: Schema, markFilter: MarkInputRuleFilter) => readonly InputRule[];\n commands?: (schema: Schema) => readonly ProsemirrorCommand[];\n plugins?: (schema: Schema) => readonly Plugin[];\n appendTransaction?: (schema: Schema) => readonly AppendTransactionHandler[];\n appendMarkTransaction?: (schema: Schema) => readonly AppendMarkTransactionHandler[];\n fixups?: (schema: Schema, view: EditorView) => Readonly;\n completionHandlers?: () => readonly CompletionHandler[];\n}\n\nexport interface ExtensionContext {\n pandocExtensions: PandocExtensions;\n pandocCapabilities: PandocCapabilities;\n server: EditorServer;\n ui: EditorUI;\n math?: EditorMath;\n format: EditorFormat;\n options: EditorOptions;\n events: EditorEvents;\n navigation: EditorNavigation;\n}\n\nexport type ExtensionFn = (context: ExtensionContext) => Extension | null;\n\n// create an ExtensionFn for a given extension and format option that must be enabled\nexport function extensionIfEnabled(extension: Extension, name: string | string[]) {\n return (context: ExtensionContext) => {\n if (extensionEnabled(context.pandocExtensions, name)) {\n return extension;\n } else {\n return null;\n }\n };\n}\n\nexport function extensionEnabled(pandocExtensions: PandocExtensions, name: string | string[]) {\n // match single extension name\n if (typeof name === 'string') {\n if (pandocExtensions[name]) {\n return true;\n }\n\n // match any one of several names\n } else if (Array.isArray(name)) {\n for (const nm of name) {\n if (pandocExtensions[nm]) {\n return true;\n }\n }\n }\n\n return false;\n}\n","/*\n * pandoc_capabilities.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { PandocServer, parsePandocListOutput, PandocApiVersion } from './pandoc';\n\nexport interface PandocCapabilitiesResult {\n version: string;\n api_version: PandocApiVersion;\n output_formats: string;\n highlight_languages: string;\n}\n\nexport interface PandocCapabilities {\n version: string;\n api_version: PandocApiVersion;\n output_formats: string[];\n highlight_languages: string[];\n}\n\nexport async function getPandocCapabilities(server: PandocServer) {\n const result = await server.getCapabilities();\n return {\n version: result.version,\n api_version: result.api_version,\n output_formats: parsePandocListOutput(result.output_formats),\n highlight_languages: parsePandocListOutput(result.highlight_languages),\n };\n}\n","/*\n * pandoc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment, Mark, Node as ProsemirrorNode, Schema, NodeType } from 'prosemirror-model';\n\nimport { PandocAttr, pandocAttrReadAST, kSpanChildren, kSpanAttr } from './pandoc_attr';\nimport { PandocCapabilitiesResult } from './pandoc_capabilities';\nimport { kQuoteType, kQuoteChildren, QuoteType } from './quote';\nimport { BibliographyResult } from './bibliography/bibliography-provider_local';\n\nimport { stringifyMath } from './math';\nimport { kCodeText } from './code';\nimport { kLinkChildren } from './link';\n\nexport interface PandocServer {\n getCapabilities(): Promise;\n markdownToAst(markdown: string, format: string, options: string[]): Promise;\n astToMarkdown(ast: PandocAst, format: string, options: string[]): Promise;\n listExtensions(format: string): Promise;\n getBibliography(\n file: string | null,\n bibliography: string[],\n refBlock: string | null,\n etag: string | null,\n ): Promise;\n addToBibliography(\n bibliography: string,\n project: boolean,\n id: string,\n sourceAsJson: string,\n sourceAsBibTeX: string,\n ): Promise;\n citationHTML(file: string | null, sourceAsJson: string, csl: string | null): Promise;\n}\n\nexport interface PandocWriterReferencesOptions {\n location?: string; // block | section | document\n prefix?: string;\n}\n\nexport interface PandocWriterOptions {\n atxHeaders?: boolean;\n references?: PandocWriterReferencesOptions;\n wrap?: string;\n dpi?: number;\n}\n\nexport interface PandocExtensions {\n abbreviations: boolean;\n all_symbols_escapable: boolean;\n amuse: boolean;\n angle_brackets_escapable: boolean;\n ascii_identifiers: boolean;\n auto_identifiers: boolean;\n autolink_bare_uris: boolean;\n backtick_code_blocks: boolean;\n blank_before_blockquote: boolean;\n blank_before_header: boolean;\n bracketed_spans: boolean;\n citations: boolean;\n compact_definition_lists: boolean;\n definition_lists: boolean;\n east_asian_line_breaks: boolean;\n emoji: boolean;\n empty_paragraphs: boolean;\n epub_html_exts: boolean;\n escaped_line_breaks: boolean;\n example_lists: boolean;\n fancy_lists: boolean;\n fenced_code_attributes: boolean;\n fenced_code_blocks: boolean;\n fenced_divs: boolean;\n footnotes: boolean;\n four_space_rule: boolean;\n gfm_auto_identifiers: boolean;\n grid_tables: boolean;\n hard_line_breaks: boolean;\n header_attributes: boolean;\n ignore_line_breaks: boolean;\n implicit_figures: boolean;\n implicit_header_references: boolean;\n inline_code_attributes: boolean;\n inline_notes: boolean;\n intraword_underscores: boolean;\n latex_macros: boolean;\n line_blocks: boolean;\n link_attributes: boolean;\n lists_without_preceding_blankline: boolean;\n literate_haskell: boolean;\n markdown_attribute: boolean;\n markdown_in_html_blocks: boolean;\n mmd_header_identifiers: boolean;\n mmd_link_attributes: boolean;\n mmd_title_block: boolean;\n multiline_tables: boolean;\n native_divs: boolean;\n native_spans: boolean;\n native_numbering: boolean;\n ntb: boolean;\n old_dashes: boolean;\n pandoc_title_block: boolean;\n pipe_tables: boolean;\n raw_attribute: boolean;\n raw_html: boolean;\n raw_tex: boolean;\n shortcut_reference_links: boolean;\n simple_tables: boolean;\n smart: boolean;\n space_in_atx_header: boolean;\n spaced_reference_links: boolean;\n startnum: boolean;\n strikeout: boolean;\n subscript: boolean;\n superscript: boolean;\n styles: boolean;\n task_lists: boolean;\n table_captions: boolean;\n tex_math_dollars: boolean;\n tex_math_double_backslash: boolean;\n tex_math_single_backslash: boolean;\n yaml_metadata_block: boolean;\n gutenberg: boolean;\n // attributes: boolean; (not yet)\n [key: string]: boolean;\n}\n\nexport function imageAttributesAvailable(pandocExtensions: PandocExtensions) {\n return pandocExtensions.link_attributes || pandocExtensions.raw_html;\n}\n\nexport function parsePandocListOutput(output: string) {\n return output.split(/\\r?\\n/).filter(entry => entry.length);\n}\n\nexport interface PandocAst {\n blocks: PandocToken[];\n 'pandoc-api-version': PandocApiVersion;\n meta: any;\n heading_ids?: string[]; // used only for reading not writing\n}\n\nexport type PandocApiVersion = number[];\n\nexport interface PandocToken {\n t: string;\n c?: any;\n}\n\n// https://github.com/jgm/pandoc-types/blob/master/Text/Pandoc/Definition.hs\nexport enum PandocTokenType {\n Str = 'Str',\n Space = 'Space',\n Strong = 'Strong',\n Emph = 'Emph',\n Code = 'Code',\n Superscript = 'Superscript',\n Subscript = 'Subscript',\n Strikeout = 'Strikeout',\n SmallCaps = 'SmallCaps',\n Underline = 'Underline',\n Quoted = 'Quoted',\n RawInline = 'RawInline',\n RawBlock = 'RawBlock',\n LineBlock = 'LineBlock',\n Para = 'Para',\n Plain = 'Plain',\n Header = 'Header',\n CodeBlock = 'CodeBlock',\n BlockQuote = 'BlockQuote',\n BulletList = 'BulletList',\n OrderedList = 'OrderedList',\n DefinitionList = 'DefinitionList',\n Image = 'Image',\n Link = 'Link',\n Note = 'Note',\n Cite = 'Cite',\n Table = 'Table',\n AlignRight = 'AlignRight',\n AlignLeft = 'AlignLeft',\n AlignDefault = 'AlignDefault',\n AlignCenter = 'AlignCenter',\n ColWidth = 'ColWidth',\n ColWidthDefault = 'ColWidthDefault',\n HorizontalRule = 'HorizontalRule',\n LineBreak = 'LineBreak',\n SoftBreak = 'SoftBreak',\n Math = 'Math',\n InlineMath = 'InlineMath',\n DisplayMath = 'DisplayMath',\n Div = 'Div',\n Span = 'Span',\n Null = 'Null',\n}\n\nexport interface PandocTokenReader {\n // pandoc token name (e.g. \"Str\", \"Emph\", etc.)\n readonly token: PandocTokenType;\n\n // If present, gives a chance for the reader to decide whether it actually\n // wants to handle the token, based on factors other than the PandocTokenType\n readonly match?: (tok: PandocToken) => boolean;\n\n // one and only one of these values must also be set\n readonly text?: boolean;\n readonly node?: string;\n readonly block?: string;\n readonly mark?: string;\n readonly code_block?: boolean;\n\n // functions for getting attributes and children\n getAttrs?: (tok: PandocToken) => any;\n getChildren?: (tok: PandocToken) => any[];\n getText?: (tok: PandocToken) => string;\n\n // lower-level handler function that overrides the above handler attributes\n // (they are ignored when handler is specified)\n handler?: (schema: Schema) => (writer: ProsemirrorWriter, tok: PandocToken) => void;\n\n // post-processor for performing fixups that rely on seeing the entire\n // document (e.g. recognizing implicit header references)\n postprocessor?: PandocPostprocessorFn;\n}\n\n// constants used to read the contents of raw blocks\nexport const kRawBlockFormat = 0;\nexport const kRawBlockContent = 1;\n\n// filter sequences of tokens (e.g. for reducing some adjacent tokens to a single token)\nexport type PandocTokensFilterFn = (tokens: PandocToken[], writer: ProsemirrorWriter) => PandocToken[];\n\n// special reader that gets a first shot at blocks (i.e. to convert a para w/ a single image into a figure)\nexport type PandocBlockReaderFn = (schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) => boolean;\n\n// reader that gets a first shot at inline html (e.g. image node parsing an tag)\nexport type PandocInlineHTMLReaderFn = (schema: Schema, html: string, writer?: ProsemirrorWriter) => boolean;\n\nexport interface ProsemirrorWriter {\n // open (then close) a node container\n openNode(type: NodeType, attrs: {}): void;\n closeNode(): ProsemirrorNode;\n\n // special open call for note node containers\n openNoteNode(ref: string): void;\n\n // add a node to the current container\n addNode(type: NodeType, attrs: {}, content: ProsemirrorNode[]): ProsemirrorNode | null;\n\n // open and close marks\n openMark(mark: Mark): void;\n closeMark(mark: Mark): void;\n\n // add text to the current node using the current mark set\n writeText(text: string): void;\n\n // write tokens into the current node\n writeTokens(tokens: PandocToken[]): void;\n\n // see if any inline HTML readers want to handle this html\n hasInlineHTMLWriter(html: string): boolean;\n writeInlineHTML(html: string): void;\n\n // log an unrecoginzed token type\n logUnrecognized(token: string): void;\n\n // log the presence of example lists\n logExampleList(): void;\n\n // query whether a given node type is open\n // (useful for e.g. conditional behavior when in a list or table)\n isNodeOpen(type: NodeType): boolean;\n}\n\nexport interface PandocNodeWriter {\n readonly name: string;\n readonly write: PandocNodeWriterFn;\n}\n\nexport type PandocNodeWriterFn = (output: PandocOutput, node: ProsemirrorNode) => void;\n\nexport type PandocPreprocessorFn = (markdown: string) => string;\n\nexport type PandocPostprocessorFn = (doc: ProsemirrorNode) => ProsemirrorNode;\n\nexport interface PandocMarkWriter {\n // pandoc mark name\n readonly name: string;\n\n // The 'priority' property allows us to dicate the order of nesting\n // for marks (this is required b/c Prosemirror uses a flat structure\n // whereby multiple marks are attached to text nodes). This allows us\n // to e.g. ensure that strong and em always occur outside code.\n readonly priority: number;\n\n // writer function\n readonly write: PandocMarkWriterFn;\n}\n\nexport type PandocMarkWriterFn = (output: PandocOutput, mark: Mark, parent: Fragment) => void;\n\nexport const kWriteSpaces = 'writeSpaces';\nexport const kPreventBracketEscape = 'preventBracketEscape';\n\nexport type PandocOutputOption = typeof kWriteSpaces | typeof kPreventBracketEscape;\n\n\n\nexport interface PandocOutput {\n extensions: PandocExtensions;\n write(value: any): void;\n writeToken(type: PandocTokenType, content?: (() => void) | any): void;\n writeMark(type: PandocTokenType, parent: Fragment, expelEnclosingWhitespace?: boolean): void;\n writeArray(content: () => void): void;\n writeAttr(id?: string, classes?: string[], keyvalue?: [[string, string]]): void;\n writeText(text: string | null): void;\n writeLink(href: string, title: string, attr: PandocAttr | null, f: () => void): void;\n writeNode(node: ProsemirrorNode): void;\n writeNodes(parent: ProsemirrorNode): void;\n writeNote(note: ProsemirrorNode): void;\n writeInlines(fragment: Fragment): void;\n writeRawMarkdown(markdown: Fragment | string, escapeSymbols?: boolean): void;\n withOption(option: PandocOutputOption, value: boolean, f: () => void): void;\n}\n\n// collect the text from a collection of pandoc ast\n// elements (ignores marks, useful for ast elements\n// that support marks but whose prosemirror equivalent\n// does not, e.g. image alt text)\n// https://github.com/jgm/pandoc/blob/83880b0dbc318703babfbb6905b1046fa48f1216/src/Text/Pandoc/Shared.hs#L439\nexport function stringifyTokens(c: PandocToken[], unemoji = false): string {\n return c\n .map(elem => {\n if (elem.t === PandocTokenType.Str) {\n return elem.c;\n } else if (\n elem.t === PandocTokenType.Space ||\n elem.t === PandocTokenType.SoftBreak ||\n elem.t === PandocTokenType.LineBreak\n ) {\n return ' ';\n } else if (elem.t === PandocTokenType.Link) {\n return stringifyTokens(elem.c[kLinkChildren]);\n } else if (elem.t === PandocTokenType.Span) {\n const attr = pandocAttrReadAST(elem, kSpanAttr);\n if (unemoji && attr.classes && attr.classes[0] === 'emoji') {\n return attr.keyvalue[0][1];\n } else {\n return stringifyTokens(elem.c[kSpanChildren]);\n }\n } else if (elem.t === PandocTokenType.Quoted) {\n const type = elem.c[kQuoteType].t;\n const quote = type === QuoteType.SingleQuote ? \"'\" : '\"';\n return quote + stringifyTokens(elem.c[kQuoteChildren]) + quote;\n } else if (elem.t === PandocTokenType.Math) {\n return stringifyMath(elem);\n } else if (elem.t === PandocTokenType.Code) {\n return elem.c[kCodeText];\n } else if (elem.c) {\n return stringifyTokens(elem.c);\n } else {\n return '';\n }\n })\n .join('');\n}\n\nexport function forEachToken(tokens: PandocToken[], f: (tok: PandocToken) => void) {\n mapTokens(tokens, (tok: PandocToken) => {\n f(tok);\n return tok;\n });\n}\n\nexport function mapTokens(tokens: PandocToken[], f: (tok: PandocToken) => PandocToken) {\n function isToken(val: any) {\n if (val !== null && typeof val === 'object') {\n return val.hasOwnProperty('t');\n } else {\n return false;\n }\n }\n\n function tokenHasChildren(tok: PandocToken) {\n return tok !== null && typeof tok === 'object' && Array.isArray(tok.c);\n }\n\n function mapValue(val: any): any {\n if (isToken(val)) {\n return mapToken(val);\n } else if (Array.isArray(val)) {\n return val.map(mapValue);\n } else {\n return val;\n }\n }\n\n function mapToken(tok: PandocToken): PandocToken {\n const mappedTok = f(tok);\n if (tokenHasChildren(mappedTok)) {\n mappedTok.c = mappedTok.c.map(mapValue);\n }\n return mappedTok;\n }\n\n return tokens.map(mapToken);\n}\n\nexport function tokenTextEscaped(t: PandocToken) {\n return t.c.replace(/\\\\/g, `\\\\\\\\`);\n}\n\n// sort marks by priority (in descending order)\nexport function marksByPriority(marks: Mark[], markWriters: { [key: string]: PandocMarkWriter }) {\n return marks.sort((a: Mark, b: Mark) => {\n const aPriority = markWriters[a.type.name].priority;\n const bPriority = markWriters[b.type.name].priority;\n if (aPriority < bPriority) {\n return 1;\n } else if (bPriority < aPriority) {\n return -1;\n } else {\n return 0;\n }\n });\n}\n","/*\n * quote.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport const kQuoteType = 0;\nexport const kQuoteChildren = 1;\n\nexport enum QuoteType {\n SingleQuote = 'SingleQuote',\n DoubleQuote = 'DoubleQuote',\n}\n\nexport function quotesForType(type: QuoteType) {\n const dblQuote = type === QuoteType.DoubleQuote;\n return {\n begin: dblQuote ? '“' : '‘',\n end: dblQuote ? '”' : '’',\n };\n}\n\n// create regexs for removing quotes\nconst kSingleQuotes = quotesForType(QuoteType.SingleQuote);\nconst kSingleQuoteRegEx = new RegExp(`[${kSingleQuotes.begin}${kSingleQuotes.end}]`, 'g');\nconst kDoubleQuotes = quotesForType(QuoteType.DoubleQuote);\nconst kDoubleQuoteRegEx = new RegExp(`[${kDoubleQuotes.begin}${kDoubleQuotes.end}]`, 'g');\n\nexport function fancyQuotesToSimple(text: string) {\n return text.replace(kSingleQuoteRegEx, \"'\").replace(kDoubleQuoteRegEx, '\"');\n}\n","/*\n * math.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState } from 'prosemirror-state';\n\nimport { EditorUI } from './ui';\nimport { PandocToken } from './pandoc';\nimport { markIsActive, getMarkAttrs } from './mark';\n\nexport const kMathType = 0;\nexport const kMathContent = 1;\n\n// additional field we stick into the AST for quarto crossref ids\nexport const kMathId = 2;\n\nexport enum MathType {\n Inline = 'InlineMath',\n Display = 'DisplayMath',\n}\n\nexport interface EditorMath {\n typeset: (el: HTMLElement, math: string, priority: boolean) => Promise;\n}\n\nexport function editorMath(ui: EditorUI): EditorMath {\n // return a promise that will typeset this node's math (including retrying as long as is\n // required if the element is not yet connected to the DOM)\n return {\n typeset: (el: HTMLElement, math: string, priority: boolean): Promise => {\n return new Promise(resolve => {\n // regular typeset if we are already connected\n if (el.isConnected) {\n ui.math.typeset!(el, math, priority).then(resolve);\n } else {\n // otherwise wait 100ms then retry\n const timerId = setInterval(() => {\n if (el.isConnected) {\n clearInterval(timerId);\n ui.math.typeset!(el, math, priority).then(resolve);\n }\n }, 100);\n }\n });\n },\n };\n}\n\nexport function delimiterForType(type: string) {\n if (type === MathType.Inline) {\n return '$';\n } else {\n return '$$';\n }\n}\n\nexport function stringifyMath(tok: PandocToken) {\n const delimter = delimiterForType(tok.c[kMathType].t);\n return delimter + tok.c[kMathContent] + delimter;\n}\n\nexport function mathTypeIsActive(state: EditorState, type: MathType) {\n const schema = state.schema;\n return (\n markIsActive(state, schema.marks.math) &&\n getMarkAttrs(state.doc, state.selection, schema.marks.math).type === type\n );\n}\n\n","/*\n * mark.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Mark, MarkSpec, MarkType, ResolvedPos, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState, Selection, Transaction } from 'prosemirror-state';\n\nimport { PandocTokenReader, PandocMarkWriterFn, PandocInlineHTMLReaderFn, PandocTokensFilterFn } from './pandoc';\nimport { mergedTextNodes } from './text';\nimport { findChildrenByMark } from 'prosemirror-utils';\nimport { MarkTransaction } from './transaction';\n\nexport interface PandocMark {\n readonly name: string;\n readonly spec: MarkSpec;\n readonly noInputRules?: boolean;\n readonly noSpelling?: boolean;\n readonly pandoc: {\n readonly readers: readonly PandocTokenReader[];\n readonly inlineHTMLReader?: PandocInlineHTMLReaderFn;\n readonly tokensFilter?: PandocTokensFilterFn;\n readonly writer: {\n priority: number;\n write: PandocMarkWriterFn;\n };\n };\n}\n\nexport function markIsActive(context: EditorState | Transaction, type: MarkType) {\n const { from, $from, to, empty } = context.selection;\n\n if (empty) {\n return type && !!type.isInSet(context.storedMarks || $from.marks());\n }\n\n return !!context.doc.rangeHasMark(from, to, type);\n}\n\nexport function getMarkAttrs(doc: ProsemirrorNode, range: { from: number; to: number }, type: MarkType) {\n const { from, to } = range;\n let marks: Mark[] = [];\n\n doc.nodesBetween(from, to, node => {\n marks = [...marks, ...node.marks];\n });\n\n const mark = marks.find(markItem => markItem.type.name === type.name);\n\n if (mark) {\n return mark.attrs;\n }\n\n return {};\n}\n\nexport function getMarkRange($pos?: ResolvedPos, type?: MarkType) {\n if (!$pos || !type) {\n return false;\n }\n\n const start = $pos.parent.childAfter($pos.parentOffset);\n\n if (!start.node) {\n return false;\n }\n\n const link = start.node.marks.find((mark: Mark) => mark.type === type);\n if (!link) {\n return false;\n }\n\n let startIndex = $pos.index();\n let startPos = $pos.start() + start.offset;\n let endIndex = startIndex + 1;\n let endPos = startPos + start.node.nodeSize;\n\n while (startIndex > 0 && link.isInSet($pos.parent.child(startIndex - 1).marks)) {\n startIndex -= 1;\n startPos -= $pos.parent.child(startIndex).nodeSize;\n }\n\n while (endIndex < $pos.parent.childCount && link.isInSet($pos.parent.child(endIndex).marks)) {\n endPos += $pos.parent.child(endIndex).nodeSize;\n endIndex += 1;\n }\n\n return { from: startPos, to: endPos };\n}\n\nexport function getSelectionMarkRange(selection: Selection, markType: MarkType): { from: number; to: number } {\n let range: { from: number; to: number };\n if (selection.empty) {\n range = getMarkRange(selection.$head, markType) as { from: number; to: number };\n } else {\n range = { from: selection.from, to: selection.to };\n }\n return range;\n}\n\nexport function removeInvalidatedMarks(\n tr: MarkTransaction,\n node: ProsemirrorNode,\n pos: number,\n re: RegExp,\n markType: MarkType,\n) {\n re.lastIndex = 0;\n const markedNodes = findChildrenByMark(node, markType, true);\n markedNodes.forEach(markedNode => {\n const from = pos + 1 + markedNode.pos;\n const markedRange = getMarkRange(tr.doc.resolve(from), markType);\n if (markedRange) {\n const text = tr.doc.textBetween(markedRange.from, markedRange.to);\n if (!text.match(re)) {\n tr.removeMark(markedRange.from, markedRange.to, markType);\n tr.removeStoredMark(markType);\n }\n }\n });\n re.lastIndex = 0;\n}\n\nexport function splitInvalidatedMarks(\n tr: MarkTransaction,\n node: ProsemirrorNode,\n pos: number,\n validLength: (text: string) => number,\n markType: MarkType,\n removeMark?: (from: number, to: number) => void,\n) {\n const hasMarkType = (nd: ProsemirrorNode) => markType.isInSet(nd.marks);\n const markedNodes = findChildrenByMark(node, markType, true);\n\n const remove = (from: number, to: number, type: MarkType) => {\n if (removeMark) {\n removeMark(from, to);\n } else {\n tr.removeMark(from, to, type);\n }\n };\n\n markedNodes.forEach(markedNode => {\n const mark = hasMarkType(markedNode.node);\n if (mark) {\n const from = pos + 1 + markedNode.pos;\n const markRange = getMarkRange(tr.doc.resolve(from), markType);\n if (markRange) {\n const text = tr.doc.textBetween(markRange.from, markRange.to);\n\n // Trim any leading space and count how much we trimmed\n const trimmedText = text.trimStart();\n const countSpace = text.length - trimmedText.length;\n\n // Remove the mark from any trimmed space at the start\n if (countSpace > 0) {\n remove(markRange.from, markRange.from + countSpace, markType);\n }\n\n // find the valid length of the text and remove the mark from \n // anything after the end of the valid length\n const length = validLength(trimmedText);\n if (length > -1 && length !== text.length) {\n remove(markRange.from + length + countSpace, markRange.to, markType);\n }\n }\n }\n });\n}\n\nexport function detectAndApplyMarks(\n tr: MarkTransaction,\n node: ProsemirrorNode,\n pos: number,\n re: RegExp,\n markType: MarkType,\n attrs: (match: RegExpMatchArray) => {},\n filter?: (from: number, to: number) => boolean,\n text?: (match: RegExpMatchArray) => string,\n) {\n re.lastIndex = 0;\n const textNodes = mergedTextNodes(node, (_node: ProsemirrorNode, _pos: number, parentNode: ProsemirrorNode) =>\n parentNode.type.allowsMarkType(markType),\n );\n textNodes.forEach(textNode => {\n re.lastIndex = 0;\n let match = re.exec(textNode.text);\n while (match !== null) {\n const refText = text ? text(match) : match[0];\n const from = pos + 1 + textNode.pos + match.index + (match[0].length - refText.length);\n const to = from + refText.length;\n const range = getMarkRange(tr.doc.resolve(to), markType);\n if (\n (!range || range.from !== from || range.to !== to) &&\n !tr.doc.rangeHasMark(from, to, markType.schema.marks.code)\n ) {\n if (!filter || filter(from, to)) {\n const mark = markType.create(attrs instanceof Function ? attrs(match) : attrs);\n tr.addMark(from, to, mark);\n if (tr.selection.anchor === to) {\n tr.removeStoredMark(mark.type);\n }\n }\n }\n match = re.lastIndex !== 0 ? re.exec(textNode.text) : null;\n }\n });\n re.lastIndex = 0;\n}\n","/*\n * text.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nexport interface TextWithPos {\n readonly text: string;\n readonly pos: number;\n}\n\nexport function mergedTextNodes(\n doc: ProsemirrorNode,\n filter?: (node: ProsemirrorNode, pos: number, parentNode: ProsemirrorNode) => boolean,\n): TextWithPos[] {\n const textNodes: TextWithPos[] = [];\n let nodeIndex = 0;\n doc.descendants((node, pos, parentNode) => {\n if (node.isText) {\n // apply filter\n if (filter && !filter(node, pos, parentNode)) {\n return false;\n }\n\n // join existing contiguous range of text nodes or create a new one\n if (textNodes[nodeIndex]) {\n textNodes[nodeIndex] = {\n text: textNodes[nodeIndex].text + node.text,\n pos: textNodes[nodeIndex].pos,\n };\n } else {\n textNodes[nodeIndex] = {\n text: node.text || '',\n pos,\n };\n }\n } else {\n nodeIndex += 1;\n }\n });\n return textNodes;\n}\n\nexport function stripQuotes(text: string) {\n return text.replace(/[\"']/g, '');\n}\n\nexport function equalsIgnoreCase(str1: string, str2: string) {\n if (!str1 && !!str2) {\n return false;\n } else if (!!str1 && !str2) {\n return false;\n } else if (str1 === str2) {\n return true;\n } else {\n return str1.localeCompare(str2, undefined, { sensitivity: 'accent' }) === 0;\n }\n}\n","/*\n * code.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey } from 'prosemirror-state';\n\nimport { CodeViewOptions, canInsertNodeAtPos } from './node';\nimport { ResolvedPos, Slice, Fragment } from 'prosemirror-model';\n\nexport const kCodeAttr = 0;\nexport const kCodeText = 1;\n\nexport function codeNodeSpec() {\n return {\n content: 'text*',\n group: 'block',\n marks: '',\n code: true,\n defining: true,\n isolating: true,\n };\n}\n\nexport function codeViewClipboardPlugin(codeViews: { [key: string]: CodeViewOptions }) {\n return new Plugin({\n key: new PluginKey('code-view-clipboard'),\n props: {\n clipboardTextParser: (text: string, $context: ResolvedPos): any => {\n // see if any of the code views want to handle this text\n for (const codeViewType of Object.keys(codeViews)) {\n const codeView = codeViews[codeViewType];\n if (codeView.createFromPastePattern && codeView.createFromPastePattern.test(text)) {\n const schema = $context.node().type.schema;\n const nodeType = schema.nodes[codeViewType];\n if (canInsertNodeAtPos($context, nodeType)) {\n const textNode = schema.text(text);\n const codeNode = nodeType.createAndFill({}, textNode);\n return new Slice(Fragment.from(codeNode), 0, 0);\n }\n }\n }\n return null;\n },\n },\n });\n}\n","/*\n * node.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeSpec, NodeType, ResolvedPos } from 'prosemirror-model';\nimport { EditorState, Selection, NodeSelection } from 'prosemirror-state';\nimport {\n findParentNode,\n findSelectedNodeOfType,\n ContentNodeWithPos,\n NodeWithPos,\n findParentNodeOfType,\n findChildrenByType,\n findChildren,\n findParentNodeOfTypeClosestToPos,\n} from 'prosemirror-utils';\n\nimport { EditorView } from 'prosemirror-view';\n\nimport {\n PandocTokenReader,\n PandocNodeWriterFn,\n PandocPreprocessorFn,\n PandocBlockReaderFn,\n PandocInlineHTMLReaderFn,\n PandocTokensFilterFn,\n} from './pandoc';\nimport { PandocBlockCapsuleFilter } from './pandoc_capsule';\n\nimport { AttrEditOptions } from './attr_edit';\nimport { CommandFn } from './command';\n\nexport interface PandocNode {\n readonly name: string;\n readonly spec: NodeSpec;\n readonly code_view?: CodeViewOptions;\n readonly attr_edit?: () => AttrEditOptions | null;\n readonly pandoc: {\n readonly readers?: readonly PandocTokenReader[];\n readonly writer?: PandocNodeWriterFn;\n readonly preprocessor?: PandocPreprocessorFn;\n readonly tokensFilter?: PandocTokensFilterFn;\n readonly blockReader?: PandocBlockReaderFn;\n readonly inlineHTMLReader?: PandocInlineHTMLReaderFn;\n readonly blockCapsuleFilter?: PandocBlockCapsuleFilter;\n };\n}\n\nexport interface CodeViewOptions {\n lang: (node: ProsemirrorNode, content: string) => string | null;\n attrEditFn?: CommandFn;\n createFromPastePattern?: RegExp;\n classes?: string[];\n borderColorClass?: string;\n firstLineMeta?: boolean;\n lineNumbers?: boolean;\n bookdownTheorems?: boolean;\n lineNumberFormatter?: (lineNumber: number, lineCount?: number, line?: string) => string;\n}\n\nexport type NodeTraversalFn = (\n node: Node,\n pos: number,\n parent: Node,\n index: number,\n) => boolean | void | null | undefined;\n\nexport function findTopLevelBodyNodes(doc: ProsemirrorNode, predicate: (node: ProsemirrorNode) => boolean) {\n const body = findChildrenByType(doc, doc.type.schema.nodes.body, false)[0];\n const offset = body.pos + 1;\n const nodes = findChildren(body.node, predicate, false);\n return nodes.map(value => ({ ...value, pos: value.pos + offset }));\n}\n\nexport function findNodeOfTypeInSelection(selection: Selection, type: NodeType): ContentNodeWithPos | undefined {\n return findSelectedNodeOfType(type)(selection) || findParentNode((n: ProsemirrorNode) => n.type === type)(selection);\n}\n\nexport function firstNode(parent: NodeWithPos, predicate: (node: ProsemirrorNode) => boolean) {\n let foundNode: NodeWithPos | undefined;\n parent.node.descendants((node, pos) => {\n if (!foundNode) {\n if (predicate(node)) {\n foundNode = {\n node,\n pos: parent.pos + 1 + pos,\n };\n return false;\n }\n } else {\n return false;\n }\n });\n return foundNode;\n}\n\nexport function lastNode(parent: NodeWithPos, predicate: (node: ProsemirrorNode) => boolean) {\n let last: NodeWithPos | undefined;\n parent.node.descendants((node, pos) => {\n if (predicate(node)) {\n last = {\n node,\n pos: parent.pos + 1 + pos,\n };\n }\n });\n return last;\n}\n\nexport function nodeIsActive(state: EditorState, type: NodeType, attrs = {}) {\n const predicate = (n: ProsemirrorNode) => n.type === type;\n const node = findSelectedNodeOfType(type)(state.selection) || findParentNode(predicate)(state.selection);\n\n if (!Object.keys(attrs).length || !node) {\n return !!node;\n }\n\n return node.node.hasMarkup(type, attrs);\n}\n\nexport function canInsertNode(context: EditorState | Selection, nodeType: NodeType) {\n const selection = asSelection(context);\n const $from = selection.$from;\n return canInsertNodeAtPos($from, nodeType);\n}\n\nexport function canInsertNodeAtPos($pos: ResolvedPos, nodeType: NodeType) {\n for (let d = $pos.depth; d >= 0; d--) {\n const index = $pos.index(d);\n if ($pos.node(d).canReplaceWith(index, index, nodeType)) {\n return true;\n }\n }\n return false;\n}\n\nexport function canInsertTextNode(context: EditorState | Selection) {\n const selection = asSelection(context);\n return canInsertNode(selection, selection.$head.parent.type.schema.nodes.text);\n}\n\nexport function insertAndSelectNode(view: EditorView, node: ProsemirrorNode) {\n // create new transaction\n const tr = view.state.tr;\n\n // insert the node over the existing selection\n tr.ensureMarks(node.marks);\n tr.replaceSelectionWith(node);\n\n // set selection to inserted node (or don't if our selection calculate was off,\n // as can happen when we insert into a list bullet)\n const selectionPos = tr.doc.resolve(tr.mapping.map(view.state.selection.from, -1));\n const selectionNode = tr.doc.nodeAt(selectionPos.pos);\n if (selectionNode && selectionNode.type === node.type) {\n tr.setSelection(new NodeSelection(selectionPos));\n }\n\n // dispatch transaction\n view.dispatch(tr);\n}\n\nexport function editingRootNode(selection: Selection) {\n const schema = selection.$head.node().type.schema;\n return findParentNodeOfType(schema.nodes.body)(selection) || findParentNodeOfType(schema.nodes.note)(selection);\n}\n\nexport function editingRootNodeClosestToPos($pos: ResolvedPos) {\n const schema = $pos.node().type.schema;\n return (\n findParentNodeOfTypeClosestToPos($pos, schema.nodes.body) ||\n findParentNodeOfTypeClosestToPos($pos, schema.nodes.note)\n );\n}\n\nexport function editingRootScrollContainerElement(view: EditorView) {\n const editingNode = editingRootNode(view.state.selection);\n if (editingNode) {\n const editingEl = view.domAtPos(editingNode.pos + 1).node;\n return editingEl.parentElement;\n } else {\n return undefined;\n }\n}\n\nfunction asSelection(context: EditorState | Selection) {\n return context instanceof EditorState ? context.selection : context;\n}\n","/*\n * link.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { findChildren, findChildrenByType } from 'prosemirror-utils';\n\nexport const kLinkTargetUrl = 0;\nexport const kLinkTargetTitle = 1;\n\nexport const kLinkAttr = 0;\nexport const kLinkChildren = 1;\nexport const kLinkTarget = 2;\n\nexport enum LinkType {\n URL = 0,\n Heading = 1,\n ID = 2,\n}\n\nexport interface LinkCapabilities {\n headings: boolean;\n attributes: boolean;\n text: boolean;\n}\n\nexport interface LinkTargets {\n readonly ids: string[];\n readonly headings: LinkHeadingTarget[];\n}\n\nexport interface LinkHeadingTarget {\n readonly level: number;\n readonly text: string;\n}\n\nexport async function linkTargets(doc: ProsemirrorNode) {\n const ids = findChildren(doc, node => !!node.attrs.id).map(value => value.node.attrs.id);\n\n const headings = findChildrenByType(doc, doc.type.schema.nodes.heading).map(heading => ({\n level: heading.node.attrs.level,\n text: heading.node.textContent,\n }));\n\n return {\n ids,\n headings,\n };\n}\n","/*\n * html.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, DOMSerializer, Fragment } from 'prosemirror-model';\n\nexport const kHTMLCommentRegEx = /(?:^|[^`])()/;\n\nexport function isHTMLComment(html: string) {\n return !!html.match(kHTMLCommentRegEx);\n}\n\nexport function isSingleLineHTML(html: string) {\n return html.trimRight().split('\\n').length === 1;\n}\n\nexport function asHTMLTag(\n tag: string,\n attribs: { [key: string]: string },\n selfClosing = false,\n noEmptyAttribs = false,\n) {\n const attribsHTML = Object.keys(attribs)\n .filter(name => !noEmptyAttribs || attribs[name])\n .map(name => `${name}=\"${escapeHTMLAttribute(attribs[name])}\"`)\n .join(' ');\n return `<${tag} ${attribsHTML}${selfClosing ? '/' : ''}>`;\n}\n\nexport function escapeHTMLAttribute(value: string) {\n return value\n .replace(/&/g, '&') // must be first replacement\n .replace(/'/g, ''')\n .replace(/\"/g, '"')\n .replace(//g, '>');\n}\n\nexport function nodeToHTML(schema: Schema, node: ProsemirrorNode) {\n return generateHTML(() => DOMSerializer.fromSchema(schema).serializeNode(node));\n}\n\nexport function fragmentToHTML(schema: Schema, fragment: Fragment) {\n return generateHTML(() => DOMSerializer.fromSchema(schema).serializeFragment(fragment));\n}\n\nfunction generateHTML(generator: () => Node | DocumentFragment) {\n const div = document.createElement('div');\n const output = generator();\n div.appendChild(output);\n return div.innerHTML;\n}\n","/*\n * events.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n/**\n * Represents an event type; only a single instance of this should exist per\n * event type (akin to PluginKey) and it should be visible to everyone who wants\n * to subscribe to or emit events of that type. Do not create one of these\n * directly, instead use makeEventType().\n */\nexport interface EventType {\n readonly eventName: string;\n // This field is needed only to prevent TDetail from being ignored by the type\n // checker; if TDetail isn't used, tsc acts as if EventType isn't generic.\n readonly dummy?: TDetail;\n}\n\n/**\n * Type signature of event-handler functions; the TDetail must match with the\n * EventType being subscribed to.\n *\n * (Note that the detail is always optional. I couldn't figure out how to make\n * it mandatory for some event types, forbidden for others, and optional for\n * still others, so it's just optional for everyone.)\n */\nexport type EventHandler = (detail?: TDetail) => void;\n\n/**\n * Generic interface for objects that support eventing.\n *\n * TODO: I don't see a reason why this interface should support both\n * subscription *and* emitting, the latter seems like something private.\n */\nexport interface EditorEvents {\n subscribe(event: EventType, handler: EventHandler): VoidFunction;\n emit(event: EventType, detail?: TDetail): void;\n}\n\n/**\n * Creates a new type of event. Use the TDetail type parameter to indicate the\n * type of data, if any, that event handlers can expect.\n */\nexport function makeEventType(eventName: string) {\n return { eventName: `panmirror${eventName}` } as EventType;\n}\n\n/**\n * An implementation of EditorEvents, using the DOM event system.\n */\nexport class DOMEditorEvents implements EditorEvents {\n private readonly el: HTMLElement;\n\n constructor(el: HTMLElement) {\n this.el = el;\n }\n\n public emit(eventType: EventType, detail?: TDetail) {\n // Note: CustomEvent requires polyfill for IE, see\n // https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent\n const event = new CustomEvent(eventType.eventName, { detail });\n return this.el.dispatchEvent(event);\n }\n\n public subscribe(eventType: EventType, handler: EventHandler) {\n const listener = function(this: any, evt: Event) {\n const detail: TDetail | undefined = (evt as CustomEvent).detail;\n handler.call(this, detail);\n };\n this.el.addEventListener(eventType.eventName, listener);\n return () => {\n this.el.removeEventListener(eventType.eventName, listener);\n };\n }\n}\n","/*\n * event-types.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction } from 'prosemirror-state';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { makeEventType } from './events';\nimport { Navigation } from './navigation';\n\nexport const UpdateEvent = makeEventType('Update');\nexport const OutlineChangeEvent = makeEventType('OutlineChange');\nexport const StateChangeEvent = makeEventType('StateChange');\nexport const ResizeEvent = makeEventType('Resize');\nexport const LayoutEvent = makeEventType('Layout');\nexport const ScrollEvent = makeEventType('Scroll');\nexport const BlurEvent = makeEventType('Blur');\nexport const FocusEvent = makeEventType('Focus');\nexport const DispatchEvent = makeEventType('Dispatch');\nexport const NavigateEvent = makeEventType('Navigate');\n","/*\n * pandoc_format.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { PandocServer, PandocExtensions } from './pandoc';\nimport { EditorFormat, kHugoDocType } from './format';\nimport { firstYamlBlock, yamlMetadataNodes } from './yaml';\nimport { findValue } from './object';\n\nexport const kMarkdownFormat = 'markdown';\nexport const kMarkdownPhpextraFormat = 'markdown_phpextra';\nexport const kMarkdownGithubFormat = 'markdown_github';\nexport const kMarkdownMmdFormat = 'markdown_mmd';\nexport const kMarkdownStrictFormat = 'markdown_strict';\nexport const kGfmFormat = 'gfm';\nexport const kCommonmarkFormat = 'commonmark';\nexport const kCommonmarkXFormat = 'commonmark_x';\n\nexport interface PandocFormat {\n mode: string;\n baseName: string;\n fullName: string;\n extensions: PandocExtensions;\n warnings: PandocFormatWarnings;\n}\n\nexport interface PandocFormatWarnings {\n invalidFormat: string;\n invalidOptions: string[];\n}\n\nexport interface PandocFormatConfig {\n mode?: string;\n extensions?: string;\n rmdExtensions?: string;\n wrap?: string;\n doctypes?: string[];\n references_location?: string;\n references_prefix?: string;\n canonical?: boolean;\n}\n\nexport function matchPandocFormatComment(code: string) {\n const magicCommentRegEx = /^\\s*$/m;\n return code.match(magicCommentRegEx);\n}\n\nexport function pandocFormatConfigFromDoc(doc: ProsemirrorNode, isRmd: boolean) {\n return pandocFormatConfigFromYamlInDoc(doc, isRmd) || pandocFormatConfigFromCommentInDoc(doc) || {};\n}\n\nexport function pandocFormatConfigFromCode(code: string, isRmd: boolean): PandocFormatConfig {\n return pandocFormatConfigFromYamlInCode(code, isRmd) || pandocFormatConfigFromCommentInCode(code) || {};\n}\n\nfunction pandocFormatConfigFromYamlInCode(code: string, isRmd: boolean): PandocFormatConfig | null {\n // get the first yaml block in the file\n const yaml = firstYamlBlock(code);\n\n // did we find yaml?\n if (yaml) {\n // see if we have any md_extensions defined\n let mdExtensions : string | undefined = isRmd ? findValue('md_extensions', yaml?.output) : undefined;\n if (!mdExtensions) {\n // look for quarto 'from'\n const from = findValue('from', yaml);\n if (from) {\n const fromStr = String(from);\n const extensions = fromStr.match(/^\\w+([+-][\\w+-]+)$/);\n if (extensions) {\n mdExtensions = extensions[1];\n }\n }\n }\n\n // see if we have any markdown options defined\n let yamlFormatConfig: PandocFormatConfig | undefined;\n const yamlMarkdownOptions = yaml?.editor_options?.markdown;\n if (yamlMarkdownOptions instanceof Object) {\n yamlFormatConfig = readPandocFormatConfig(yamlMarkdownOptions);\n }\n\n // combine and return\n if (mdExtensions || yamlFormatConfig) {\n const formatConfig: PandocFormatConfig = yamlFormatConfig ? yamlFormatConfig : {};\n if (mdExtensions) {\n formatConfig.extensions = mdExtensions + (formatConfig.extensions || '');\n }\n return formatConfig;\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\nfunction pandocFormatConfigFromYamlInDoc(doc: ProsemirrorNode, isRmd: boolean): PandocFormatConfig | null {\n const yamlNodes = yamlMetadataNodes(doc);\n if (yamlNodes.length > 0) {\n return pandocFormatConfigFromYamlInCode(yamlNodes[0].node.textContent, isRmd);\n } else {\n return null;\n }\n}\n\nfunction pandocFormatConfigFromCommentInCode(code: string): PandocFormatConfig | null {\n const keyValueRegEx = /^([^:]+):\\s*(.*)$/;\n const match = matchPandocFormatComment(code);\n if (match) {\n const comment = match[1];\n // split into semicolons\n const fields = comment.split(/\\s*;\\s/).map(field => field.trim());\n const variables: { [key: string]: string } = {};\n fields.forEach(field => {\n const keyValueMatch = field.match(keyValueRegEx);\n if (keyValueMatch) {\n variables[keyValueMatch[1].trim()] = keyValueMatch[2].trim();\n }\n });\n return readPandocFormatConfig(variables);\n } else {\n return null;\n }\n}\n\nfunction pandocFormatConfigFromCommentInDoc(doc: ProsemirrorNode): PandocFormatConfig | null {\n let config: PandocFormatConfig | null = null;\n let foundFirstRawInline = false;\n doc.descendants((node, pos) => {\n // don't search once we've found our target\n if (foundFirstRawInline) {\n return false;\n }\n\n // if it's a text node with a raw-html then scan it for the format comment\n const schema = doc.type.schema;\n if (\n node.isText &&\n schema.marks.raw_html_comment &&\n schema.marks.raw_html_comment.isInSet(node.marks) &&\n node.attrs.format\n ) {\n foundFirstRawInline = true;\n config = pandocFormatConfigFromCommentInCode(node.textContent);\n return false;\n } else {\n return true;\n }\n });\n return config;\n}\n\nfunction readPandocFormatConfig(source: { [key: string]: any }) {\n const asString = (obj: any): string => {\n if (typeof obj === 'string') {\n return obj;\n } else if (obj) {\n return obj.toString();\n } else {\n return '';\n }\n };\n\n const asBoolean = (obj: any) => {\n if (typeof obj === 'boolean') {\n return obj;\n } else {\n const str = asString(obj).toLowerCase();\n return str === 'true' || str === '1';\n }\n };\n\n const readWrap = () => {\n const wrap = source.wrap || source.wrap_column || source['fill-column'];\n if (wrap) {\n return asString(wrap);\n } else {\n return undefined;\n }\n };\n\n const formatConfig: PandocFormatConfig = {};\n if (source.mode) {\n formatConfig.mode = asString(source.mode);\n }\n if (source.extensions) {\n formatConfig.extensions = asString(source.extensions);\n }\n if (source.rmd_extensions) {\n formatConfig.rmdExtensions = asString(source.rmd_extensions);\n }\n formatConfig.wrap = readWrap();\n if (source.doctype) {\n formatConfig.doctypes = asString(source.doctype)\n .split(',')\n .map(str => str.trim());\n }\n if (source.references) {\n if (typeof source.references === 'string') {\n formatConfig.references_location = source.references;\n } else {\n formatConfig.references_location = source.references.location;\n formatConfig.references_prefix = source.references.prefix;\n }\n }\n if (source.canonical) {\n formatConfig.canonical = asBoolean(source.canonical);\n }\n return formatConfig;\n}\n\nexport async function resolvePandocFormat(pandoc: PandocServer, format: EditorFormat): Promise {\n // additional markdown variants we support\n const kMarkdownVariants: { [key: string]: string[] } = {\n [kCommonmarkFormat]: commonmarkExtensions(),\n [kCommonmarkXFormat]: commonmarkXExtensions(),\n [kGfmFormat]: gfmExtensions(),\n goldmark: goldmarkExtensions(format),\n blackfriday: blackfridayExtensions(format),\n };\n\n // setup warnings\n const warnings: PandocFormatWarnings = { invalidFormat: '', invalidOptions: [] };\n\n // alias options and basename\n let options = format.pandocExtensions;\n let baseName = format.pandocMode;\n\n // validate the base format (fall back to markdown if it's not known)\n if (\n ![\n kMarkdownFormat,\n kMarkdownPhpextraFormat,\n kMarkdownGithubFormat,\n kMarkdownMmdFormat,\n kMarkdownStrictFormat,\n kGfmFormat,\n kCommonmarkFormat,\n kCommonmarkXFormat\n ]\n .concat(Object.keys(kMarkdownVariants))\n .includes(baseName)\n ) {\n warnings.invalidFormat = baseName;\n baseName = 'markdown';\n }\n\n // format options we will be building\n let formatOptions: string;\n\n // if we are using a variant then get it's base options and merge with user options\n if (kMarkdownVariants[baseName]) {\n const variant = kMarkdownVariants[baseName];\n options = variant.map(option => `${option}`).join('') + options;\n baseName = 'markdown_strict';\n }\n\n // query for format options\n formatOptions = await pandoc.listExtensions(baseName);\n\n // active pandoc extensions\n const pandocExtensions: { [key: string]: boolean } = {};\n\n // first parse extensions for format\n parseExtensions(formatOptions).forEach(option => {\n pandocExtensions[option.name] = option.enabled;\n });\n\n // now parse extensions for user options (validate and build format name)\n const validOptionNames = parseExtensions(formatOptions).map(option => option.name);\n\n let fullName = baseName;\n parseExtensions(options).forEach(option => {\n // validate that the option is valid\n if (validOptionNames.includes(option.name)) {\n // add option\n fullName += (option.enabled ? '+' : '-') + option.name;\n pandocExtensions[option.name] = option.enabled;\n } else {\n warnings.invalidOptions.push(option.name);\n }\n });\n\n // return format name, enabled extensiosn, and warnings\n return {\n mode: format.pandocMode,\n baseName,\n fullName,\n extensions: (pandocExtensions as unknown) as PandocExtensions,\n warnings,\n };\n}\n\nfunction parseExtensions(options: string) {\n // remove any linebreaks\n options = options.split('\\n').join();\n\n // parse into separate entries\n const extensions: Array<{ name: string; enabled: boolean }> = [];\n const re = /([+-])([a-z_]+)/g;\n let match = re.exec(options);\n while (match) {\n extensions.push({ name: match[2], enabled: match[1] === '+' });\n match = re.exec(options);\n }\n\n return extensions;\n}\n\nexport function pandocFormatWith(format: string, prepend: string, append: string) {\n const split = splitPandocFormatString(format);\n return `${split.format}${prepend}${split.options}${append}`;\n}\n\nexport function splitPandocFormatString(format: string) {\n // split out base format from options\n let optionsPos = format.indexOf('-');\n if (optionsPos === -1) {\n optionsPos = format.indexOf('+');\n }\n const base = optionsPos === -1 ? format : format.substr(0, optionsPos);\n const options = optionsPos === -1 ? '' : format.substr(optionsPos);\n return {\n format: base,\n options,\n };\n}\n\nexport function hasFencedCodeBlocks(pandocExtensions: PandocExtensions) {\n return pandocExtensions.backtick_code_blocks || pandocExtensions.fenced_code_blocks;\n}\n\n// e.g. [My Heading] to link to ## My Heading\nexport function hasShortcutHeadingLinks(pandocExtensions: PandocExtensions) {\n return pandocExtensions.implicit_header_references && pandocExtensions.shortcut_reference_links;\n}\n\nfunction commonmarkExtensions(rawHTML = true) {\n const extensions = [\n rawHTML ? '+raw_html' : '-raw_html',\n '+all_symbols_escapable',\n '+backtick_code_blocks',\n '+fenced_code_blocks',\n '+space_in_atx_header',\n '+intraword_underscores',\n '+lists_without_preceding_blankline',\n '+shortcut_reference_links',\n ];\n return extensions;\n}\n\n// https://github.com/jgm/pandoc/commit/0aed9dd589189a9bbe5cae99e0e024e2d4a92c36\nfunction commonmarkXExtensions() {\n const extensions = [\n '+pipe_tables',\n '+raw_html',\n '+auto_identifiers',\n '+strikeout',\n '+task_lists',\n '+emoji',\n '+raw_tex',\n '+smart',\n '+tex_math_dollars',\n '+superscript',\n '+subscript',\n '+definition_lists',\n '+footnotes',\n '+fancy_lists',\n '+fenced_divs',\n '+bracketed_spans',\n '+raw_attribute',\n '+implicit_header_references',\n // '+attributes' (not yet)\n ];\n return extensions;\n}\n\nfunction gfmExtensions() {\n const extensions = [\n ...commonmarkExtensions(),\n '+auto_identifiers',\n '+autolink_bare_uris',\n '+emoji',\n '+gfm_auto_identifiers',\n '+pipe_tables',\n '+strikeout',\n '+task_lists',\n '+tex_math_dollars',\n '+footnotes'\n ];\n return extensions;\n}\n\n// https://gohugo.io/getting-started/configuration-markup/#goldmark\n// https://github.com/yuin/goldmark/#html-renderer-options\nfunction goldmarkExtensions(format: EditorFormat) {\n const extensions = [\n // start with commonmark\n ...commonmarkExtensions(false),\n\n // adds most of gfm\n '+pipe_tables',\n '+strikeout',\n '+autolink_bare_uris',\n '+task_lists',\n '+backtick_code_blocks',\n\n // plus some extras\n '+definition_lists',\n '+footnotes',\n '+smart',\n\n // hugo preprocessor supports yaml metadata\n '+yaml_metadata_block',\n ];\n\n if (includeTexMathDollars(format)) {\n extensions.push('+tex_math_dollars');\n }\n\n return extensions;\n}\n\n// https://github.com/russross/blackfriday/tree/v2#extensions\nfunction blackfridayExtensions(format: EditorFormat) {\n const extensions = [\n '+intraword_underscores',\n '+pipe_tables',\n '+backtick_code_blocks',\n '+definition_lists',\n '+footnotes',\n '+autolink_bare_uris',\n '+strikeout',\n '+smart',\n '+yaml_metadata_block',\n ];\n\n if (includeTexMathDollars(format)) {\n extensions.push('+tex_math_dollars');\n }\n\n return extensions;\n}\n\nfunction includeTexMathDollars(format: EditorFormat) {\n // hugo users often sort out some way to include math so we enable it for hugo\n return format.docTypes.includes(kHugoDocType) || format.rmdExtensions.blogdownMathInCode;\n}\n","/*\n * yaml.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { NodeWithPos } from 'prosemirror-utils';\nimport { EditorView } from 'prosemirror-view';\nimport { EditorState } from 'prosemirror-state';\n\nimport yaml from 'js-yaml';\n\nimport { findTopLevelBodyNodes } from './node';\nimport { logException } from './log';\n\nexport const kYamlMetadataTitleRegex = /\\ntitle:(.*)\\n/;\n\n// return yaml front matter (w/o enclosing --)\nexport function yamlFrontMatter(doc: ProsemirrorNode) {\n const firstYaml = firstYamlNode(doc);\n if (firstYaml) {\n return stripYamlDelimeters(firstYaml.node.textContent);\n } else {\n return '';\n }\n}\n\n// set yaml front matter (w/o enclosing ---)\nexport function applyYamlFrontMatter(view: EditorView, yamlText: string) {\n const schema = view.state.schema;\n const updatedYaml = `---\\n${yamlText}---`;\n const updatedYamlNode = schema.nodes.yaml_metadata.createAndFill({}, schema.text(updatedYaml));\n const tr = view.state.tr;\n const firstYaml = firstYamlNode(view.state.doc);\n if (firstYaml) {\n tr.replaceRangeWith(firstYaml.pos, firstYaml.pos + firstYaml.node.nodeSize, updatedYamlNode);\n } else {\n tr.insert(1, updatedYamlNode);\n }\n view.dispatch(tr);\n}\n\nexport function yamlMetadataNodes(doc: ProsemirrorNode) {\n return findTopLevelBodyNodes(doc, isYamlMetadataNode);\n}\n\nexport function isYamlMetadataNode(node: ProsemirrorNode) {\n return node.type === node.type.schema.nodes.yaml_metadata;\n}\n\nexport function titleFromState(state: EditorState) {\n const yamlNodes = yamlMetadataNodes(state.doc);\n for (const yamlNode of yamlNodes) {\n const title = titleFromYamlMetadataNode(yamlNode.node);\n if (title) {\n return title;\n }\n }\n return '';\n}\n\nexport function titleFromYamlMetadataNode(node: ProsemirrorNode) {\n const titleMatch = node.textContent.match(kYamlMetadataTitleRegex);\n if (titleMatch) {\n let title = titleMatch[1].trim();\n title = title.replace(/^[\"']|[\"']$/g, '');\n title = title.replace(/\\\\\"/g, '\"');\n title = title.replace(/''/g, \"'\");\n return title;\n } else {\n return null;\n }\n}\n\nexport function valueFromYamlText(name: string, yamlText: string) {\n // Must start and end with either a new line or the start/end of line\n const yamlMetadataNameValueRegex = new RegExp(`(?:\\\\n|^)${name}:(.*)(?:\\\\n|$)`);\n\n // Find the name and value\n const valueMatch = yamlText.match(yamlMetadataNameValueRegex);\n if (valueMatch) {\n // Read the matched value\n const valueStr = valueMatch[1].trim();\n\n // Parse the value (could be string, array, etc...)\n const value = parseYaml(valueStr);\n return value;\n } else {\n return null;\n }\n}\n\nconst kFirstYamlBlockRegex = /\\s*---[ \\t]*\\n(?![ \\t]*\\n)([\\W\\w]*?)\\n[\\t >]*(?:---|\\.\\.\\.)[ \\t]*/m;\n\nexport function firstYamlBlock(code: string): { [key: string]: any } | null {\n const match = code.match(kFirstYamlBlockRegex);\n if (match && match.index === 0) {\n const yamlCode = match[1];\n const yamlParsed = parseYaml(yamlCode);\n if (typeof yamlParsed === 'object') {\n return yamlParsed;\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\nexport function parseYaml(yamlCode: string) : unknown {\n try {\n \n const yamlParsed = yaml.load(yamlCode, {\n onWarning: logException,\n });\n return yamlParsed;\n } catch (e) {\n logException(e);\n return null;\n }\n}\n\nexport function toYamlCode(obj: any): string | null {\n try {\n const yamlCode = yaml.dump(obj);\n return yamlCode;\n } catch (e) {\n logException(e);\n return null;\n }\n}\n\nexport function stripYamlDelimeters(yamlCode: string) {\n return yamlCode.replace(/^[ \\t-]+\\n/, '').replace(/\\n[ \\t-\\.]+$/, '');\n}\n\nexport interface ParsedYaml {\n yamlCode: string;\n yaml: any;\n node: NodeWithPos;\n}\n\nexport function parseYamlNodes(doc: ProsemirrorNode): ParsedYaml[] {\n const yamlNodes = yamlMetadataNodes(doc);\n\n const parsedYamlNodes = yamlNodes.map(node => {\n const yamlText = node.node.textContent;\n const yamlCode = stripYamlDelimeters(yamlText);\n return { yamlCode, yaml: parseYaml(yamlCode), node };\n });\n return parsedYamlNodes;\n}\n\nfunction firstYamlNode(doc: ProsemirrorNode) {\n const yamlNodes = yamlMetadataNodes(doc);\n if (yamlNodes && yamlNodes.length > 0) {\n return yamlNodes[0];\n } else {\n return '';\n }\n}\n","/*\n * format.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport interface EditorFormat {\n readonly pandocMode: string;\n readonly pandocExtensions: string;\n readonly rmdExtensions: EditorRmdExtensions;\n readonly hugoExtensions: EditorHugoExtensions;\n readonly docTypes: EditorExtendedDocType[];\n}\n\nexport interface EditorRmdExtensions {\n readonly codeChunks?: boolean;\n readonly bookdownXRef?: boolean;\n readonly bookdownXRefUI?: boolean;\n readonly bookdownPart?: boolean;\n readonly blogdownMathInCode?: boolean;\n}\n\nexport interface EditorHugoExtensions {\n readonly shortcodes?: boolean;\n}\n\nexport const kBookdownDocType = 'bookdown';\nexport const kHugoDocType = 'hugo';\nexport const kQuartoDocType = 'quarto';\nexport const kPresentationDocType = 'presentation';\n\nexport type EditorExtendedDocType = 'bookdown' | 'hugo' | 'quarto' | 'presentation';\n","/*\n * object.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport function findValue(key: string, object?: { [key: string]: any }) {\n if (!object) {\n return undefined;\n }\n\n let value;\n\n Object.keys(object).some(k => {\n if (k === key) {\n value = object[k];\n return true;\n }\n if (object[k] && typeof object[k] === 'object') {\n value = findValue(key, object[k]);\n return value !== undefined;\n }\n return false;\n });\n\n return value;\n}\n","/*\n * log.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport function logException(e: Error) {\n // TODO: log exceptions (we don't want to use console.log in production code, so this would\n // utilize some sort of external logging facility)\n // console.log(e);\n}\n","/*\n * basekeys.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport {\n splitBlock,\n liftEmptyBlock,\n createParagraphNear,\n selectNodeBackward,\n joinBackward,\n deleteSelection,\n selectNodeForward,\n joinForward,\n chainCommands,\n} from 'prosemirror-commands';\nimport { undoInputRule } from 'prosemirror-inputrules';\nimport { keymap } from 'prosemirror-keymap';\nimport { EditorState, Transaction, Plugin, Selection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { CommandFn } from './command';\nimport { editingRootNodeClosestToPos, editingRootNode } from './node';\nimport { selectionIsBodyTopLevel } from './selection';\nimport { kPlatformMac } from './platform';\n\nexport enum BaseKey {\n Home = 'Home',\n End = 'End',\n Enter = 'Enter',\n ModEnter = 'Mod-Enter',\n ShiftEnter = 'Shift-Enter',\n Backspace = 'Backspace',\n Delete = 'Delete|Mod-Delete', // Use pipes to register multiple commands\n Tab = 'Tab',\n ShiftTab = 'Shift-Tab',\n ArrowUp = 'Up|ArrowUp',\n ArrowDown = 'Down|ArrowDown',\n ArrowLeft = 'Left|ArrowLeft',\n ArrowRight = 'Right|ArrowRight',\n ModArrowUp = 'Mod-Up|Mod-ArrowUp',\n ModArrowDown = 'Mod-Down|Mod-ArrowDown',\n CtrlHome = 'Ctrl-Home',\n CtrlEnd = 'Ctrl-End',\n ShiftArrowLeft = 'Shift-Left|Shift-ArrowLeft',\n ShiftArrowRight = 'Shift-Right|Shift-ArrowRight',\n AltArrowLeft = 'Alt-Left|Alt-ArrowLeft',\n AltArrowRight = 'Alt-Right|Alt-ArrowRight',\n CtrlArrowLeft = 'Ctrl-Left|Ctrl-ArrowLeft',\n CtrlArrowRight = 'Ctrl-Right|Ctrl-ArrowRight',\n CtrlShiftArrowLeft = 'Ctrl-Shift-Left|Ctrl-Shift-ArrowLeft',\n CtrlShiftArrowRight = 'Ctrl-Shift-Right|Ctrl-Shift-ArrowRight',\n}\n\nexport interface BaseKeyBinding {\n key: BaseKey;\n command: CommandFn;\n}\n\nexport function baseKeysPlugin(keys: readonly BaseKeyBinding[]): Plugin {\n // collect all keys\n const pluginKeys = [\n // base enter key behaviors\n { key: BaseKey.Enter, command: splitBlock },\n { key: BaseKey.Enter, command: liftEmptyBlock },\n { key: BaseKey.Enter, command: createParagraphNear },\n\n // base backspace key behaviors\n { key: BaseKey.Backspace, command: selectNodeBackward },\n { key: BaseKey.Backspace, command: joinBackward },\n { key: BaseKey.Backspace, command: deleteSelection },\n\n // base tab key behavior (ignore)\n { key: BaseKey.Tab, command: ignoreKey },\n { key: BaseKey.ShiftTab, command: ignoreKey },\n\n // base delete key behaviors\n { key: BaseKey.Delete, command: selectNodeForward },\n { key: BaseKey.Delete, command: joinForward },\n { key: BaseKey.Delete, command: deleteSelection },\n\n // base home/end key behaviors (Mac desktop default behavior advances to beginning/end of\n // document, so we provide our own implementation rather than relying on contentEditable)\n kPlatformMac ? { key: BaseKey.Home, command: homeKey } : null,\n kPlatformMac ? { key: BaseKey.End, command: endKey } : null,\n\n // base arrow key behavior (prevent traversing top-level body notes)\n { key: BaseKey.ArrowLeft, command: arrowBodyNodeBoundary('left') },\n { key: BaseKey.ArrowUp, command: arrowBodyNodeBoundary('up') },\n { key: BaseKey.ArrowRight, command: arrowBodyNodeBoundary('right') },\n { key: BaseKey.ArrowDown, command: arrowBodyNodeBoundary('down') },\n { key: BaseKey.ModArrowDown, command: endTopLevelBodyNodeBoundary() },\n { key: BaseKey.CtrlEnd, command: endTopLevelBodyNodeBoundary() },\n\n // merge keys provided by extensions\n ...keys,\n\n // undoInputRule is always the highest priority backspace key\n { key: BaseKey.Backspace, command: undoInputRule },\n ].filter(x => !!x);\n\n // build arrays for each BaseKey type\n const commandMap: { [key: string]: CommandFn[] } = {};\n for (const baseKey of Object.values(BaseKey)) {\n commandMap[baseKey] = [];\n }\n pluginKeys.forEach(key => {\n if (key) {\n commandMap[key.key].unshift(key.command);\n }\n });\n\n const bindings: { [key: string]: CommandFn } = {};\n for (const baseKey of Object.values(BaseKey)) {\n const commands = commandMap[baseKey];\n // baseKey may contain multiple keys, separated by |\n for (const subkey of baseKey.split(/\\|/)) {\n bindings[subkey] = chainCommands(...commands);\n }\n }\n\n // return keymap\n return keymap(bindings);\n}\n\nexport function verticalArrowCanAdvanceWithinTextBlock(selection: Selection, dir: 'up' | 'down') {\n const $head = selection.$head;\n const node = $head.node();\n if (node.isTextblock) {\n const cursorOffset = $head.parentOffset;\n const nodeText = node.textContent;\n if (dir === 'down' && nodeText.substr(cursorOffset).includes('\\n')) {\n return true;\n }\n if (dir === 'up' && nodeText.substr(0, cursorOffset).includes('\\n')) {\n return true;\n }\n }\n return false;\n}\n\ninterface Coords {\n left: number;\n right: number;\n top: number;\n bottom: number;\n}\n\nfunction ignoreKey(state: EditorState, dispatch?: (tr: Transaction) => void) {\n return true;\n}\n\nfunction homeKey(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) {\n const selection = state.selection;\n const editingNode = editingRootNode(selection);\n if (editingNode && dispatch && view) {\n const head = view.coordsAtPos(selection.head);\n const beginDocPos = editingNode.start;\n for (let pos = selection.from - 1; pos >= beginDocPos; pos--) {\n const coords = view.coordsAtPos(pos);\n if (isOnPreviousLine(head, coords) || pos === beginDocPos) {\n const tr = state.tr;\n setTextSelection(pos + 1)(tr);\n dispatch(tr);\n break;\n }\n }\n }\n return true;\n}\n\nfunction endKey(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) {\n const selection = state.selection;\n const editingNode = editingRootNode(selection);\n if (editingNode && dispatch && view) {\n const head = view.coordsAtPos(selection.head);\n const endDocPos = editingNode.start + editingNode.node.nodeSize;\n for (let pos = selection.from + 1; pos < endDocPos; pos++) {\n const coords = view.coordsAtPos(pos);\n if (isOnNextLine(head, coords) || pos === endDocPos) {\n const tr = state.tr;\n setTextSelection(pos - 1)(tr);\n dispatch(tr);\n break;\n }\n }\n }\n return true;\n}\n\n// helpers to check for a y coordinate on a diffent line that the selection\n\n// y coorinates are sometimes off by 1 or 2 due to margin/padding (e.g. for\n// inline code spans or spelling marks) so the comparision only succeeds if\n// the vertical extents of the two coords don't overlap. If this proves to\n// still have false positives, we could lookahead to the next a few dozen\n// positions to check if we ever \"return to\" the head's baseline--only a\n// permanent change would indicate that the line has truly changed.\n\nfunction isOnNextLine(head: Coords, pos: Coords) {\n return head.bottom < pos.top;\n}\n\nfunction isOnPreviousLine(head: Coords, pos: Coords) {\n return head.top > pos.bottom;\n}\n\nfunction arrowBodyNodeBoundary(dir: 'up' | 'down' | 'left' | 'right') {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (view && view.endOfTextblock(dir) && selectionIsBodyTopLevel(state.selection)) {\n const side = dir === 'left' || dir === 'up' ? -1 : 1;\n const $head = state.selection.$head;\n const nextPos = Selection.near(state.doc.resolve(side > 0 ? $head.after() : $head.before()), side);\n const currentRootNode = editingRootNodeClosestToPos($head);\n const nextRootNode = editingRootNodeClosestToPos(nextPos.$head);\n return currentRootNode?.node?.type !== nextRootNode?.node?.type;\n } else {\n return false;\n }\n };\n}\n\nfunction endTopLevelBodyNodeBoundary() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const editingNode = editingRootNode(state.selection);\n if (editingNode && selectionIsBodyTopLevel(state.selection)) {\n if (dispatch) {\n const tr = state.tr;\n setTextSelection(editingNode.pos + editingNode.node.nodeSize - 2)(tr).scrollIntoView();\n dispatch(tr);\n }\n return true;\n } else {\n return false;\n }\n };\n}\n","/*\n * selection.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Selection, NodeSelection } from 'prosemirror-state';\nimport { Schema } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\nimport { GapCursor } from 'prosemirror-gapcursor';\n\nimport { NodeWithPos, setTextSelection } from 'prosemirror-utils';\n\nimport { kAddToHistoryTransaction, kRestoreLocationTransaction } from './transaction';\nimport { editingRootNode } from './node';\n\nexport function selectionIsWithin(selection: Selection, nodeWithPos: NodeWithPos) {\n const from = nodeWithPos.pos + 1;\n const to = from + nodeWithPos.node.nodeSize;\n return selectionIsWithinRange(selection, { from, to });\n}\n\nexport function selectionHasRange(selection: Selection, range: { from: number; to: number }) {\n return selection.from === range.from && selection.to === range.to;\n}\n\nexport function selectionIsWithinRange(selection: Selection, range: { from: number; to: number }) {\n return selection.anchor >= range.from && selection.anchor <= range.to;\n}\n\nexport function selectionIsBodyTopLevel(selection: Selection) {\n const { $head } = selection;\n const parentNode = $head.node($head.depth - 1);\n return parentNode && \n (parentNode.type === parentNode.type.schema.nodes.body ||\n (selection instanceof GapCursor && parentNode.type === parentNode.type.schema.nodes.doc));\n}\n\nexport function selectionIsImageNode(schema: Schema, selection: Selection) {\n return selection instanceof NodeSelection && [schema.nodes.image, schema.nodes.figure].includes(selection.node.type);\n}\n\nexport function selectionIsEmptyParagraph(schema: Schema, selection: Selection) {\n const { $head } = selection;\n return $head.parent.type === schema.nodes.paragraph && $head.parent.childCount === 0;\n}\n\nexport function selectionWithinLastBodyParagraph(selection: Selection) {\n if (selectionIsBodyTopLevel(selection)) {\n const editingRoot = editingRootNode(selection);\n if (editingRoot) {\n const node = selection.$head.node();\n return node === editingRoot.node.lastChild && node.type === node.type.schema.nodes.paragraph;\n }\n }\n return false;\n}\n\nexport function restoreSelection(view: EditorView, pos: number) {\n const tr = view.state.tr;\n if (pos < view.state.doc.nodeSize) {\n setTextSelection(pos)(tr);\n tr.setMeta(kAddToHistoryTransaction, false);\n tr.setMeta(kRestoreLocationTransaction, true);\n view.dispatch(tr);\n }\n}\n","/*\n * transaction.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction, EditorState, Plugin, PluginKey, Selection } from 'prosemirror-state';\nimport { Node as ProsemirrorNode, Mark, MarkType, Slice } from 'prosemirror-model';\nimport { ChangeSet } from 'prosemirror-changeset';\nimport { ReplaceStep, Step, Transform } from 'prosemirror-transform';\n\nimport { sliceContentLength } from './slice';\n\nexport const kPasteTransaction = 'paste';\nexport const kSetMarkdownTransaction = 'setMarkdown';\nexport const kAddToHistoryTransaction = 'addToHistory';\nexport const kFixupTransaction = 'docFixup';\nexport const kRestoreLocationTransaction = 'restoreLocation';\nexport const kNavigationTransaction = 'navigationTransaction';\nexport const kInsertSymbolTransaction = 'insertSymbol';\nexport const kInsertCompletionTransaction = 'insertCompletion';\n\nexport type TransactionsFilter = (transactions: Transaction[], oldState: EditorState, newState: EditorState) => boolean;\n\nexport type TransactionNodeFilter = (\n node: ProsemirrorNode,\n pos: number,\n parent: ProsemirrorNode,\n index: number,\n) => boolean;\n\nexport interface AppendTransactionHandler {\n name: string;\n filter?: TransactionsFilter;\n nodeFilter?: TransactionNodeFilter;\n append: (tr: Transaction, transactions: Transaction[], oldState: EditorState, newState: EditorState) => void;\n}\n\n// wrapper for transaction that is guaranteed not to modify the position of any\n// nodes in the document (useful for grouping many disparate handlers that arne't\n// aware of each other's actions onto the same trasaction)\nexport class MarkTransaction {\n private tr: Transaction;\n\n constructor(tr: Transaction) {\n this.tr = tr;\n }\n get doc(): ProsemirrorNode {\n return this.tr.doc;\n }\n get selection(): Selection {\n return this.tr.selection;\n }\n public addMark(from: number, to: number, mark: Mark): this {\n this.tr.addMark(from, to, mark);\n return this;\n }\n public removeMark(from: number, to: number, mark?: Mark | MarkType): this {\n this.tr.removeMark(from, to, mark);\n return this;\n }\n public removeStoredMark(mark: Mark | MarkType): this {\n this.tr.removeStoredMark(mark);\n return this;\n }\n public insertText(text: string, from: number): this {\n this.tr.insertText(text, from, from + text.length);\n return this;\n }\n}\n\nexport interface AppendMarkTransactionHandler {\n name: string;\n filter: (node: ProsemirrorNode, transactions: Transaction[]) => boolean;\n append: (tr: MarkTransaction, node: ProsemirrorNode, pos: number, state: EditorState) => void;\n}\n\nexport function appendMarkTransactionsPlugin(handlers: readonly AppendMarkTransactionHandler[]): Plugin {\n return new Plugin({\n key: new PluginKey('appendMarkTransactions'),\n\n appendTransaction: (transactions: Transaction[], oldState: EditorState, newState: EditorState) => {\n // skip for selection-only changes\n if (!transactionsDocChanged(transactions)) {\n return;\n }\n\n // create transaction\n const tr = newState.tr;\n\n // create markTransaction wrapper\n const markTr = new MarkTransaction(tr);\n\n forChangedNodes(\n oldState,\n newState,\n node => true,\n (node: ProsemirrorNode, pos: number) => {\n for (const handler of handlers) {\n // get a fresh view of the node\n node = tr.doc.nodeAt(pos)!;\n\n // call the handler\n if (handler.filter(node, transactions)) {\n handler.append(markTr, node, pos, newState);\n }\n }\n },\n );\n\n // return transaction\n if (tr.docChanged || tr.selectionSet || tr.storedMarksSet) {\n return tr;\n }\n },\n });\n}\n\nexport function appendTransactionsPlugin(handlers: readonly AppendTransactionHandler[]): Plugin {\n return new Plugin({\n key: new PluginKey('appendTransactions'),\n\n appendTransaction: (transactions: Transaction[], oldState: EditorState, newState: EditorState) => {\n // skip for selection-only changes\n if (!transactionsDocChanged(transactions)) {\n return;\n }\n\n // create transaction\n const tr = newState.tr;\n\n // compute the changeSet\n if (transactionsAreTypingChange(transactions)) {\n const changeSet = transactionsChangeSet(transactions, oldState, newState);\n\n // call each handler\n for (const handler of handlers) {\n // track whether there is a change\n let haveChange = false;\n\n // call filters if we have them\n if (handler.filter || handler.nodeFilter) {\n // first the low-level transaction filter\n if (handler.filter) {\n haveChange = handler.filter(transactions, oldState, newState);\n }\n\n // if that doesn't detect a change then try the nodeFilter if we have one\n if (!haveChange && handler.nodeFilter) {\n const checkForChange = (\n node: ProsemirrorNode,\n pos: number,\n parent: ProsemirrorNode,\n index: number,\n ) => {\n if (handler.nodeFilter!(node, pos, parent, index)) {\n haveChange = true;\n return false;\n }\n };\n\n for (const change of changeSet.changes) {\n oldState.doc.nodesBetween(change.fromA, change.toA, checkForChange);\n newState.doc.nodesBetween(change.fromB, change.toB, checkForChange);\n }\n }\n\n // no filters means we should always run (force haveChange to true)\n } else {\n haveChange = true;\n }\n\n // run the handler if applicable\n if (haveChange) {\n handler.append(tr, transactions, oldState, newState);\n }\n }\n\n // run them all if this is a larger change\n } else {\n handlers.forEach(handler => handler.append(tr, transactions, oldState, newState));\n }\n\n // return transaction\n if (tr.docChanged || tr.selectionSet || tr.storedMarksSet) {\n return tr;\n }\n },\n });\n}\n\nexport function transactionsDocChanged(transactions: Transaction[]) {\n return transactions.some(transaction => transaction.docChanged);\n}\n\nexport function transactionsChangeSet(transactions: Transaction[], oldState: EditorState, newState: EditorState) {\n let changeSet = ChangeSet.create(oldState.doc);\n for (const transaction of transactions) {\n changeSet = changeSet.addSteps(newState.doc, transaction.mapping.maps);\n }\n return changeSet;\n}\n\nexport function trTransform(tr: Transaction, f: (transform: Transform) => void): Transaction {\n // create a new transform so we can do position mapping relative\n // to the actions taken here (b/c the transaction might already\n // have other steps so we can't do tr.mapping.map)\n const newActions = new Transform(tr.doc);\n\n // call the function (passing it a mapping function that uses our newActions)\n f(newActions);\n\n // copy the contents of newActions to the actual transaction\n for (const step of newActions.steps) {\n tr.step(step);\n }\n\n // return the transaction for chaining\n return tr;\n}\n\nexport function transactionsHaveChange(\n transactions: Transaction[],\n oldState: EditorState,\n newState: EditorState,\n predicate: (node: ProsemirrorNode, pos: number, parent: ProsemirrorNode, index: number) => boolean,\n) {\n // screen out transactions with no doc changes\n if (!transactionsDocChanged(transactions)) {\n return false;\n }\n\n // function to check for whether we have a change and set a flag if we do\n let haveChange = false;\n const checkForChange = (node: ProsemirrorNode, pos: number, parent: ProsemirrorNode, index: number) => {\n if (predicate(node, pos, parent, index)) {\n haveChange = true;\n return false;\n }\n };\n\n // for each change in each transaction, check for a node that matches the predicate in either the old or new doc\n const changeSet = transactionsChangeSet(transactions, oldState, newState);\n\n for (const change of changeSet.changes) {\n oldState.doc.nodesBetween(change.fromA, change.toA, checkForChange);\n newState.doc.nodesBetween(change.fromB, change.toB, checkForChange);\n if (haveChange) {\n break;\n }\n }\n\n return haveChange;\n}\n\nexport function forChangedNodes(\n oldState: EditorState | null,\n newState: EditorState,\n predicate: (node: ProsemirrorNode) => boolean,\n f: (node: ProsemirrorNode, pos: number) => boolean | void,\n) {\n let complete = false;\n const handler = (node: ProsemirrorNode, pos: number) => {\n if (complete) {\n return;\n }\n\n if (!predicate || predicate(node)) {\n if (f(node, pos) === false) {\n complete = true;\n }\n }\n };\n\n if (!oldState) {\n newState.doc.descendants(handler);\n } else if (oldState.doc !== newState.doc) {\n changedDescendants(oldState.doc, newState.doc, 0, handler);\n }\n}\n\n// Helper for iterating through the nodes in a document that changed\n// compared to the given previous document. Useful for avoiding\n// duplicate work on each transaction.\n// from: https://github.com/ProseMirror/prosemirror-tables/blob/master/src/fixtables.js\nfunction changedDescendants(\n old: ProsemirrorNode,\n cur: ProsemirrorNode,\n offset: number,\n f: (node: ProsemirrorNode, pos: number) => void,\n) {\n const oldSize = old.childCount;\n const curSize = cur.childCount;\n outer: for (let i = 0, j = 0; i < curSize; i++) {\n const child = cur.child(i);\n for (let scan = j, e = Math.min(oldSize, i + 3); scan < e; scan++) {\n if (old.child(scan) === child) {\n j = scan + 1;\n offset += child.nodeSize;\n continue outer;\n }\n }\n f(child, offset);\n if (j < oldSize && old.child(j).sameMarkup(child)) {\n changedDescendants(old.child(j), child, offset + 1, f);\n } else {\n child.nodesBetween(0, child.content.size, f, offset + 1);\n }\n offset += child.nodeSize;\n }\n}\n\nexport function transactionsAreTypingChange(transactions: Transaction[]) {\n if (\n transactions.length === 1 &&\n transactions[0].steps.length === 1 &&\n transactions[0].steps[0] instanceof ReplaceStep\n ) {\n // step to examine\n const step: any = transactions[0].steps[0];\n\n // insert single chraracter or new empty slice (e.g. from enter after a paragraph)\n if (step.from === step.to && sliceContentLength(step.slice) <= 1) {\n return true;\n }\n\n // remove single character\n if (Math.abs(step.from - step.to) === 1 && step.slice.content.size === 0) {\n return true;\n }\n }\n\n return false;\n}\n\nexport interface RangeStep extends Step {\n from: number;\n to: number;\n}\n\nexport interface SliceStep extends RangeStep {\n slice: Slice;\n}\n","/*\n * slice.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Slice, Node as ProsemirrorNode } from 'prosemirror-model';\n\nexport function sliceContentLength(slice: Slice) {\n let length = 0;\n for (let i = 0; i < slice.content.childCount; i++) {\n length += slice.content.child(i).textContent.length;\n }\n return length;\n}\n\nexport function sliceHasNode(slice: Slice, predicate: (node: ProsemirrorNode) => boolean) {\n let hasNode = false;\n slice.content.descendants(node => {\n if (predicate(node)) {\n hasNode = true;\n return false;\n }\n });\n return hasNode;\n}\n","/*\n * platform.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport const kPlatformMac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;\n","/*\n * outline.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState } from 'prosemirror-state';\n\nimport { NodeWithPos, findChildrenByType, findChildren } from 'prosemirror-utils';\n\nimport { findTopLevelBodyNodes } from './node';\nimport { titleFromYamlMetadataNode } from './yaml';\nimport { rmdChunkEngineAndLabel } from './rmd';\n\nexport interface EditorOutlineItem {\n navigation_id: string;\n type: EditorOutlineItemType;\n level: number;\n sequence: number;\n title: string;\n children: EditorOutlineItem[];\n}\n\nexport const kHeadingOutlineItemType = 'heading';\nexport const kRmdchunkOutlineItemType = 'rmd_chunk';\nexport const kYamlMetadataOutlineItemType = 'yaml_metadata';\n\nexport type EditorOutlineItemType = 'heading' | 'rmd_chunk' | 'yaml_metadata';\n\nexport type EditorOutline = EditorOutlineItem[];\n\nexport interface EditingOutlineLocationItem {\n type: EditorOutlineItemType;\n level: number;\n title: string;\n active: boolean;\n position: number;\n}\n\nexport interface EditingOutlineLocation {\n items: EditingOutlineLocationItem[];\n}\n\nexport function getEditingOutlineLocation(state: EditorState): EditingOutlineLocation {\n // traverse document outline to get base location info\n const itemsWithPos = getDocumentOutline(state).map(nodeWithPos => {\n const schema = state.schema;\n const node = nodeWithPos.node;\n const item: EditingOutlineLocationItem = {\n type: kYamlMetadataOutlineItemType,\n level: 0,\n title: '',\n active: false,\n position: nodeWithPos.pos,\n };\n if (node.type === schema.nodes.yaml_metadata) {\n item.type = kYamlMetadataOutlineItemType;\n item.title = titleFromYamlMetadataNode(node) || '';\n } else if (node.type === schema.nodes.rmd_chunk) {\n item.type = kRmdchunkOutlineItemType;\n const chunk = rmdChunkEngineAndLabel(node.textContent);\n if (chunk) {\n item.title = chunk.label;\n }\n } else if (node.type === schema.nodes.heading) {\n item.type = kHeadingOutlineItemType;\n item.level = node.attrs.level;\n item.title = node.textContent;\n }\n return {\n item,\n pos: nodeWithPos.pos,\n };\n });\n\n // return the location, set the active item by scanning backwards until\n // we find an item with a position before the cursor\n let foundActive = false;\n const items: EditingOutlineLocationItem[] = [];\n for (let i = itemsWithPos.length - 1; i >= 0; i--) {\n const item = itemsWithPos[i].item;\n if (!foundActive && itemsWithPos[i].pos < state.selection.from) {\n item.active = true;\n foundActive = true;\n }\n items.unshift(item);\n }\n\n // return the outline\n return { items };\n}\n\n// get a document outline that matches the scheme provided in EditingOutlineLocation:\n// - yaml metadata blocks\n// - top-level headings\n// - rmd chunks at the top level or within a top-level list or div,\nexport function getDocumentOutline(state: EditorState): NodeWithPos[] {\n // get top level body nodes\n const schema = state.schema;\n const bodyNodes = findTopLevelBodyNodes(state.doc, node => {\n return [\n schema.nodes.yaml_metadata,\n schema.nodes.rmd_chunk,\n schema.nodes.heading,\n schema.nodes.bullet_list,\n schema.nodes.ordered_list,\n schema.nodes.div\n ].includes(node.type);\n });\n\n // reduce (explode lists into contained rmd chunks)\n const outlineNodes: NodeWithPos[] = [];\n bodyNodes.forEach(bodyNode => {\n // explode lists\n if ([schema.nodes.bullet_list, schema.nodes.ordered_list].includes(bodyNode.node.type)) {\n // look for rmd chunks within list items (non-recursive, only want top level)\n findChildrenByType(bodyNode.node, schema.nodes.list_item, false).forEach(listItemNode => {\n findChildrenByType(listItemNode.node, schema.nodes.rmd_chunk, false).forEach(rmdChunkNode => {\n outlineNodes.push({\n node: rmdChunkNode.node,\n pos: bodyNode.pos + 1 + listItemNode.pos + 1 + rmdChunkNode.pos,\n });\n });\n });\n\n // find headings and rmd chunks within divs\n } else if (schema.nodes.div === bodyNode.node.type) {\n findChildren(bodyNode.node, \n node => [schema.nodes.rmd_chunk, schema.nodes.heading].includes(node.type),\n true)\n .forEach(childNode => {\n outlineNodes.push({\n node: childNode.node,\n pos: bodyNode.pos + 1 + childNode.pos\n });\n }\n );\n \n // other nodes go straight through\n } else {\n outlineNodes.push(bodyNode);\n }\n });\n\n // return outline nodes\n return outlineNodes;\n}\n\nexport function getOutlineNodes(doc: ProsemirrorNode) {\n return findTopLevelBodyNodes(doc, isOutlineNode);\n}\n\nexport function isOutlineNode(node: ProsemirrorNode) {\n if (node.type.spec.attrs) {\n return node.type.spec.attrs.hasOwnProperty('navigation_id');\n } else {\n return false;\n }\n}\n","/*\n * rmd.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeType } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { GapCursor } from 'prosemirror-gapcursor';\n\nimport {\n findParentNodeOfType,\n findChildrenByType,\n findChildren,\n findChildrenByMark,\n setTextSelection,\n} from 'prosemirror-utils';\n\nimport { getMarkRange } from './mark';\nimport { precedingListItemInsertPos, precedingListItemInsert } from './list';\nimport { toggleBlockType } from './command';\nimport { selectionIsBodyTopLevel } from './selection';\nimport { uuidv4 } from './util';\n\nexport interface EditorRmdChunk {\n lang: string;\n meta: string;\n code: string;\n delimiter: string;\n}\n\nexport type ExecuteRmdChunkFn = (chunk: EditorRmdChunk) => void;\n\nexport function canInsertRmdChunk(state: EditorState) {\n // must either be at the body top level, within a list item, within a div, or within a\n // blockquote (and never within a table)\n const schema = state.schema;\n const within = (nodeType: NodeType) => !!findParentNodeOfType(nodeType)(state.selection);\n if (within(schema.nodes.table)) {\n return false;\n }\n if (\n !selectionIsBodyTopLevel(state.selection) &&\n !within(schema.nodes.list_item) &&\n !within(schema.nodes.blockquote) &&\n schema.nodes.div && !within(schema.nodes.div)\n ) {\n return false;\n }\n\n return true;\n}\n\nexport function insertRmdChunk(chunkPlaceholder: string) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (\n !(state.selection instanceof GapCursor) &&\n !toggleBlockType(schema.nodes.rmd_chunk, schema.nodes.paragraph)(state) &&\n !precedingListItemInsertPos(state.doc, state.selection)\n ) {\n return false;\n }\n\n // must either be at the body top level, within a list item, within a div, or within a\n // blockquote (and never within a table)\n if (!canInsertRmdChunk(state)) {\n return false;\n }\n\n if (dispatch) {\n // perform insert\n const tr = state.tr;\n const rmdText = schema.text(chunkPlaceholder);\n const rmdNode = schema.nodes.rmd_chunk.create({ navigation_id: uuidv4() }, rmdText);\n const prevListItemPos = precedingListItemInsertPos(tr.doc, tr.selection);\n if (prevListItemPos) {\n precedingListItemInsert(tr, prevListItemPos, rmdNode);\n } else {\n tr.replaceSelectionWith(rmdNode);\n setTextSelection(tr.selection.from - 2)(tr);\n }\n\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function activeRmdChunk(state: EditorState): EditorRmdChunk | null {\n if (state.schema.nodes.rmd_chunk) {\n const rmdNode = findParentNodeOfType(state.schema.nodes.rmd_chunk)(state.selection);\n if (rmdNode) {\n return rmdChunk(rmdNode.node.textContent);\n }\n }\n return null;\n}\n\nexport function previousExecutableRmdChunks(state: EditorState, pos = state.selection.from): EditorRmdChunk[] {\n const activeChunk = activeRmdChunk(state);\n const lang = activeChunk ? activeChunk.lang : 'r';\n const kEvalFalseRegEx = /eval\\s*=\\s*F(?:ALSE)?/;\n return previousRmdChunks(state, pos, chunk => {\n return (\n chunk.lang.localeCompare(lang, undefined, { sensitivity: 'accent' }) === 0 && !kEvalFalseRegEx.test(chunk.meta)\n );\n });\n}\n\nexport function previousRmdChunks(state: EditorState, pos: number, filter?: (chunk: EditorRmdChunk) => boolean) {\n // chunks to return\n const chunks: EditorRmdChunk[] = [];\n\n // find all chunks in the document and return ones before the position that pass the specified filter\n const schema = state.schema;\n const rmdChunkNodes = findChildrenByType(state.doc, schema.nodes.rmd_chunk);\n for (const rmdChunkNode of rmdChunkNodes) {\n if (rmdChunkNode.pos + rmdChunkNode.node.nodeSize > pos) {\n break;\n }\n const chunk = rmdChunk(rmdChunkNode.node.textContent);\n if (chunk && (!filter || filter(chunk))) {\n chunks.push(chunk);\n }\n }\n\n // return chunks\n return chunks;\n}\n\nexport function rmdChunk(code: string): EditorRmdChunk | null {\n let lines = code.trimLeft().split('\\n');\n if (lines.length > 0) {\n const meta = lines[0].replace(/^[\\s`\\{]*(.*?)\\}?\\s*$/, '$1');\n const matchLang = meta.match(/\\w+/);\n const lang = matchLang ? matchLang[0] : '';\n\n const isContainerChunk = [\"verbatim\", \"asis\", \"comment\"].includes(lang);\n\n // for container chunks, delimiter is one backtick greater than the most \n // ticks we've found starting a line (otherwise is ```)\n const delimiter = isContainerChunk ? lines.reduce((ticks: string, line: string) => {\n const match = line.match(/^```+/);\n if (match && (match[0].length >= ticks.length)) {\n ticks = match[0] + \"`\";\n }\n return ticks;\n }, \"```\") : \"```\";\n\n // filter out stray ``` if this isn't a container chunk\n if (!isContainerChunk) {\n // remove lines, other than the first, which are chunk delimiters (start\n // with ```). these are generally unintended but can be accidentally\n // introduced by e.g., pasting a chunk with its delimiters into visual mode,\n // where delimiters are implicit. if these lines aren't removed, they create\n // nested chunks that break parsing and can corrupt the document (see case\n // 8452)\n lines = lines.filter((line, idx) => {\n if (idx === 0) {\n return true;\n }\n return !line.startsWith(\"```\");\n });\n }\n \n\n // a completely empty chunk (no second line) should be returned\n // as such. if it's not completely empty then append a newline\n // to the result of split (so that the chunk ends w/ a newline)\n const chunkCode = lines.length > 1 ? lines.slice(1).join('\\n') + '\\n' : '';\n\n return {\n lang,\n meta,\n code: chunkCode,\n delimiter\n };\n } else {\n return null;\n }\n}\n\nexport function mergeRmdChunks(chunks: EditorRmdChunk[]) {\n if (chunks.length) {\n const merged = {\n lang: chunks[0].lang,\n meta: '',\n code: '',\n };\n chunks.forEach(chunk => (merged.code += chunk.code + '\\n'));\n return merged;\n } else {\n return null;\n }\n}\n\n/**\n * Attempts to extract the engine name and label from a chunk header.\n * \n * @param text The chunk header, e.g. {r foo}\n * @returns An object with `engine` and `label` properties, or null.\n */\nexport function rmdChunkEngineAndLabel(text: string) {\n // Match the engine and label with a regex\n const match = text.match(/^\\{([a-zA-Z0-9_]+)[\\s,]+([a-zA-Z0-9/._='\"-]+)/);\n if (match) {\n // The second capturing group in the regex matches the first string after\n // the engine. This might be a label (e.g., {r label}), but could also be\n // a chunk option (e.g., {r echo=FALSE}). If it has an =, presume that it's\n // an option.\n if (match[2].indexOf(\"=\") !== -1) {\n return null;\n }\n return {\n engine: match[1],\n label: match[2],\n };\n } else {\n return null;\n }\n}\n\nexport function haveTableCellsWithInlineRcode(doc: ProsemirrorNode) {\n const schema = doc.type.schema;\n const haveRCode = !!doc.type.schema.nodes.rmd_chunk;\n if (haveRCode) {\n const isTableCell = (node: ProsemirrorNode) =>\n node.type === schema.nodes.table_cell || node.type === schema.nodes.table_header;\n return findChildren(doc, isTableCell).some(cell => {\n if (doc.rangeHasMark(cell.pos, cell.pos + cell.node.nodeSize, schema.marks.code)) {\n const markedNodes = findChildrenByMark(cell.node, schema.marks.code, true);\n return markedNodes.some(markedNode => {\n const from = cell.pos + 1 + markedNode.pos;\n const markedRange = getMarkRange(doc.resolve(from), schema.marks.code);\n if (markedRange) {\n const text = doc.textBetween(markedRange.from, markedRange.to);\n return /^r[ #].+$/.test(text);\n } else {\n return false;\n }\n });\n } else {\n return false;\n }\n });\n } else {\n return false;\n }\n}\n","/*\n * list.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Transaction, Selection } from 'prosemirror-state';\n\nimport { findParentNodeOfType, setTextSelection } from 'prosemirror-utils';\n\nexport enum ListType {\n Ordered = 'OrderedList',\n Bullet = 'BulletList',\n}\n\nexport interface ListCapabilities {\n tasks: boolean;\n fancy: boolean;\n example: boolean;\n order: boolean;\n incremental: boolean;\n}\n\nexport function isList(node: ProsemirrorNode | null | undefined) {\n if (node) {\n const schema = node.type.schema;\n return node.type === schema.nodes.bullet_list || node.type === schema.nodes.ordered_list;\n } else {\n return false;\n }\n}\n\nexport function precedingListItemInsertPos(doc: ProsemirrorNode, selection: Selection) {\n // selection just be empty\n if (!selection.empty) {\n return null;\n }\n\n // check for insert position in preceding list item (only trigger when\n // the user is at the very beginning of a new bullet)\n const schema = doc.type.schema;\n const $head = selection.$head;\n const parentListItem = findParentNodeOfType(schema.nodes.list_item)(selection);\n if (parentListItem) {\n const $liPos = doc.resolve(parentListItem.pos);\n const listIndex = $liPos.index();\n const parentIndex = $head.index($head.depth - 1);\n const parentOffset = $head.parentOffset;\n if (listIndex > 0 && parentIndex === 0 && parentOffset === 0) {\n const pos = $liPos.pos - 1;\n return pos;\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\nexport function precedingListItemInsert(tr: Transaction, pos: number, node: ProsemirrorNode) {\n tr.deleteRange(tr.selection.from, tr.selection.from + 1);\n tr.insert(pos, node);\n setTextSelection(tr.mapping.map(pos), -1)(tr);\n return tr;\n}\n","/*\n * command.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { lift, setBlockType, toggleMark, wrapIn } from 'prosemirror-commands';\nimport { MarkType, Node as ProsemirrorNode, NodeType } from 'prosemirror-model';\nimport { wrapInList, liftListItem } from 'prosemirror-schema-list';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { findParentNode, findParentNodeOfType, setTextSelection } from 'prosemirror-utils';\nimport { EditorView } from 'prosemirror-view';\n\nimport { markIsActive, getMarkRange } from './mark';\nimport { canInsertNode, nodeIsActive } from './node';\nimport { pandocAttrInSpec, pandocAttrAvailable, pandocAttrFrom } from './pandoc_attr';\nimport { isList } from './list';\nimport { OmniInsert } from './omni_insert';\nimport { EditorUIPrefs, kListSpacingTight } from './ui';\nimport { selectionIsWithinRange, selectionHasRange } from './selection';\nimport { requiresTrailingP, insertTrailingP } from './trailing_p';\n\nexport enum EditorCommandId {\n // text editing\n Undo = '201CA961-829E-4708-8FBC-8896FDE85A10',\n Redo = 'B6272475-04E0-48C0-86E3-DAFA763BDF7B',\n SelectAll = 'E42BF0DA-8A02-4FCE-A202-7EA8A4833FC5',\n ClearFormatting = 'C22D8CC4-0A9F-41D5-B540-7DAAAB80F344',\n\n // formatting\n Strong = '83B04020-1195-4A65-8A8E-7C173C87F439',\n Em = '9E1B73E4-8140-43C3-92E4-A5E2583F40E6',\n Code = '32621150-F829-4B8F-B5BD-627FABBBCF53',\n Strikeout = 'D5F0225B-EC73-4600-A1F3-01F418EE8CB4',\n Superscript = '0200D2FC-B5AF-423B-8B7A-4A7FC3DAA6AF',\n Subscript = '3150428F-E468-4E6E-BF53-A2713E59B4A0',\n Smallcaps = '41D8030F-5E8B-48F2-B1EE-6BC40FD502E4',\n Underline = '7F0E6AE2-08F4-4594-9BA2-E6B8B27FA8F7',\n Paragraph = '20EC2695-75CE-4DCD-A644-266E9F5F5913',\n Heading1 = '5B77642B-923D-4440-B85D-1A27C9CF9D77',\n Heading2 = '42985A4B-6BF2-4EEF-AA30-3E84A8B9111C',\n Heading3 = '3F84D9DF-5EF6-484C-8615-BAAE2AC9ECE2',\n Heading4 = 'DA76731D-1D84-4DBA-9BEF-A6F73536F0B9',\n Heading5 = '59E24247-A140-466A-BC96-3C8ADABB57A5',\n Heading6 = 'DB495DF5-8501-43C7-AE07-59CE9D9C373D',\n CodeBlock = '3BA12A49-3E29-4ABC-9A49-436A3B49B880',\n CodeBlockFormat = '07A6F2AA-01DC-41D7-9F01-AA91EAD856EE',\n Blockquote = 'AF0717E7-E4BA-4909-9F10-17EB757CDD0F',\n LineBlock = 'F401687C-B995-49AF-B2B0-59C158174FD5',\n AttrEdit = '0F8A254D-9272-46BF-904D-3A9D68B91032',\n Span = '852CF3E3-8A2B-420D-BD95-F79C54118E7E',\n Div = '15EDB8F1-6015-4DA9-AE50-5987B24C1D96',\n InsertDiv = 'ACA1521B-8875-4113-9D43-B47F0038B19F',\n\n // lists\n BulletList = 'D897FD2B-D6A4-44A7-A404-57B5251FBF64',\n OrderedList = '3B8B82D5-7B6C-4480-B7DD-CF79C6817980',\n TightList = 'A32B668F-74F3-43D7-8759-6576DDE1D603',\n ListItemSink = '7B503FA6-6576-4397-89EF-37887A1B2EED',\n ListItemLift = '53F89F57-22E2-4FCC-AF71-3E382EC10FC8',\n ListItemSplit = '19BBD87F-96D6-4276-B7B8-470652CF4106',\n ListItemCheck = '2F6DA9D8-EE57-418C-9459-50B6FD84137F',\n ListItemCheckToggle = '34D30F3D-8441-44AD-B75A-415DA8AC740B',\n EditListProperties = 'E006A68C-EA39-4954-91B9-DDB07D1CBDA2',\n\n // tables\n TableInsertTable = 'FBE39613-2DAA-445D-9E92-E1EABFB33E2C',\n TableToggleHeader = 'A5EDA226-A3CA-4C1B-8D4D-C2675EF51AFF',\n TableToggleCaption = 'C598D85C-E15C-4E10-9850-95882AEC7E60',\n TableNextCell = '14299819-3E19-4A27-8D0B-8035315CF0B4',\n TablePreviousCell = '0F041FB5-0203-4FF1-9D13-B16606A80F3E',\n TableAddColumnBefore = '2447B81F-E07A-4C7D-8026-F2B148D5FF4A',\n TableAddColumnAfter = 'ED86CFAF-D0B3-4B1F-9BB8-89987A939C8C',\n TableDeleteColumn = 'B3D077BC-DD51-4E3A-8AD4-DE5DE686F7C4',\n TableAddRowBefore = 'E97FB318-4052-41E5-A2F5-55B64E9826A5',\n TableAddRowAfter = '3F28FA24-4BDD-4C13-84FF-9C5E1D4B04D6',\n TableDeleteRow = '5F3B4DCD-5006-43A5-A069-405A946CAC68',\n TableDeleteTable = '116D1E68-9315-4FEB-B6A0-AD25B3B9C881',\n TableAlignColumnLeft = '0CD6A2A4-06F9-435D-B8C9-070B22B19D8',\n TableAlignColumnRight = '86D90C12-BB12-4A9D-802F-D00EB7CEF2C5',\n TableAlignColumnCenter = '63333996-2F65-4586-8494-EA9CAB5A7751',\n TableAlignColumnDefault = '7860A9C1-60AF-40AD-9EB8-A10F6ADF25C5',\n\n // insert\n OmniInsert = '12F96C13-38C1-4266-A0A1-E871D8C709FB',\n Table = 'CBD3ACC6-B2A3-457D-885C-EDA600F6FC67',\n Link = '842FCB9A-CA61-4C5F-A0A0-43507B4B3FA9',\n RemoveLink = '072D2084-218D-4A34-AF1F-7E196AF684B2',\n Image = '808220A3-2B83-4CB6-BCC1-46565D54FA47',\n Footnote = '1D1A73C0-F0E1-4A0F-BEBC-08398DE14A4D',\n ParagraphInsert = '4E68830A-3E68-450A-B3F3-2591F4EB6B9A',\n HorizontalRule = 'EAA7115B-181C-49EC-BDB1-F0FF10369278',\n YamlMetadata = '431B5A45-1B25-4A55-9BAF-C0FE95D9B2B6',\n Shortcode = '0FDDA7E8-419D-4A5D-A1F5-74061466655D',\n InlineMath = 'A35C562A-0BD6-4B14-93D5-6FF3BE1A0C8A',\n DisplayMath = '3E36BA99-2AE9-47C3-8C85-7CC5314A88DF',\n Citation = 'EFFCFC81-F2E7-441E-B7FA-C693146B4185',\n CrossReference = '48CEED4F-1D18-4AF9-8686-9FEB5DF6BCC8',\n DefinitionList = 'CFAB8F4D-3350-4398-9754-8DE0FB95167B',\n DefinitionTerm = '204D1A8F-8EE6-424A-8E69-99768C85B39E',\n DefinitionDescription = 'F0738D83-8E11-4CB5-B958-390190A2D7DD',\n Symbol = '1419765F-6E4A-4A4C-8670-D9E8578EA996',\n Emoji = 'F73896A2-02CC-4E5D-A596-78444A1D2A37',\n EmDash = '5B0DD33B-6209-4713-B8BB-60B5CA0BC3B3',\n EnDash = 'C32AFE32-0E57-4A16-9C39-88EB1D82B8B4',\n NonBreakingSpace = 'CF6428AB-F36E-446C-8661-2781B2CD1169',\n HardLineBreak = '3606FF87-866C-4729-8F3F-D065388FC339',\n Tabset = '7327AF95-3EA7-42C8-8C42-D4CB0D15CAE4',\n Callout = 'DC86C28A-0140-4EB5-A745-2C1EFA55C94D',\n\n // raw\n TexInline = 'CFE8E9E5-93BA-4FFA-9A77-BA7EFC373864',\n TexBlock = 'BD11A6A7-E528-40A2-8139-3F8F5F556ED2',\n HTMLComment = 'F973CBA4-2882-4AC5-A642-47F4733EBDD4',\n HTMLInline = 'C682C6B5-E58D-498C-A38F-FB07BEC3A82D',\n HTMLBlock = '6F9F64AF-711F-4F91-8642-B51C41717F31',\n RawInline = '984167C8-8582-469C-97D8-42CB12773657',\n RawBlock = 'F5757992-4D33-45E6-86DC-F7D7B174B1EC',\n\n // chunk\n RCodeChunk = 'EBFD21FF-4A6E-4D88-A2E0-B38470B00BB9',\n BashCodeChunk = '5FBB7283-E8AB-450C-9359-A4658CBCD136',\n D3CodeChunk = 'C73CA46C-B56F-40B6-AEFA-DDBB30CA8C08',\n PythonCodeChunk = '42A7A138-421A-4DCF-8A88-FE2F8EC5B8F6',\n RcppCodeChunk = '6BD2810B-6B20-4358-8AA4-74BBFFC92AC3',\n SQLCodeChunk = '41D61FD2-B56B-48A7-99BC-2F60BC0D9F78',\n StanCodeChunk = '65D33344-CBE9-438C-B337-A538F8D7FCE5',\n ExecuteCurentRmdChunk = '31C799F3-EF18-4F3A-92E6-51F7A3193A1B',\n ExecuteCurrentPreviousRmdChunks = 'D3FDE96-0264-4364-ADFF-E87A75405B0B',\n ExpandChunk = '0226518C-559A-4BFC-A5BD-244BEE8175AA',\n CollapseChunk = '4AFBBC0C-A6DA-4019-B85F-374636E349C3',\n ExpandAllChunks = 'B217913B-67C9-457F-B766-7FCCB502F611',\n CollapseAllChunks = '9907A864-D707-4410-93A4-07871A8C43A6',\n\n // outline\n GoToNextSection = 'AE827BDA-96F8-4E84-8030-298D98386765',\n GoToPreviousSection = 'E6AA728C-2B75-4939-9123-0F082837ACDF',\n GoToNextChunk = '50DD6E51-13B5-4F1E-A46B-6A33EB1609D9',\n GoToPreviousChunk = '8D105D33-78FE-4A98-8195-6B71361424C5',\n\n // slides\n InsertSlidePause = 'FCA8BF2E-2668-4919-92FC-02083EB48246',\n InsertSlideNotes = '9C709915-02BE-4F4F-9CEB-50E17973C9BE',\n InsertSlideColumns = 'AE62D05F-1415-4E1F-84AE-753EE2393002'\n}\n\nexport interface EditorCommand {\n readonly id: EditorCommandId;\n readonly keymap: readonly string[];\n readonly isEnabled: () => boolean;\n readonly isActive: () => boolean;\n readonly plural: () => number;\n readonly execute: () => void;\n}\n\nexport class ProsemirrorCommand {\n public readonly id: EditorCommandId;\n public readonly keymap: readonly string[];\n public readonly execute: CommandFn;\n public readonly omniInsert?: OmniInsert;\n public readonly keepFocus: boolean;\n\n constructor(\n id: EditorCommandId,\n keymap: readonly string[],\n execute: CommandFn,\n omniInsert?: OmniInsert,\n keepFocus?: boolean,\n ) {\n this.id = id;\n this.keymap = keymap;\n this.execute = execute;\n this.omniInsert = omniInsert;\n this.keepFocus = !(keepFocus === false);\n }\n\n public isEnabled(state: EditorState): boolean {\n return this.execute(state);\n }\n\n public isActive(state: EditorState): boolean {\n return false;\n }\n\n public plural(state: EditorState): number {\n return 1;\n }\n}\n\nexport class MarkCommand extends ProsemirrorCommand {\n public readonly markType: MarkType;\n public readonly attrs: object;\n\n constructor(id: EditorCommandId, keymap: string[], markType: MarkType, attrs = {}) {\n super(id, keymap, toggleMarkType(markType, attrs) as CommandFn);\n this.markType = markType;\n this.attrs = attrs;\n }\n\n public isActive(state: EditorState) {\n return markIsActive(state, this.markType);\n }\n}\n\nexport class NodeCommand extends ProsemirrorCommand {\n public readonly nodeType: NodeType;\n public readonly attrs: object;\n\n constructor(\n id: EditorCommandId,\n keymap: string[],\n nodeType: NodeType,\n attrs: object,\n execute: CommandFn,\n omniInsert?: OmniInsert,\n ) {\n super(id, keymap, execute, omniInsert);\n this.nodeType = nodeType;\n this.attrs = attrs;\n }\n\n public isActive(state: EditorState) {\n return nodeIsActive(state, this.nodeType, this.attrs);\n }\n}\n\nexport class BlockCommand extends NodeCommand {\n constructor(\n id: EditorCommandId,\n keymap: string[],\n blockType: NodeType,\n toggleType: NodeType,\n attrs = {},\n omniInsert?: OmniInsert,\n ) {\n super(id, keymap, blockType, attrs, toggleBlockType(blockType, toggleType, attrs), omniInsert);\n }\n}\n\nexport class WrapCommand extends NodeCommand {\n constructor(id: EditorCommandId, keymap: string[], wrapType: NodeType, attrs = {}, omniInsert?: OmniInsert) {\n super(id, keymap, wrapType, attrs, toggleWrap(wrapType, attrs), omniInsert);\n }\n}\n\nexport class InsertCharacterCommand extends ProsemirrorCommand {\n constructor(id: EditorCommandId, ch: string, keymap: string[]) {\n super(id, keymap, (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // enable/disable command\n const schema = state.schema;\n if (!canInsertNode(state, schema.nodes.text)) {\n return false;\n }\n if (dispatch) {\n const tr = state.tr;\n tr.replaceSelectionWith(schema.text(ch), true).scrollIntoView();\n dispatch(tr);\n }\n\n return true;\n });\n }\n}\n\nexport type CommandFn = (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => boolean;\n\nexport function toggleMarkType(markType: MarkType, attrs?: { [key: string]: any }) {\n const defaultToggleMark = toggleMark(markType, attrs);\n\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // disallow non-code marks when the selection is contained within a code mark\n // (this is a pandoc constraint). note that we can allow them if the selection\n // contains the code mark range entirely (as in that case the code mark will\n // nest within the other mark)\n if (markType !== state.schema.marks.code) {\n if (markIsActive(state, state.schema.marks.code)) {\n const codeRange = getMarkRange(state.selection.$anchor, state.schema.marks.code);\n if (\n codeRange &&\n selectionIsWithinRange(state.selection, codeRange) &&\n !selectionHasRange(state.selection, codeRange)\n ) {\n return false;\n }\n }\n }\n\n // default implementation\n return defaultToggleMark(state, dispatch);\n };\n}\n\nexport function toggleList(listType: NodeType, itemType: NodeType, prefs: EditorUIPrefs): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const { selection } = state;\n const { $from, $to } = selection;\n const range = $from.blockRange($to);\n\n if (!range) {\n return false;\n }\n\n const parentList = findParentNode(isList)(selection);\n\n if (range.depth >= 1 && parentList && range.depth - parentList.depth <= 1) {\n if (isList(parentList.node) && listType.validContent(parentList.node.content)) {\n if (parentList.node.type !== listType) {\n if (dispatch) {\n const tr: Transaction = state.tr;\n const attrs: { [key: string]: any } = {};\n if (parentList.node.attrs.tight) {\n attrs.tight = true;\n }\n tr.setNodeMarkup(parentList.pos, listType, attrs);\n dispatch(tr);\n }\n return true;\n } else {\n return liftListItem(itemType)(state, dispatch);\n }\n }\n }\n\n // if we are in a heading then this isn't valid\n if (findParentNodeOfType(state.schema.nodes.heading)(state.selection)) {\n return false;\n }\n\n // reflect tight preference\n const tight = prefs.listSpacing() === kListSpacingTight;\n\n return wrapInList(listType, { tight })(state, dispatch);\n };\n}\n\nexport function toggleBlockType(type: NodeType, toggletype: NodeType, attrs = {}): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!dispatch) {\n return type === toggletype || setBlockType(type, { ...attrs })(state, dispatch);\n }\n\n // if the type has pandoc attrs then see if we can transfer from the existing node\n let pandocAttr: any = {};\n if (pandocAttrInSpec(type.spec)) {\n const parentNode = state.selection.$anchor.node();\n if (parentNode && pandocAttrAvailable(parentNode.attrs)) {\n pandocAttr = pandocAttrFrom(parentNode.attrs);\n }\n }\n\n return setBlockType(type, { ...attrs, ...pandocAttr })(state, dispatch);\n };\n}\n\nexport function toggleWrap(type: NodeType, attrs?: { [key: string]: any }): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const isActive = nodeIsActive(state, type, attrs);\n\n if (isActive) {\n return lift(state, dispatch);\n }\n\n return wrapIn(type, attrs)(state, dispatch);\n };\n}\n\nexport function insertNode(nodeType: NodeType, attrs = {}, selectAfter = false): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!canInsertNode(state, nodeType)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n tr.replaceSelectionWith(nodeType.create(attrs));\n if (selectAfter) {\n if (requiresTrailingP(tr.selection)) {\n insertTrailingP(tr);\n setTextSelection(tr.selection.to + 1, 1)(tr);\n }\n }\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function exitNode(\n nodeType: NodeType,\n depth: number,\n allowKey: boolean,\n filter = (_node: ProsemirrorNode) => true,\n) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // must be within the node type and pass the filter\n const { $head, $anchor } = state.selection;\n if ($head.parent.type !== nodeType || !filter($head.parent)) {\n return false;\n }\n\n // must be empty and entirely contained by the node\n if (!$head.sameParent($anchor) || !state.selection.empty) {\n return !allowKey;\n }\n\n // must be at the end of the node\n const node = findParentNodeOfType(nodeType)(state.selection)!;\n const endCaptionPos = node.pos + node.node.nodeSize - 1;\n if (state.selection.from !== endCaptionPos) {\n return !allowKey;\n }\n\n // insert must be valid in container above\n const above = $head.node(depth);\n const after = $head.indexAfter(depth);\n const type = above.contentMatchAt(after).defaultType!;\n if (!above.canReplaceWith(after, after, type)) {\n return !allowKey;\n }\n\n // perform insert\n if (dispatch) {\n const tr = state.tr;\n const pos = node.pos + node.node.nodeSize + (Math.abs(depth) - 1);\n tr.insert(pos, type.create());\n setTextSelection(pos, 1)(tr);\n dispatch(tr.scrollIntoView());\n }\n\n return true;\n };\n}\n","/*\n * ui.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { SkinTone } from './emoji';\nimport { XRef } from './xref';\n\nimport { EditorUIImages } from './ui-images';\nimport { EditorDialogs } from './ui-dialogs';\nimport { EditorUISpelling } from './spelling';\n\nexport interface EditorUI {\n dialogs: EditorDialogs;\n display: EditorDisplay;\n math: EditorUIMath;\n context: EditorUIContext;\n prefs: EditorUIPrefs;\n images: EditorUIImages;\n chunks: EditorUIChunks;\n spelling: EditorUISpelling;\n}\n\n/**\n * Callbacks supplied to the host to interact with a code chunk and its output.\n */\nexport interface EditorUIChunkCallbacks {\n getPos: () => number;\n scrollIntoView: (ele: HTMLElement) => void;\n scrollCursorIntoView: () => void;\n getTextContent: () => string;\n}\n\nexport interface EditorUIChunks {\n // create a code chunk editor\n createChunkEditor: (type: string, element: Element, index: number, classes: string[], callbacks: EditorUIChunkCallbacks) => ChunkEditor;\n\n // expand or collapse all chunk editors\n setChunksExpanded: (expanded: boolean) => void;\n}\n\nexport interface ChunkEditor {\n editor: unknown;\n setMode(mode: string): void;\n executeSelection(): void;\n element: HTMLElement;\n destroy(): void;\n setExpanded(expanded: boolean): void;\n getExpanded(): boolean;\n}\n\nexport interface EditorUIContext {\n // check if we are the active tab\n isActiveTab: () => boolean;\n\n // get the path to the current document\n getDocumentPath: () => string | null;\n\n // ensure the edited document is saved on the server before proceeding\n // (note this just means that the server has a copy of it for e.g.\n // indexing xrefs, from the user's standpoint the doc is still dirty)\n withSavedDocument: () => Promise;\n\n // get the default directory for resources (e.g. where relative links point to)\n getDefaultResourceDir: () => string;\n\n // map from a filesystem path to a resource reference\n mapPathToResource: (path: string) => string;\n\n // map from a resource reference (e.g. images/foo.png) to a URL we can use in the document\n mapResourceToURL: (path: string) => string;\n\n // watch a resource for changes (returns an unsubscribe function)\n watchResource: (path: string, notify: VoidFunction) => VoidFunction;\n\n // translate a string\n translateText: (text: string) => string;\n\n // are there dropped uris available?\n droppedUris: () => string[] | null;\n\n // uris from the clipboard\n clipboardUris: () => Promise;\n\n // image from the clipboard (returned as file path)\n clipboardImage: () => Promise;\n\n // resolve image uris (make relative, copy to doc local 'images' dir, etc)\n resolveImageUris: (uris: string[]) => Promise;\n\n // are we running in windows desktop mode?\n isWindowsDesktop: () => boolean;\n}\n\nexport interface EditorMenuItem {\n text?: string;\n exec?: VoidFunction;\n command?: string;\n separator?: boolean;\n subMenu?: {\n items: EditorMenuItem[];\n };\n}\n\nexport interface EditorUIMath {\n typeset?: (el: HTMLElement, text: string, priority: boolean) => Promise;\n}\n\nexport interface EditorDisplay {\n openURL: (url: string) => void;\n navigateToXRef: (file: string, xref: XRef) => void;\n showContextMenu?: (items: EditorMenuItem[], clientX: number, clientY: number) => Promise;\n}\n\nexport const kListSpacingTight = 'tight';\nexport const kListSpacingSpaced = 'spaced';\nexport type ListSpacing = 'tight' | 'spaced';\n\nexport interface EditorUIPrefs {\n darkMode: () => boolean;\n listSpacing: () => ListSpacing;\n equationPreview: () => boolean;\n packageListingEnabled: () => boolean;\n tabKeyMoveFocus: () => boolean;\n emojiSkinTone: () => SkinTone;\n setEmojiSkinTone: (skinTone: SkinTone) => void;\n zoteroUseBetterBibtex: () => boolean;\n setBibliographyDefaultType: (type: string) => void;\n bibliographyDefaultType: () => string;\n citationDefaultInText: () => boolean;\n setCitationDefaultInText: (value: boolean) => void;\n}\n","/*\n * trailing_p.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction, Selection } from 'prosemirror-state';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Transform } from 'prosemirror-transform';\nimport { ContentNodeWithPos } from 'prosemirror-utils';\n\nimport { editingRootNode } from '../api/node';\nimport { trTransform } from '../api/transaction';\nimport { isParagraphNode } from '../api/paragraph';\n\n\nexport function insertTrailingP(tr: Transaction) {\n const editingNode = editingRootNode(tr.selection);\n if (editingNode) {\n trTransform(tr, insertTrailingPTransform(editingNode));\n }\n}\n\n\nexport function requiresTrailingP(selection: Selection) {\n const editingRoot = editingRootNode(selection);\n if (editingRoot) {\n return !isParagraphNode(editingRoot.node.lastChild) || isDisplayMathNode(editingRoot.node.lastChild);\n } else {\n return false;\n }\n}\n\nfunction insertTrailingPTransform(editingNode: ContentNodeWithPos) {\n return (tr: Transform) => {\n const schema = editingNode.node.type.schema;\n tr.insert(editingNode.pos + editingNode.node.nodeSize - 1, schema.nodes.paragraph.create());\n };\n}\n\nfunction isDisplayMathNode(node: ProsemirrorNode | null | undefined) {\n if (node && node.firstChild) {\n return node.childCount === 1 && node.type.schema.marks.math?.isInSet(node.firstChild.marks);\n } else {\n return false;\n }\n}\n","/*\n * paragraph.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { canInsertNode } from './node';\n\nexport function insertParagraph(state: EditorState, dispatch?: (tr: Transaction) => void) {\n const schema = state.schema;\n\n if (!canInsertNode(state, schema.nodes.paragraph)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n tr.replaceSelectionWith(schema.nodes.paragraph.create());\n setTextSelection(state.selection.from + 1, 1)(tr);\n dispatch(tr);\n }\n\n return true;\n}\n\nexport function isParagraphNode(node: ProsemirrorNode | null | undefined) {\n if (node) {\n const schema = node.type.schema;\n return node.type === schema.nodes.paragraph;\n } else {\n return false;\n }\n}\n","/*\n * util.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n// tslint:disable:no-bitwise\nexport function uuidv4() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {\n const r = (Math.random() * 16) | 0;\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n","import { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\nimport { NodeWithPos } from 'prosemirror-utils';\n\nimport { bodyElement } from './dom';\nimport {\n kYamlMetadataOutlineItemType,\n kHeadingOutlineItemType,\n kRmdchunkOutlineItemType,\n EditingOutlineLocation,\n getDocumentOutline,\n EditingOutlineLocationItem,\n} from './outline';\nimport { restoreSelection } from './selection';\nimport { scrollToPos } from './scroll';\n\nexport interface EditingLocation {\n pos: number;\n scrollTop: number;\n}\n\nexport function getEditingLocation(view: EditorView): EditingLocation {\n const pos = view.state.selection.from;\n const bodyEl = bodyElement(view);\n const scrollTop = bodyEl.scrollTop;\n return { pos, scrollTop };\n}\n\nexport function setEditingLocation(\n view: EditorView,\n outlineLocation?: EditingOutlineLocation,\n previousLocation?: EditingLocation,\n) {\n // get the current document outline\n const documentOutline = getDocumentOutline(view.state);\n\n // if all of the types and levels match up to the active outline item,\n // then we have a candidate match\n let docOutlineLocationNode: NodeWithPos | undefined;\n\n if (outlineLocation) {\n for (let i = 0; i < outlineLocation.items.length && i < documentOutline.length; i++) {\n // get the item and it's peer\n const item = outlineLocation.items[i];\n const docOutlineNode = documentOutline[i];\n\n // if they don't match then bail (can't resolve different interpretations of the outline)\n if (!outlineItemSimillarToNode(item, docOutlineNode.node)) {\n break;\n }\n\n // if this is the active item\n if (item.active) {\n // see if the previous location is actually a better target (because it's between this location and\n // the next outline node). in that case we don't set the target node and we leave the restorePos\n // at the previous location\n if (!locationIsBetweenDocOutlineNodes(docOutlineNode, documentOutline[i + 1], previousLocation)) {\n // set the target\n docOutlineLocationNode = docOutlineNode;\n\n // if this is an rmd chunk then advance to the second line\n if (docOutlineNode.node.type === view.state.schema.nodes.rmd_chunk) {\n const chunkText = docOutlineNode.node.textContent;\n const newlineIdx = chunkText.indexOf('\\n');\n if (newlineIdx !== -1) {\n docOutlineLocationNode.pos += newlineIdx + 2;\n }\n }\n }\n\n break;\n }\n }\n }\n\n // do the restore\n if (docOutlineLocationNode) {\n restoreSelection(view, docOutlineLocationNode.pos);\n scrollToPos(view, docOutlineLocationNode.pos);\n } else if (previousLocation) {\n restoreSelection(view, previousLocation.pos);\n bodyElement(view).scrollTop = previousLocation.scrollTop;\n }\n}\n\nfunction outlineItemSimillarToNode(outlineItem: EditingOutlineLocationItem, docOutlneNode: ProsemirrorNode) {\n const schema = docOutlneNode.type.schema;\n if (outlineItem.type === kYamlMetadataOutlineItemType) {\n return docOutlneNode.type === schema.nodes.yaml_metadata;\n } else if (outlineItem.type === kRmdchunkOutlineItemType) {\n return docOutlneNode.type === schema.nodes.rmd_chunk;\n } else if (outlineItem.type === kHeadingOutlineItemType) {\n return docOutlneNode.type === schema.nodes.heading && docOutlneNode.attrs.level === outlineItem.level;\n } else {\n return false;\n }\n}\n\nfunction locationIsBetweenDocOutlineNodes(nodeA: NodeWithPos, nodeB?: NodeWithPos, location?: EditingLocation) {\n // bail if we don't have all the arguments\n if (!nodeB || !location) {\n return false;\n }\n return nodeA.pos < location.pos && nodeB.pos > location.pos;\n}\n","/*\n * dom.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nexport function bodyElement(view: EditorView): HTMLElement {\n return view.dom.firstChild as HTMLElement;\n}\n\nexport function isElementVisible(el: HTMLElement) {\n return !!(el.offsetWidth || el.offsetHeight || el.getClientRects().length);\n}\n\nexport function elementInnerDimensions(el: HTMLElement) {\n const cs = getComputedStyle(el);\n\n const asNumber = (x: string | null) => (x ? parseFloat(x) : 0);\n const paddingX = asNumber(cs.paddingLeft) + asNumber(cs.paddingRight);\n const paddingY = asNumber(cs.paddingTop) + asNumber(cs.paddingBottom);\n const borderX = asNumber(cs.borderLeftWidth) + asNumber(cs.borderRightWidth);\n const borderY = asNumber(cs.borderTopWidth) + asNumber(cs.borderBottomWidth);\n\n return {\n width: el.offsetWidth - paddingX - borderX,\n height: el.offsetHeight - paddingY - borderY,\n };\n}\n\nexport function onElementRemoved(container: Node, el: HTMLElement, onRemoved: VoidFunction) {\n const observer = new MutationObserver(mutationsList => {\n mutationsList.forEach(mutation => {\n mutation.removedNodes.forEach(node => {\n if (node === el) {\n onRemoved();\n }\n });\n });\n });\n observer.observe(container, { attributes: false, childList: true, subtree: true });\n}\n","/*\n * scroll.ts\n *\n * Copyright (C) 2019-20 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';\n\nimport zenscroll from 'zenscroll';\n\nimport { editingRootNodeClosestToPos, editingRootNode } from './node';\n\nexport function scrollIntoView(\n view: EditorView,\n pos: number,\n center = true,\n duration?: number,\n offset?: number,\n onDone?: VoidFunction,\n) {\n // resolve position and determine container\n const $pos = view.state.doc.resolve(pos);\n const container = editingRootNodeClosestToPos($pos);\n\n // if we have a container then do the scroll\n if (container) {\n const schema = view.state.schema;\n const containerEl = view.nodeDOM(container.pos) as HTMLElement;\n const parentList = findParentNodeOfTypeClosestToPos($pos, [schema.nodes.ordered_list, schema.nodes.bullet_list]);\n const parentDiv = schema.nodes.div ? findParentNodeOfTypeClosestToPos($pos, schema.nodes.div) : undefined;\n const resultPos = parentList || parentDiv ? $pos.before(2) : $pos.before();\n const resultNode = view.nodeDOM(resultPos) as HTMLElement;\n if (container && resultNode) {\n const scroller = zenscroll.createScroller(containerEl, duration, offset);\n if (center) {\n scroller.center(resultNode, duration, offset, onDone);\n } else {\n scroller.intoView(resultNode, duration, onDone);\n }\n }\n }\n}\n\nexport function scrollToPos(view: EditorView, pos: number, duration?: number, offset?: number, onDone?: VoidFunction) {\n const node = view.nodeDOM(pos);\n if (node instanceof HTMLElement) {\n const editingRoot = editingRootNode(view.state.selection)!;\n const container = view.nodeDOM(editingRoot.pos) as HTMLElement;\n const scroller = zenscroll.createScroller(container, duration, offset);\n if (duration) {\n scroller.to(node, duration, onDone);\n } else {\n scroller.to(node, 0, onDone);\n }\n }\n}\n","/*\n * navigation.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nimport { setTextSelection, Predicate, findChildren, findDomRefAtPos } from 'prosemirror-utils';\n\nimport zenscroll from 'zenscroll';\n\nimport { editingRootNode } from './node';\nimport { kNavigationTransaction } from './transaction';\nimport { xrefPosition } from './xref';\nimport { EditorFormat, kQuartoDocType } from './format';\n\nexport interface EditorNavigation {\n navigate: (type: NavigationType, location: string, animate?: boolean) => void;\n}\n\nexport enum NavigationType {\n Pos = 'pos',\n Id = 'id',\n Href = 'href',\n Heading = 'heading',\n XRef = 'xref',\n}\n\nexport interface Navigation {\n pos: number;\n prevPos: number;\n}\n\nexport function navigateTo(\n view: EditorView,\n format: EditorFormat,\n type: NavigationType,\n location: string,\n animate = true,\n): Navigation | null {\n switch (type) {\n case NavigationType.Pos:\n return navigateToPos(view, parseInt(location, 10), animate);\n case NavigationType.Id:\n return navigateToId(view, location, animate);\n case NavigationType.Href:\n return navigateToHref(view, location, animate);\n case NavigationType.Heading:\n return navigateToHeading(view, location, animate);\n case NavigationType.XRef:\n return navigateToXRef(view, format, location, animate);\n default:\n return null;\n }\n}\n\nexport function navigateToId(view: EditorView, id: string, animate = true): Navigation | null {\n return navigate(view, node => id === node.attrs.navigation_id, animate);\n}\n\nexport function navigateToHref(view: EditorView, href: string, animate = true): Navigation | null {\n return navigate(view, node => node.attrs.id === href, animate);\n}\n\nexport function navigateToHeading(view: EditorView, heading: string, animate = true): Navigation | null {\n return navigate(\n view,\n node => {\n return (\n node.type === view.state.schema.nodes.heading &&\n node.textContent.localeCompare(heading, undefined, { sensitivity: 'accent' }) === 0\n );\n },\n animate,\n );\n}\n\nexport function navigateToXRef(view: EditorView, editorFormat: EditorFormat, xref: string, animate = true): Navigation | null {\n const xrefType = editorFormat.docTypes.includes(kQuartoDocType) ? \"quarto\" : \"bookdown\";\n const xrefPos = xrefPosition(view.state.doc, xref, xrefType);\n if (xrefPos !== -1) {\n return navigateToPos(view, xrefPos, animate);\n } else {\n return null;\n }\n}\n\nexport function navigateToPos(view: EditorView, pos: number, animate = true): Navigation | null {\n // get previous position\n const prevPos = view.state.selection.from;\n\n // need to target at least the body\n pos = Math.max(pos, 2);\n\n // set selection\n const tr = view.state.tr;\n setTextSelection(pos)(tr);\n tr.setMeta(kNavigationTransaction, true);\n view.dispatch(tr);\n\n // find a targetable dom node at the position\n const node = findDomRefAtPos(pos, view.domAtPos.bind(view));\n if (node instanceof HTMLElement) {\n // auto-scroll to position (delay so we can grab the focus, as autoscrolling\n // doesn't seem to work unless you have the focus)\n setTimeout(() => {\n view.focus();\n const editingRoot = editingRootNode(view.state.selection)!;\n const container = view.nodeDOM(editingRoot.pos) as HTMLElement;\n const scroller = zenscroll.createScroller(container, 700, 20);\n // some nodes' DOM elements are grandchildren rather than direct children\n // of the scroll container; move up a level if this is the case\n let dest = node;\n if (node.parentElement &&\n node.parentElement.parentElement &&\n node.parentElement.parentElement.parentElement === container) {\n dest = node.parentElement;\n }\n if (animate) {\n scroller.to(dest);\n } else {\n scroller.to(dest, 0);\n }\n }, 200);\n\n return { pos, prevPos };\n } else {\n return null;\n }\n}\n\nfunction navigate(view: EditorView, predicate: Predicate, animate = true): Navigation | null {\n const result = findChildren(view.state.doc, predicate);\n if (result.length) {\n // pos points immediately before the node so add 1 to it\n const pos = result[0].pos + 1;\n return navigateToPos(view, pos, animate);\n } else {\n return null;\n }\n}\n","/*\n * xref.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, MarkType } from 'prosemirror-model';\n\nimport { findChildrenByMark } from 'prosemirror-utils';\n\nimport { pandocAutoIdentifier } from './pandoc_id';\nimport { rmdChunkEngineAndLabel } from './rmd';\nimport { kTexFormat } from './raw';\nimport { findChildrenByType } from 'prosemirror-utils';\n\nexport interface XRefServer {\n indexForFile: (file: string) => Promise;\n xrefForId: (file: string, id: string) => Promise;\n quartoIndexForFile: (file: string) => Promise;\n quartoXrefForId: (file: string, id: string) => Promise;\n}\n\nexport interface XRefs {\n baseDir: string;\n refs: XRef[];\n}\n\nexport interface XRef {\n file: string;\n type: string;\n id: string;\n suffix: string;\n title?: string;\n}\n\nexport type XRefType = \"quarto\" | \"bookdown\";\n\nexport function xrefKey(xref: XRef, xrefType?: XRefType) {\n if (xrefType === \"quarto\") {\n // Quarto keys are merely type-id\n if (xref.suffix) {\n return `${xref.type}-${xref.id}${xref.suffix}`;\n } else {\n return `${xref.type}-${xref.id}`;\n }\n } else {\n // headings don't include their type in the key\n const key = /^h\\d$/.test(xref.type)\n ? xref.id\n : // no colon if there is no type\n xref.type.length > 0\n ? `${xref.type}:${xref.id}`\n : xref.id;\n\n // return key with suffix\n return key + xref.suffix;\n }\n}\n\nexport function parseQuartoXRef(xref: string) {\n const dashPos = xref.indexOf('-');\n if (dashPos !== -1) {\n return {\n type: xref.substring(0, dashPos),\n id: xref.substring(dashPos + 1),\n };\n } else {\n return null;\n }\n}\n\nexport function xrefPosition(doc: ProsemirrorNode, xref: string, xrefType: XRefType): number {\n\n if (xrefType === 'quarto') {\n return xrefPositionLocate(doc, xref, quartoXrefPositionLocators);\n } else {\n return xrefPositionLocate(doc, xref, bookdownXrefPositionLocators);\n }\n}\n\nfunction xrefPositionLocate(doc: ProsemirrorNode, xref: string, locators: Record) {\n // -1 if not found\n let xrefPos = -1;\n\n // get type and id\n const xrefInfo = parseBookdownXRef(xref);\n if (xrefInfo) {\n const { type, id } = xrefInfo;\n const locator = locators[type];\n if (locator) {\n // if this locator finds by mark then look at doc for marks\n if (locator.markType) {\n const schema = doc.type.schema;\n const markType = schema.marks[locator.markType];\n const markedNodes = findChildrenByMark(doc, markType, true);\n markedNodes.forEach(markedNode => {\n // bail if we already found it\n if (xrefPos !== -1) {\n return false;\n }\n // see if we can locate the xref\n if (locator.hasXRef(markedNode.node, id, markType)) {\n xrefPos = markedNode.pos;\n }\n });\n }\n if (xrefPos === -1 && locator.nodeTypes) {\n // otherwise recursively examine nodes to find the xref\n doc.descendants((node, pos) => {\n // bail if we already found it\n if (xrefPos !== -1) {\n return false;\n }\n // see if we can locate the xref\n if (locator.nodeTypes!.includes(node.type.name) && locator.hasXRef(node, id)) {\n xrefPos = pos;\n return false;\n }\n });\n }\n }\n }\n\n // return the position\n return xrefPos;\n}\n\nfunction parseBookdownXRef(xref: string) {\n const colonPos = xref.indexOf(':');\n if (colonPos !== -1) {\n return {\n type: xref.substring(0, colonPos),\n id: xref.substring(colonPos + 1),\n };\n } else {\n return null;\n }\n}\n\ninterface XRefPositionLocator {\n markType?: string;\n nodeTypes?: string[];\n hasXRef: (node: ProsemirrorNode, id: string, markType?: MarkType) => boolean;\n}\n\nconst quartoXrefPositionLocators: { [key: string]: XRefPositionLocator } = {\n sec: quartoHeadingLocator(),\n fig: quartoFigureLocator(),\n tbl: quartoTableLocator(),\n eq: quartoMathLocator(),\n lst: quartoListingLocator(),\n thm: quartoDivLocator(\"thm\"),\n lem: quartoDivLocator(\"lem\"),\n cor: quartoDivLocator(\"cor\"),\n prp: quartoDivLocator(\"prp\"),\n cnj: quartoDivLocator(\"cnj\"),\n def: quartoDivLocator(\"def\"),\n exm: quartoDivLocator(\"exm\"),\n exr: quartoDivLocator(\"exr\"),\n};\n\n\nfunction quartoMathLocator() {\n return {\n nodeTypes: ['paragraph'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n const mathType = node.type.schema.marks.math;\n let prevNodeMath = false;\n for (let i = 0; i < node.childCount; i++) {\n const childNode = node.child(i);\n if (prevNodeMath) {\n const text = childNode.textContent;\n if (!!text.match(/^\\s*\\{\\#eq\\-.*\\}/)) {\n return true;\n }\n }\n prevNodeMath = !!childNode.marks.find(\n mark => mark.type === mathType && mark.attrs.type === \"DisplayMath\"\n );\n }\n return false;\n },\n };\n}\n\nfunction quartoFigureLocator() {\n return {\n nodeTypes: ['figure'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n return node.attrs.id === `fig-${id}`;\n },\n };\n}\n\nfunction quartoHeadingLocator() {\n return {\n nodeTypes: ['heading'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n return node.attrs.id === `sec-${id}`;\n },\n };\n}\n\nfunction quartoTableLocator() {\n return {\n nodeTypes: ['table_container'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n // Look for a table which has a table caption that contains the id\n const captions = findChildrenByType(node, node.type.schema.nodes.table_caption);\n if (captions.length) {\n return !!captions[0].node.textContent.match(/\\{\\#tbl\\-.*\\}/);\n }\n return false;\n },\n };\n}\n\nfunction quartoDivLocator(type: string) {\n return {\n nodeTypes: ['div'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n return node.attrs.id === `${type}-${id}`;\n },\n };\n}\n\nfunction quartoListingLocator() {\n return {\n nodeTypes: ['code_block'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n const attrs = node.attrs;\n return attrs.id === `lst-${id}`;\n },\n };\n}\n\nconst bookdownXrefPositionLocators: { [key: string]: XRefPositionLocator } = {\n h1: headingLocator(),\n h2: headingLocator(),\n h3: headingLocator(),\n h4: headingLocator(),\n h5: headingLocator(),\n h6: headingLocator(),\n fig: {\n nodeTypes: ['rmd_chunk'],\n hasXRef: (node: ProsemirrorNode, id: string) => rmdChunkHasXRef(node, 'r', id, /^\\{.*[ ,].*fig\\.cap\\s*=.*\\}\\s*\\n/m),\n },\n tab: {\n nodeTypes: ['rmd_chunk', 'table_container'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n if (node.type.name === 'rmd_chunk') {\n return rmdChunkHasXRef(node, 'r', id, /kable\\s*\\([\\s\\S]*caption/);\n } else if (node.type.name === 'table_container') {\n const caption = node.child(1);\n const match = caption.textContent.match(/^\\s*\\(#tab\\:([a-zA-Z0-9\\/-]+)\\)\\s*(.*)$/);\n return !!match && match[1].localeCompare(id, undefined, { sensitivity: 'accent' }) === 0;\n } else {\n return false;\n }\n },\n },\n eq: {\n nodeTypes: ['raw_block'],\n markType: 'math',\n hasXRef: (node: ProsemirrorNode, id: string, markType?: MarkType) => {\n // if it's not a mark then ensure it is tex format before proceeding\n if (!markType && (node.attrs.format !== kTexFormat)) {\n return false;\n }\n const match = node.textContent.match(/^.*\\(\\\\#eq:([a-zA-Z0-9\\/-]+)\\).*$/m);\n return !!match && match[1].localeCompare(id, undefined, { sensitivity: 'accent' }) === 0;\n },\n },\n thm: thereomLocator('theorem'),\n lem: thereomLocator('lemma'),\n cor: thereomLocator('corollary'),\n prp: thereomLocator('proposition'),\n cnj: thereomLocator('conjecture'),\n def: thereomLocator('definition'),\n exr: thereomLocator('exercise'),\n};\n\nfunction rmdChunkHasXRef(node: ProsemirrorNode, engine: string, label: string, pattern?: RegExp) {\n const chunk = rmdChunkEngineAndLabel(node.textContent);\n const match = node.textContent.match(/^\\{([a-zA-Z0-9_]+)[\\s,]+([a-zA-Z0-9/-]+)/);\n if (chunk) {\n return (\n chunk.engine.localeCompare(engine, undefined, { sensitivity: 'accent' }) === 0 &&\n chunk.label === label &&\n (!pattern || !!node.textContent.match(pattern))\n );\n } else {\n return false;\n }\n}\n\nfunction headingLocator() {\n return {\n nodeTypes: ['heading'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n // note we use default pandoc auto id semantics here no matter what the documnet\n // happens to use b/c our xref indexing code also does this (so only ids generated\n // using the 'standard' rules will be in the index)\n return node.attrs.id === id || pandocAutoIdentifier(node.textContent, false) === id;\n },\n };\n}\n\nfunction thereomLocator(engine: string) {\n return {\n nodeTypes: ['rmd_chunk'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n // look for conventional engine/label\n if (rmdChunkHasXRef(node, engine, id)) {\n return true;\n } else {\n // look for explicit label= syntax\n const match = node.textContent.match(/^\\{([a-zA-Z0-9_]+)[\\s,]+label\\s*=\\s*['\"]([^\"']+)['\"].*\\}/);\n return !!match && match[1].localeCompare(engine, undefined, { sensitivity: 'accent' }) === 0 && match[2] === id;\n }\n },\n };\n}\n","/*\n * pandoc_id.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n// emulate pandoc behavior (https://pandoc.org/MANUAL.html#headings-and-sections)\nexport function pandocAutoIdentifier(text: string, asciify: boolean) {\n if (asciify) {\n text = pandocAsciify(text);\n }\n\n return (\n text\n // Remove all non-alphanumeric characters, except underscores, hyphens, and periods.\n .replace(/[!\"#$%&')*+,\\/:;<=>?@\\[\\\\\\]^`{|}~]/g, '') // filterPunct\n\n // Replace all spaces with hyphens\n .replace(/\\s/g, '-')\n\n // Convert all alphabetic characters to lowercase\n .toLowerCase()\n\n // Remove everything up to the first letter\n .replace(/^[^A-Za-z]+/, '')\n );\n}\n\n// emulate github behavior (note that unemoji should be done prior to calling this)\n// https://pandoc.org/MANUAL.html#extension-gfm_auto_identifiers\n// https://github.com/jgm/pandoc/blob/83880b0dbc318703babfbb6905b1046fa48f1216/src/Text/Pandoc/Shared.hs#L539\nexport function gfmAutoIdentifier(text: string, asciify: boolean) {\n if (asciify) {\n text = pandocAsciify(text);\n }\n\n return text\n .replace(/[!\"#$%&')*+,\\.\\/:;<=>?@\\[\\\\\\]^`{|}~]/g, '') // filterPunct (all but underscore and hyphen)\n .replace(/\\s/g, '-') // spaceToDash\n .toLowerCase(); // toLower\n}\n\n// https://github.com/jgm/pandoc/blob/a5fa55969f1b4afc0ca3e38be50b69c65d43a460/src/Text/Pandoc/Asciify.hs\nexport function pandocAsciify(text: string) {\n const chars: number[] = [];\n const len = text.length;\n let newch;\n for (let i = 0; i < len; i++) {\n newch = '';\n const ch = text.charCodeAt(i);\n switch (ch) {\n case 192:\n case 193:\n case 194:\n case 195:\n case 196:\n case 197:\n case 256:\n case 258:\n case 260:\n case 461:\n case 512:\n case 514:\n case 550:\n case 7680:\n case 7840:\n case 7842:\n newch = 'A';\n break;\n\n case 7682:\n case 7684:\n case 7686:\n newch = 'B';\n break;\n\n case 199:\n case 262:\n case 264:\n case 266:\n case 268:\n newch = 'C';\n break;\n\n case 270:\n case 7690:\n case 7692:\n case 7694:\n case 7696:\n case 7698:\n newch = 'D';\n break;\n\n case 200:\n case 201:\n case 203:\n case 274:\n case 276:\n case 278:\n case 280:\n case 282:\n case 516:\n case 518:\n case 552:\n case 7704:\n case 7706:\n case 7864:\n case 7866:\n case 7868:\n newch = 'E';\n break;\n\n case 7710:\n newch = 'F';\n break;\n\n case 284:\n case 286:\n case 288:\n case 290:\n case 486:\n case 500:\n case 7712:\n newch = 'G';\n break;\n\n case 292:\n case 542:\n case 7714:\n case 7716:\n case 7718:\n case 7720:\n case 7722:\n newch = 'H';\n break;\n\n case 204:\n case 205:\n case 206:\n case 207:\n case 296:\n case 298:\n case 300:\n case 302:\n case 304:\n case 463:\n case 520:\n case 522:\n case 7724:\n case 7880:\n case 7882:\n newch = 'I';\n break;\n\n case 308:\n newch = 'J';\n break;\n\n case 310:\n case 488:\n case 7728:\n case 7730:\n case 7732:\n case 8490:\n newch = 'K';\n break;\n\n case 313:\n case 315:\n case 317:\n case 7734:\n case 7738:\n case 7740:\n newch = 'L';\n break;\n\n case 7742:\n case 7744:\n case 7746:\n newch = 'M';\n break;\n\n case 209:\n case 323:\n case 325:\n case 327:\n case 504:\n case 7748:\n case 7750:\n case 7752:\n case 7754:\n newch = 'N';\n break;\n\n case 210:\n case 211:\n case 212:\n case 213:\n case 214:\n case 332:\n case 334:\n case 336:\n case 416:\n case 465:\n case 490:\n case 524:\n case 526:\n case 558:\n case 7884:\n case 7886:\n newch = 'O';\n break;\n\n case 7764:\n case 7766:\n newch = 'P';\n break;\n\n case 340:\n case 342:\n case 344:\n case 528:\n case 530:\n case 7768:\n case 7770:\n case 7774:\n newch = 'R';\n break;\n\n case 346:\n case 348:\n case 350:\n case 352:\n case 536:\n case 7776:\n case 7778:\n newch = 'S';\n break;\n\n case 354:\n case 356:\n case 538:\n case 7786:\n case 7788:\n case 7790:\n case 7792:\n newch = 'T';\n break;\n\n case 217:\n case 218:\n case 219:\n case 220:\n case 360:\n case 362:\n case 364:\n case 366:\n case 368:\n case 370:\n case 431:\n case 467:\n case 532:\n case 534:\n case 7794:\n case 7796:\n case 7798:\n case 7908:\n case 7910:\n newch = 'U';\n break;\n\n case 7804:\n case 7806:\n newch = 'V';\n break;\n\n case 372:\n case 7808:\n case 7810:\n case 7812:\n case 7814:\n case 7816:\n newch = 'W';\n break;\n\n case 7818:\n case 7820:\n newch = 'X';\n break;\n\n case 221:\n case 374:\n case 376:\n case 562:\n case 7822:\n case 7922:\n case 7924:\n case 7926:\n case 7928:\n newch = 'Y';\n break;\n\n case 377:\n case 379:\n case 381:\n case 7824:\n case 7826:\n case 7828:\n newch = 'Z';\n break;\n\n case 224:\n case 225:\n case 226:\n case 227:\n case 228:\n case 229:\n case 257:\n case 259:\n case 261:\n case 462:\n case 513:\n case 515:\n case 551:\n case 553:\n case 7681:\n case 7841:\n case 7843:\n newch = 'a';\n break;\n\n case 7683:\n case 7685:\n case 7687:\n newch = 'b';\n break;\n\n case 231:\n case 263:\n case 265:\n case 267:\n case 269:\n newch = 'c';\n break;\n\n case 271:\n case 7691:\n case 7693:\n case 7695:\n case 7697:\n case 7699:\n newch = 'd';\n break;\n\n case 232:\n case 233:\n case 234:\n case 235:\n case 275:\n case 277:\n case 279:\n case 281:\n case 283:\n case 517:\n case 519:\n case 7705:\n case 7707:\n case 7865:\n case 7867:\n case 7869:\n newch = 'e';\n break;\n\n case 7711:\n newch = 'f';\n break;\n\n case 285:\n case 287:\n case 289:\n case 291:\n case 487:\n case 501:\n case 7713:\n newch = 'g';\n break;\n\n case 293:\n case 543:\n case 7715:\n case 7717:\n case 7719:\n case 7721:\n case 7723:\n case 7830:\n newch = 'h';\n break;\n\n case 236:\n case 237:\n case 238:\n case 239:\n case 297:\n case 299:\n case 301:\n case 303:\n case 305:\n case 464:\n case 521:\n case 523:\n case 7725:\n case 7881:\n case 7883:\n newch = 'i';\n break;\n\n case 309:\n case 496:\n newch = 'j';\n break;\n\n case 311:\n case 489:\n case 7729:\n case 7731:\n case 7733:\n newch = 'k';\n break;\n\n case 314:\n case 316:\n case 318:\n case 7735:\n case 7739:\n case 7741:\n newch = 'l';\n break;\n\n case 7743:\n case 7745:\n case 7747:\n newch = 'm';\n break;\n\n case 241:\n case 324:\n case 326:\n case 328:\n case 505:\n case 7749:\n case 7751:\n case 7753:\n case 7755:\n newch = 'n';\n break;\n\n case 242:\n case 243:\n case 244:\n case 245:\n case 246:\n case 333:\n case 335:\n case 337:\n case 417:\n case 432:\n case 466:\n case 491:\n case 525:\n case 527:\n case 559:\n case 7885:\n case 7887:\n newch = 'o';\n break;\n\n case 7765:\n case 7767:\n newch = 'p';\n break;\n\n case 341:\n case 343:\n case 345:\n case 529:\n case 531:\n case 7769:\n case 7771:\n case 7775:\n newch = 'r';\n break;\n\n case 347:\n case 349:\n case 351:\n case 353:\n case 537:\n case 7777:\n case 7779:\n newch = 's';\n break;\n\n case 355:\n case 357:\n case 539:\n case 7787:\n case 7789:\n case 7791:\n case 7793:\n case 7831:\n newch = 't';\n break;\n\n case 249:\n case 250:\n case 251:\n case 252:\n case 361:\n case 363:\n case 365:\n case 367:\n case 369:\n case 371:\n case 468:\n case 533:\n case 535:\n case 7795:\n case 7797:\n case 7799:\n case 7909:\n case 7911:\n newch = 'u';\n break;\n\n case 7805:\n case 7807:\n newch = 'v';\n break;\n\n case 373:\n case 7809:\n case 7811:\n case 7813:\n case 7815:\n case 7817:\n case 7832:\n newch = 'w';\n break;\n\n case 7819:\n case 7821:\n newch = 'x';\n break;\n\n case 253:\n case 255:\n case 375:\n case 563:\n case 7833:\n case 7923:\n case 7925:\n case 7927:\n case 7929:\n newch = 'y';\n break;\n\n case 378:\n case 380:\n case 382:\n case 7825:\n case 7827:\n case 7829:\n newch = 'z';\n break;\n\n case 894:\n newch = ';';\n break;\n\n case 8175:\n newch = '`';\n break;\n\n case 8800:\n newch = '=';\n break;\n\n case 8814:\n newch = '<';\n break;\n\n case 8815:\n newch = '>';\n break;\n }\n if (newch) {\n chars.push(newch.charCodeAt(0));\n } else if (ch < 128) {\n chars.push(ch);\n }\n }\n\n // return string\n return String.fromCharCode(...chars);\n}\n","/*\n * raw.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { Schema } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { findParentNodeOfType, setTextSelection } from 'prosemirror-utils';\n\nimport { EditorUI } from './ui';\nimport { setBlockType } from 'prosemirror-commands';\n\nexport const kTexFormat = 'tex';\nexport const kHTMLFormat = 'html';\nexport const kHTML4Format = 'html4';\nexport const kHTML5Format = 'html5';\n\nexport function isRawHTMLFormat(format: string) {\n return [kHTMLFormat, kHTML4Format, kHTML5Format].includes(format);\n}\n\nexport function editRawBlockCommand(ui: EditorUI, outputFormats: string[]) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n // enable if we are either inside a raw block or we can insert a raw block\n const rawBlock = findParentNodeOfType(schema.nodes.raw_block)(state.selection);\n\n if (!rawBlock && !setBlockType(schema.nodes.raw_block, { format: 'html' })(state)) {\n return false;\n }\n\n async function asyncEditRawBlock() {\n if (dispatch) {\n // get existing attributes (if any)\n const raw = {\n format: '',\n content: '',\n };\n if (rawBlock) {\n raw.format = rawBlock.node.attrs.format;\n }\n\n // show dialog\n const result = await ui.dialogs.editRawBlock(raw, outputFormats);\n if (result) {\n const tr = state.tr;\n\n // remove means convert the block to text\n if (rawBlock) {\n const range = { from: rawBlock.pos, to: rawBlock.pos + rawBlock.node.nodeSize };\n if (result.action === 'remove') {\n tr.setBlockType(range.from, range.to, schema.nodes.paragraph);\n } else if (result.action === 'edit') {\n tr.setNodeMarkup(range.from, rawBlock.node.type, { format: result.raw.format });\n setTextSelection(tr.selection.from - 1, -1)(tr);\n }\n } else {\n insertRawNode(tr, result.raw.format);\n }\n\n dispatch(tr);\n }\n }\n\n if (view) {\n view.focus();\n }\n }\n asyncEditRawBlock();\n\n return true;\n };\n}\n\n// function to create a raw node\nfunction createRawNode(schema: Schema, format: string) {\n return schema.nodes.raw_block.create({ format })!;\n}\n\n// function to create and insert a raw node, then set selection inside of it\nfunction insertRawNode(tr: Transaction, format: string) {\n const schema = tr.doc.type.schema;\n const prevSel = tr.selection;\n tr.replaceSelectionWith(createRawNode(schema, format), false);\n setTextSelection(tr.mapping.map(prevSel.from), -1)(tr);\n}\n","/*\n * image.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { kPixelUnit, kPercentUnit } from './css';\n\nconst kDpi = 96;\n\n// https://github.com/jgm/pandoc/blob/master/src/Text/Pandoc/ImageSize.hs\nexport const kValidUnits = [kPixelUnit, 'in', 'cm', 'mm', kPercentUnit];\n\nexport enum ImageType {\n Image,\n Figure,\n}\n\nexport interface ImageDimensions {\n naturalWidth: number | null;\n naturalHeight: number | null;\n containerWidth: number;\n}\n\nexport function isValidImageSizeUnit(unit: string) {\n return kValidUnits.includes(unit);\n}\n\nexport function imageSizePropWithUnit(prop: string | null) {\n if (prop) {\n const match = prop.match(/(^\\d*\\.?\\d*)(.*)$/);\n if (match) {\n return {\n size: parseFloat(match[1]),\n unit: match[2],\n };\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\nexport function isNaturalAspectRatio(width: number, height: number, dims: ImageDimensions, defaultValue: boolean) {\n if (dims.naturalWidth && dims.naturalHeight) {\n const diff = Math.abs(width / height - dims.naturalWidth / dims.naturalHeight);\n return diff <= 0.01 * (width / height);\n } else {\n // no naturalWidth or naturalHeight, return default\n return defaultValue;\n }\n}\n\nexport function unitToPixels(value: number, unit: string, containerWidth: number) {\n let pixels;\n switch (unit) {\n case 'in':\n pixels = value * kDpi;\n break;\n case 'mm':\n pixels = value * (kDpi / 25.4);\n break;\n case 'cm':\n pixels = value * (kDpi / 2.54);\n break;\n case kPercentUnit:\n pixels = (value / 100) * ensureContainerWidth(containerWidth);\n break;\n case kPixelUnit:\n default:\n pixels = value;\n break;\n }\n return Math.round(pixels);\n}\n\nexport function pixelsToUnit(pixels: number, unit: string, containerWidth: number) {\n switch (unit) {\n case 'in':\n return pixels / kDpi;\n case 'mm':\n return (pixels / kDpi) * 25.4;\n case 'cm':\n return (pixels / kDpi) * 2.54;\n case kPercentUnit:\n return (pixels / ensureContainerWidth(containerWidth)) * 100;\n case kPixelUnit:\n default:\n return pixels;\n }\n}\n\nexport function roundUnit(value: number, unit: string) {\n switch (unit) {\n case 'in':\n return value.toFixed(2);\n case 'cm':\n return value.toFixed(1);\n default:\n return Math.round(value).toString();\n }\n}\n\n// sometime when we are called before the DOM renders the containerWidth\n// is 0, in this case provide a default of 1000\nexport function ensureContainerWidth(containerWidth: number) {\n return containerWidth || 1000;\n}\n","/*\n * extension.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction } from 'prosemirror-state';\n\nexport enum FixupContext {\n Load,\n Save,\n Resize,\n}\n\nexport type FixupFn = (tr: Transaction, fixupContext: FixupContext) => Transaction;\n","/*\n * css.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { kWidthAttrib, kHeightAttrib, kStyleAttrib } from './pandoc_attr';\n\nexport const kPercentUnit = '%';\nexport const kPixelUnit = 'px';\nexport function removeStyleAttrib(style: string, attrib: string, handler?: (attrib: string, value: string) => void) {\n const pattern = '(' + attrib + ')\\\\:\\\\s*([^;]+);?';\n const regex = new RegExp(pattern, 'g');\n return style.replace(regex, (_match, p1, p2) => {\n if (handler) {\n handler(p1, p2);\n }\n return '';\n });\n}\n\nexport function extractSizeStyles(keyvalues: Array<[string, string]> | undefined) {\n if (!keyvalues) {\n return keyvalues;\n }\n\n let newKeyvalues = keyvalues;\n\n const getValue = (key: string) => {\n const pair = newKeyvalues.find(keyvalue => keyvalue[0] === key);\n return pair ? pair[1] : null;\n };\n\n const setValue = (key: string, value: string | null) => {\n newKeyvalues = newKeyvalues.filter(keyvalue => keyvalue[0] !== key);\n if (value) {\n newKeyvalues.push([key, value]);\n }\n };\n\n let width = getValue(kWidthAttrib);\n let height = getValue(kHeightAttrib);\n let style = getValue(kStyleAttrib);\n\n if (style) {\n style = removeStyleAttrib(style, kWidthAttrib, (_attrib, value) => {\n if (!width) {\n width = value;\n }\n });\n style = removeStyleAttrib(style, kHeightAttrib, (_attrib, value) => {\n if (!height) {\n height = value;\n }\n });\n\n // remove leading ; from style\n style = style.replace(/^\\s*;+\\s*/, '').trimLeft();\n }\n\n setValue(kWidthAttrib, width);\n setValue(kHeightAttrib, height);\n setValue(kStyleAttrib, style);\n\n return newKeyvalues;\n}\n\nexport function applyStyles(el: HTMLElement, classes?: string[], style?: { [key: string]: string }) {\n if (classes) {\n if (classes) {\n classes.forEach(clz => el.classList.add(clz));\n }\n }\n if (style) {\n Object.keys(style).forEach(name => {\n el.style.setProperty(name, style[name]);\n });\n }\n}\n\nexport function replaceClassWithStyle(el: HTMLElement, className: string, style: { [key: string]: string }) {\n if (el.classList.contains(className)) {\n el.classList.remove(className);\n if (el.classList.length === 0) {\n el.removeAttribute('class');\n }\n\n Object.keys(style).forEach(name => {\n el.style.setProperty(name, style[name]);\n });\n }\n const children: any = el.children;\n for (const child of children) {\n replaceClassWithStyle(child, className, style);\n }\n}\n","/*\n * diff.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { diff_match_patch, DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT } from 'diff-match-patch';\n\nexport enum EditorChangeType {\n Insert = 1,\n Equal = 0,\n Delete = -1,\n}\n\nexport interface EditorChange {\n type: EditorChangeType;\n value: string;\n}\n\nexport function diffChars(from: string, to: string, timeout: number): EditorChange[] {\n const dmp = new diff_match_patch();\n dmp.Diff_Timeout = timeout;\n const diff = dmp.diff_main(from, to);\n dmp.diff_cleanupSemantic(diff);\n return diff.map(d => {\n let type: EditorChangeType;\n switch (d[0]) {\n case DIFF_INSERT:\n type = EditorChangeType.Insert;\n break;\n case DIFF_EQUAL:\n type = EditorChangeType.Equal;\n break;\n case DIFF_DELETE:\n type = EditorChangeType.Delete;\n break;\n default:\n throw new Error('Unexpected diff type: ' + d[0]);\n }\n return {\n type,\n value: d[1],\n };\n });\n}\n","/*\n * input_rule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { Schema, MarkType, NodeType, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { InputRule, wrappingInputRule } from 'prosemirror-inputrules';\n\nimport { PandocMark, markIsActive } from './mark';\n\nexport function markInputRule(\n regexp: RegExp,\n markType: MarkType,\n filter: MarkInputRuleFilter,\n getAttrs?: ((match: string[]) => object) | object,\n) {\n return new InputRule(regexp, (state: EditorState, match: string[], start: number, end: number) => {\n if (!filter(state, start, end)) {\n return null;\n }\n\n // remove any leading delimter (modulo spaces)\n const textIndex = match[0].indexOf(match[1]);\n const prefix = match[0].substring(0, textIndex).replace(/^\\s/, \"\");\n const delimStart = start + textIndex - prefix.length;\n const tr = state.tr;\n tr.delete(delimStart, delimStart + prefix.length);\n\n // create mark\n const attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs;\n const mark = markType.create(attrs);\n\n // apply it to the matching core text\n const markStart = start + textIndex - prefix.length;\n tr.addMark(markStart, markStart + match[1].length, mark);\n tr.removeStoredMark(mark); // Do not continue with mark.\n return tr;\n });\n}\n\nexport function delimiterMarkInputRule(\n delim: string,\n markType: MarkType,\n filter: MarkInputRuleFilter,\n prefixMask?: string,\n noEnclosingWhitespace?: boolean,\n) {\n // create distinct patterns depending on whether we allow enclosing whitespace\n const contentPattern = noEnclosingWhitespace\n ? `[^\\\\s${delim}][^${delim}]+[^\\\\s${delim}]|[^\\\\s${delim}]{1,2}`\n : `[^${delim}]+`;\n\n // if there is no prefix mask then this is simple regex we can pass to markInputRule\n if (!prefixMask) {\n const regexp = `(?:${delim})(${contentPattern})(?:${delim})$`;\n return markInputRule(new RegExp(regexp), markType, filter);\n\n // otherwise we need custom logic to get mark placement/eliding right\n } else {\n // build regex\n const regexp = `(^|[^${prefixMask}])(?:${delim})(${contentPattern})(?:${delim})$`;\n\n // return rule\n return new InputRule(new RegExp(regexp), (state: EditorState, match: string[], start: number, end: number) => {\n if (!filter(state, start, end)) {\n return null;\n }\n\n // init transaction\n const tr = state.tr;\n\n // compute offset for mask (should be zero if this was the beginning of a line,\n // in all other cases it would be the length of the any mask found).\n const maskOffset = match[1].length;\n\n // position of text to be formatted\n const textStart = start + match[0].indexOf(match[2]);\n const textEnd = textStart + match[2].length;\n\n // remove trailing markdown\n tr.delete(textEnd, end);\n\n // update start/end to reflect the leading mask which we want to leave alone\n start = start + maskOffset;\n end = start + match[2].length;\n\n // remove leading markdown\n tr.delete(start, textStart);\n\n // add mark\n const mark = markType.create();\n tr.addMark(start, end, mark);\n\n // remove stored mark so typing continues w/o the mark\n tr.removeStoredMark(mark);\n\n // return transaction\n return tr;\n });\n }\n}\n\nexport type MarkInputRuleFilter = (context: EditorState | Transaction, from?: number, to?: number) => boolean;\n\nexport function markInputRuleFilter(schema: Schema, marks: readonly PandocMark[]): MarkInputRuleFilter {\n const maskedMarkTypes = marksWithNoInputRules(schema, marks);\n\n return (context: EditorState | Transaction, from?: number, to?: number) => {\n if (from !== undefined && to !== undefined && from !== to) {\n const marksInRange: MarkType[] = [];\n context.doc.nodesBetween(from, to, node => {\n node.marks.forEach(mark => marksInRange.push(mark.type));\n });\n return !marksInRange.some(markType => maskedMarkTypes.includes(markType));\n }\n if (from === undefined) {\n for (const markType of maskedMarkTypes) {\n if (markIsActive(context, markType)) {\n return false;\n }\n }\n }\n return true;\n };\n}\n\nexport function conditionalWrappingInputRule(\n regexp: RegExp,\n nodeType: NodeType,\n predicate: (state: EditorState) => boolean,\n getAttrs?: { [key: string]: any } | ((p: string[]) => { [key: string]: any } | null | undefined),\n joinPredicate?: (p1: string[], p2: ProsemirrorNode) => boolean,\n): InputRule {\n const wrappingRule: any = wrappingInputRule(regexp, nodeType, getAttrs, joinPredicate);\n return new InputRule(regexp, (state: EditorState, match: string[], start: number, end: number) => {\n if (!predicate(state)) {\n return null;\n }\n return wrappingRule.handler(state, match, start, end);\n });\n}\n\nfunction marksWithNoInputRules(schema: Schema, marks: readonly PandocMark[]): MarkType[] {\n const disabledMarks: MarkType[] = [];\n marks.forEach((mark: PandocMark) => {\n if (mark.noInputRules) {\n disabledMarks.push(schema.marks[mark.name]);\n }\n });\n return disabledMarks;\n}\n","/*\n * wrap.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction } from 'prosemirror-state';\nimport { Transform } from 'prosemirror-transform';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\n\nimport { split } from 'sentence-splitter';\n\nimport { trTransform } from './transaction';\nimport { findChildrenByType, findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';\n\nexport function wrapSentences(tr: Transaction) {\n trTransform(tr, wrapSentencesTransform);\n}\n\nfunction wrapSentencesTransform(tr: Transform) {\n // find all paragraphs in doc\n const schema = tr.doc.type.schema;\n const paragraphs = findChildrenByType(tr.doc, schema.nodes.paragraph);\n\n // insert linebreaks in paragraphs (go backwards to preserve positions)\n paragraphs.reverse().forEach(paragraph => {\n // don't break sentences inside tight list items\n const $pos = tr.doc.resolve(paragraph.pos);\n const parent = $pos.node($pos.depth);\n if (parent.type === schema.nodes.list_item && $pos.node($pos.depth - 1).attrs.tight) {\n return;\n }\n\n // don't break sentences inside tables\n if (schema.nodes.table && findParentNodeOfTypeClosestToPos($pos, schema.nodes.table)) {\n return;\n }\n\n // extract text (use \\n for hard_break)\n // based on https://github.com/ProseMirror/prosemirror-model/blob/eef20c8c6dbf841b1d70859df5d59c21b5108a4f/src/fragment.js#L46\n // (but do no handling for leafs b/c we don't have any in our schema and nothing for blocks\n // b/c this is a paragraph so won't have nested blocks. We use our own implementation so that\n // we can correctly count node types that imply text but don't actually have any text\n // (e.g. hard_break)\n \n let textContent = \"\";\n const paraContent = paragraph.node.content;\n const from = 0;\n const to = paraContent.size;\n paraContent.nodesBetween(from, to, (node: ProsemirrorNode, pos: number) => {\n if (node.isText) {\n textContent += node.text!.slice(Math.max(from, pos) - pos, to - pos);\n } else if (node.type.name === \"hard_break\") {\n textContent += \"\\n\";\n }\n }, 0);\n\n // don't break bookdown text references\n if (/^\\(ref\\:[^\\s]+\\)\\s+[^\\s]/.test(textContent)) {\n return;\n }\n\n // break sentences in text\n const parts = split(textContent);\n parts\n .reverse()\n .filter(part => part.type === 'Sentence')\n .forEach(sentence => {\n // don't break sentence if at least one mark is active\n if (tr.doc.resolve(paragraph.pos + sentence.range[1] + 1).marks().length === 0) {\n const hardBreak = schema.text('\\n');\n const hardBreakPos = paragraph.pos + sentence.range[1] + 2;\n tr.insert(hardBreakPos, hardBreak);\n }\n });\n });\n}\n","/*\n * yaml_metadata-title.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey, Transaction, EditorState } from 'prosemirror-state';\n\nimport { transactionsAreTypingChange, transactionsHaveChange } from '../../api/transaction';\nimport {\n isYamlMetadataNode,\n yamlMetadataNodes,\n kYamlMetadataTitleRegex,\n titleFromState,\n} from '../../api/yaml';\n\nconst plugin = new PluginKey('yaml-metadata-title');\n\nexport function yamlMetadataTitlePlugin() {\n return new Plugin({\n key: plugin,\n state: {\n init(_config, state: EditorState) {\n return titleFromState(state);\n },\n\n apply(tr: Transaction, title: string, oldState: EditorState, newState: EditorState) {\n const transactions = [tr];\n\n // doc didn't change, return existing title\n if (!tr.docChanged) {\n return title;\n\n // non-typing change, do a full rescan\n } else if (!transactionsAreTypingChange(transactions)) {\n return titleFromState(newState);\n\n // change that affects a yaml metadata block, do a full rescan\n } else if (transactionsHaveChange(transactions, oldState, newState, isYamlMetadataNode)) {\n return titleFromState(newState);\n }\n\n // otherwise return the existing title\n else {\n return title;\n }\n },\n },\n });\n}\n\nexport function getTitle(state: EditorState) {\n return plugin.getState(state);\n}\n\nexport function setTitle(state: EditorState, title: string) {\n // alias schema\n const schema = state.schema;\n\n // no-op if yaml_metadata isn't available\n if (!schema.nodes.yaml_metadata) {\n return;\n }\n\n // create transaction\n const tr = state.tr;\n\n // escape quotes in title then build the title line\n const escapedTitle = title.replace(/\"/g, `\\\\\"`);\n const titleLine = `\\ntitle: \"${escapedTitle}\"\\n`;\n\n // attempt to update existing title\n const yamlNodes = yamlMetadataNodes(tr.doc);\n let foundTitle = false;\n for (const yaml of yamlNodes) {\n const titleMatch = yaml.node.textContent.match(kYamlMetadataTitleRegex);\n if (titleMatch) {\n const updatedMetadata = yaml.node.textContent.replace(kYamlMetadataTitleRegex, titleLine);\n const updatedNode = schema.nodes.yaml_metadata.createAndFill({}, schema.text(updatedMetadata));\n tr.replaceRangeWith(yaml.pos, yaml.pos + yaml.node.nodeSize, updatedNode);\n foundTitle = true;\n break;\n }\n }\n\n // if we didn't find a title then inject one at the top\n if (!foundTitle) {\n const yamlText = schema.text(`---${titleLine}---`);\n const yamlNode = schema.nodes.yaml_metadata.create({}, yamlText);\n tr.insert(1, yamlNode);\n }\n\n // return transaction\n return tr;\n}\n\n","/*\n * oultine.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey, EditorState, Transaction } from 'prosemirror-state';\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { NodeWithPos } from 'prosemirror-utils';\n\nimport { Extension } from '../api/extension';\nimport { transactionsHaveChange, kSetMarkdownTransaction } from '../api/transaction';\nimport { findTopLevelBodyNodes } from '../api/node';\nimport { uuidv4 } from '../api/util';\nimport {\n EditorOutlineItem,\n EditorOutlineItemType,\n EditorOutline,\n isOutlineNode,\n getEditingOutlineLocation,\n getDocumentOutline,\n} from '../api/outline';\nimport { navigateToPos } from '../api/navigation';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { rmdChunkEngineAndLabel } from '../api/rmd';\n\nconst kOutlineIdsTransaction = 'OutlineIds';\n\nconst plugin = new PluginKey('outline');\n\nconst extension: Extension = {\n appendTransaction: (schema: Schema) => {\n return [\n {\n name: 'outline',\n filter: hasOutlineIdsTransaction,\n nodeFilter: isOutlineNode,\n append: (tr: Transaction) => {\n const usedIds = new Set();\n const needsOutlineId = (node: ProsemirrorNode) => {\n if (isOutlineNode(node)) {\n if (node.attrs.navigation_id === null) {\n return true;\n } else if (usedIds.has(node.attrs.navigation_id)) {\n return true;\n } else {\n usedIds.add(node.attrs.navigation_id);\n return false;\n }\n } else {\n return false;\n }\n };\n const needsOutlineIdNodes = findTopLevelBodyNodes(tr.doc, needsOutlineId);\n needsOutlineIdNodes.forEach(outlineId => {\n tr.setNodeMarkup(outlineId.pos, outlineId.node.type, {\n ...outlineId.node.attrs,\n navigation_id: uuidv4(),\n });\n tr.setMeta(kOutlineIdsTransaction, true);\n });\n },\n },\n ];\n },\n\n commands: () => {\n return [\n new ProsemirrorCommand(EditorCommandId.GoToNextSection, ['Mod-PageDown'], goToOutlineCommand('next', 'section')),\n new ProsemirrorCommand(EditorCommandId.GoToPreviousSection, ['Mod-PageUp'], goToOutlineCommand('previous', 'section')),\n new ProsemirrorCommand(EditorCommandId.GoToNextChunk, [], goToOutlineCommand('next', 'chunk')),\n new ProsemirrorCommand(EditorCommandId.GoToPreviousChunk, [], goToOutlineCommand('previous', 'chunk')),\n ];\n },\n\n plugins: (schema: Schema) => {\n return [\n new Plugin({\n key: plugin,\n\n // track editor outline as state changes\n state: {\n init: (_config, state: EditorState) => {\n return editorOutline(state);\n },\n apply: (tr: Transaction, value: EditorOutline, oldState: EditorState, newState: EditorState) => {\n if (transactionsAffectOutline([tr], oldState, newState)) {\n return editorOutline(newState);\n } else {\n return value; // don't need to map b/c there are no positions in the data structure\n }\n },\n },\n }),\n ];\n },\n};\n\nexport function goToOutlineCommand(dir: 'next' | 'previous', targetType: 'chunk' | 'section') {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (dispatch && view) {\n let outline = getDocumentOutline(state);\n if (dir === 'previous') {\n outline = outline.reverse();\n }\n const target = outline.find(nodeWithPos => {\n // if we are only targeting chunks, do not navigate to other types, and vice versa\n const isChunk = nodeWithPos.node.type === state.schema.nodes.rmd_chunk;\n if (isChunk !== (targetType === 'chunk')) {\n return false;\n }\n\n if (dir === 'next') {\n return nodeWithPos.pos > state.selection.head;\n } else {\n return nodeWithPos.pos < state.selection.head - 1;\n }\n });\n if (target) {\n navigateToPos(view, target.pos, false);\n }\n }\n return true;\n };\n}\n\nfunction editorOutline(state: EditorState): EditorOutline {\n // get all of the headings (bail if there are none)\n const doc = state.doc;\n const outlineNodes = findTopLevelBodyNodes(doc, isOutlineNode);\n if (!outlineNodes.length) {\n return [];\n }\n\n // create mapping of node type names to their current sequence\n const sequence = new Map();\n\n // function to create an outline item from a node\n const editorOutlineItem = (nodeWithPos: NodeWithPos, defaultLevel: number) => {\n const typename = nodeWithPos.node.type.name;\n\n // build sequence (ordinal of entry within node type)\n let sequenceLast = sequence.get(typename);\n if (sequenceLast === undefined) {\n sequenceLast = 0;\n }\n const sequenceNext = sequenceLast + 1;\n sequence.set(typename, sequenceNext);\n\n const item = {\n navigation_id: nodeWithPos.node.attrs.navigation_id,\n type: nodeWithPos.node.type.name as EditorOutlineItemType,\n level: nodeWithPos.node.attrs.level || defaultLevel,\n title: nodeWithPos.node.type.spec.code ? nodeWithPos.node.type.name : nodeWithPos.node.textContent,\n sequence: sequenceNext,\n children: [],\n };\n \n // if this is an R Markdown chunk, extract the title from the chunk\n if (nodeWithPos.node.type.name === 'rmd_chunk') {\n const chunk = rmdChunkEngineAndLabel(nodeWithPos.node.textContent);\n if (chunk) {\n item.title = chunk.label;\n }\n }\n return item; \n };\n\n // extract the outline\n const rootOutlineItem: EditorOutlineItem = {\n navigation_id: '',\n type: '' as EditorOutlineItemType,\n level: 0,\n sequence: 0,\n title: '',\n children: [],\n };\n const containers: EditorOutlineItem[] = [];\n containers.push(rootOutlineItem);\n const top = () => containers[containers.length - 1];\n outlineNodes.forEach(nodeWithPos => {\n // get outline item from document node\n const outlineItem = editorOutlineItem(nodeWithPos, top().level + 1);\n\n // pop containers until we reach <= our level\n while (outlineItem.level <= top().level) {\n containers.pop();\n }\n\n // add the outline node\n top().children.push(outlineItem);\n\n // make it the the active container if it's a heading\n if (outlineItem.type === 'heading') {\n containers.push(outlineItem);\n }\n });\n\n // return children of root\n return rootOutlineItem.children;\n}\n\nfunction hasOutlineIdsTransaction(transactions: Transaction[]) {\n return transactions.some(tr => tr.getMeta(kOutlineIdsTransaction));\n}\n\nfunction transactionsAffectOutline(transactions: Transaction[], oldState: EditorState, newState: EditorState) {\n return (\n transactions.some(tr => tr.getMeta(kSetMarkdownTransaction)) ||\n hasOutlineIdsTransaction(transactions) ||\n transactionsHaveChange(transactions, oldState, newState, isOutlineNode)\n );\n}\n\nexport function getOutline(state: EditorState): EditorOutline {\n return plugin.getState(state)!;\n}\n\nexport default extension;\n","/*\n * find.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Extension } from '../api/extension';\nimport { Plugin, PluginKey, EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { DecorationSet, Decoration, EditorView } from 'prosemirror-view';\n\nimport { mergedTextNodes } from '../api/text';\nimport { kAddToHistoryTransaction } from '../api/transaction';\nimport { editingRootNode } from '../api/node';\nimport zenscroll from 'zenscroll';\n\nconst key = new PluginKey('find-plugin');\n\nclass FindPlugin extends Plugin {\n private term: string = '';\n private options: FindOptions = {};\n private updating: boolean = false;\n\n // The HTML element containing the last known selected search result\n private resultElement: HTMLElement|null = null;\n\n // A DOM mutation observer that watches for search results to be rendered\n private resultObserver: MutationObserver|null = null;\n\n // The ID for a timer that ensures the resultObserver completes quickly\n private resultObserverTimer: number = 0;\n\n constructor() {\n super({\n key,\n state: {\n init: (_config: { [key: string]: any }, instance: EditorState) => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, oldState: EditorState, newState: EditorState) => {\n if (this.updating) {\n return this.resultDecorations(tr);\n } else {\n return DecorationSet.empty;\n }\n },\n },\n view: () => ({\n update: (view: EditorView, prevState: EditorState) => {\n // Clear any previous search result observer\n this.clearResultObserver();\n\n // If there is a search result selected, navigate to it\n if (this.isResultSelected(view.state)) {\n this.scrollToSelectedResult(view, null);\n }\n },\n }),\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n },\n });\n }\n\n public find(term: string, options: FindOptions) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (dispatch) {\n this.term = !options.regex ? term.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, (escape: string) => {\n return '\\\\u' + ('0000' + escape.charCodeAt(0).toString(16)).slice(-4);\n }) : term;\n this.options = options;\n this.updateResults(state, dispatch);\n }\n return true;\n };\n }\n\n public matchCount(state: EditorState) {\n return key.getState(state)!.find().length;\n }\n\n public selectFirst() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n const decorations: Decoration[] = key.getState(state)!.find(0);\n if (decorations.length === 0) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n this.selectResult(tr, decorations[0]);\n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n\n return true;\n };\n }\n\n public selectCurrent() {\n return this.selectNext(false);\n }\n\n public selectNext(afterSelection = true) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n const selectedText = state.doc.textBetween(state.selection.from, state.selection.to);\n const searchFrom = afterSelection\n ? this.matchesTerm(selectedText)\n ? state.selection.to + 1\n : state.selection.to\n : state.selection.from;\n\n const decorationSet = key.getState(state)!;\n let decorations: Decoration[] = decorationSet.find(searchFrom);\n if (decorations.length === 0) {\n // check for wrapping\n if (this.options.wrap) {\n const searchTo = this.matchesTerm(selectedText) ? state.selection.from - 1 : state.selection.from;\n decorations = decorationSet.find(0, searchTo);\n if (decorations.length === 0) {\n return false;\n }\n // no wrapping\n } else {\n return false;\n }\n }\n\n if (dispatch) {\n const tr = state.tr;\n this.selectResult(tr, decorations[0]);\n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n return true;\n };\n }\n\n public selectPrevious() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // sort out where we are searching up to\n const selectedText = state.doc.textBetween(state.selection.from, state.selection.to);\n const searchTo = this.matchesTerm(selectedText) ? state.selection.from - 1 : state.selection.from;\n\n // get all decorations up to the current selection\n const decorationSet = key.getState(state)!;\n let decorations: Decoration[] = decorationSet.find(0, searchTo);\n if (decorations.length === 0) {\n // handle wrapping\n if (this.options.wrap) {\n const searchFrom = this.matchesTerm(selectedText) ? state.selection.to + 1 : state.selection.to;\n decorations = decorationSet.find(searchFrom);\n if (decorations.length === 0) {\n return false;\n }\n // no wrapping\n } else {\n return false;\n }\n }\n\n // find the one closest to the beginning of the current selection\n if (dispatch) {\n // now we need to find the decoration with the largest from value\n const decoration = decorations.reduce((lastDecoration, nextDecoration) => {\n if (nextDecoration.from > lastDecoration.from) {\n return nextDecoration;\n } else {\n return lastDecoration;\n }\n });\n\n const tr = state.tr;\n this.selectResult(tr, decoration);\n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n return true;\n };\n }\n\n public replace(text: string) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!this.isResultSelected(state)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n const selectionMarks = tr.selection.$from.marksAcross(tr.selection.$to);\n if (text.length > 0) {\n tr.replaceSelectionWith(state.schema.text(text, selectionMarks), false);\n } else {\n tr.deleteSelection();\n }\n \n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n\n return true;\n };\n }\n\n public replaceAll(text: string) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n \n let replaced = 0;\n\n if (!this.hasTerm()) {\n return replaced;\n }\n\n if (dispatch) {\n const tr = state.tr;\n\n const decorationSet = key.getState(state)!;\n\n const decorations: Decoration[] = decorationSet.find(0);\n decorations.forEach(decoration => {\n const from = tr.mapping.map(decoration.from);\n const to = tr.mapping.map(decoration.to);\n tr.insertText(text, from, to);\n replaced += 1;\n });\n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n\n return replaced;\n };\n }\n\n public clear() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (dispatch) {\n this.term = '';\n this.options = {};\n this.updateResults(state, dispatch);\n }\n return true;\n };\n }\n\n private updateResults(state: EditorState, dispatch: (tr: Transaction) => void) {\n this.withResultUpdates(() => {\n const tr = state.tr;\n tr.setMeta(kAddToHistoryTransaction, false);\n dispatch(tr);\n });\n }\n\n private resultDecorations(tr: Transaction): DecorationSet {\n // bail if no search term\n if (!this.hasTerm()) {\n return DecorationSet.empty;\n }\n\n // decorations to return\n const decorations: Decoration[] = [];\n\n // merge text nodes\n const textNodes = mergedTextNodes(tr.doc);\n\n textNodes.forEach(textNode => {\n const search = this.findRegEx();\n if (!search) {\n return;\n }\n\n let m;\n // tslint:disable-next-line no-conditional-assignment\n while ((m = search.exec(textNode.text))) {\n if (m[0] === '') {\n break;\n }\n const from = textNode.pos + m.index;\n const to = textNode.pos + m.index + m[0].length;\n const classes = ['pm-find-text'];\n if (from === tr.selection.from && to === tr.selection.to) {\n classes.push('pm-selected-text');\n }\n decorations.push(Decoration.inline(from, to, { class: classes.join(' ') }));\n }\n });\n\n // return as decoration set\n return decorations.length ? DecorationSet.create(tr.doc, decorations) : DecorationSet.empty;\n }\n\n private withResultUpdates(f: () => void) {\n this.updating = true;\n f();\n this.updating = false;\n }\n\n private selectResult(tr: Transaction, decoration: Decoration) {\n const selection = new TextSelection(tr.doc.resolve(decoration.from), tr.doc.resolve(decoration.to));\n return tr.setSelection(selection).scrollIntoView();\n }\n\n private isResultSelected(state: EditorState) {\n if (this.hasTerm()) {\n const selectedText = state.doc.textBetween(state.selection.from, state.selection.to);\n return this.matchesTerm(selectedText);\n } else {\n return false;\n }\n }\n\n /**\n * Watch for a search result to appear in the DOM. When it does, scroll it\n * into view.\n * \n * @param view The current EditorView \n */\n private watchForSelectedResult(view: EditorView) {\n // Clear any previous result observer\n this.clearResultObserver();\n\n // Create a new result observer to watch for results to be rendered\n this.resultObserver = new MutationObserver((records: MutationRecord[], observer: MutationObserver) => {\n let resultElement:HTMLElement|null = null;\n\n // Predicate for testing a node to see if it looks like the active search result\n const isResultNode = (node: Node): boolean => {\n if (node.nodeType !== node.ELEMENT_NODE) {\n return false;\n }\n const ele = node as HTMLElement;\n return ele.classList.contains('pm-find-text') && \n ele.classList.contains('pm-selected-text');\n };\n\n // Examine each mutation record to see if it's the one we're looking for\n records.forEach((mutation) => {\n switch(mutation.type) {\n case 'childList':\n // Case 1: a new search result node was added to the DOM\n mutation.addedNodes.forEach((node) => {\n if (isResultNode(node)) {\n resultElement = node as HTMLElement;\n }\n });\n break;\n case 'attributes':\n // Case 2: an existing node gained a \"class\" attribute and is now an\n // active search result\n if (isResultNode(mutation.target)) {\n resultElement = mutation.target as HTMLElement;\n }\n break;\n }\n });\n\n // If we found a result element, scroll it into view and turn off the DOM\n // observer. (If we didn't find one, it may be an irrelevant DOM mutation,\n // so ignore it.)\n if (resultElement) {\n this.scrollToSelectedResult(view, resultElement);\n this.clearResultObserver();\n }\n });\n\n const editingRoot = editingRootNode(view.state.selection);\n if (editingRoot) {\n const container = view.nodeDOM(editingRoot.pos) as HTMLElement;\n\n // Begin observing the editing surface for DOM mutations\n this.resultObserver.observe(container, {\n subtree: true,\n childList: true,\n attributeFilter: ['class'] // Only interested in changes to the \"class\" attribute\n });\n\n // The search results should appear quickly (we're really just waiting for\n // a render loop). If the observer runs for longer than 1s, just cancel\n // it, as it consumes resources and anything observed is likely to be\n // spurious.\n this.resultObserverTimer = window.setTimeout(() => {\n this.clearResultObserver();\n }, 1000);\n }\n }\n\n /**\n * Cleans all state related to the search result DOM observer\n */\n private clearResultObserver() {\n // Disconnect the result observer if running\n if (this.resultObserver !== null) {\n this.resultObserver.disconnect();\n this.resultObserver = null;\n }\n\n // Remove the result observer timer if running\n if (this.resultObserverTimer !== 0) {\n window.clearTimeout(this.resultObserverTimer);\n this.resultObserverTimer = 0;\n }\n }\n\n /**\n * Scrolls the selected search result into view.\n * \n * @param view The EditorView on which to act\n * @param resultElement The HTML element containing the search result, if known\n */\n private scrollToSelectedResult(view: EditorView, resultElement: HTMLElement|null) {\n const editingRoot = editingRootNode(view.state.selection);\n if (editingRoot) {\n const container = view.nodeDOM(editingRoot.pos) as HTMLElement;\n\n if (resultElement === null) {\n // Attempt to find a result element to scroll to if we weren't given one\n resultElement = container.querySelector(\".pm-find-text.pm-selected-text\");\n }\n\n if (resultElement === null || resultElement === this.resultElement) {\n // If we didn't find a result element, or if we found a stale one\n // (hasn't changed), defer scrolling until it has been rendered. This is\n // most common when the search result is inside an Ace editor chunk,\n // which puts the result in the DOM on a deferred render loop.\n this.watchForSelectedResult(view);\n return;\n } \n\n this.resultElement = resultElement;\n\n // Starting offset for scroll position \n let offset = 100;\n\n // Zenscroll can only scroll to a direct child element of the scroll\n // container, but the element containing the search result may be deeply\n // nested in the container. Walk up the DOM tree, summing the offsets,\n // until we get to an element that's actually a child of the scroll\n // container. \n let scrollElement = resultElement;\n while (scrollElement.offsetParent?.parentElement !== container) {\n offset += scrollElement.offsetTop;\n const nextParent = scrollElement.offsetParent;\n if (nextParent === null) {\n break;\n } \n scrollElement = nextParent as HTMLElement;\n }\n\n // Perform the scroll to the element's container plus its offset inside\n // the container.\n const scroller = zenscroll.createScroller(container);\n scroller.center(scrollElement, 350, offset);\n }\n }\n\n private hasTerm() {\n return this.term.length > 0;\n }\n\n private matchesTerm(text: string) {\n if (this.hasTerm()) {\n const regex = this.findRegEx();\n if (regex) {\n return regex.test(text);\n } else {\n return false;\n }\n } else {\n return false;\n }\n }\n\n private findRegEx() {\n try {\n return new RegExp(this.term, !this.options.caseSensitive ? 'gui' : 'gu');\n } catch {\n return null;\n }\n }\n}\n\nconst extension: Extension = {\n plugins: () => {\n return [new FindPlugin()];\n },\n};\n\nexport interface FindOptions {\n regex?: boolean;\n caseSensitive?: boolean;\n wrap?: boolean;\n}\n\nexport function find(view: EditorView, term: string, options: FindOptions): boolean {\n return findPlugin(view).find(term, options)(view.state, view.dispatch);\n}\n\nexport function matchCount(view: EditorView): number {\n return findPlugin(view).matchCount(view.state);\n}\n\nexport function selectFirst(view: EditorView): boolean {\n return findPlugin(view).selectFirst()(view.state, view.dispatch);\n}\n\nexport function selectCurrent(view: EditorView): boolean {\n return findPlugin(view).selectCurrent()(view.state, view.dispatch);\n}\n\nexport function selectNext(view: EditorView): boolean {\n return findPlugin(view).selectNext()(view.state, view.dispatch);\n}\n\nexport function selectPrevious(view: EditorView): boolean {\n return findPlugin(view).selectPrevious()(view.state, view.dispatch);\n}\n\nexport function replace(view: EditorView, text: string): boolean {\n return findPlugin(view).replace(text)(view.state, view.dispatch);\n}\n\nexport function replaceAll(view: EditorView, text: string) {\n return findPlugin(view).replaceAll(text)(view.state, view.dispatch);\n}\n\nexport function clear(view: EditorView): boolean {\n return findPlugin(view).clear()(view.state, view.dispatch);\n}\n\nexport function findPluginState(state: EditorState): DecorationSet | null | undefined {\n return key.getState(state);\n}\n\nfunction findPlugin(view: EditorView): FindPlugin {\n return key.get(view.state) as FindPlugin;\n}\n\nexport default extension;\n","/*\n * omni_insert.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\nimport { DOMOutputSpecArray, Mark, Fragment } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { PandocOutput } from '../../api/pandoc';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { selectionAllowsCompletions } from '../../api/completion';\nimport { OmniInserter } from '../../api/omni_insert';\nimport { MarkInputRuleFilter } from '../../api/input_rule';\nimport { EditorUI } from '../../api/ui';\n\nimport { omniInsertCompletionHandler } from './omni_insert-completion';\nimport { Extension } from '../../api/extension';\nimport { markIsActive } from '../../api/mark';\n\nexport function markOmniInsert() {\n return {\n marks: [\n {\n name: 'omni_insert',\n spec: {\n inclusive: true,\n noInputRules: true,\n parseDOM: [{ tag: \"span[class*='omni_insert']\" }],\n toDOM(): DOMOutputSpecArray {\n return ['span', { class: 'omni_insert' }];\n },\n },\n pandoc: {\n readers: [],\n writer: {\n priority: 30,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeInlines(parent);\n },\n },\n },\n },\n ],\n };\n}\n\nexport function omniInsertExtension(\n omniInserters: OmniInserter[],\n inputRuleFilter: MarkInputRuleFilter,\n ui: EditorUI,\n): Extension {\n return {\n commands: () => [new OmniInsertCommand(inputRuleFilter)],\n completionHandlers: () => [omniInsertCompletionHandler(omniInserters, ui)],\n };\n}\n\nclass OmniInsertCommand extends ProsemirrorCommand {\n constructor(markFilter: MarkInputRuleFilter) {\n super(\n EditorCommandId.OmniInsert,\n ['Mod-/'],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // check whether selection allows completions\n if (!selectionAllowsCompletions(state.selection)) {\n return false;\n }\n\n // if the marks is already active then bail\n if (markIsActive(state, state.schema.marks.omni_insert)) {\n return false;\n }\n\n // check the mark filter\n if (!markFilter(state)) {\n return false;\n }\n\n if (dispatch) {\n const mark = state.schema.marks.omni_insert.create();\n const node = state.schema.text('/', [mark]);\n const tr = state.tr;\n tr.replaceSelectionWith(node, false);\n dispatch(tr);\n }\n\n return true;\n },\n );\n }\n}\n","/*\n * completion.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Selection, EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\nimport { EditorView, DecorationSet } from 'prosemirror-view';\n\nimport { canInsertNode } from './node';\nimport { EditorUI } from './ui';\nimport { kInsertCompletionTransaction } from './transaction';\n\nexport const kCompletionDefaultItemHeight = 22;\nexport const kCompletionDefaultMaxVisible = 10;\nexport const kCompletionDefaultWidth = 180;\n\nexport interface CompletionContext {\n isPaste: boolean;\n}\n\nexport interface CompletionsStream {\n items: T[];\n stream: () => T[] | null;\n}\n\nexport type Completions = T[] | CompletionsStream;\n\nexport interface CompletionResult {\n pos: number;\n offset?: number;\n token: string;\n completions: (state: EditorState, context: CompletionContext) => Promise;\n decorations?: DecorationSet;\n}\n\nexport interface CompletionHeaderProps {\n ui: EditorUI;\n message?: string;\n}\n\nexport interface CompletionHandler {\n // unique id\n id: string;\n\n // An optional scope for this completion handler. Completions\n // triggered by a transaction will filter completion handlers\n // that share a scope with the completion handler that originated\n // a transaction.\n scope?: string;\n\n // filter for determing whether we can call this handler from a given context (default is to\n // never offer completions if a mark with noInputRules is active). set to null to\n // allow completion anywhere\n enabled?: ((context: EditorState | Transaction) => boolean) | null;\n\n // return a set of completions for the given context. text is the text before\n // before the cursor in the current node (but no more than 500 characters)\n completions(text: string, context: EditorState | Transaction): CompletionResult | null;\n\n // filter a previously returned set of completions\n filter?: (completions: T[], state: EditorState, token: string, prevToken?: string) => T[] | null;\n\n // provide a completion replacement as a string or node (can be passed null if the popup was dismissed)\n replacement?(schema: Schema, completion: T | null): string | ProsemirrorNode | null;\n\n // lower level replacement handler (can be passed null if the popup was dismissed)\n replace?(view: EditorView, pos: number, completion: T | null): Promise;\n\n // completion view\n view: {\n // optional header component (will go inside a )\n header?: () =>\n | {\n component: React.FC | React.ComponentClass;\n height: number;\n message?: string;\n }\n | undefined;\n\n // react compontent type for viewing the item\n component: React.FC | React.ComponentClass;\n\n key: (completion: T) => any;\n\n // width of completion item (defaults to 180).\n width?: number;\n\n // height of completion item (defaults to 22px)\n height?: number;\n\n // use horizontal orientation (defaults to false)\n // (optionally provide a set of item widths)\n horizontal?: boolean;\n horizontalItemWidths?: number[];\n\n // maximum number of visible items (defaults to 10). note that\n // this only applies to completion poupups w/ vertical orientation\n // (scrolling is not supported for horizontal orientation)\n maxVisible?: number;\n\n // hide 'no results' (default false)\n hideNoResults?: boolean;\n };\n}\n\nexport function selectionAllowsCompletions(selection: Selection) {\n const schema = selection.$head.parent.type.schema;\n\n // non empty selections don't have completions\n if (!selection.empty) {\n return false;\n }\n\n // must be able to insert text\n if (!canInsertNode(selection, schema.nodes.text)) {\n return false;\n }\n\n // must not be in a code mark\n if (schema.marks.code && !!schema.marks.code.isInSet(selection.$from.marks())) {\n return false;\n }\n\n // must not be in a code node\n if (selection.$head.parent.type.spec.code) {\n return false;\n }\n\n return true;\n}\n\n// Determine whether two completionHandlers share the same scope. By default\n// completion handlers will share scope only if they share an id, but handlers\n// can provide a scope if they'd like to coordinate.\nexport function completionsShareScope(handler: CompletionHandler, prevHandler?: CompletionHandler) {\n // There is no previous handler, not shared\n if (!prevHandler) {\n return false;\n }\n\n // Previous handler with the same scope as the current handler\n if (prevHandler.scope && prevHandler.scope === handler.scope) {\n return true;\n } else {\n // Previous handler has the same id as the current handler\n return prevHandler.id === handler.id;\n }\n}\n\nexport function performCompletionReplacement(tr: Transaction, pos: number, replacement: ProsemirrorNode | string) {\n // set selection to area we will be replacing\n tr.setSelection(new TextSelection(tr.doc.resolve(pos), tr.selection.$head));\n\n // ensure we have a node\n if (replacement instanceof ProsemirrorNode) {\n // combine it's marks w/ whatever is active at the selection\n const marks = tr.selection.$head.marks();\n\n // set selection and replace it\n tr.replaceSelectionWith(replacement, false);\n\n // propapate marks\n marks.forEach(mark => tr.addMark(pos, tr.selection.to, mark));\n } else {\n tr.insertText(replacement);\n }\n\n // mark the transaction as an completion insertion\n tr.setMeta(kInsertCompletionTransaction, true);\n}\n","/*\n * omni_insert.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Selection, Transaction } from 'prosemirror-state';\nimport { EditorView, DecorationSet } from 'prosemirror-view';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport React from 'react';\nimport { firstBy } from 'thenby';\n\nimport { OmniInserter, omniInsertGroupCompare, omniInsertPriorityCompare } from '../../api/omni_insert';\nimport { CompletionHandler, CompletionResult } from '../../api/completion';\n\nimport { EditorUI } from '../../api/ui';\nimport { placeholderDecoration } from '../../api/placeholder';\nimport { kAddToHistoryTransaction } from '../../api/transaction';\n\nimport './omni_insert-completion.css';\n\nexport function omniInsertCompletionHandler(\n omniInserters: OmniInserter[],\n ui: EditorUI,\n): CompletionHandler {\n return {\n id: 'E305158D-20D6-474D-84E6-06607CA58578',\n\n completions: omniInsertCompletions(omniInserters, ui),\n\n filter: (completions: OmniInserter[], state: EditorState, token: string) => {\n // match contents of name or keywords (and verify the command is enabled)\n return completions\n .filter(inserter => {\n return (\n token.length === 0 ||\n inserter.name.toLowerCase().indexOf(token) !== -1 ||\n inserter.keywords?.some(keyword => keyword.indexOf(token) !== -1)\n );\n })\n .filter(inserter => {\n return inserter.command(state);\n })\n .sort(\n firstBy(omniInsertGroupCompare)\n .thenBy(omniInsertPriorityCompare, { direction: 'desc' })\n .thenBy('name'),\n );\n },\n\n replace(view: EditorView, pos: number, completion: OmniInserter | null) {\n // helper to remove command text\n const removeCommandText = () => {\n const tr = view.state.tr;\n tr.deleteRange(pos, view.state.selection.head);\n tr.setMeta(kAddToHistoryTransaction, false);\n view.dispatch(tr);\n };\n\n // execute command if provided\n if (completion) {\n // remove existing text\n removeCommandText();\n\n // execute the command\n completion.command(view.state, view.dispatch, view);\n\n // perform any requested selection offset\n if (completion.selectionOffset) {\n const tr = view.state.tr;\n setTextSelection(tr.selection.from + completion.selectionOffset)(tr);\n tr.setMeta(kAddToHistoryTransaction, false);\n view.dispatch(tr);\n }\n\n // the activation of omni_insert wasn't part of 'natural' typing\n // in the document so remove it\n } else {\n removeCommandText();\n }\n return Promise.resolve();\n },\n\n view: {\n component: OmniInserterView,\n key: command => command.id,\n width: 320,\n height: 46,\n maxVisible: 6,\n },\n };\n}\n\nconst kOmniInsertRegex = /\\/([\\w]*)$/;\n\nfunction omniInsertCompletions(omniInserters: OmniInserter[], ui: EditorUI) {\n return (text: string, context: EditorState | Transaction): CompletionResult | null => {\n const match = text.match(kOmniInsertRegex);\n if (match) {\n // we need to either be at the beginning of our parent, OR the omni_insert mark needs\n // to be active (that indicates that we entered omni insert mode via a user command)\n if (match.index !== 0 && !isOmniInsertCommandActive(context.selection)) {\n return null;\n }\n\n // capture query (note that no query returns all).\n const query = match[1].toLowerCase();\n\n // include a decoration if the query is empty\n const decorations =\n query.length === 0\n ? DecorationSet.create(context.doc, [\n placeholderDecoration(context.selection.head, ui.context.translateText(' type to search...')),\n ])\n : undefined;\n\n // return the completion result\n return {\n // match at the /\n pos: context.selection.head - match[0].length,\n\n // unique identifier for this request\n token: query,\n\n // return all omniInserters (will refine via filter)\n completions: (state: EditorState) => {\n return Promise.resolve(omniInserters);\n },\n\n // search placehodler decorator if there is no query\n decorations,\n };\n } else {\n return null;\n }\n };\n}\n\nconst OmniInserterView: React.FC = inserter => {\n return (\n \n \n \n \n \n \n \n
\n \"\"\n \n
{inserter.name}
\n
{inserter.description}
\n
\n );\n};\n\nfunction isOmniInsertCommandActive(selection: Selection) {\n const schema = selection.$head.parent.type.schema;\n return schema.marks.omni_insert.isInSet(selection.$head.marks());\n}\n","/*\n * omni_insert.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { CommandFn } from './command';\n\n// descriptive info for omni insert\nexport interface OmniInsert {\n name: string;\n keywords?: string[];\n description: string;\n group: OmniInsertGroup;\n priority?: number;\n selectionOffset?: number;\n image: () => string;\n}\n\n// descriptive info + ability to identify/execute\nexport interface OmniInserter extends OmniInsert {\n id: string;\n command: CommandFn;\n}\n\nexport enum OmniInsertGroup {\n Common = 'Common',\n Headings = 'Headings',\n Lists = 'Lists',\n Math = 'Math',\n References = 'References',\n Content = 'Content',\n Blocks = 'Blocks',\n Chunks = 'Chunks',\n}\n\nconst omniInsertGroupOrder = new Map(Object.keys(OmniInsertGroup).map((key, index) => [key, index]));\n\nexport function omniInsertGroupCompare(a: OmniInsert, b: OmniInsert) {\n return omniInsertGroupOrder.get(a.group)! - omniInsertGroupOrder.get(b.group)!;\n}\n\nexport function omniInsertPriorityCompare(a: OmniInsert, b: OmniInsert) {\n return (a.priority || 0) - (b.priority || 0);\n}\n","/*\n * placeholder.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeType } from 'prosemirror-model';\nimport { EditorState, Transaction, Plugin, PluginKey } from 'prosemirror-state';\nimport { DecorationSet, Decoration, EditorView } from 'prosemirror-view';\n\nimport { findParentNode } from 'prosemirror-utils';\n\nimport { EditorUI } from './ui';\n\nexport function emptyNodePlaceholderPlugin(nodeType: NodeType, placeholder: (node: ProsemirrorNode) => string, filter?: (tr: Transaction) => boolean) {\n const pluginKey = new PluginKey(nodeType.name + '-empty-placeholder');\n\n return new Plugin({\n key: pluginKey,\n state: {\n init(_config: { [key: string]: any }, instance: EditorState) {\n return DecorationSet.empty;\n },\n apply(tr: Transaction, set: DecorationSet, oldState: EditorState, newState: EditorState) {\n // check for empty parent of our type\n const emptyNode = findParentNode(node => node.type === nodeType && node.childCount === 0)(tr.selection);\n if (emptyNode && (!filter || filter(tr))) {\n const decoration = placeholderDecoration(emptyNode.pos + 1, placeholder(emptyNode.node));\n return DecorationSet.create(tr.doc, [decoration]);\n } else {\n return DecorationSet.empty;\n }\n },\n },\n props: {\n decorations(state: EditorState) {\n return pluginKey.getState(state);\n },\n },\n });\n}\n\nexport function placeholderDecoration(pos: number, text: string) {\n return Decoration.widget(pos, (_view: EditorView, _getPos: () => number) => {\n const placeholder = window.document.createElement('span');\n placeholder.classList.add('pm-placeholder-text-color');\n placeholder.innerText = text;\n return placeholder;\n });\n}\n\nexport function iconAndTextPlaceholderDecoration(pos: number, icon: string, text: string) {\n return Decoration.widget(pos, (_view: EditorView, _getPos: () => number) => {\n const container = window.document.createElement('span');\n\n const iconImg = window.document.createElement('img');\n iconImg.classList.add('pm-placeholder-icon');\n iconImg.setAttribute('src', icon);\n iconImg.setAttribute('draggable', 'false');\n\n const message = window.document.createElement('span');\n message.classList.add('pm-placeholder-text-color');\n message.classList.add('pm-placeholder-text');\n message.innerText = text;\n\n container.appendChild(iconImg);\n container.appendChild(message);\n return container;\n });\n}\n\nexport function searchPlaceholderDecoration(pos: number, ui: EditorUI, text?: string) {\n return iconAndTextPlaceholderDecoration(pos, ui.images.search!, text || '');\n}\n","/*\n * completion.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n// TODO: it may be that we need to not do full re-requests from the filter\n// when we have streamed results (as they can cause reset of the allCompletions)\n\nimport { Plugin, PluginKey, Transaction, Selection, EditorState } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport {\n CompletionHandler,\n selectionAllowsCompletions,\n kCompletionDefaultMaxVisible,\n completionsShareScope,\n performCompletionReplacement,\n CompletionResult,\n Completions,\n CompletionsStream,\n} from '../../api/completion';\nimport { EditorEvents } from '../../api/events';\nimport { ScrollEvent } from '../../api/event-types';\n\nimport { createCompletionPopup, renderCompletionPopup, destroyCompletionPopup } from './completion-popup';\nimport { EditorUI } from '../../api/ui';\nimport { PromiseQueue } from '../../api/promise';\nimport { MarkInputRuleFilter } from '../../api/input_rule';\nimport { kInsertCompletionTransaction, kPasteTransaction } from '../../api/transaction';\n\ninterface CompletionState {\n handler?: CompletionHandler;\n result?: CompletionResult;\n prevToken?: string;\n isPaste?: boolean;\n}\n\nexport function completionExtension(\n handlers: readonly CompletionHandler[],\n inputRuleFilter: MarkInputRuleFilter,\n ui: EditorUI,\n events: EditorEvents,\n) {\n return {\n plugins: () => [new CompletionPlugin(handlers, inputRuleFilter, ui, events)],\n };\n}\n\nconst key = new PluginKey('completion');\n\nclass CompletionPlugin extends Plugin {\n // editor ui\n private readonly ui: EditorUI;\n\n // editor view\n private view: EditorView | null = null;\n\n // popup elemeent\n private completionPopup: HTMLElement | null = null;\n\n // currently selected index and last set of completions are held as transient\n // state because they can't be derived from the document state (selectedIndex\n // is derived from out of band user keyboard gestures and completions may\n // have required fulfilling an external promise). also use a version counter\n // used to invalidate async completion requests that are fulfilled after\n // an update has occurred\n private version = 0;\n private allCompletions: any[] = [];\n private completions: any[] = [];\n private horizontal = false;\n private selectedIndex = 0;\n\n // serialize async completion requests\n private completionQueue = new PromiseQueue();\n\n // events we need to unsubscribe from\n private readonly scrollUnsubscribe: VoidFunction;\n\n constructor(\n handlers: readonly CompletionHandler[],\n inputRuleFilter: MarkInputRuleFilter,\n ui: EditorUI,\n events: EditorEvents,\n ) {\n super({\n key,\n state: {\n init: () => ({}),\n apply: (tr: Transaction, prevState: CompletionState) => {\n // if we don't have a view then bail\n if (!this.view) {\n return {};\n }\n\n // selection only changes dismiss any active completion\n if (!tr.docChanged && !tr.storedMarksSet && tr.selectionSet) {\n return {};\n }\n\n // check whether completions are valid here\n if (!selectionAllowsCompletions(tr.selection)) {\n return {};\n }\n\n // calcluate text before cursor\n const textBefore = completionTextBeforeCursor(tr.selection);\n\n // if there is no text then don't handle it\n if (textBefore.length === 0) {\n return {};\n }\n\n const isPaste = tr.getMeta(kPasteTransaction) === true;\n\n // check for a handler that can provide completions at the current selection\n for (const handler of handlers) {\n // first check if the handler is enabled (null means use inputRuleFilter)\n if (handler.enabled === null || (handler.enabled ? handler.enabled(tr) : inputRuleFilter(tr))) {\n const result = handler.completions(textBefore, tr);\n if (result) {\n // check if the previous state had a completion from the same handler\n let prevToken: string | undefined;\n\n // If this completion shares scope with the previous completion\n // and this is a completion transaction, skip\n if (tr.getMeta(kInsertCompletionTransaction) && completionsShareScope(handler, prevState.handler)) {\n continue;\n }\n\n if (handler.id === prevState.handler?.id) {\n // pass the prevToken on if the completion was for the same position\n if (result.pos === prevState.result?.pos) {\n prevToken = prevState.result.token;\n }\n }\n\n // return state\n return { handler, result, prevToken, isPaste };\n }\n }\n }\n\n // no handler found\n return {};\n },\n },\n\n view: () => ({\n update: (view: EditorView) => {\n // increment version\n this.version++;\n\n // set view\n this.view = view;\n\n // update completions\n this.updateCompletions(view, true);\n },\n\n destroy: () => {\n // unsubscribe from events\n this.scrollUnsubscribe();\n window.document.removeEventListener('focusin', this.clearCompletions);\n\n // tear down the popup\n this.clearCompletions();\n },\n }),\n\n props: {\n decorations: (state: EditorState) => {\n const pluginState = key.getState(state);\n return pluginState?.result?.decorations;\n },\n\n handleDOMEvents: {\n keydown: (view: EditorView, event: Event) => {\n const kbEvent = event as KeyboardEvent;\n\n let handled = false;\n\n // determine meaning of keys based on orientation\n const forwardKey = this.horizontal ? 'ArrowRight' : 'ArrowDown';\n const backwardKey = this.horizontal ? 'ArrowLeft' : 'ArrowUp';\n\n if (this.completionsActive()) {\n switch (kbEvent.key) {\n case 'Escape':\n this.dismissCompletions();\n handled = true;\n break;\n case 'Enter':\n case 'Tab':\n this.insertCompletion(view, this.selectedIndex);\n handled = true;\n break;\n case backwardKey:\n this.selectedIndex = Math.max(this.selectedIndex - 1, 0);\n this.renderCompletions(view);\n handled = true;\n break;\n case forwardKey:\n this.selectedIndex = Math.min(this.selectedIndex + 1, this.completions.length - 1);\n this.renderCompletions(view);\n handled = true;\n break;\n case 'PageUp':\n this.selectedIndex = Math.max(this.selectedIndex - this.completionPageSize(), 0);\n this.renderCompletions(view);\n handled = true;\n break;\n case 'PageDown':\n this.selectedIndex = Math.min(\n this.selectedIndex + this.completionPageSize(),\n this.completions.length - 1,\n );\n this.renderCompletions(view);\n handled = true;\n break;\n case 'End':\n this.selectedIndex = this.completions.length - 1;\n this.renderCompletions(view);\n handled = true;\n break;\n case 'Home':\n this.selectedIndex = 0;\n this.renderCompletions(view);\n handled = true;\n break;\n }\n }\n\n // supress event if we handled it\n if (handled) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n // return status\n return handled;\n },\n },\n },\n });\n\n // capture reference to ui\n this.ui = ui;\n\n // hide completions when we scroll or the focus changes\n this.clearCompletions = this.clearCompletions.bind(this);\n this.scrollUnsubscribe = events.subscribe(ScrollEvent, this.clearCompletions);\n window.document.addEventListener('focusin', this.clearCompletions);\n }\n\n private updateCompletions(view: EditorView, resetSelection: boolean) {\n const state = key.getState(view.state);\n\n if (state?.handler && state?.result) {\n // track the request version to invalidate the result if an\n // update happens after it goes into flight\n const requestVersion = this.version;\n\n // make an async request for the completions, update allCompletions,\n // and then apply any filter we have (allows the completer to just return\n // everything from the aysnc query and fall back to the filter for refinement)\n const requestAllCompletions = async () => {\n // fetch completions\n const completions = await state.result!.completions(view.state, { isPaste: state.isPaste === true });\n\n // if we don't have a handler or result then return\n if (!state.handler || !state.result) {\n return;\n }\n\n // function to update completions\n const updateCompletions = (updatedCompletions: any[]) => {\n // save completions\n this.setAllCompletions(updatedCompletions, !!state.handler?.view.horizontal, resetSelection);\n\n // display if the request still maps to the current state\n if (state.handler && state.result && this.version === requestVersion) {\n // if there is a filter then call it and update displayed completions\n const displayedCompletions = state.handler.filter\n ? state.handler.filter(this.allCompletions, view.state, state.result.token)\n : null;\n if (displayedCompletions) {\n this.setDisplayedCompletions(displayedCompletions, !!state.handler.view.horizontal, resetSelection);\n }\n\n this.renderCompletions(view);\n }\n };\n\n // if we got an array, just set it. if we got a stream then poll it for it's update\n if (Array.isArray(completions)) {\n updateCompletions(completions);\n } else {\n const completionStream = completions as CompletionsStream;\n updateCompletions(completionStream.items);\n const pollingInterval = setInterval(() => {\n // if the document has been updated then invalidate\n if (this.version !== requestVersion) {\n clearInterval(pollingInterval);\n } else {\n // otherwise check the stream\n const result = completionStream.stream();\n if (result) {\n clearInterval(pollingInterval);\n updateCompletions(result);\n }\n }\n }, 300);\n }\n };\n\n // first see if we can do this exclusively via filter\n if (state.prevToken && state.handler.filter) {\n this.completionQueue.enqueue(async () => {\n // display if the request still maps to the current state\n if (state.handler && state.result && this.version === requestVersion) {\n const filteredCompletions = state.handler.filter!(\n this.allCompletions,\n view.state,\n state.result.token,\n state.prevToken,\n );\n\n // got a hit from the filter!\n if (filteredCompletions) {\n this.setDisplayedCompletions(filteredCompletions, !!state.handler.view.horizontal, resetSelection);\n this.renderCompletions(view);\n\n // couldn't use the filter, do a full request for all completions (so long as we aren't\n // already waiting on a strea,)\n } else {\n await requestAllCompletions();\n }\n }\n });\n } else {\n // no prevToken or no filter for this handler, request everything\n this.completionQueue.enqueue(requestAllCompletions);\n }\n } else {\n // no handler/result for this document state\n this.clearCompletions();\n }\n }\n\n private renderCompletions(view: EditorView) {\n const state = key.getState(view.state);\n\n if (state && state.handler && (this.completions.length > 0 || !state.handler.view.hideNoResults)) {\n const props = {\n handler: state.handler!,\n pos: state.result!.pos + (state.result!.offset || 0),\n completions: this.completions,\n selectedIndex: this.selectedIndex,\n noResults: this.ui.context.translateText('No Results'),\n onClick: (index: number) => {\n this.insertCompletion(view, index);\n },\n onHover: (index: number) => {\n this.selectedIndex = index;\n this.renderCompletions(view);\n },\n ui: this.ui,\n };\n\n // create the completion popup if we need to\n if (this.completionPopup === null) {\n this.completionPopup = createCompletionPopup();\n window.document.body.appendChild(this.completionPopup);\n }\n\n // render\n renderCompletionPopup(view, props, this.completionPopup);\n } else {\n // hide\n this.hideCompletionPopup();\n }\n }\n\n private async insertCompletion(view: EditorView, index: number) {\n // default index if not specified\n index = index || this.selectedIndex;\n\n const state = key.getState(view.state);\n if (state && state.handler) {\n // perform replacement\n const result = state.result!;\n\n // check low level handler first\n if (state.handler.replace) {\n // execute replace\n await state.handler.replace(view, result.pos, this.completions[index]);\n\n // use higher level handler\n } else if (state.handler.replacement) {\n // get replacement from handler\n const replacement = state.handler.replacement(view.state.schema, this.completions[index]);\n if (replacement) {\n const tr = view.state.tr;\n performCompletionReplacement(tr, result.pos, replacement);\n view.dispatch(tr);\n }\n }\n // set focus\n view.focus();\n }\n this.clearCompletions();\n }\n\n // explicit user dismiss of completion (e.g. Esc key)\n private async dismissCompletions() {\n // call lower-level replace on any active handler (w/ null). this gives\n // them a chance to dismiss any artifacts that were explicitly inserted\n // to trigger the handler (e.g. a cmd+/ for omni-insert)\n if (this.view) {\n const state = key.getState(this.view.state);\n if (state?.result && state.handler) {\n if (state.handler.replace) {\n await state.handler.replace(this.view, state.result.pos, null);\n } else if (state.handler.replacement) {\n state.handler.replacement(this.view.state.schema, null);\n }\n }\n }\n\n this.clearCompletions();\n }\n\n private clearCompletions() {\n this.setAllCompletions([], false, true);\n this.hideCompletionPopup();\n }\n\n private hideCompletionPopup() {\n if (this.completionPopup) {\n destroyCompletionPopup(this.completionPopup);\n this.completionPopup = null;\n }\n }\n\n private completionsActive() {\n return !!this.completionPopup;\n }\n\n private setAllCompletions(completions: any[], horizontal: boolean, resetSelection: boolean) {\n this.allCompletions = completions;\n this.setDisplayedCompletions(completions, horizontal, resetSelection);\n }\n\n private setDisplayedCompletions(completions: any[], horizontal: boolean, resetSelection: boolean) {\n this.completions = completions;\n this.horizontal = !!horizontal;\n\n // reset selection if requested or if the current index exceeds the # of completions\n if (resetSelection || this.selectedIndex > this.completions.length - 1) {\n this.selectedIndex = 0;\n }\n }\n\n private completionPageSize() {\n if (this.view) {\n const state = key.getState(this.view.state);\n return state?.handler?.view.maxVisible || kCompletionDefaultMaxVisible;\n } else {\n return kCompletionDefaultMaxVisible;\n }\n }\n}\n\n// extract the text before the cursor, dealing with block separators and\n// non-text leaf chracters (this is based on code in prosemirror-inputrules)\nfunction completionTextBeforeCursor(selection: Selection, maxLength = 500) {\n const { $head } = selection;\n return $head.parent.textBetween(\n Math.max(0, $head.parentOffset - maxLength), // start\n $head.parentOffset, // end\n undefined, // block separator\n '\\ufffc', // leaf char\n );\n}\n","/*\n * completion-popup.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nimport React, { useEffect } from 'react';\nimport ReactDOM from 'react-dom';\n\nimport zenscroll from 'zenscroll';\n\nimport { applyStyles } from '../../api/css';\nimport {\n CompletionHandler,\n kCompletionDefaultItemHeight,\n kCompletionDefaultMaxVisible,\n kCompletionDefaultWidth,\n} from '../../api/completion';\nimport { Popup } from '../../api/widgets/popup';\n\nimport './completion-popup.css';\nimport { EditorUI } from '../../api/ui';\n\nconst kNoResultsHeight = 22;\n\nexport interface CompletionListProps {\n handler: CompletionHandler;\n pos: number;\n completions: any[];\n selectedIndex: number;\n noResults: string;\n onHover: (index: number) => void;\n onClick: (index: number) => void;\n ui: EditorUI;\n}\n\nexport function createCompletionPopup(): HTMLElement {\n const popup = window.document.createElement('div');\n popup.style.position = 'absolute';\n popup.style.zIndex = '900';\n return popup;\n}\n\nexport function renderCompletionPopup(view: EditorView, props: CompletionListProps, popup: HTMLElement) {\n // position popup\n const size = completionPopupSize(props);\n const positionStyles = completionPopupPositionStyles(view, props.pos, size.width, size.height);\n applyStyles(popup, [], positionStyles);\n\n // render popup\n ReactDOM.render(, popup);\n}\n\nexport function destroyCompletionPopup(popup: HTMLElement) {\n ReactDOM.unmountComponentAtNode(popup);\n popup.remove();\n}\n\nconst CompletionPopup: React.FC = props => {\n // main completion popup + class + dark mode if appropriate\n const classes = ['pm-completion-popup'].concat(props.ui.prefs.darkMode() ? ['pm-dark-mode'] : []);\n return (\n \n \n \n );\n};\n\nconst CompletionList: React.FC = props => {\n const size = completionPopupSize(props);\n const itemHeight = props.handler.view.height || kCompletionDefaultItemHeight;\n\n // keep selected index in view\n const containerRef = React.useRef(null);\n useEffect(() => {\n const containerEl = containerRef.current;\n if (containerEl) {\n const rows = containerEl.getElementsByClassName('pm-completion-list-item-row');\n const scrollToRow = rows.item(props.selectedIndex);\n if (scrollToRow) {\n const scroller = zenscroll.createScroller(containerEl);\n scroller.intoView(scrollToRow as HTMLElement);\n }\n }\n }, [props.selectedIndex]);\n\n // item event handler\n const itemEventHandler = (index: number, handler: (index: number) => void) => {\n return (event: React.MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n handler(index);\n };\n };\n\n // completion source based on orientation\n const completions = props.handler.view.horizontal ? horizontalCompletions : verticalCompletions;\n\n const classes = ['pm-completion-list'].concat(props.handler.view.horizontal ? ['pm-completion-list-horizontal'] : []);\n\n return (\n \n \n {completionsHeader(props.handler, props.completions.length, props)}\n \n {completions(props, itemHeight, itemEventHandler)}\n {props.completions.length === 0 ? completionsNoResults(props) : null}\n \n
\n \n );\n};\n\nfunction completionsHeader(handler: CompletionHandler, completionCount: number, props: CompletionListProps) {\n if (handler.view.header) {\n const completionHeader = handler.view.header ? handler.view.header() : undefined;\n const headerProps = { message: completionHeader?.message, ...props };\n\n if (completionHeader) {\n const header = React.createElement(completionHeader.component, headerProps);\n return (\n \n \n \n {header}\n \n \n \n );\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\ntype ItemEventHandler = (index: number, handler: (index: number) => void) => (event: React.MouseEvent) => void;\n\nfunction verticalCompletions(props: CompletionListProps, itemHeight: number, itemEventHandler: ItemEventHandler) {\n return props.completions.map((completion, index) => {\n const { key, cell } = completionItemCell(props, completion, index);\n return (\n \n {cell}\n \n );\n });\n}\n\nfunction horizontalCompletions(props: CompletionListProps, itemHeight: number, itemEventHandler: ItemEventHandler) {\n const cellWidths = horizontalCellWidths(props);\n return (\n \n {props.completions.map((completion, index) => {\n const { cell } = completionItemCell(props, completion, index, cellWidths[index], itemEventHandler);\n return cell;\n })}\n \n );\n}\n\nfunction completionItemCell(\n props: CompletionListProps,\n completion: any,\n index: number,\n width?: number,\n itemEventHandler?: ItemEventHandler,\n) {\n // need to provide key for both wrapper and item\n // https://stackoverflow.com/questions/28329382/understanding-unique-keys-for-array-children-in-react-js#answer-28329550\n const key = props.handler.view.key(completion);\n const item = React.createElement(props.handler.view.component, { ...completion, key });\n const className = 'pm-completion-list-item' + (index === props.selectedIndex ? ' pm-selected-list-item' : '');\n const cell = (\n \n {item}\n \n );\n return { key, cell };\n}\n\nfunction completionsNoResults(props: CompletionListProps) {\n return (\n \n {props.noResults}\n \n );\n}\n\nfunction completionPopupSize(props: CompletionListProps) {\n // kicker for list margins/border/etc\n const kCompletionsChrome = 8;\n\n // get view props (apply defaults)\n let { height: itemHeight = kCompletionDefaultItemHeight } = props.handler.view;\n const { maxVisible = kCompletionDefaultMaxVisible, width = kCompletionDefaultWidth } = props.handler.view;\n\n // add 2px for the border to item heights\n const kBorderPad = 2;\n itemHeight += kBorderPad;\n\n // compute header height\n let headerHeight = 0;\n if (props.handler.view.header) {\n const completionHeader = props.handler.view.header();\n if (completionHeader) {\n headerHeight = completionHeader.height + kBorderPad;\n }\n }\n\n // complete based on horizontal vs. vertical\n if (props.handler.view.horizontal) {\n // horizontal mode can provide explicit item widths\n const kTablePadding = 8;\n const kCellPadding = 8;\n const kCellBorders = 2;\n const totalWidth =\n horizontalCellWidths(props).reduce((total, current) => {\n return total + (current + kCellPadding + kCellBorders);\n }, 0) + kTablePadding;\n\n return {\n width: totalWidth,\n height: headerHeight + itemHeight + kCompletionsChrome,\n };\n } else {\n // compute height (subject it to a minimum require to display 'no results')\n const height =\n headerHeight +\n kCompletionsChrome +\n Math.max(itemHeight * Math.min(maxVisible, props.completions.length), kNoResultsHeight);\n\n // return\n return { width, height };\n }\n}\n\nfunction horizontalCellWidths(props: CompletionListProps) {\n const { width = kCompletionDefaultWidth } = props.handler.view;\n return props.completions.map((_completion, index) => {\n if (props.handler.view.horizontalItemWidths) {\n return props.handler.view.horizontalItemWidths[index] || width;\n } else {\n return width;\n }\n });\n}\n\nfunction completionPopupPositionStyles(view: EditorView, pos: number, width: number, height: number) {\n // some constants\n const kMinimumPaddingToEdge = 5;\n const kCompletionsVerticalPadding = 5;\n\n // default position\n const selectionCoords = view.coordsAtPos(pos);\n\n let top = selectionCoords.bottom + kCompletionsVerticalPadding;\n let left = selectionCoords.left;\n\n // see if we need to be above\n if (top + height + kMinimumPaddingToEdge >= window.innerHeight) {\n top = selectionCoords.top - height - kCompletionsVerticalPadding;\n }\n\n // see if we need to be to the left (use cursor as pos in this case)\n if (left + width + kMinimumPaddingToEdge >= window.innerWidth) {\n const cursorCoords = view.coordsAtPos(view.state.selection.head);\n left = cursorCoords.right - width;\n }\n\n return {\n left: left + 'px',\n top: top + 'px',\n };\n}\n","/*\n * popup.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport React from 'react';\n\nimport { WidgetProps } from './react';\n\nexport type PopupProps = WidgetProps;\n\nexport const Popup: React.FC = props => {\n const className = ['pm-popup', 'pm-text-color', 'pm-proportional-font', 'pm-pane-border-color', 'pm-background-color']\n .concat(props.classes || [])\n .join(' ');\n\n const style: React.CSSProperties = {\n ...props.style,\n position: 'absolute',\n zIndex: 10,\n };\n\n return (\n
\n {props.children}\n
\n );\n};\n","/*\n * promise.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\ninterface PendingPromise {\n promise: () => Promise;\n resolve: (result: T) => void;\n reject: (reason: any) => void;\n}\n\nexport class PromiseQueue {\n private queue = new Array>();\n private running = false;\n\n public enqueue(promise: () => Promise) {\n return new Promise((resolve, reject) => {\n this.queue.push({\n promise,\n resolve,\n reject,\n });\n this.dequeue();\n });\n }\n\n private dequeue() {\n if (this.running) {\n return false;\n }\n const item = this.queue.shift();\n if (!item) {\n return false;\n }\n try {\n this.running = true;\n item\n .promise()\n .then(value => {\n this.running = false;\n item.resolve(value);\n this.dequeue();\n })\n .catch(err => {\n this.running = false;\n item.reject(err);\n this.dequeue();\n });\n } catch (err) {\n this.running = false;\n item.reject(err);\n this.dequeue();\n }\n return true;\n }\n}\n","/*\n * spelling-doc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView, DecorationSet, Decoration } from 'prosemirror-view';\nimport { TextSelection, Plugin, PluginKey, EditorState, Transaction } from 'prosemirror-state';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { PandocMark } from '../../api/mark';\nimport {\n EditorWordRange,\n EditorSpellingDoc,\n EditorWordSource,\n EditorAnchor,\n EditorRect,\n EditorUISpelling,\n} from '../../api/spelling';\nimport { scrollIntoView } from '../../api/scroll';\n\nimport { excludedMarks, getWords, spellcheckerWord } from './spelling';\n\n// get the document interface required by interactive spellchecking\n\nexport function getSpellingDoc(\n view: EditorView,\n marks: readonly PandocMark[],\n spelling: EditorUISpelling,\n): EditorSpellingDoc {\n // alias schema\n const schema = view.state.schema;\n\n // intialize marks we don't want to check\n const excluded = excludedMarks(schema, marks);\n\n // check begin\n spellingDocPlugin(view.state).onCheckBegin();\n\n return {\n getWords: (start: number, end: number): EditorWordSource => {\n return getWords(view.state, start, end, spelling, excluded);\n },\n\n createAnchor: (pos: number): EditorAnchor => {\n return spellingDocPlugin(view.state).createAnchor(pos);\n },\n\n shouldCheck: (_wordRange: EditorWordRange): boolean => {\n return true;\n },\n\n setSelection: (wordRange: EditorWordRange) => {\n const tr = view.state.tr;\n tr.setSelection(TextSelection.create(tr.doc, wordRange.start, wordRange.end));\n view.dispatch(tr);\n },\n\n getText: (wordRange: EditorWordRange): string => {\n const word = view.state.doc.textBetween(wordRange.start, wordRange.end);\n return spellcheckerWord(word);\n },\n\n replaceSelection: (text: string) => {\n const tr = view.state.tr;\n const selectionMarks = tr.selection.$from.marks();\n tr.replaceSelectionWith(view.state.schema.text(text, selectionMarks), false);\n view.dispatch(tr);\n },\n\n getCursorPosition: (): number => {\n return view.state.selection.to;\n },\n\n getSelectionStart: (): number => {\n return view.state.selection.from;\n },\n\n getSelectionEnd: (): number => {\n return view.state.selection.to;\n },\n\n getCursorBounds: (): EditorRect => {\n const fromCoords = view.coordsAtPos(view.state.selection.from);\n const toCoords = view.coordsAtPos(view.state.selection.to);\n\n return {\n x: Math.min(fromCoords.left, toCoords.left),\n y: fromCoords.top,\n width: Math.abs(fromCoords.left - toCoords.left),\n height: toCoords.bottom - fromCoords.top,\n };\n },\n\n moveCursorNearTop: () => {\n scrollIntoView(view, view.state.selection.from, false, undefined, 100);\n },\n\n dispose: () => {\n spellingDocPlugin(view.state).onCheckEnd(view);\n },\n };\n}\n\n// companion plugin for SpellingDoc provided above (shows 'fake' selection during\n// interactive spell check dialog and maintains anchor position(s) across\n// transactions that occur while the dialog/doc is active)\n\nconst spellingDocKey = new PluginKey('spelling-doc-plugin');\n\nfunction spellingDocPlugin(state: EditorState) {\n return spellingDocKey.get(state) as SpellingDocPlugin;\n}\n\nexport class SpellingDocPlugin extends Plugin {\n private checking = false;\n private anchors: SpellingAnchor[] = [];\n\n constructor() {\n super({\n key: spellingDocKey,\n state: {\n init: () => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, oldState: EditorState, newState: EditorState) => {\n if (this.checking) {\n // map anchors\n this.anchors.forEach(anchor => {\n anchor.setPosition(tr.mapping.map(anchor.getPosition()));\n });\n\n // show selection\n if (!tr.selection.empty) {\n return DecorationSet.create(tr.doc, [\n Decoration.inline(tr.selection.from, tr.selection.to, { class: 'pm-selected-text' }),\n ]);\n }\n }\n\n return DecorationSet.empty;\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return spellingDocKey.getState(state);\n },\n },\n });\n }\n\n public createAnchor(pos: number) {\n const anchor = new SpellingAnchor(pos);\n this.anchors.push(anchor);\n return anchor;\n }\n\n public onCheckBegin() {\n this.checking = true;\n }\n\n public onCheckEnd(view: EditorView) {\n this.checking = false;\n this.anchors = [];\n\n if (!view.state.selection.empty) {\n const tr = view.state.tr;\n setTextSelection(tr.selection.to)(tr);\n view.dispatch(tr);\n }\n }\n}\n\nclass SpellingAnchor implements EditorAnchor {\n private pos = 0;\n constructor(pos: number) {\n this.pos = pos;\n }\n public getPosition() {\n return this.pos;\n }\n public setPosition(pos: number) {\n this.pos = pos;\n }\n}\n\nconst extension = () => {\n return {\n plugins: () => {\n return [new SpellingDocPlugin()];\n },\n };\n};\n\nexport default extension;\n","/*\n * spelling.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { MarkType, Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState } from 'prosemirror-state';\n\nimport { EditorWordSource, EditorWordRange, EditorUISpelling, kCharClassNonWord } from '../../api/spelling';\nimport { PandocMark, getMarkRange } from '../../api/mark';\n\nexport const beginDocPos = () => 1;\nexport const endDocPos = (doc: ProsemirrorNode) => doc.nodeSize - 2;\n\nexport function getWords(\n state: EditorState,\n start: number,\n end: number,\n spelling: EditorUISpelling,\n excluded: MarkType[],\n): EditorWordSource {\n // provide defaults\n if (start === -1) {\n start = beginDocPos();\n }\n if (end === -1) {\n end = endDocPos(state.doc);\n }\n\n // enlarge range to begin/end\n const beginPos = findBeginWord(state, start, spelling.classifyCharacter);\n const endPos = findEndWord(state, end, spelling.classifyCharacter);\n\n const words: EditorWordRange[] = [];\n let currentPos = beginPos;\n while (currentPos <= endPos) {\n // advance until we find a word\n currentPos = advanceToWord(state, currentPos, spelling.classifyCharacter);\n if (currentPos >= endPos) {\n break;\n }\n\n // find end of word\n const endWordPos = findEndWord(state, currentPos, spelling.classifyCharacter);\n if (endWordPos === currentPos) {\n break;\n }\n\n // add word if it doesn't have an excluded type\n if (!excludeWord(state.doc, currentPos, endWordPos, excluded)) {\n const wordText = state.doc.textBetween(currentPos, endWordPos);\n words.push(\n ...spelling.breakWords(wordText).map(wordRange => {\n return {\n start: currentPos + wordRange.start,\n end: currentPos + wordRange.end,\n };\n }),\n );\n }\n\n // next word\n currentPos = endWordPos;\n }\n\n // return iterator over word range\n return {\n hasNext: () => {\n return words.length > 0;\n },\n next: () => {\n if (words.length > 0) {\n return words.shift()!;\n } else {\n return null;\n }\n },\n };\n}\n\nfunction excludeWord(doc: ProsemirrorNode, from: number, to: number, excluded: MarkType[]) {\n // does it have one of our excluded mark types?\n if (excluded.some(markType => doc.rangeHasMark(from, to, markType))) {\n return true;\n }\n\n // is it in a code block\n const $from = doc.resolve(from);\n if ($from.parent.isBlock && $from.parent.type.spec.code) {\n return true;\n }\n\n // it is in a link mark where the link text is a url?\n const schema = doc.type.schema;\n if (schema.marks.link && doc.rangeHasMark(from, to, schema.marks.link)) {\n const range = getMarkRange(doc.resolve(from), schema.marks.link);\n if (range && /^[a-z]+:\\/\\/.*$/.test(doc.textBetween(range.from, range.to))) {\n return true;\n }\n }\n\n // don't exclude\n return false;\n}\n\nexport function advanceToWord(state: EditorState, pos: number, classifier: (ch: number) => number) {\n while (pos < endDocPos(state.doc)) {\n const nextChar = charAt(state.doc, pos);\n if (classifier(nextChar) !== kCharClassNonWord) {\n break;\n } else {\n pos++;\n }\n }\n return pos;\n}\n\nexport function findBeginWord(state: EditorState, pos: number, classifier: (ch: number) => number) {\n // scan backwards until a non-word character is encountered\n while (pos >= beginDocPos()) {\n const prevChar = charAt(state.doc, pos - 1);\n if (classifier(prevChar) === kCharClassNonWord) {\n break;\n } else {\n pos--;\n }\n }\n // return the position\n return pos;\n}\n\nexport function findEndWord(state: EditorState, pos: number, classifier: (ch: number) => number) {\n // scan forwards until a non-word character is encountered\n while (pos < endDocPos(state.doc)) {\n const nextChar = charAt(state.doc, pos);\n if (classifier(nextChar) === kCharClassNonWord) {\n break;\n } else {\n pos++;\n }\n }\n\n // return the position\n return pos;\n}\n\n// get the chracter code at the specified position, returning character code 32 (a space)\n// for begin/end of document, block boundaries, and non-text leaf nodes\nexport function charAt(doc: ProsemirrorNode, pos: number) {\n if (pos < beginDocPos() || pos >= endDocPos(doc)) {\n return 32; // space for doc boundary\n } else {\n return (doc.textBetween(pos, pos + 1, ' ', ' ') || ' ').charCodeAt(0);\n }\n}\n\nexport function excludedMarks(schema: Schema, marks: readonly PandocMark[]): MarkType[] {\n return marks.filter(mark => mark.noSpelling).map(mark => schema.marks[mark.name]);\n}\n\nexport function spellcheckerWord(word: string) {\n return word.replace(/’/g, \"'\");\n}\n","/*\n * spelling.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport const kCharClassWord = 0;\nexport const kCharClassBoundary = 1;\nexport const kCharClassNonWord = 2;\n\nexport interface EditorUISpelling {\n // realtime interface\n realtimeEnabled: () => boolean;\n checkWords: (words: string[]) => string[];\n suggestionList: (word: string, callback: (suggestions: string[]) => void) => void;\n\n // dictionary\n isWordIgnored: (word: string) => boolean;\n ignoreWord: (word: string) => void;\n unignoreWord: (word: string) => void;\n addToDictionary: (word: string) => void;\n\n // word breaking\n breakWords: (text: string) => EditorWordRange[];\n classifyCharacter: (ch: number) => number;\n}\n\nexport interface EditorAnchor {\n getPosition: () => number;\n}\n\nexport interface EditorRect {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\nexport interface EditorWordRange {\n start: number;\n end: number;\n}\n\nexport interface EditorWordSource {\n hasNext: () => boolean;\n next: () => EditorWordRange | null;\n}\n\nexport interface EditorSpellingDoc {\n getWords: (start: number, end: number) => EditorWordSource;\n\n createAnchor: (pos: number) => EditorAnchor;\n\n shouldCheck: (wordRange: EditorWordRange) => boolean;\n setSelection: (wordRange: EditorWordRange) => void;\n getText: (wordRange: EditorWordRange) => string;\n\n getCursorPosition: () => number;\n replaceSelection: (text: string) => void;\n getSelectionStart: () => number;\n getSelectionEnd: () => number;\n\n getCursorBounds: () => EditorRect;\n moveCursorNearTop: () => void;\n\n dispose: () => void;\n}\n","/*\n * spelling-realtime.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, MarkType } from 'prosemirror-model';\nimport { Plugin, PluginKey, EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { DecorationSet, EditorView, Decoration, DecorationAttrs } from 'prosemirror-view';\nimport { AddMarkStep, RemoveMarkStep } from 'prosemirror-transform';\nimport { ChangeSet } from 'prosemirror-changeset';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { FocusEvent } from '../../api/event-types';\nimport { PandocMark } from '../../api/mark';\nimport {\n EditorUISpelling,\n EditorWordRange,\n kCharClassWord\n} from '../../api/spelling';\nimport { EditorEvents } from '../../api/events';\nimport { kAddToHistoryTransaction } from '../../api/transaction';\nimport { EditorUI, EditorMenuItem } from '../../api/ui';\n\nimport { excludedMarks, getWords, spellcheckerWord, findBeginWord, findEndWord, charAt } from './spelling';\n\nconst kUpdateSpellingTransaction = 'updateSpelling';\nconst kInvalidateSpellingWordTransaction = 'invalidateSpellingWord';\nconst kSpellingErrorClass = 'pm-spelling-error';\n\nconst realtimeSpellingKey = new PluginKey('spelling-realtime-plugin');\n\nexport function realtimeSpellingPlugin(\n schema: Schema,\n marks: readonly PandocMark[],\n ui: EditorUI,\n events: EditorEvents,\n) {\n return new RealtimeSpellingPlugin(excludedMarks(schema, marks), ui, events);\n}\n\nexport function invalidateAllWords(view: EditorView) {\n updateSpelling(view);\n}\n\nexport function invalidateWord(view: EditorView, word: string) {\n const tr = view.state.tr;\n tr.setMeta(kInvalidateSpellingWordTransaction, word);\n tr.setMeta(kAddToHistoryTransaction, false);\n view.dispatch(tr);\n}\n\nclass RealtimeSpellingPlugin extends Plugin {\n // track whether we've ever had the focus (don't do any spelling operations until then)\n private hasBeenFocused = true;\n\n private view: EditorView | null = null;\n private readonly ui: EditorUI;\n\n constructor(excluded: MarkType[], ui: EditorUI, events: EditorEvents) {\n super({\n key: realtimeSpellingKey,\n view: (view: EditorView) => {\n this.view = view;\n return {};\n },\n state: {\n init: (_config, state: EditorState) => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, oldState: EditorState, newState: EditorState) => {\n // if we somehow manage to get focus w/o our FocusEvent (below) being called then also\n // flip the hasBeenFocused bit here\n if (this.view?.hasFocus()) {\n this.hasBeenFocused = true;\n }\n\n // don't continue if either realtime spelling is disabled or we have never been focused\n if (!this.ui.spelling.realtimeEnabled() || !this.hasBeenFocused) {\n return DecorationSet.empty;\n }\n\n if (tr.getMeta(kUpdateSpellingTransaction)) {\n // explicit update request invalidates any existing decorations (this can happen when\n // we get focus for the very first time or when the main or secondary dictionaries change)\n return DecorationSet.create(newState.doc, spellingDecorations(newState, ui.spelling, excluded));\n } else if (tr.getMeta(kInvalidateSpellingWordTransaction)) {\n // for word invalidations we search through the decorations and remove words that match\n const word = tr.getMeta(kInvalidateSpellingWordTransaction) as string;\n\n // find decorations that have this word and remove them\n const wordDecos = old.find(undefined, undefined, spec => spec.word === word);\n\n // return decorators w/ those words removed\n return old.remove(wordDecos);\n } else if (tr.docChanged) {\n // perform an incremental update of spelling decorations (invalidate and re-scan\n // for decorations in changed ranges)\n\n // start w/ previous state\n let decos = old;\n\n // create change set from transaction\n let changeSet = ChangeSet.create(oldState.doc);\n changeSet = changeSet.addSteps(newState.doc, tr.mapping.maps);\n\n // collect ranges that had mark changes\n const markRanges: Array<{ from: number; to: number }> = [];\n for (const step of tr.steps) {\n if (step instanceof AddMarkStep || step instanceof RemoveMarkStep) {\n const markStep = step as any;\n markRanges.push({ from: markStep.from, to: markStep.to });\n }\n }\n\n // remove ranges = mark ranges + deleted ranges\n const removeRanges = markRanges.concat(\n changeSet.changes.map(change => ({ from: change.fromA, to: change.toA })),\n );\n\n // remove decorations from deleted ranges (expanding ranges to word boundaries)\n for (const range of removeRanges) {\n const fromPos = findBeginWord(oldState, range.from, ui.spelling.classifyCharacter);\n const toPos = findEndWord(oldState, range.to, ui.spelling.classifyCharacter);\n decos = decos.remove(decos.find(fromPos, toPos));\n }\n\n // map decoration positions to new document\n decos = decos.map(tr.mapping, tr.doc);\n\n // add ranges = mark ranges + inserted ranges\n const addRanges = markRanges.concat(\n changeSet.changes.map(change => ({ from: change.fromB, to: change.toB })),\n );\n\n // scan inserted ranges for spelling decorations (don't need to find word boundaries\n // b/c spellingDecorations already does that)\n for (const range of addRanges) {\n decos = decos.add(\n tr.doc,\n spellingDecorations(newState, ui.spelling, excluded, false, range.from - 1, range.to)\n );\n }\n\n // return decorators\n return decos;\n } else if (tr.selectionSet) {\n // if we had previously suppressed a decoration due to typing at the cursor, restore it\n // whenever the selection changes w/o the doc changing\n\n // start with previous state\n let decos = old;\n\n // find any special 'at cursor' errors\n const cursorDecos = decos.find(undefined, undefined, spec => !!spec.cursor);\n if (cursorDecos.length) {\n // there will only be one cursor, capture it's position then remove it\n const word = cursorDecos[0].spec.word as string;\n const { from, to } = cursorDecos[0];\n decos = decos.remove(cursorDecos);\n\n // add it back in as a real spelling error\n decos = decos.add(tr.doc, [Decoration.inline(from, to, { class: kSpellingErrorClass }, { word })]);\n }\n\n // return decorators\n return decos;\n } else {\n // no content or selection change, return old w/o mapping\n return old;\n }\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return realtimeSpellingKey.getState(state);\n },\n handleDOMEvents: {\n contextmenu: spellingSuggestionContextMenuHandler(ui),\n },\n },\n });\n\n // save reference to ui\n this.ui = ui;\n\n // trigger update on first focus\n const focusUnsubscribe = events.subscribe(FocusEvent, () => {\n if (this.view) {\n focusUnsubscribe();\n this.hasBeenFocused = true;\n updateSpelling(this.view);\n\n // call a second time as no words will be cached initially, this simplifies the\n // need for threading a callback through the entire plugin system\n const v = this.view;\n setTimeout(() => {\n if (v.dom?.isConnected) {\n updateSpelling(v);\n }\n }, 5000); \n }\n });\n }\n}\n\nfunction spellingDecorations(\n state: EditorState,\n spelling: EditorUISpelling,\n excluded: MarkType[],\n excludeCursor = false,\n from = -1,\n to = -1,\n): Decoration[] {\n\n // a map of wordText -> [wordRange...]\n const rangeMap = new Map();\n\n // break words\n const words = getWords(state, from, to, spelling, excluded);\n\n // spell check and return decorations for misspellings\n const decorations: Decoration[] = [];\n\n // words to pass to the spellchecker\n const wordsToCheck: string[] = [];\n\n while (words.hasNext()) {\n const word = words.next()!;\n const wordText = state.doc.textBetween(word.start, word.end);\n\n const ranges = rangeMap.get(wordText) || [];\n ranges.push(word);\n rangeMap.set(wordText, ranges);\n\n wordsToCheck.push(spellcheckerWord(wordText));\n }\n\n const incorrectWords: string[] = spelling.checkWords(wordsToCheck);\n\n for (const incorrectWord of incorrectWords) {\n const ranges: EditorWordRange[] | undefined = rangeMap.get(incorrectWord);\n\n if (!!ranges) {\n for (const range of ranges) {\n const attrs: DecorationAttrs = {};\n const spec: { [key: string]: any } = {\n word: incorrectWord,\n };\n if (excludeCursor && state.selection.head > range.start && state.selection.head <= range.end) {\n spec.cursor = true;\n } else {\n attrs.class = kSpellingErrorClass;\n }\n decorations.push(Decoration.inline(range.start, range.end, attrs, spec));\n }\n }\n }\n\n return decorations;\n}\n\nfunction spellingSuggestionContextMenuHandler(ui: EditorUI) {\n return (view: EditorView, event: Event) => {\n if (!ui.display.showContextMenu) {\n return false;\n }\n\n // helper to create a menu action\n const menuAction = (text: string, action: VoidFunction) => {\n return {\n text,\n exec: () => {\n action();\n view.focus();\n },\n };\n };\n\n // helper to show a context menu and prevent further event handling\n const showContextMenu = (menuItems: EditorMenuItem[]) => {\n // show the menu\n const { clientX, clientY } = event as MouseEvent;\n ui.display.showContextMenu!(menuItems, clientX, clientY);\n };\n\n if (event.target && event.target instanceof Node) {\n // alias schema\n const schema = view.state.schema;\n\n // find the spelling decoration at this position (if any)\n const pos = view.posAtDOM(event.target, 0);\n const deco = realtimeSpellingKey.getState(view.state)!.find(pos, pos);\n if (deco.length) {\n // prevent default handling\n event.stopPropagation();\n event.preventDefault();\n\n // get word\n const { from, to } = deco[0];\n const word = spellcheckerWord(view.state.doc.textBetween(from, to));\n\n const kMaxSuggetions = 5;\n ui.spelling.suggestionList(word, (suggestions: string[]): void => {\n // create menu w/ suggestions\n const menuItems: EditorMenuItem[] = suggestions.slice(0, kMaxSuggetions).map(suggestion => {\n return {\n text: suggestion,\n exec: () => {\n const tr = view.state.tr;\n tr.setSelection(TextSelection.create(tr.doc, from, to));\n const marks = tr.selection.$from.marks();\n tr.replaceSelectionWith(schema.text(suggestion, marks), false);\n setTextSelection(from + suggestion.length)(tr);\n view.dispatch(tr);\n view.focus();\n },\n };\n });\n if (menuItems.length) {\n menuItems.push({ separator: true });\n }\n\n menuItems.push(menuAction(ui.context.translateText('Ignore All'), () => ui.spelling.ignoreWord(word)));\n menuItems.push({ separator: true });\n menuItems.push(\n menuAction(ui.context.translateText('Add to Dictionary'), () => ui.spelling.addToDictionary(word)),\n );\n\n // show context menu\n showContextMenu(menuItems);\n });\n\n return true;\n }\n\n // find the word at this position and see if it's ignored. if so provide an unignore context menu\n const classify = ui.spelling.classifyCharacter;\n const mouseEvent = event as MouseEvent;\n const clickPos = view.posAtCoords({ left: mouseEvent.clientX, top: mouseEvent.clientY });\n if (clickPos) {\n const ch = charAt(view.state.doc, clickPos.pos);\n if (classify(ch) === kCharClassWord) {\n const from = findBeginWord(view.state, clickPos.pos, classify);\n const to = findEndWord(view.state, clickPos.pos, classify);\n const word = spellcheckerWord(view.state.doc.textBetween(from, to));\n\n if (ui.spelling.isWordIgnored(word)) {\n // prevent default handling\n event.stopPropagation();\n event.preventDefault();\n\n showContextMenu([\n menuAction(`${ui.context.translateText('Unignore')} \\'${word}\\'`, () => ui.spelling.unignoreWord(word)),\n ]);\n return true;\n }\n }\n }\n }\n\n return false;\n };\n}\n\nfunction updateSpelling(view: EditorView) {\n const tr = view.state.tr;\n tr.setMeta(kUpdateSpellingTransaction, true);\n tr.setMeta(kAddToHistoryTransaction, false);\n view.dispatch(tr);\n}\n","/*\n * pandoc_converter.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { findChildren } from 'prosemirror-utils';\n\nimport {\n PandocServer,\n PandocTokenReader,\n PandocNodeWriter,\n PandocMarkWriter,\n PandocPreprocessorFn,\n PandocBlockReaderFn,\n PandocPostprocessorFn,\n PandocInlineHTMLReaderFn,\n PandocWriterOptions,\n PandocTokensFilterFn,\n} from '../api/pandoc';\n\nimport { haveTableCellsWithInlineRcode } from '../api/rmd';\n\nimport { pandocFormatWith, PandocFormat, kGfmFormat, kCommonmarkFormat } from '../api/pandoc_format';\nimport { PandocCapabilities } from '../api/pandoc_capabilities';\nimport { PandocBlockCapsuleFilter, pandocMarkdownWithBlockCapsules } from '../api/pandoc_capsule';\n\nimport { ExtensionManager } from '../editor/editor-extensions';\n\nimport { pandocToProsemirror } from './pandoc_to_prosemirror';\nimport { pandocFromProsemirror } from './pandoc_from_prosemirror';\nimport { isParagraphNode } from '../api/paragraph';\n\nexport type PandocLineWrapping = 'none' | 'column' | 'sentence';\n\nexport interface PandocToProsemirrorResult {\n doc: ProsemirrorNode;\n line_wrapping: PandocLineWrapping;\n unrecognized: string[];\n example_lists: boolean;\n unparsed_meta: { [key: string]: any };\n}\n\nexport class PandocConverter {\n private readonly schema: Schema;\n private readonly preprocessors: readonly PandocPreprocessorFn[];\n private readonly postprocessors: readonly PandocPostprocessorFn[];\n private readonly readers: readonly PandocTokenReader[];\n private readonly tokensFilters: readonly PandocTokensFilterFn[];\n private readonly blockReaders: readonly PandocBlockReaderFn[];\n private readonly inlineHTMLReaders: readonly PandocInlineHTMLReaderFn[];\n private readonly blockCapsuleFilters: readonly PandocBlockCapsuleFilter[];\n private readonly nodeWriters: readonly PandocNodeWriter[];\n private readonly markWriters: readonly PandocMarkWriter[];\n private readonly pandoc: PandocServer;\n private readonly pandocCapabilities: PandocCapabilities;\n\n constructor(\n schema: Schema,\n extensions: ExtensionManager,\n pandoc: PandocServer,\n pandocCapabilities: PandocCapabilities,\n ) {\n this.schema = schema;\n\n this.preprocessors = extensions.pandocPreprocessors();\n this.postprocessors = extensions.pandocPostprocessors();\n this.readers = extensions.pandocReaders();\n this.tokensFilters = extensions.pandocTokensFilters();\n this.blockReaders = extensions.pandocBlockReaders();\n this.inlineHTMLReaders = extensions.pandocInlineHTMLReaders();\n this.blockCapsuleFilters = extensions.pandocBlockCapsuleFilters();\n this.nodeWriters = extensions.pandocNodeWriters();\n this.markWriters = extensions.pandocMarkWriters();\n\n this.pandoc = pandoc;\n this.pandocCapabilities = pandocCapabilities;\n }\n\n public async toProsemirror(markdown: string, format: PandocFormat): Promise {\n // save original markdown (for aligning capsule positions)\n const original = markdown;\n\n // adjust format. we always need to *read* raw_html, raw_attribute, and backtick_code_blocks b/c\n // that's how preprocessors hoist content through pandoc into our prosemirror token parser.\n // we always need to read with auto_identifiers so we can catch any auto-generated ids\n // required to fulfill links inside the document (we will strip out heading ids that\n // aren't explicit or a link target using the heading_ids returned with the ast). \n //\n // we always read all forms of tables (since they can always be written back out as raw_html)\n //\n // we also always read math (since it can always be output as 'asciimath')\n //\n // we disable 'smart' b/c that causes pandoc to insert non-breaking spaces before selected\n // abbreviations like e.g. rather, we do our own implementation of 'smart' when we read\n // PandocTokenType.Str from the ast\n\n // determine type of auto_ids\n const autoIds = format.extensions.gfm_auto_identifiers ? 'gfm_auto_identifiers' : 'auto_identifiers';\n const targetFormat = adjustedFormat(\n format.fullName,\n ['raw_html', 'raw_attribute', 'backtick_code_blocks', autoIds, \n 'grid_tables', 'pipe_tables', 'multiline_tables', 'simple_tables',\n 'tex_math_dollars'],\n ['smart'],\n );\n\n // run preprocessors\n this.preprocessors.forEach(preprocessor => {\n markdown = preprocessor(markdown);\n });\n\n // create source capsules\n this.blockCapsuleFilters.forEach(filter => {\n markdown = pandocMarkdownWithBlockCapsules(original, markdown, filter);\n });\n\n const ast = await this.pandoc.markdownToAst(markdown, targetFormat, []);\n const result = pandocToProsemirror(\n ast,\n this.schema,\n format.extensions,\n this.readers,\n this.tokensFilters,\n this.blockReaders,\n this.inlineHTMLReaders,\n this.blockCapsuleFilters,\n );\n\n // run post-processors\n this.postprocessors.forEach(postprocessor => {\n result.doc = postprocessor(result.doc);\n });\n\n // return the doc\n return result;\n }\n\n // NOTE: For a plain markdown file, this is the closest we can come to cannonicalizing w/ just pandoc:\n //\n // pandoc MANUAL.md --to markdown-auto_identifiers-smart -o MANUAL.md --self-contained --atx-headers --wrap=none\n //\n // For R Mardown files, we would need to pull out the Rmd chunks before sending to pandoc.\n //\n\n public async fromProsemirror(\n doc: ProsemirrorNode,\n pandocFormat: PandocFormat,\n options: PandocWriterOptions,\n ): Promise {\n // generate pandoc ast\n const output = pandocFromProsemirror(\n doc,\n this.pandocCapabilities.api_version,\n pandocFormat,\n this.nodeWriters,\n this.markWriters,\n );\n\n // adjust format. we always need to be able to write raw_attribute b/c that's how preprocessors\n // hoist content through pandoc into our prosemirror token parser. since we open this door when\n // reading, users could end up writing raw inlines, and in that case we want them to echo back\n // to the source document just the way they came in. for writing markdown from pm we don't\n // ever want to generate auto identifiers so we disable them here. we also disable smart b/c\n // we do this manually above in pandocFromProsemirror (so we can avoid pandoc's insertion of\n // nbsp's after abbreviations, which is more approriate for final output than editing)\n let format = adjustedFormat(\n pandocFormat.fullName,\n ['raw_html', 'raw_attribute'], // always enable\n ['auto_identifiers', 'gfm_auto_identifiers', 'smart'],\n ); // always disable\n\n // disable selected format options\n format = pandocFormatWith(format, disabledFormatOptions(format, pandocFormat, doc), '');\n\n // prepare pandoc options\n let pandocOptions: string[] = [];\n if (!options.atxHeaders) {\n pandocOptions.push('--markdown-headings=setext');\n }\n if (options.dpi) {\n pandocOptions.push('--dpi');\n }\n // default to block level references (validate known types)\n let referenceLocation = 'block';\n if (options.references?.location) {\n referenceLocation = ['block', 'section', 'document'].includes(options.references.location)\n ? options.references.location\n : 'block';\n }\n pandocOptions.push(`--reference-location=${referenceLocation}`);\n\n // references prefix (if any)\n if (options.references?.prefix) {\n pandocOptions.push('--id-prefix', options.references.prefix);\n }\n\n // provide wrap options\n pandocOptions = pandocOptions.concat(wrapOptions(options));\n\n // render to markdown\n const markdown = await this.pandoc.astToMarkdown(output.ast, format, pandocOptions);\n\n // normalize newlines (don't know if pandoc uses \\r\\n on windows)\n return markdown.replace(/\\r\\n|\\n\\r|\\r/g, '\\n');\n }\n}\n\n// adjust the specified format\nfunction adjustedFormat(format: string, extensions: string[], disabled: string[]) {\n let newFormat = pandocFormatWith(\n format,\n '',\n extensions.map(ext => `+${ext}`).join('') + disabled.map(ext => `-${ext}`).join(''),\n );\n\n // any extension specified needs to not have a - anywhere in the format\n extensions.forEach(ext => {\n newFormat = newFormat.replace('-' + ext, '');\n });\n\n return newFormat;\n}\n\nfunction disabledFormatOptions(format: string, pandocFormat: PandocFormat, doc: ProsemirrorNode) {\n // (prefer pipe and grid tables). users can still force the availability of these by\n // adding those format flags but all known markdown variants that support tables also\n // support pipe tables so this seems unlikely to ever be required.\n let disabledTableTypes = '-simple_tables-multiline_tables';\n\n // if there are tables with inline R code then disable grid tables (as the inline\n // R code will mess up the column boundaries)\n if (haveTableCellsWithInlineRcode(doc) || \n (!gridTablesRequired(doc) && pandocFormat.extensions.pipe_tables)) {\n disabledTableTypes += '-grid_tables';\n }\n\n // gfm and commonmark variants don't allow simple/multiline/grid tables (just pipe tables)\n // and it's an error to even include these in the markdown format specifier -- so for\n // these modes we just nix the disabling\n if (format.startsWith(kGfmFormat) || format.startsWith(kCommonmarkFormat)) {\n disabledTableTypes = '';\n }\n\n // return\n return disabledTableTypes;\n}\n\nfunction gridTablesRequired(doc: ProsemirrorNode) {\n const schema = doc.type.schema;\n const isTableCell = (node: ProsemirrorNode) => node.type === schema.nodes.table_cell || node.type === schema.nodes.table_header;\n return findChildren(doc, isTableCell).some(cell => {\n // various things require grid tables (basically anyting that requires embedded newlines)\n\n // multiple blocks\n if (cell.node.childCount > 1) {\n return true;\n }\n\n // non paragraph block\n if (!isParagraphNode(cell.node.firstChild)) {\n return true;\n }\n\n // paragraph with hard break\n const paraNode = cell.node.firstChild!;\n return findChildren(paraNode, node => node.type === schema.nodes.hard_break).length > 0;\n }); \n}\n\nfunction wrapOptions(options: PandocWriterOptions) {\n const pandocOptions: string[] = [];\n if (options.wrap) {\n if (options.wrap === 'none' || options.wrap === 'sentence') {\n pandocOptions.push('--wrap=none');\n } else {\n const column = parseInt(options.wrap, 10);\n if (column) {\n pandocOptions.push('--wrap=auto');\n pandocOptions.push(`--columns=${column}`);\n } else {\n pandocOptions.push('--wrap=none');\n }\n }\n } else {\n pandocOptions.push('--wrap=none');\n }\n return pandocOptions;\n}\n","/*\n * pandoc_capsule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\n\nimport { base64Encode, base64Decode } from './base64';\n\nimport { PandocToken, ProsemirrorWriter, mapTokens, PandocTokenType } from './pandoc';\n\n// constants used for creating/consuming capsules\nconst kFieldDelimiter = '\\n';\nconst kValueDelimiter = ':';\nconst kTypeField = 'type';\nconst kPositionField = 'position';\nconst kPrefixField = 'prefix';\nconst kSourceField = 'source';\nconst kSuffixField = 'suffix';\nconst kBlockCapsuleSentinel = '31B8E172-B470-440E-83D8-E6B185028602'.toLowerCase();\n\n// block capsule\nexport interface PandocBlockCapsule {\n type: string;\n position: number;\n prefix: string;\n source: string;\n suffix: string;\n}\n\n// preserve block source code through markdown parsing (e.g. for yaml metadata or rmd chunks).\n// block capsules remove markdown from the document before pandoc parses it (placing it into\n// a base64 encoded 'capsule'), then unwraps the capsule from the AST. All of this is done\n// by the function in this interface.\nexport interface PandocBlockCapsuleFilter {\n // unique type id for this capsule\n type: string;\n\n // regex that matches a prefix (match[1]), the source to preserve (match[2]), and a suffix (match[3])\n // we need the prefix/suffix for the cases where the preserved source needs to be put back exactly\n // where it came from (e.g. in a multi-line html comment). we also need it to fixup indentation in\n // cases where capsules are unwrapped within a code block or raw block. the prefix and suffix\n // must begin and end (respectively) with newlines, and consist entirely of whitespace (e.g. leading\n // space for indented block or incidental whitespace after block delimiter)\n match: RegExp;\n\n // optional seconary filter expression (applied to a successful match to ensure\n // that matching wasn't overly greedy)\n discard?: RegExp;\n\n // custom function for pulling out the 3 parts from a match (defaults to p1,p2,p3)\n extract?: (\n match: string,\n p1: string,\n p2: string,\n p3: string,\n p4: string,\n ) => { prefix: string; source: string; suffix: string };\n\n // provide a (text) envelope around the capsule, e.g.\n // - newlines to ensure that yaml is parsed as a standalone paragraph;\n // - backticks to ensure an Rmd is structurally parsed by pandoc as a codeblock\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) => string;\n\n // examine a piece of text from within the pandoc ast and, if approproate, substitute any\n // capsules of my type for the original text (otherwise just return the passed string).\n // this method will generally use encodedBlockCapsuleRegex to create a regex to search\n // with, then upon finding a capsule, will unpack it with parsePandocBlockCapsule, compare\n // the type against our own type, and in the case they match do the substitution.\n handleText: (text: string, tok: PandocToken) => string;\n\n // do you want to handle this token as a capsule object? if so return the capsule text\n // (only the filter will know how to extract it from a pandoc token b/c it knows\n // where it was parsed from and what happened in the 'enclose' method)\n handleToken: (tok: PandocToken) => string | null;\n\n // write a capsule as a pandoc node\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => void;\n}\n\n// transform the passed markdown to include base64 encoded block capsules as specified by the\n// provided capsule filter. capsules are used to hoist block types that we don't want pandoc\n// to see (e.g. yaml metadata or Rmd chunks) out of the markdown, only to be re-inserted\n// after pandoc has yielded an ast. block capsules are a single base64 encoded pieced of\n// text that include the original content, the matched prefix and suffix, and a type\n// identifier for orchestrating the unpacking.\nexport function pandocMarkdownWithBlockCapsules(\n original: string,\n markdown: string,\n capsuleFilter: PandocBlockCapsuleFilter,\n) {\n // default extractor\n const defaultExtractor = (match: string, p1: string, p2: string, p3: string) => {\n return {\n prefix: p1,\n source: p2,\n suffix: p3,\n };\n };\n\n // find the original position of all the matches\n const positions: number[] = [];\n let match = capsuleFilter.match.exec(original);\n while (match != null) {\n positions.push(match.index);\n match = capsuleFilter.match.exec(original);\n }\n\n // reset capsule filter match index\n capsuleFilter.match.lastIndex = 0;\n\n // replace all w/ source preservation capsules\n return markdown.replace(capsuleFilter.match, (match: string, p1: string, p2: string, p3: string, p4: string) => {\n // read the original position of the match\n let position = 0;\n const originalPos = positions.shift();\n if (originalPos) {\n position = originalPos;\n }\n\n // if the capsuleFilter has a discard expression then check it\n if (capsuleFilter.discard && !!match.match(capsuleFilter.discard)) {\n return match;\n }\n\n // extract matches\n const extract = capsuleFilter.extract || defaultExtractor;\n const { prefix, source, suffix } = extract(match, p1, p2, p3, p4);\n\n // make the capsule\n const capsule: PandocBlockCapsule = {\n [kTypeField]: capsuleFilter.type,\n [kPositionField]: position,\n [kPrefixField]: prefix,\n [kSourceField]: source,\n [kSuffixField]: suffix,\n };\n\n // construct a field\n const field = (name: string, value: string) => `${name}${kValueDelimiter}${base64Encode(value)}`;\n\n // construct a record\n const record =\n field(kTypeField, capsule.type) +\n kFieldDelimiter +\n field(kPositionField, capsule.position.toString()) +\n kFieldDelimiter +\n field(kPrefixField, capsule.prefix) +\n kFieldDelimiter +\n field(kSourceField, capsule.source) +\n kFieldDelimiter +\n field(kSuffixField, capsule.suffix);\n\n // now base64 encode the entire record (so it can masquerade as a paragraph)\n const encodedRecord = base64Encode(record);\n\n // return capsule, which is:\n // - a base64 encoded record surrounded with a sentinel value\n // - enclosed in a filter specific envelope (used to influence pandoc parsing),\n // - surrounded by the original prefix and suffix\n return (\n prefix +\n capsuleFilter.enclose(\n `${kBlockCapsuleSentinel}${kValueDelimiter}${encodedRecord}${kValueDelimiter}${kBlockCapsuleSentinel}`,\n capsule,\n ) +\n suffix\n );\n });\n}\n\n// block capsules can also end up not as block tokens, but rather as text within another\n// token (e.g. within a backtick code block or raw_block). this function takes a set\n// of pandoc tokens and recursively converts block capsules that aren't of type\n// PandocTokenType.Str (which is what we'd see in a paragraph) into their original form\nexport function resolvePandocBlockCapsuleText(\n tokens: PandocToken[],\n filters: readonly PandocBlockCapsuleFilter[],\n): PandocToken[] {\n // process all tokens\n return mapTokens(tokens, token => {\n // look for non-string pandoc tokens\n if (token.t !== PandocTokenType.Str && token.c) {\n if (typeof token.c === 'string') {\n token.c = decodeBlockCapsuleText(token.c, token, filters);\n } else if (Array.isArray(token.c)) {\n const children = token.c.length;\n for (let i = 0; i < children; i++) {\n if (typeof token.c[i] === 'string') {\n token.c[i] = decodeBlockCapsuleText(token.c[i], token, filters);\n }\n }\n }\n }\n\n return token;\n });\n}\n\n// decode the text capsule by running all of the filters (as there could be nesting)\nexport function decodeBlockCapsuleText(text: string, tok: PandocToken, filters: readonly PandocBlockCapsuleFilter[]) {\n filters.forEach(filter => {\n text = filter.handleText(text, tok);\n });\n return text;\n}\n\nexport function blockCapsuleTextHandler(type: string, pattern: RegExp, textFilter?: (text: string) => string) {\n return (text: string, tok: PandocToken): string => {\n // if this is a code block or raw block then we need to strip the prefix\n // (b/c it could in a blockquote or indented in a list)\n const stripPrefix = tok.t === PandocTokenType.CodeBlock || tok.t === PandocTokenType.RawBlock;\n\n // replace text\n return text.replace(pattern, match => {\n const capsuleText = textFilter ? textFilter(match) : match;\n const capsule = parsePandocBlockCapsule(capsuleText);\n if (capsule.type === type) {\n if (stripPrefix) {\n return blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n } else {\n return capsule.source;\n }\n } else {\n return match;\n }\n });\n };\n}\n\n// token handler that looks for a paragraph token consisting entirely of a block capsule of our type.\n// if we find that then return the block capsule text\nexport function blockCapsuleParagraphTokenHandler(type: string) {\n const tokenRegex = encodedBlockCapsuleRegex('^', '$');\n return (tok: PandocToken) => {\n if (tok.t === PandocTokenType.Para) {\n if (tok.c.length === 1 && tok.c[0].t === PandocTokenType.Str) {\n const text = tok.c[0].c as string;\n const match = text.match(tokenRegex);\n if (match) {\n const capsuleRecord = parsePandocBlockCapsule(match[0]);\n if (capsuleRecord.type === type) {\n return match[0];\n }\n }\n }\n }\n return null;\n };\n}\n\n// create a regex that can be used to match a block capsule\nexport function encodedBlockCapsuleRegex(prefix?: string, suffix?: string, flags?: string) {\n return new RegExp(\n (prefix || '') +\n kBlockCapsuleSentinel +\n kValueDelimiter +\n '((?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)' +\n kValueDelimiter +\n kBlockCapsuleSentinel +\n (suffix || ''),\n flags,\n );\n}\n\n// remove encoding envelope then parse the remaining text into a block capsule\nexport function parsePandocBlockCapsule(text: string): PandocBlockCapsule {\n const envelopeLen = kBlockCapsuleSentinel.length + kFieldDelimiter.length;\n const record = text.substring(envelopeLen, text.length - envelopeLen);\n const decodedRecord = base64Decode(record);\n const fields = decodedRecord.split(kFieldDelimiter);\n const fieldValue = (i: number) => base64Decode(fields[i].split(kValueDelimiter)[1]);\n return {\n [kTypeField]: fieldValue(0),\n [kPositionField]: parseInt(fieldValue(1), 10),\n [kPrefixField]: fieldValue(2),\n [kSourceField]: fieldValue(3),\n [kSuffixField]: fieldValue(4),\n };\n}\n\n// provide a version of the block capsule source with the prefix removed\n// from all but the very first line. this allows us to restore the text\n// to the level of indentation implied by the markdown (as opposed to the\n// level found literally in the source file)\nexport function blockCapsuleSourceWithoutPrefix(source: string, prefix: string) {\n // prefix represents the indentation level of the block's source code, strip that\n // same prefix from all the lines of code save for the first one\n const prefixStripRegEx = new RegExp('^' + prefix);\n const lines = source.split('\\n').map((line, index) => {\n return index > 0 ? line.replace(prefixStripRegEx, '') : line;\n });\n return lines.join('\\n');\n}\n","/*\n * base_64.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n// btoa and atob don't handle unicode strings, see\n// https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa#Unicode_strings\n\n// these functions implement the suggested workaround ()\n\nexport function base64Encode(text: string) {\n const binary = toBinary(text);\n return window.btoa(binary);\n}\n\nexport function base64Decode(encoded: string) {\n const decoded = atob(encoded);\n return fromBinary(decoded);\n}\n\n// convert a Unicode string to a string in which each 16-bit unit occupies only one byte\nfunction toBinary(text: string) {\n const codeUnits = new Uint16Array(text.length);\n for (let i = 0; i < codeUnits.length; i++) {\n codeUnits[i] = text.charCodeAt(i);\n }\n const charCodes = Array.from(new Uint8Array(codeUnits.buffer)).map(code => String.fromCharCode(code));\n return charCodes.join('');\n}\n\n// reverse the conversion\nfunction fromBinary(binary: string) {\n const bytes = new Uint8Array(binary.length);\n for (let i = 0; i < bytes.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n const charCodes = Array.from(new Uint16Array(bytes.buffer)).map(code => String.fromCharCode(code));\n return charCodes.join('');\n}\n","/*\n * pandoc_to_prosemirror.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Mark, Node as ProsemirrorNode, NodeType, Schema } from 'prosemirror-model';\n\nimport {\n PandocTokenReader,\n PandocToken,\n PandocAst,\n ProsemirrorWriter,\n PandocBlockReaderFn,\n PandocInlineHTMLReaderFn,\n PandocTokensFilterFn,\n PandocTokenType,\n mapTokens,\n stringifyTokens,\n PandocExtensions,\n forEachToken,\n} from '../api/pandoc';\nimport {\n pandocAttrReadAST,\n kCodeBlockAttr,\n kCodeBlockText,\n kPandocAttrClasses,\n kPandocAttrKeyvalue,\n} from '../api/pandoc_attr';\nimport {\n PandocBlockCapsuleFilter,\n parsePandocBlockCapsule,\n resolvePandocBlockCapsuleText,\n decodeBlockCapsuleText,\n} from '../api/pandoc_capsule';\n\nimport { PandocToProsemirrorResult, PandocLineWrapping } from './pandoc_converter';\nimport { kLinkTarget, kLinkTargetUrl, kLinkChildren, kLinkAttr, kLinkTargetTitle } from '../api/link';\nimport { kHeadingAttr, kHeadingLevel, kHeadingChildren } from '../api/heading';\nimport { pandocAutoIdentifier, gfmAutoIdentifier } from '../api/pandoc_id';\nimport { equalsIgnoreCase } from '../api/text';\nimport { hasShortcutHeadingLinks } from '../api/pandoc_format';\n\nexport function pandocToProsemirror(\n ast: PandocAst,\n schema: Schema,\n extensions: PandocExtensions,\n readers: readonly PandocTokenReader[],\n tokensFilters: readonly PandocTokensFilterFn[],\n blockReaders: readonly PandocBlockReaderFn[],\n inlineHTMLReaders: readonly PandocInlineHTMLReaderFn[],\n blockCapsuleFilters: readonly PandocBlockCapsuleFilter[],\n): PandocToProsemirrorResult {\n const parser = new Parser(\n schema,\n extensions,\n readers,\n tokensFilters,\n blockReaders,\n inlineHTMLReaders,\n blockCapsuleFilters,\n );\n return parser.parse(ast);\n}\n\nclass Parser {\n private readonly schema: Schema;\n private readonly extensions: PandocExtensions;\n private readonly tokensFilters: readonly PandocTokensFilterFn[];\n private readonly inlineHTMLReaders: readonly PandocInlineHTMLReaderFn[];\n private readonly blockCapsuleFilters: readonly PandocBlockCapsuleFilter[];\n private readonly handlers: { [token: string]: ParserTokenHandlerCandidate[] };\n\n constructor(\n schema: Schema,\n extensions: PandocExtensions,\n readers: readonly PandocTokenReader[],\n tokensFilters: readonly PandocTokensFilterFn[],\n blockReaders: readonly PandocBlockReaderFn[],\n inlineHTMLReaders: readonly PandocInlineHTMLReaderFn[],\n blockCapsuleFilters: readonly PandocBlockCapsuleFilter[],\n ) {\n this.schema = schema;\n this.extensions = extensions;\n this.tokensFilters = tokensFilters;\n this.inlineHTMLReaders = inlineHTMLReaders;\n // apply block capsule filters in reverse order\n this.blockCapsuleFilters = blockCapsuleFilters.slice().reverse();\n this.handlers = this.createHandlers(readers, blockReaders);\n }\n\n public parse(ast: PandocAst) {\n // create state\n const state: ParserState = new ParserState(this.schema);\n // create writer (compose state w/ writeTokens function)\n const parser = this;\n const writer: ProsemirrorWriter = {\n openNode: state.openNode.bind(state),\n closeNode: state.closeNode.bind(state),\n openNoteNode: state.openNoteNode.bind(state),\n addNode: state.addNode.bind(state),\n openMark: state.openMark.bind(state),\n closeMark: state.closeMark.bind(state),\n writeText: state.writeText.bind(state),\n hasInlineHTMLWriter(html: string) {\n return parser.hasInlineHTMLWriter(html);\n },\n writeInlineHTML(html: string) {\n return parser.writeInlineHTML(this, html);\n },\n writeTokens(tokens: PandocToken[]) {\n parser.writeTokens(this, tokens);\n },\n logUnrecognized: state.logUnrecognized.bind(state),\n logExampleList: state.logExampleList.bind(state),\n isNodeOpen: state.isNodeOpen.bind(state),\n };\n\n // process raw text capsules\n let targetAst = {\n ...ast,\n blocks: resolvePandocBlockCapsuleText(ast.blocks, this.blockCapsuleFilters),\n };\n\n // detect line wrapping\n const lineWrapping = detectLineWrapping(targetAst);\n\n // resolve heading ids\n targetAst = resolveHeadingIds(targetAst, this.extensions);\n\n // write all tokens\n writer.writeTokens(targetAst.blocks);\n\n // return\n return {\n doc: state.doc(),\n line_wrapping: lineWrapping,\n unrecognized: state.unrecognized(),\n example_lists: state.hasExampleLists(),\n unparsed_meta: ast.meta,\n };\n }\n\n private writeTokens(writer: ProsemirrorWriter, tokens: PandocToken[]) {\n // pass through tokens filters\n let targetTokens = tokens;\n this.tokensFilters.forEach(filter => {\n targetTokens = filter(targetTokens, writer);\n });\n\n // process tokens\n targetTokens.forEach(tok => this.writeToken(writer, tok));\n }\n\n private writeToken(writer: ProsemirrorWriter, tok: PandocToken) {\n // process block-level capsules\n for (const filter of this.blockCapsuleFilters) {\n const capsuleText = filter.handleToken?.(tok);\n if (capsuleText) {\n const blockCapsule = parsePandocBlockCapsule(capsuleText);\n // run all of the text filters in case there was nesting\n blockCapsule.source = decodeBlockCapsuleText(blockCapsule.source, tok, this.blockCapsuleFilters);\n filter.writeNode(this.schema, writer, blockCapsule);\n return;\n }\n }\n\n // look for a handler.match function that wants to handle this token\n const handlers = this.handlers[tok.t] || [];\n for (const handler of handlers) {\n // It's not enough for a pandoc reader's preferred token to match the\n // current token; it's possible based on the `match` method for the\n // reader to decline to handle it.\n if (handler.match && handler.match(tok)) {\n handler.handler(writer, tok);\n return;\n }\n }\n\n // if we didn't find one, look for the default handler\n for (const handler of handlers) {\n if (!handler.match) {\n handler.handler(writer, tok);\n return;\n }\n }\n\n // log unrecognized token\n writer.logUnrecognized(tok.t);\n }\n\n private hasInlineHTMLWriter(html: string) {\n for (const reader of this.inlineHTMLReaders) {\n if (reader(this.schema, html)) {\n return true;\n }\n }\n return false;\n }\n\n private writeInlineHTML(writer: ProsemirrorWriter, html: string) {\n for (const reader of this.inlineHTMLReaders) {\n if (reader(this.schema, html, writer)) {\n return;\n }\n }\n }\n\n // create parser token handler functions based on the passed readers\n private createHandlers(readers: readonly PandocTokenReader[], blockReaders: readonly PandocBlockReaderFn[]) {\n const handlers: { [token: string]: ParserTokenHandlerCandidate[] } = {};\n\n for (const reader of readers) {\n // resolve children (provide default impl)\n const getChildren = reader.getChildren || ((tok: PandocToken) => tok.c);\n\n // resolve getAttrs (provide default imple)\n const getAttrs = reader.getAttrs ? reader.getAttrs : (tok: PandocToken) => ({});\n\n let handler: ParserTokenHandler;\n\n // see if there is a low-level handler\n if (reader.handler) {\n handler = reader.handler(this.schema);\n }\n\n // text\n else if (reader.text) {\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n if (reader.getText) {\n const text = reader.getText(tok);\n writer.writeText(text);\n }\n };\n\n // marks\n } else if (reader.mark) {\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n const markType = this.schema.marks[reader.mark as string];\n const mark = markType.create(getAttrs(tok));\n writer.openMark(mark);\n if (reader.getText) {\n writer.writeText(reader.getText(tok));\n } else {\n writer.writeTokens(getChildren(tok));\n }\n writer.closeMark(mark);\n };\n\n // blocks\n } else if (reader.block) {\n const nodeType = this.schema.nodes[reader.block];\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n // give the block readers first crack (e.g. handle a paragraph node with\n // a single image as a figure node)\n for (const blockReader of blockReaders) {\n if (blockReader(this.schema, tok, writer)) {\n return;\n }\n }\n\n writer.openNode(nodeType, getAttrs(tok));\n if (reader.getText) {\n writer.writeText(reader.getText(tok));\n } else {\n writer.writeTokens(getChildren(tok));\n }\n writer.closeNode();\n };\n\n // nodes\n } else if (reader.node) {\n const nodeType = this.schema.nodes[reader.node];\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n if (reader.getChildren) {\n writer.openNode(nodeType, getAttrs(tok));\n writer.writeTokens(getChildren(tok));\n writer.closeNode();\n } else {\n let content: ProsemirrorNode[] = [];\n if (reader.getText) {\n content = [this.schema.text(reader.getText(tok))];\n }\n writer.addNode(nodeType, getAttrs(tok), content);\n }\n };\n\n // code blocks\n } else if (reader.code_block) {\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n // type/attr/text\n const nodeType = this.schema.nodes.code_block;\n const attr: {} = pandocAttrReadAST(tok, kCodeBlockAttr);\n const text = tok.c[kCodeBlockText] as string;\n\n // write node\n writer.openNode(nodeType, attr);\n writer.writeText(text);\n writer.closeNode();\n };\n } else {\n throw new Error('pandoc reader was malformed or unrecognized');\n }\n\n // Ensure an array exists\n handlers[reader.token] = handlers[reader.token] || [];\n\n handlers[reader.token].push({\n match: reader.match,\n handler,\n });\n }\n return handlers;\n }\n}\n\nclass ParserState {\n private readonly schema: Schema;\n private readonly stack: ParserStackElement[];\n private readonly notes: ProsemirrorNode[];\n private marks: Mark[];\n private footnoteNumber: number;\n private unrecognizedTokens: string[];\n private exampleLists: boolean;\n\n constructor(schema: Schema) {\n this.schema = schema;\n this.stack = [{ type: this.schema.nodes.body, attrs: {}, content: [] }];\n this.notes = [];\n this.marks = Mark.none;\n this.footnoteNumber = 1;\n this.unrecognizedTokens = [];\n this.exampleLists = false;\n }\n\n public doc(): ProsemirrorNode {\n const content: ProsemirrorNode[] = [];\n content.push(this.top().type.createAndFill(null, this.top().content) as ProsemirrorNode);\n content.push(this.schema.nodes.notes.createAndFill(null, this.notes) as ProsemirrorNode);\n return this.schema.topNodeType.createAndFill({}, content) as ProsemirrorNode;\n }\n\n public unrecognized(): string[] {\n return this.unrecognizedTokens;\n }\n\n public hasExampleLists(): boolean {\n return this.exampleLists;\n }\n\n public writeText(text: string) {\n if (!text) {\n return;\n }\n const nodes: ProsemirrorNode[] = this.top().content;\n const last: ProsemirrorNode = nodes[nodes.length - 1];\n const node: ProsemirrorNode = this.schema.text(text, this.marks);\n const merged: ProsemirrorNode | undefined = this.maybeMerge(last, node);\n if (last && merged) {\n nodes[nodes.length - 1] = merged;\n } else {\n nodes.push(node);\n }\n }\n\n public addNode(type: NodeType, attrs: {}, content: ProsemirrorNode[]) {\n const node: ProsemirrorNode | null | undefined = type.createAndFill(attrs, content, this.marks);\n if (!node) {\n return null;\n }\n if (this.stack.length) {\n if (type === this.schema.nodes.note) {\n this.notes.push(node);\n } else {\n this.top().content.push(node);\n }\n }\n return node;\n }\n\n public openNode(type: NodeType, attrs: {}) {\n this.stack.push({ type, attrs, content: [] });\n }\n\n public closeNode(): ProsemirrorNode {\n // get node info\n const info: ParserStackElement = this.stack.pop() as ParserStackElement;\n\n // clear marks if the node type isn't inline\n if (!info.type.isInline) {\n if (this.marks.length) {\n this.marks = Mark.none;\n }\n }\n\n return this.addNode(info.type, info.attrs, info.content) as ProsemirrorNode;\n }\n\n public openMark(mark: Mark) {\n this.marks = mark.addToSet(this.marks);\n }\n\n public closeMark(mark: Mark) {\n this.marks = mark.removeFromSet(this.marks);\n }\n\n public openNoteNode(ref: string) {\n this.openNode(this.schema.nodes.note, { ref, number: this.footnoteNumber++ });\n }\n\n public logUnrecognized(type: string) {\n if (!this.unrecognizedTokens.includes(type)) {\n this.unrecognizedTokens.push(type);\n }\n }\n\n public logExampleList() {\n this.exampleLists = true;\n }\n\n public isNodeOpen(type: NodeType) {\n return this.stack.some(value => value.type === type);\n }\n\n private top(): ParserStackElement {\n return this.stack[this.stack.length - 1];\n }\n\n private maybeMerge(a: ProsemirrorNode, b: ProsemirrorNode): ProsemirrorNode | undefined {\n if (a && a.isText && b.isText && Mark.sameSet(a.marks, b.marks)) {\n return this.schema.text(((a.text as string) + b.text) as string, a.marks);\n } else {\n return undefined;\n }\n }\n}\n\n// determine what sort of line wrapping is used within the file\nfunction detectLineWrapping(ast: PandocAst): PandocLineWrapping {\n // look for soft breaks and classify them as column or sentence breaks\n let columnBreaks = 0;\n let sentenceBreaks = 0;\n let prevTok: PandocToken = { t: PandocTokenType.Null };\n forEachToken(ast.blocks, tok => {\n if (tok.t === PandocTokenType.SoftBreak) {\n if (\n prevTok.t === PandocTokenType.Str &&\n typeof prevTok.c === 'string' &&\n ['.', '?', '!'].includes(prevTok.c.charAt(prevTok.c.length - 1))\n ) {\n sentenceBreaks++;\n } else {\n columnBreaks++;\n }\n }\n prevTok = tok;\n });\n\n // need to have > 5 line breaks or more line breaks than blocks to trigger detection\n // (prevents 'over-detection' if there are stray few soft breaks)\n const lineBreaks = columnBreaks + sentenceBreaks;\n if (lineBreaks > 5 || lineBreaks > ast.blocks.length) {\n if (sentenceBreaks > columnBreaks) {\n return 'sentence';\n } else {\n return 'column';\n }\n } else {\n return 'none';\n }\n}\n\n// determine which heading ids are valid based on explicit headings contained in the\n// document and any headings targeted by links. remove any heading ids not so identified\nfunction resolveHeadingIds(ast: PandocAst, extensions: PandocExtensions) {\n // determine function we will use to create auto-identifiers\n const autoIdentifier = extensions.gfm_auto_identifiers ? gfmAutoIdentifier : pandocAutoIdentifier;\n\n // start with ids we know are valid (i.e. ones the user added to the doc)\n const headingIds = new Set((ast.heading_ids || []).map(id => id.toLocaleLowerCase()));\n\n // find ids referenced in links\n let astBlocks = mapTokens(ast.blocks, tok => {\n if (tok.t === PandocTokenType.Link) {\n const target = tok.c[kLinkTarget];\n const href = target[kLinkTargetUrl] as string;\n if (href.startsWith('#')) {\n // if we have support for implicit header references and shortcut reference links,\n // also check to see whether the link text resolves to the target (in that case\n // we don't need the explicit id). note that if that heading has an explicit\n // id defined then we also leave it alone.\n const text = stringifyTokens(tok.c[kLinkChildren], extensions.gfm_auto_identifiers);\n if (\n hasShortcutHeadingLinks(extensions) &&\n equalsIgnoreCase('#' + autoIdentifier(text, extensions.ascii_identifiers), href) &&\n !headingIds.has(href.toLocaleLowerCase())\n ) {\n // return a version of the link w/o the target\n return {\n t: PandocTokenType.Link,\n c: [tok.c[kLinkAttr], tok.c[kLinkChildren], ['#', tok.c[kLinkTarget][kLinkTargetTitle]]],\n };\n\n // otherwise note that it's a valid id\n } else {\n headingIds.add(href.toLocaleLowerCase());\n }\n }\n }\n // default to return token unmodified\n return tok;\n });\n\n // remove any heading ids not created by the user or required by a link\n astBlocks = mapTokens(ast.blocks, tok => {\n if (tok.t === PandocTokenType.Header) {\n const attr = pandocAttrReadAST(tok, kHeadingAttr);\n if (attr.id && !headingIds.has('#' + attr.id.toLocaleLowerCase())) {\n return {\n t: PandocTokenType.Header,\n c: [\n tok.c[kHeadingLevel],\n ['', tok.c[kHeadingAttr][kPandocAttrClasses], tok.c[kHeadingAttr][kPandocAttrKeyvalue]],\n tok.c[kHeadingChildren],\n ],\n };\n }\n }\n // default to just reflecting back the token\n return tok;\n });\n\n // return the ast\n return {\n ...ast,\n blocks: astBlocks,\n heading_ids: undefined,\n };\n}\n\ninterface ParserStackElement {\n type: NodeType;\n attrs: {};\n content: ProsemirrorNode[];\n}\n\ntype ParserTokenHandler = (writer: ProsemirrorWriter, tok: PandocToken) => void;\n\ninterface ParserTokenHandlerCandidate {\n match?: (tok: PandocToken) => boolean;\n handler: ParserTokenHandler;\n}\n","/*\n * pandoc_from_prosemirror.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Fragment, MarkType, Mark } from 'prosemirror-model';\n\nimport {\n PandocAst,\n PandocToken,\n PandocOutput,\n PandocNodeWriterFn,\n PandocNodeWriter,\n PandocMarkWriter,\n PandocApiVersion,\n PandocTokenType,\n PandocOutputOption,\n PandocExtensions,\n marksByPriority,\n kPreventBracketEscape,\n} from '../api/pandoc';\n\nimport { PandocFormat, kGfmFormat } from '../api/pandoc_format';\nimport { PandocAttr } from '../api/pandoc_attr';\nimport { fragmentText } from '../api/fragment';\nimport { fancyQuotesToSimple } from '../api/quote';\n\nexport function pandocFromProsemirror(\n doc: ProsemirrorNode,\n apiVersion: PandocApiVersion,\n format: PandocFormat,\n nodeWriters: readonly PandocNodeWriter[],\n markWriters: readonly PandocMarkWriter[],\n) {\n const bodyNode = doc.child(0);\n const notesNode = doc.child(1);\n const writer = new PandocWriter(apiVersion, format, nodeWriters, markWriters, notesNode);\n writer.writeNodes(bodyNode);\n return writer.output();\n}\n\nclass PandocWriter implements PandocOutput {\n private readonly ast: PandocAst;\n private readonly format: PandocFormat;\n private readonly nodeWriters: { [key: string]: PandocNodeWriterFn };\n private readonly markWriters: { [key: string]: PandocMarkWriter };\n private readonly notes: { [key: string]: ProsemirrorNode };\n private readonly containers: any[][];\n private readonly activeMarks: MarkType[];\n private options: { [key: string]: boolean };\n\n public readonly extensions: PandocExtensions;\n\n private readonly escapeCharacters: string[] = [];\n private readonly manualEscapeCharacters: Map = new Map();\n private readonly preventEscapeCharacters: string[] = [];\n\n constructor(\n apiVersion: PandocApiVersion,\n format: PandocFormat,\n nodeWriters: readonly PandocNodeWriter[],\n markWriters: readonly PandocMarkWriter[],\n notes: ProsemirrorNode,\n ) {\n // save format and extensions\n this.format = format;\n this.extensions = format.extensions;\n // compute escape characters based on format\n this.initEscapeCharacters();\n // create maps of node and mark writers\n this.nodeWriters = {};\n nodeWriters.forEach((writer: PandocNodeWriter) => {\n this.nodeWriters[writer.name] = writer.write;\n });\n this.markWriters = {};\n markWriters.forEach((writer: PandocMarkWriter) => {\n this.markWriters[writer.name] = writer;\n });\n // create map of notes\n this.notes = {};\n notes.forEach((note: ProsemirrorNode) => {\n this.notes[note.attrs.ref] = note;\n });\n\n this.ast = {\n blocks: [],\n 'pandoc-api-version': apiVersion,\n meta: {},\n };\n this.containers = [this.ast.blocks];\n this.activeMarks = [];\n this.options = {\n writeSpaces: true,\n };\n }\n\n public output() {\n return {\n ast: this.ast,\n };\n }\n\n public write(value: any) {\n const container = this.containers[this.containers.length - 1];\n container.push(value);\n }\n\n public writeToken(type: PandocTokenType, content?: (() => void) | any) {\n const token: PandocToken = {\n t: type,\n };\n if (content !== undefined) {\n if (typeof content === 'function') {\n token.c = [];\n this.fill(token.c, content);\n } else {\n token.c = content;\n }\n }\n this.write(token);\n }\n\n public writeMark(type: PandocTokenType, parent: Fragment, expelEnclosingWhitespace = true) {\n // expel enclosing whitepsace if requested and if the fragment isn't 100% spaces\n if (expelEnclosingWhitespace) {\n // build output spec\n const output = {\n spaceBefore: false,\n nodes: new Array(),\n spaceAfter: false,\n };\n\n // if we see leading or trailing spaces we need to output them as tokens\n // and substitute text nodes\n parent.forEach((node: ProsemirrorNode, offset: number, index: number) => {\n // check for leading/trailing space in first/last nodes\n if (node.isText) {\n let outputText = node.textContent;\n\n // checking for leading space in first node\n if (output.nodes.length === 0 && node.textContent.match(/^\\s+/)) {\n output.spaceBefore = true;\n outputText = outputText.trimLeft();\n }\n\n // check for trailing space in last node\n if (index === parent.childCount - 1 && node.textContent.match(/\\s+$/)) {\n output.spaceAfter = true;\n outputText = outputText.trimRight();\n }\n\n // check for an entirely blank node\n if (outputText.match(/^\\s*$/)) {\n outputText = '';\n }\n\n // skip the node if it has nothing in it\n if (outputText.length > 0) {\n // if we modified the node's text then create a new node\n if (outputText !== node.textContent) {\n output.nodes.push(node.type.schema.text(outputText, node.marks));\n } else {\n output.nodes.push(node);\n }\n }\n } else {\n output.nodes.push(node);\n }\n });\n\n // output space tokens before/after mark as necessary\n if (output.nodes.length > 0) {\n if (output.spaceBefore) {\n this.writeToken(PandocTokenType.Space);\n }\n this.writeToken(type, () => {\n this.writeInlines(Fragment.from(output.nodes));\n });\n if (output.spaceAfter) {\n this.writeToken(PandocTokenType.Space);\n }\n }\n\n // normal codepath (not expelling existing whitespace)\n } else {\n this.writeToken(type, () => {\n this.writeInlines(parent);\n });\n }\n }\n\n public writeArray(content: () => void) {\n const arr: any[] = [];\n this.fill(arr, content);\n this.write(arr);\n }\n\n public writeAttr(id?: string, classes?: string[], keyvalue?: Array<[string, string]>) {\n this.write([id || '', classes || [], keyvalue || []]);\n }\n\n public writeText(text: string | null) {\n // determine which characters we shouldn't escape\n const preventEscapeCharacters = [ ...this.preventEscapeCharacters ];\n if (this.options[kPreventBracketEscape]) {\n preventEscapeCharacters.push('[', ']');\n }\n\n if (text) {\n let textRun = '';\n const flushTextRun = () => {\n if (textRun) {\n // if this is a line block, convert leading nbsp to regular space,\n if (!this.options.writeSpaces) {\n textRun = textRun.replace(/(^|\\n)+(\\u00A0+)/g, (_match, p1, p2) => {\n return p1 + Array(p2.length + 1).join(' ');\n });\n }\n\n // reverse smart punctuation. pandoc does this autmoatically for markdown\n // writing w/ +smart, however this also results in nbsp's being inserted\n // after selected abbreviations like e.g. and Mr., and we don't want that\n // to happen for editing (b/c the nbsp's weren't put there by the user\n // and are not obviously visible)\n if (this.extensions.smart) {\n textRun = textRun\n .replace(/—/g, '---')\n .replace(/–/g, '--')\n .replace(/…/g, '...');\n textRun = fancyQuotesToSimple(textRun);\n }\n \n this.writeToken(PandocTokenType.Str, textRun);\n textRun = '';\n }\n };\n for (let i = 0; i < text.length; i++) {\n const ch = text.charAt(i);\n if (this.options.writeSpaces && ch === ' ') {\n flushTextRun();\n this.writeToken(PandocTokenType.Space);\n } else if (preventEscapeCharacters.includes(ch)) {\n flushTextRun();\n this.writeRawMarkdown(ch);\n } else if (this.manualEscapeCharacters.has(ch)) {\n flushTextRun();\n this.writeRawMarkdown(this.manualEscapeCharacters.get(ch)!);\n } else {\n textRun += ch;\n }\n }\n flushTextRun();\n }\n }\n\n public writeLink(href: string, title: string, attr: PandocAttr | null, content: VoidFunction) {\n this.writeToken(PandocTokenType.Link, () => {\n // write attr if provided\n if (attr) {\n this.writeAttr(attr.id, attr.classes, attr.keyvalue);\n } else {\n this.writeAttr();\n }\n // write content\n this.writeArray(() => {\n content();\n });\n\n // write href\n this.write([href || '', title || '']);\n });\n }\n\n public writeNote(note: ProsemirrorNode) {\n // get corresponding note body\n const noteBody = this.notes[note.attrs.ref];\n\n // don't write empty footnotes (otherwise in block or section mode they gobble up the section below them)\n if (noteBody.textContent.trim().length > 0) {\n this.writeToken(PandocTokenType.Note, () => {\n this.writeNodes(noteBody);\n });\n }\n }\n\n public writeNode(node: ProsemirrorNode) {\n this.nodeWriters[node.type.name](this, node);\n }\n\n public writeNodes(parent: ProsemirrorNode) {\n parent.forEach(this.writeNode.bind(this));\n }\n\n public writeInlines(fragment: Fragment) {\n // get the marks from a node that are not already on the stack of active marks\n const nodeMarks = (node: ProsemirrorNode) => {\n // get marks ordered by writer priority\n let marks = marksByPriority(node.marks, this.markWriters);\n\n // remove active marks\n for (const activeMark of this.activeMarks) {\n marks = activeMark.removeFromSet(marks);\n }\n\n // return marks\n return marks;\n };\n\n // helpers to iterate through the nodes (sans any marks already on the stack)\n let currentChild = 0;\n const nextNode = () => {\n const childIndex = currentChild;\n currentChild++;\n return {\n node: fragment.child(childIndex),\n marks: nodeMarks(fragment.child(childIndex)),\n };\n };\n const putBackNode = () => {\n currentChild--;\n };\n\n // iterate through the nodes\n while (currentChild < fragment.childCount) {\n // get the next node\n let next = nextNode();\n\n // if there are active marks then collect them up and call the mark handler\n // with all nodes that it contains, otherwise just process it as a plain\n // unmarked node\n if (next.marks.length > 0) {\n // get the mark and start building a list of marked nodes\n const mark = next.marks[0];\n const markedNodes: ProsemirrorNode[] = [next.node];\n\n // inner iteration to find nodes that have this mark\n while (currentChild < fragment.childCount) {\n next = nextNode();\n // If the next node shares the same mark with the current node\n // then add this next node node as a child of the current node\n if (next.marks.some(nextMark => nextMark.eq(mark))) {\n markedNodes.push(next.node);\n } else {\n // no mark found, \"put back\" the node\n putBackNode();\n break;\n }\n }\n\n // call the mark writer after noting that this mark is active (which\n // will cause subsequent recursive invocations of this function to\n // not re-process this mark)\n this.activeMarks.push(mark.type);\n this.markWriters[mark.type.name].write(this, mark, Fragment.from(markedNodes));\n this.activeMarks.pop();\n } else {\n // ordinary unmarked node, call the node writer\n this.nodeWriters[next.node.type.name](this, next.node);\n }\n }\n }\n\n public writeRawMarkdown(markdown: Fragment | string, escapeSymbols?: boolean) {\n // collect markdown text if necessary\n let md = markdown instanceof Fragment ? fragmentText(markdown) : markdown;\n\n // escape symbols if requested\n if (escapeSymbols) {\n const escaped: string[] = [];\n for (let i = 0; i < md.length; i++) {\n const ch = md.charAt(i);\n if (this.escapeCharacters.includes(ch)) {\n escaped.push('\\\\' + ch);\n } else {\n escaped.push(ch);\n }\n }\n md = escaped.join('');\n }\n\n this.writeToken(PandocTokenType.RawInline, () => {\n this.write('markdown');\n this.write(md);\n });\n }\n\n public withOption(option: PandocOutputOption, value: boolean, f: () => void) {\n const previousValue = this.options[option];\n this.options[option] = value;\n f();\n this.options[option] = previousValue;\n }\n\n private fill(container: any[], content: () => void) {\n this.containers.push(container);\n content();\n this.containers.pop();\n }\n\n private initEscapeCharacters() {\n // gfm disallows [] escaping so that MediaWiki style page links (e.g. [[MyPage]]) work as expected\n // tex_math_single_backslash does not allow escaping of [] or () (as that conflicts with the math syntax)\n if (this.format.mode === kGfmFormat || this.format.extensions.tex_math_single_backslash) {\n this.preventEscapeCharacters.push('[', ']');\n }\n\n // tex_math_single_backslash does not allow escaping of [] or () (as that conflicts with the math syntax)\n if (this.format.extensions.tex_math_single_backslash) {\n this.preventEscapeCharacters.push('(', ')');\n }\n\n // filter standard escape characters w/ preventEscapeCharacters\n const allEscapeCharacters = ['\\\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!'];\n if (this.format.extensions.angle_brackets_escapable) {\n allEscapeCharacters.push('<');\n }\n this.escapeCharacters.push(...allEscapeCharacters.filter(ch => !this.preventEscapeCharacters.includes(ch)));\n\n // Manual escape characters are ones we can't rely on pandoc to automatically escape (b/c\n // they represent valid syntax for a markdown extension, e.g. '@' for citations).\n // For '@', since we already do special writing for spans we know are citation ids, we can\n // globally prescribe escaping behavior and never stomp over a citation. We also check\n // that '@' can be escaped in the current markdown format, and if not use an html escape.\n const atEscape = this.extensions.all_symbols_escapable ? '\\\\@' : '@';\n this.manualEscapeCharacters.set('@', atEscape);\n }\n}\n","/*\n * fragment.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment } from 'prosemirror-model';\n\nexport function fragmentText(fragment: Fragment, unemoji = false) {\n let text = '';\n fragment.forEach(node => {\n const emjojiMark = node.marks.find(mark => mark.type === node.type.schema.marks.emoji);\n if (unemoji && emjojiMark) {\n return (text = text + (emjojiMark.attrs.emojihint || node.textContent));\n } else {\n return (text = text + node.textContent);\n }\n });\n return text;\n}\n","/*\n * editor-extensions.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { InputRule } from 'prosemirror-inputrules';\nimport { Schema } from 'prosemirror-model';\nimport { Plugin } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { ProsemirrorCommand } from '../api/command';\nimport { PandocMark } from '../api/mark';\nimport { PandocNode, CodeViewOptions } from '../api/node';\nimport { Extension, ExtensionFn, ExtensionContext } from '../api/extension';\nimport { BaseKeyBinding } from '../api/basekeys';\nimport { OmniInserter } from '../api/omni_insert';\nimport { AppendTransactionHandler, AppendMarkTransactionHandler } from '../api/transaction';\nimport { FixupFn } from '../api/fixup';\nimport {\n PandocTokenReader,\n PandocMarkWriter,\n PandocNodeWriter,\n PandocPreprocessorFn,\n PandocPostprocessorFn,\n PandocBlockReaderFn,\n PandocInlineHTMLReaderFn,\n PandocTokensFilterFn,\n} from '../api/pandoc';\nimport { PandocBlockCapsuleFilter } from '../api/pandoc_capsule';\nimport { markInputRuleFilter } from '../api/input_rule';\nimport { CompletionHandler } from '../api/completion';\n\n// required extensions (base non-customiziable pandoc nodes/marks + core behaviors)\nimport nodeText from '../nodes/text';\nimport nodeParagraph from '../nodes/paragraph';\nimport nodeHeading from '../nodes/heading';\nimport nodeBlockquote from '../nodes/blockquote';\nimport nodeCodeBlock from '../nodes/code_block';\nimport nodeLists from '../nodes/list/list';\nimport nodeImage from '../nodes/image/image';\nimport nodeFigure from '../nodes/image/figure';\nimport nodeHr from '../nodes/hr';\nimport nodeHardBreak from '../nodes/hard_break';\nimport nodeNull from '../nodes/null';\nimport markEm from '../marks/em';\nimport markStrong from '../marks/strong';\nimport markCode from '../marks/code';\nimport markLink from '../marks/link/link';\nimport behaviorHistory from '../behaviors/history';\nimport behaviorSelectAll from '../behaviors/select_all';\nimport behaviorCursor from '../behaviors/cursor';\nimport behaviorFind from '../behaviors/find';\nimport behaviorSpellingInteractive from '../behaviors/spelling/spelling-interactive';\nimport behaviorClearFormatting from '../behaviors/clear_formatting';\n\n// behaviors\nimport behaviorSmarty from '../behaviors/smarty';\nimport behaviorAttrDuplicateId from '../behaviors/attr_duplicate_id';\nimport behaviorTrailingP from '../behaviors/trailing_p';\nimport behaviorEmptyMark from '../behaviors/empty_mark';\nimport behaviorEscapeMark from '../behaviors/escape_mark';\nimport behaviorOutline from '../behaviors/outline';\nimport beahviorCodeBlockInput from '../behaviors/code_block_input';\nimport behaviorPasteText from '../behaviors/paste_text';\nimport behaviorBottomPadding from '../behaviors/bottom_padding';\nimport behaviorInsertSymbol from '../behaviors/insert_symbol/insert_symbol-plugin-symbol';\nimport behaviorInsertSymbolEmoji from '../behaviors/insert_symbol/insert_symbol-plugin-emoji';\nimport beahviorInsertSpecialCharacters from '../behaviors/insert_symbol/insert_special_characters';\nimport behaviorNbsp from '../behaviors/nbsp';\nimport behaviorRemoveSection from '../behaviors/remove_section';\nimport behaviorSlides from '../behaviors/slides';\n\n// marks\nimport markStrikeout from '../marks/strikeout';\nimport markSuperscript from '../marks/superscript';\nimport markSubscript from '../marks/subscript';\nimport markSmallcaps from '../marks/smallcaps';\nimport markUnderline from '../marks/underline';\nimport markRawInline from '../marks/raw_inline/raw_inline';\nimport markRawTex from '../marks/raw_inline/raw_tex';\nimport markRawHTML from '../marks/raw_inline/raw_html';\nimport markMath from '../marks/math/math';\nimport markCite from '../marks/cite/cite';\nimport markSpan from '../marks/span';\nimport markXRef from '../marks/xref/xref';\nimport markHTMLComment from '../marks/raw_inline/raw_html_comment';\nimport markShortcode from '../marks/shortcode';\nimport markEmoji from '../marks/emoji/emoji';\nimport { markOmniInsert } from '../behaviors/omni_insert/omni_insert';\n\n// nodes\nimport nodeFootnote from '../nodes/footnote/footnote';\nimport nodeRawBlock from '../nodes/raw_block';\nimport nodeYamlMetadata from '../nodes/yaml_metadata/yaml_metadata';\nimport nodeRmdCodeChunk from '../nodes/rmd_chunk/rmd_chunk';\nimport nodeDiv from '../nodes/div/div';\nimport nodeLineBlock from '../nodes/line_block';\nimport nodeTable from '../nodes/table/table';\nimport nodeDefinitionList from '../nodes/definition_list/definition_list';\nimport nodeShortcodeBlock from '../nodes/shortcode_block';\nimport nodeHtmlPreserve from '../nodes/html_preserve';\n\n// extension/plugin factories\nimport { aceExtension } from '../optional/ace/ace';\nimport { attrEditExtension } from '../behaviors/attr_edit/attr_edit';\nimport { codeViewClipboardPlugin } from '../api/code';\n\nexport function initExtensions(context: ExtensionContext, extensions?: readonly Extension[]): ExtensionManager {\n // create extension manager\n const manager = new ExtensionManager(context);\n\n // required extensions\n manager.register([\n nodeText,\n nodeParagraph,\n nodeHeading,\n nodeBlockquote,\n nodeLists,\n nodeCodeBlock,\n nodeImage,\n nodeFigure,\n nodeHr,\n nodeHardBreak,\n nodeNull,\n markEm,\n markStrong,\n markCode,\n markLink,\n behaviorHistory,\n behaviorSelectAll,\n behaviorCursor,\n behaviorFind,\n behaviorSpellingInteractive,\n behaviorClearFormatting,\n behaviorSlides\n ]);\n\n // optional extensions\n manager.register([\n // behaviors\n behaviorSmarty,\n behaviorAttrDuplicateId,\n behaviorTrailingP,\n behaviorEmptyMark,\n behaviorEscapeMark,\n behaviorOutline,\n beahviorCodeBlockInput,\n behaviorPasteText,\n behaviorBottomPadding,\n behaviorInsertSymbol,\n behaviorInsertSymbolEmoji,\n beahviorInsertSpecialCharacters,\n behaviorNbsp,\n behaviorRemoveSection,\n\n // nodes\n nodeDiv,\n nodeFootnote,\n nodeYamlMetadata,\n nodeRmdCodeChunk,\n nodeTable,\n nodeDefinitionList,\n nodeLineBlock,\n nodeRawBlock,\n nodeShortcodeBlock,\n nodeHtmlPreserve,\n\n // marks\n markUnderline,\n markStrikeout,\n markSuperscript,\n markSubscript,\n markSmallcaps,\n markHTMLComment,\n markRawTex,\n markRawHTML,\n markRawInline,\n markMath,\n markCite,\n markSpan,\n markXRef,\n markShortcode,\n markEmoji,\n markOmniInsert,\n ]);\n\n // register external extensions\n if (extensions) {\n manager.register(extensions);\n }\n\n // additional extensions dervied from other extensions (e.g. extensions that have registered attr editors)\n // note that all of these take a callback to access the manager -- this is so that if an extension earlier\n // in the chain registers something the later extensions are able to see it\n manager.register([\n // bindings to 'Edit Attribute' command and UI adornment\n attrEditExtension(context.pandocExtensions, context.ui, context.format, manager.attrEditors()),\n ]);\n\n // additional plugins derived from extensions\n const codeViews = manager.codeViews();\n const plugins: Plugin[] = [];\n if (context.options.codeEditor === 'ace') {\n manager.register([\n aceExtension(codeViews)\n ]);\n }\n plugins.push(codeViewClipboardPlugin(codeViews));\n\n // register plugins\n manager.registerPlugins(plugins);\n\n // return manager\n return manager;\n}\n\nexport class ExtensionManager {\n private context: ExtensionContext;\n private extensions: Extension[];\n\n public constructor(context: ExtensionContext) {\n this.context = context;\n this.extensions = [];\n }\n\n public register(extensions: ReadonlyArray, priority = false): void {\n extensions.forEach(extension => {\n if (typeof extension === 'function') {\n const ext = extension(this.context);\n if (ext) {\n if (priority) {\n this.extensions.unshift(ext);\n } else {\n this.extensions.push(ext);\n }\n }\n } else {\n if (priority) {\n this.extensions.unshift(extension);\n } else {\n this.extensions.push(extension);\n }\n }\n });\n }\n\n public registerPlugins(plugins: Plugin[], priority = false) {\n this.register([{ plugins: () => plugins }], priority);\n }\n\n public pandocMarks(): readonly PandocMark[] {\n return this.collect(extension => extension.marks);\n }\n\n public pandocNodes(): readonly PandocNode[] {\n return this.collect(extension => extension.nodes);\n }\n\n public pandocPreprocessors(): readonly PandocPreprocessorFn[] {\n return this.collectFrom({\n node: node => [node.pandoc.preprocessor],\n });\n }\n\n public pandocPostprocessors(): readonly PandocPostprocessorFn[] {\n return this.pandocReaders().flatMap(reader => (reader.postprocessor ? [reader.postprocessor] : []));\n }\n\n public pandocTokensFilters(): readonly PandocTokensFilterFn[] {\n return this.collectFrom({\n mark: mark => [mark.pandoc.tokensFilter],\n node: node => [node.pandoc.tokensFilter],\n });\n }\n\n public pandocBlockReaders(): readonly PandocBlockReaderFn[] {\n return this.collectFrom({\n node: node => [node.pandoc.blockReader],\n });\n }\n\n public pandocInlineHTMLReaders(): readonly PandocInlineHTMLReaderFn[] {\n return this.collectFrom({\n mark: mark => [mark.pandoc.inlineHTMLReader],\n node: node => [node.pandoc.inlineHTMLReader],\n });\n }\n\n public pandocBlockCapsuleFilters(): readonly PandocBlockCapsuleFilter[] {\n return this.collectFrom({\n node: node => [node.pandoc.blockCapsuleFilter],\n });\n }\n\n public pandocReaders(): readonly PandocTokenReader[] {\n return this.collectFrom({\n mark: mark => mark.pandoc.readers,\n node: node => node.pandoc.readers ?? [],\n });\n }\n\n public pandocMarkWriters(): readonly PandocMarkWriter[] {\n return this.collectFrom({\n mark: mark => [{ name: mark.name, ...mark.pandoc.writer }],\n });\n }\n\n public pandocNodeWriters(): readonly PandocNodeWriter[] {\n return this.collectFrom({\n node: node => {\n return node.pandoc.writer ? [{ name: node.name, write: node.pandoc.writer! }] : [];\n },\n });\n }\n\n public commands(schema: Schema): readonly ProsemirrorCommand[] {\n return this.collect(extension => extension.commands?.(schema));\n }\n\n public omniInserters(schema: Schema): OmniInserter[] {\n const omniInserters: OmniInserter[] = [];\n const commands = this.commands(schema);\n commands.forEach(command => {\n if (command.omniInsert) {\n omniInserters.push({\n ...command.omniInsert,\n id: command.id,\n command: command.execute,\n });\n }\n });\n return omniInserters;\n }\n\n public codeViews() {\n const views: { [key: string]: CodeViewOptions } = {};\n this.pandocNodes().forEach((node: PandocNode) => {\n if (node.code_view) {\n views[node.name] = node.code_view;\n }\n });\n return views;\n }\n\n public attrEditors() {\n return this.collectFrom({\n node: node => [node.attr_edit?.()],\n });\n }\n\n public baseKeys(schema: Schema): readonly BaseKeyBinding[] {\n return this.collect(extension => extension.baseKeys?.(schema));\n }\n\n public appendTransactions(schema: Schema): readonly AppendTransactionHandler[] {\n return this.collect(extension => extension.appendTransaction?.(schema));\n }\n\n public appendMarkTransactions(schema: Schema): readonly AppendMarkTransactionHandler[] {\n return this.collect(extension => extension.appendMarkTransaction?.(schema));\n }\n\n public plugins(schema: Schema): readonly Plugin[] {\n return this.collect(extension => extension.plugins?.(schema));\n }\n\n public fixups(schema: Schema, view: EditorView): readonly FixupFn[] {\n return this.collect(extension => extension.fixups?.(schema, view));\n }\n\n public completionHandlers(): readonly CompletionHandler[] {\n return this.collect(extension => extension.completionHandlers?.());\n }\n\n // NOTE: return value not readonly b/c it will be fed directly to a\n // Prosemirror interface that doesn't take readonly\n public inputRules(schema: Schema): InputRule[] {\n const markFilter = markInputRuleFilter(schema, this.pandocMarks());\n return this.collect(extension => extension.inputRules?.(schema, markFilter));\n }\n\n private collect(collector: (extension: Extension) => readonly T[] | undefined) {\n return this.collectFrom({\n extension: extension => collector(extension) ?? [],\n });\n }\n\n /**\n * Visits extensions in order of registration, providing optional callbacks\n * for extension, mark, and node. The return value of callbacks should be\n * arrays of (T | undefined | null); these will all be concatenated together,\n * with the undefined and nulls filtered out.\n *\n * @param visitor Object containing callback methods for the different\n * extension parts.\n */\n private collectFrom(visitor: {\n extension?: (extension: Extension) => ReadonlyArray;\n mark?: (mark: PandocMark) => ReadonlyArray;\n node?: (node: PandocNode) => ReadonlyArray;\n }): T[] {\n const results: Array = [];\n\n this.extensions.forEach(extension => {\n if (visitor.extension) {\n results.push(...visitor.extension(extension));\n }\n if (visitor.mark && extension.marks) {\n results.push(...extension.marks.flatMap(visitor.mark));\n }\n if (visitor.node && extension.nodes) {\n results.push(...extension.nodes.flatMap(visitor.node));\n }\n });\n\n return results.filter(value => typeof value !== 'undefined' && value !== null) as T[];\n }\n}\n","/*\n * text.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { PandocOutput, PandocToken, PandocTokenType, ProsemirrorWriter } from '../api/pandoc';\nimport { ExtensionContext } from '../api/extension';\nimport { kQuoteType, QuoteType, kQuoteChildren, fancyQuotesToSimple } from '../api/quote';\n\nconst extension = (context: ExtensionContext) => {\n const readText = (text: string) => {\n // we explicitly don't want fancy quotes in the editor\n if (context.pandocExtensions.smart) {\n text = fancyQuotesToSimple(text);\n }\n \n if (context.pandocExtensions.smart) {\n return text\n .replace(/---/g, '—')\n .replace(/--/g, '–')\n .replace(/\\.\\.\\./g, '…');\n } else {\n return text;\n }\n };\n\n return {\n nodes: [\n {\n name: 'text',\n spec: {\n group: 'inline',\n toDOM(node: ProsemirrorNode): any {\n return node.text;\n },\n },\n pandoc: {\n readers: [\n { token: PandocTokenType.Str, text: true, getText: (t: PandocToken) => readText(t.c) },\n { token: PandocTokenType.Space, text: true, getText: () => ' ' },\n { token: PandocTokenType.SoftBreak, text: true, getText: () => ' ' },\n {\n token: PandocTokenType.Quoted,\n handler: () => (writer: ProsemirrorWriter, tok: PandocToken) => {\n const type = tok.c[kQuoteType].t;\n const quote = type === QuoteType.SingleQuote ? \"'\" : '\"';\n writer.writeTokens([{ t: 'Str', c: quote }, ...tok.c[kQuoteChildren], { t: 'Str', c: quote }]);\n },\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n const text = node.textContent;\n output.writeText(text);\n },\n },\n },\n ],\n };\n};\n\nexport default extension;\n","/*\n * paragraph.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\n\nimport { BlockCommand, EditorCommandId, ProsemirrorCommand } from '../api/command';\nimport { Extension } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { insertParagraph } from '../api/paragraph';\nimport { emptyNodePlaceholderPlugin } from '../api/placeholder';\nimport { selectionWithinLastBodyParagraph } from '../api/selection';\nimport { kAddToHistoryTransaction } from '../api/transaction';\n\nconst extension: Extension = {\n nodes: [\n {\n name: 'paragraph',\n spec: {\n content: 'inline*',\n group: 'block list_item_block',\n parseDOM: [{ tag: 'p' }],\n toDOM() {\n return ['p', 0];\n },\n },\n pandoc: {\n readers: [\n { token: PandocTokenType.Para, block: 'paragraph' },\n { token: PandocTokenType.Plain, block: 'paragraph' },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n output.writeInlines(node.content);\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new BlockCommand(EditorCommandId.Paragraph, ['Mod-Alt-0'], schema.nodes.paragraph, schema.nodes.paragraph),\n new InsertParagraphCommand(),\n ];\n },\n\n plugins: (schema: Schema) => {\n let showHint = true;\n return [emptyNodePlaceholderPlugin(schema.nodes.paragraph, node => \" type / to insert a block (code, math, figure, div, etc.)\", tr => {\n if (showHint !== false) {\n if (selectionWithinLastBodyParagraph(tr.selection)) {\n if (tr.docChanged) {\n showHint = false;\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n })];\n },\n};\n\nclass InsertParagraphCommand extends ProsemirrorCommand {\n constructor() {\n super(EditorCommandId.ParagraphInsert, [], insertParagraph);\n }\n}\n\nexport default extension;\n","/*\n * heading.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { textblockTypeInputRule, InputRule } from 'prosemirror-inputrules';\nimport { Node as ProsemirrorNode, Schema, NodeType, Fragment } from 'prosemirror-model';\nimport { EditorState } from 'prosemirror-state';\nimport { findParentNode, findParentNodeOfType } from 'prosemirror-utils';\n\nimport { PandocOutput, PandocToken, PandocTokenType } from '../api/pandoc';\nimport { EditorCommandId, toggleBlockType, ProsemirrorCommand } from '../api/command';\nimport { Extension, ExtensionContext } from '../api/extension';\nimport {\n pandocAttrSpec,\n pandocAttrParseDom,\n pandocAttrToDomAttr,\n pandocAttrReadAST,\n pandocAttrParseText,\n} from '../api/pandoc_attr';\nimport { uuidv4 } from '../api/util';\nimport { EditorUI } from '../api/ui';\nimport { OmniInsert, OmniInsertGroup } from '../api/omni_insert';\nimport { emptyNodePlaceholderPlugin } from '../api/placeholder';\nimport { kHeadingLevel, kHeadingAttr, kHeadingChildren } from '../api/heading';\n\nconst kHeadingLevels = [1, 2, 3, 4, 5, 6];\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, format, ui } = context;\n\n const headingAttr = pandocExtensions.header_attributes || pandocExtensions.mmd_header_identifiers;\n\n return {\n nodes: [\n {\n name: 'heading',\n spec: {\n attrs: {\n level: { default: 1 },\n link: { default: null },\n navigation_id: { default: null },\n ...(headingAttr ? pandocAttrSpec : {}),\n },\n content: 'inline*',\n group: 'block',\n defining: true,\n parseDOM: [\n { tag: 'h1', getAttrs: headingAttrs(1, headingAttr) },\n { tag: 'h2', getAttrs: headingAttrs(2, headingAttr) },\n { tag: 'h3', getAttrs: headingAttrs(3, headingAttr) },\n { tag: 'h4', getAttrs: headingAttrs(4, headingAttr) },\n { tag: 'h5', getAttrs: headingAttrs(5, headingAttr) },\n { tag: 'h6', getAttrs: headingAttrs(6, headingAttr) },\n ],\n toDOM(node) {\n const attr = headingAttr ? pandocAttrToDomAttr(node.attrs) : {};\n attr.class = (attr.class || '').concat(' pm-heading');\n return [\n 'h' + node.attrs.level,\n {\n 'data-link': node.attrs.link,\n ...attr,\n },\n\n 0,\n ];\n },\n },\n\n attr_edit: () => {\n if (headingAttr) {\n return {\n type: (schema: Schema) => schema.nodes.heading,\n offset: {\n top: 2,\n right: 6,\n },\n preferHidden: true\n };\n } else {\n return null;\n }\n },\n\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Header,\n block: 'heading',\n getAttrs: (tok: PandocToken) => ({\n level: tok.c[kHeadingLevel],\n navigation_id: uuidv4(),\n ...(headingAttr ? pandocAttrReadAST(tok, kHeadingAttr) : {}),\n }),\n getChildren: (tok: PandocToken) => tok.c[kHeadingChildren],\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Header, () => {\n output.write(node.attrs.level);\n if (headingAttr) {\n output.writeAttr(node.attrs.id, node.attrs.classes, node.attrs.keyvalue);\n } else {\n output.writeAttr();\n }\n output.writeArray(() => {\n if (node.attrs.level === 1 && format.rmdExtensions.bookdownPart) {\n writeBookdownH1(output, node);\n } else {\n output.writeInlines(node.content);\n }\n });\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new HeadingCommand(schema, EditorCommandId.Heading1, 1, heading1OmniInsert(ui)),\n new HeadingCommand(schema, EditorCommandId.Heading2, 2, heading2OmniInsert(ui)),\n new HeadingCommand(schema, EditorCommandId.Heading3, 3, heading3OmniInsert(ui)),\n new HeadingCommand(schema, EditorCommandId.Heading4, 4, heading4OmniInsert(ui)),\n new HeadingCommand(schema, EditorCommandId.Heading5, 5),\n new HeadingCommand(schema, EditorCommandId.Heading6, 6),\n ];\n },\n\n inputRules: (schema: Schema) => {\n const rules = [\n textblockTypeInputRule(\n new RegExp('^(#{1,' + kHeadingLevels.length + '})\\\\s$'),\n schema.nodes.heading,\n match => ({\n level: match[1].length,\n navigation_id: uuidv4(),\n }),\n ),\n ];\n\n if (headingAttr) {\n rules.push(headingAttributeInputRule(schema));\n }\n\n return rules;\n },\n\n plugins: (schema: Schema) => {\n return [emptyHeadingPlaceholderPlugin(schema.nodes.heading, ui)];\n },\n };\n};\n\nfunction headingAttributeInputRule(schema: Schema) {\n return new InputRule(/ {([^}]+)}$/, (state: EditorState, match: string[], start: number, end: number) => {\n // only fire in headings\n const heading = findParentNodeOfType(schema.nodes.heading)(state.selection);\n if (heading) {\n // try to parse the attributes\n const attrs = pandocAttrParseText(match[1]);\n if (attrs) {\n const tr = state.tr;\n tr.setNodeMarkup(heading.pos, undefined, {\n ...heading.node.attrs,\n ...attrs,\n });\n tr.deleteRange(start + 1, end);\n return tr;\n } else {\n return null;\n }\n } else {\n return null;\n }\n });\n}\n\nclass HeadingCommand extends ProsemirrorCommand {\n public readonly nodeType: NodeType;\n public readonly level: number;\n\n constructor(schema: Schema, id: EditorCommandId, level: number, omniInsert?: OmniInsert) {\n super(id, ['Mod-Alt-' + level], headingCommandFn(schema, level), omniInsert);\n this.nodeType = schema.nodes.heading;\n this.level = level;\n }\n\n public isActive(state: EditorState) {\n const predicate = (n: ProsemirrorNode) => n.type === this.nodeType && n.attrs.level === this.level;\n const node = findParentNode(predicate)(state.selection);\n return !!node;\n }\n}\n\nfunction heading1OmniInsert(ui: EditorUI) {\n return headingOmniInsert(ui, 1, ui.context.translateText('Part heading'), [\n ui.images.omni_insert?.heading1!,\n ui.images.omni_insert?.heading1_dark!,\n ]);\n}\n\nfunction heading2OmniInsert(ui: EditorUI) {\n return headingOmniInsert(ui, 2, ui.context.translateText('Section heading'), [\n ui.images.omni_insert?.heading2!,\n ui.images.omni_insert?.heading2_dark!,\n ]);\n}\nfunction heading3OmniInsert(ui: EditorUI) {\n return headingOmniInsert(ui, 3, ui.context.translateText('Sub-section heading'), [\n ui.images.omni_insert?.heading3!,\n ui.images.omni_insert?.heading3_dark!,\n ]);\n}\n\nfunction heading4OmniInsert(ui: EditorUI) {\n return headingOmniInsert(ui, 4, ui.context.translateText('Small heading'), [\n ui.images.omni_insert?.heading4!,\n ui.images.omni_insert?.heading4_dark!,\n ]);\n}\n\nfunction headingOmniInsert(ui: EditorUI, level: number, description: string, images: [string, string], group = OmniInsertGroup.Headings): OmniInsert {\n return {\n name: headingName(ui, level),\n keywords: [\"h\" + level],\n description,\n group,\n image: () => (ui.prefs.darkMode() ? images[1] : images[0]),\n };\n}\n\nfunction headingName(ui: EditorUI, level: number) {\n const kHeadingPrefix = ui.context.translateText('Heading');\n return `${kHeadingPrefix} ${level}`;\n}\n\nfunction headingCommandFn(schema: Schema, level: number) {\n return toggleBlockType(schema.nodes.heading, schema.nodes.paragraph, { level });\n}\n\n// function for getting attrs\nfunction headingAttrs(level: number, pandocAttrSupported: boolean) {\n return (dom: Node | string) => {\n const el = dom as Element;\n return {\n level,\n 'data-link': el.getAttribute('data-link'),\n ...(pandocAttrSupported ? pandocAttrParseDom(el, {}) : {}),\n };\n };\n}\n\nfunction emptyHeadingPlaceholderPlugin(nodeType: NodeType, ui: EditorUI) {\n return emptyNodePlaceholderPlugin(nodeType, node => headingName(ui, node.attrs.level));\n}\n\n// write a bookdown (PART) H1 w/o spurious \\\nfunction writeBookdownH1(output: PandocOutput, node: ProsemirrorNode) {\n // see if this is a (PART\\*). note we also match and replay any text\n // before the first ( in case the cursor sentinel ended up there\n const partMatch = node.textContent.match(/^([^()]*)\\(PART\\\\\\*\\)/);\n if (partMatch) {\n const schema = node.type.schema;\n output.writeInlines(Fragment.from(schema.text(partMatch[1] + '(PART*)')));\n output.writeInlines(node.content.cut(partMatch[0].length));\n } else {\n output.writeInlines(node.content);\n }\n}\n\nexport default extension;\n","/*\n * blockquote.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { wrappingInputRule } from 'prosemirror-inputrules';\nimport { Node as ProsemirrorNode, Schema, DOMOutputSpec } from 'prosemirror-model';\n\nimport { WrapCommand, EditorCommandId } from '../api/command';\nimport { ExtensionContext } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { EditorUI } from '../api/ui';\nimport { OmniInsertGroup } from '../api/omni_insert';\n\nconst extension = (context: ExtensionContext) => {\n const { ui } = context;\n\n return {\n nodes: [\n {\n name: 'blockquote',\n spec: {\n content: 'block+',\n group: 'block',\n defining: true,\n parseDOM: [{ tag: 'blockquote' }],\n toDOM(): DOMOutputSpec {\n return ['blockquote', { class: 'pm-blockquote pm-block-border-color' }, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.BlockQuote,\n block: 'blockquote',\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.BlockQuote, () => {\n output.writeNodes(node);\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [new WrapCommand(EditorCommandId.Blockquote, [], schema.nodes.blockquote, {}, blockquoteOmniInsert(ui))];\n },\n\n inputRules: (schema: Schema) => {\n return [wrappingInputRule(/^\\s*>\\s$/, schema.nodes.blockquote)];\n },\n };\n};\n\nfunction blockquoteOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Blockquote'),\n description: ui.context.translateText('Section quoted from another source'),\n group: OmniInsertGroup.Blocks,\n priority: 8,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.blockquote_dark! : ui.images.omni_insert?.blockquote!),\n };\n}\n\nexport default extension;\n","/*\n * code_block.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\nimport { newlineInCode, exitCode } from 'prosemirror-commands';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { findParentNodeOfType } from 'prosemirror-utils';\n\nimport { BlockCommand, EditorCommandId, ProsemirrorCommand, toggleBlockType } from '../api/command';\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { BaseKey } from '../api/basekeys';\nimport { codeNodeSpec } from '../api/code';\nimport { PandocOutput, PandocTokenType, PandocExtensions } from '../api/pandoc';\nimport { pandocAttrSpec, pandocAttrParseDom, pandocAttrToDomAttr } from '../api/pandoc_attr';\nimport { PandocCapabilities } from '../api/pandoc_capabilities';\nimport { EditorUI } from '../api/ui';\nimport { CodeBlockProps } from '../api/ui-dialogs';\nimport { hasFencedCodeBlocks } from '../api/pandoc_format';\nimport { precedingListItemInsertPos, precedingListItemInsert } from '../api/list';\nimport { EditorOptions } from '../api/options';\nimport { OmniInsertGroup } from '../api/omni_insert';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, pandocCapabilities, ui, options } = context;\n\n const hasAttr = hasFencedCodeBlocks(pandocExtensions);\n\n return {\n nodes: [\n {\n name: 'code_block',\n\n spec: {\n ...codeNodeSpec(),\n attrs: { ...(hasAttr ? pandocAttrSpec : {}) },\n parseDOM: [\n {\n tag: 'pre',\n preserveWhitespace: 'full',\n getAttrs: (node: Node | string) => {\n if (hasAttr) {\n const el = node as Element;\n return pandocAttrParseDom(el, {});\n } else {\n return {};\n }\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n const fontClass = 'pm-fixedwidth-font';\n const attrs = hasAttr\n ? pandocAttrToDomAttr({\n ...node.attrs,\n classes: [...node.attrs.classes, fontClass],\n })\n : {\n class: fontClass,\n };\n return ['pre', attrs, ['code', 0]];\n },\n },\n\n code_view: {\n lang: (node: ProsemirrorNode) => {\n return codeBlockLang(node, options);\n },\n attrEditFn: codeBlockFormatCommandFn(pandocExtensions, ui, pandocCapabilities.highlight_languages),\n },\n\n attr_edit: codeBlockAttrEdit(pandocExtensions, pandocCapabilities, ui),\n\n pandoc: {\n readers: [\n {\n token: PandocTokenType.CodeBlock,\n code_block: true,\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.CodeBlock, () => {\n if (hasAttr) {\n const id = pandocExtensions.fenced_code_attributes ? node.attrs.id : '';\n const keyvalue = pandocExtensions.fenced_code_attributes ? node.attrs.keyvalue : [];\n output.writeAttr(id, node.attrs.classes, keyvalue);\n } else {\n output.writeAttr();\n }\n output.write(node.textContent);\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n const commands: ProsemirrorCommand[] = [\n new BlockCommand(EditorCommandId.CodeBlock, [], schema.nodes.code_block, schema.nodes.paragraph, {}),\n ];\n if (hasAttr) {\n commands.push(new CodeBlockFormatCommand(pandocExtensions, ui, pandocCapabilities.highlight_languages));\n }\n return commands;\n },\n\n baseKeys: () => {\n return [\n { key: BaseKey.Enter, command: newlineInCode },\n { key: BaseKey.ModEnter, command: exitCode },\n { key: BaseKey.ShiftEnter, command: exitCode },\n ];\n },\n };\n};\n\nclass CodeBlockFormatCommand extends ProsemirrorCommand {\n constructor(pandocExtensions: PandocExtensions, ui: EditorUI, languages: string[]) {\n super(\n EditorCommandId.CodeBlockFormat,\n ['Shift-Mod-\\\\'],\n codeBlockFormatCommandFn(pandocExtensions, ui, languages),\n {\n name: ui.context.translateText('Code Block...'),\n description: ui.context.translateText('Source code display'),\n group: OmniInsertGroup.Blocks,\n priority: 7,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.code_block_dark! : ui.images.omni_insert?.code_block!,\n },\n );\n }\n}\n\nfunction codeBlockFormatCommandFn(pandocExtensions: PandocExtensions, ui: EditorUI, languages: string[]) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // enable if we are either inside a code block or we can toggle to a code block\n const schema = state.schema;\n const codeBlock = findParentNodeOfType(schema.nodes.code_block)(state.selection);\n if (\n !codeBlock &&\n !toggleBlockType(schema.nodes.code_block, schema.nodes.paragraph)(state) &&\n !precedingListItemInsertPos(state.doc, state.selection)\n ) {\n return false;\n }\n\n async function asyncEditCodeBlock() {\n if (dispatch) {\n // get props to edit\n const codeBlockProps = codeBlock\n ? { ...(codeBlock.node.attrs as CodeBlockProps), lang: '' }\n : defaultCodeBlockProps();\n\n // set lang if the first class is from available languages\n // (alternatively if we don't support attributes then it's\n // automatically considered the language)\n if (codeBlockProps.classes && codeBlockProps.classes.length) {\n const potentialLang = codeBlockProps.classes[0];\n if (!pandocExtensions.fenced_code_attributes || languages.includes(potentialLang)) {\n codeBlockProps.lang = potentialLang;\n codeBlockProps.classes = codeBlockProps.classes.slice(1);\n }\n }\n\n // show dialog\n const result = await ui.dialogs.editCodeBlock(\n codeBlockProps,\n pandocExtensions.fenced_code_attributes,\n languages,\n );\n if (result) {\n // extract lang\n const applyProps = propsWithLangClass(result);\n\n // edit or toggle as appropriate\n if (codeBlock) {\n const tr = state.tr;\n tr.setNodeMarkup(codeBlock.pos, schema.nodes.code_block, applyProps);\n dispatch(tr);\n } else {\n const prevListItemPos = precedingListItemInsertPos(state.doc, state.selection);\n if (prevListItemPos) {\n const tr = state.tr;\n const block = schema.nodes.code_block.create(applyProps);\n precedingListItemInsert(tr, prevListItemPos, block);\n dispatch(tr);\n } else {\n toggleBlockType(schema.nodes.code_block, schema.nodes.paragraph, applyProps)(state, dispatch, view);\n }\n }\n }\n }\n\n if (view) {\n view.focus();\n }\n }\n\n asyncEditCodeBlock();\n\n return true;\n };\n}\n\nfunction defaultCodeBlockProps() {\n return { id: '', classes: [], keyvalue: [], lang: '' };\n}\n\nfunction propsWithLangClass(props: CodeBlockProps) {\n const newProps = { ...props };\n if (newProps.classes && newProps.lang) {\n newProps.classes.unshift(props.lang);\n }\n return newProps;\n}\n\n// determine the code block language. if it's an Rmd example (i.e. with `r ''`) and\n// we have rmdExampleHighlight enabled then use the Rmd chunk language for highlighting\nfunction codeBlockLang(node: ProsemirrorNode, options: EditorOptions) {\n if (node.attrs.classes && node.attrs.classes.length) {\n const lang = node.attrs.classes[0];\n if (options.rmdExampleHighlight && lang === 'md') {\n const match = node.textContent.match(/^```+\\s*\\{([a-zA-Z0-9_]+)( *[ ,].*)?\\}`r ''`/);\n if (match) {\n return match[1];\n }\n }\n return lang;\n } else {\n return null;\n }\n}\n\nfunction codeBlockAttrEdit(pandocExtensions: PandocExtensions, pandocCapabilities: PandocCapabilities, ui: EditorUI) {\n return () => {\n if (hasFencedCodeBlocks(pandocExtensions)) {\n return {\n type: (schema: Schema) => schema.nodes.code_block,\n tags: (node: ProsemirrorNode) => {\n const tags: string[] = [];\n if (node.attrs.id) {\n tags.push(`#${node.attrs.id}`);\n }\n if (node.attrs.classes) {\n for (let i=1; i 0) {\n const lang = node.attrs.classes[0];\n if (pandocCapabilities.highlight_languages.includes(lang) || lang === 'tex') {\n tags.push(lang);\n } else {\n tags.push(`.${lang}`);\n }\n }\n }\n if (node.attrs.keyvalue && node.attrs.keyvalue.length) {\n tags.push(`${node.attrs.keyvalue.map(\n (kv: [string,string]) => kv[0] + '=\"' + (kv[1] || '1') + '\"').join(' ')}\n `);\n }\n return tags;\n },\n offset: {\n top: 3,\n right: 0,\n },\n editFn: () => codeBlockFormatCommandFn(pandocExtensions, ui, pandocCapabilities.highlight_languages),\n };\n } else {\n return null;\n }\n };\n}\n\nexport default extension;\n","/*\n * list.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\nimport { liftListItem, sinkListItem, splitListItem } from 'prosemirror-schema-list';\nimport { Plugin, PluginKey, EditorState } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { findParentNodeOfType } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { BaseKey } from '../../api/basekeys';\nimport { EditorUI, kListSpacingTight } from '../../api/ui';\nimport { ListCapabilities } from '../../api/list';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { PandocTokenType } from '../../api/pandoc';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { conditionalWrappingInputRule } from '../../api/input_rule';\nimport { kPresentationDocType } from '../../api/format';\n\nimport { ListCommand, TightListCommand, EditListPropertiesCommand, editListPropertiesCommandFn } from './list-commands';\n\nimport {\n CheckedListItemNodeView,\n checkedListItemInputRule,\n checkedListInputRule,\n CheckedListItemCommand,\n CheckedListItemToggleCommand,\n} from './list-checked';\n\nimport { writePandocBulletList, writePandocOrderedList, readPandocList } from './list-pandoc';\n\nimport './list-styles.css';\n\nexport enum ListNumberStyle {\n DefaultStyle = 'DefaultStyle',\n Decimal = 'Decimal',\n LowerRoman = 'LowerRoman',\n UpperRoman = 'UpperRoman',\n LowerAlpha = 'LowerAlpha',\n UpperAlpha = 'UpperAlpha',\n Example = 'Example',\n}\n\n// NOTE: HTML output doesn't currently respect this and it's difficult to\n// do with CSS (especially for nested lists). So we allow the user to edit\n// it but it isn't reflected in the editor.\nexport enum ListNumberDelim {\n DefaultDelim = 'DefaultDelim',\n Period = 'Period',\n OneParen = 'OneParen',\n TwoParens = 'TwoParens',\n}\n\nconst plugin = new PluginKey('list');\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, ui, format } = context;\n\n // determine list capabilities based on active format options\n const capabilities: ListCapabilities = {\n tasks: pandocExtensions.task_lists,\n fancy: pandocExtensions.fancy_lists,\n /*\n Always disable example lists b/c they don't round trip through the AST:\n - (@good) referenced elsewhere via (@good) just becomes a generic example (@) with \n a literal numeric reference.\n - The writer doesn't preserve the (@) or the (@good) when writing\n */\n // example: pandocExtensions.fancy_lists && pandocExtensions.example_lists,\n example: false,\n order: pandocExtensions.startnum,\n incremental: format.docTypes.includes(kPresentationDocType)\n };\n\n return {\n nodes: [\n {\n name: 'list_item',\n spec: {\n content: 'list_item_block block*',\n attrs: {\n checked: { default: null },\n },\n defining: true,\n parseDOM: [\n {\n tag: 'li',\n getAttrs: (dom: Node | string) => {\n const el = dom as Element;\n const attrs: any = {};\n if (capabilities.tasks && el.hasAttribute('data-checked')) {\n attrs.checked = el.getAttribute('data-checked') === 'true';\n }\n return attrs;\n },\n },\n ],\n toDOM(node) {\n const attrs: any = {\n class: 'pm-list-item',\n };\n if (capabilities.tasks && node.attrs.checked !== null) {\n attrs['data-checked'] = node.attrs.checked ? 'true' : 'false';\n }\n return ['li', attrs, 0];\n },\n },\n pandoc: {},\n },\n {\n name: 'bullet_list',\n spec: {\n content: 'list_item+',\n group: 'block',\n attrs: {\n tight: { default: false },\n },\n parseDOM: [\n {\n tag: 'ul',\n getAttrs: (dom: Node | string) => {\n const el = dom as Element;\n const attrs: any = {};\n if (el.hasAttribute('data-tight')) {\n attrs.tight = true;\n }\n return attrs;\n },\n },\n ],\n toDOM(node) {\n const attrs: { [key: string]: string } = {};\n attrs.class = 'pm-list pm-bullet-list';\n if (node.attrs.tight) {\n attrs['data-tight'] = 'true';\n }\n return ['ul', attrs, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.BulletList,\n handler: (schema: Schema) => readPandocList(schema.nodes.bullet_list, capabilities),\n },\n ],\n writer: writePandocBulletList(capabilities),\n },\n\n attr_edit: listAttrEdit('bullet_list', capabilities, ui),\n },\n {\n name: 'ordered_list',\n spec: {\n content: 'list_item+',\n group: 'block',\n attrs: {\n tight: { default: false },\n order: { default: 1 },\n number_style: { default: ListNumberStyle.DefaultStyle },\n number_delim: { default: ListNumberDelim.DefaultDelim },\n },\n parseDOM: [\n {\n tag: 'ol',\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n\n const attrs: any = {};\n attrs.tight = el.hasAttribute('data-tight');\n\n if (capabilities.order) {\n const order: string | null = el.getAttribute('start');\n if (!order) {\n attrs.order = 1;\n } else {\n attrs.order = parseInt(order, 10) || 1;\n }\n }\n\n if (capabilities.fancy) {\n if (capabilities.example && el.getAttribute('data-example')) {\n attrs.number_style = ListNumberStyle.Example;\n } else {\n attrs.number_style = typeToNumberStyle(el.getAttribute('type'));\n }\n const numberDelim = el.getAttribute('data-number-delim');\n if (numberDelim) {\n attrs.number_delim = numberDelim;\n }\n }\n\n return attrs;\n },\n },\n ],\n toDOM(node) {\n const attrs: { [key: string]: string } = {};\n attrs.class = 'pm-list pm-ordered-list';\n if (node.attrs.tight) {\n attrs['data-tight'] = 'true';\n }\n if (capabilities.order && node.attrs.order !== 1) {\n attrs.start = node.attrs.order;\n }\n if (capabilities.fancy) {\n const type = numberStyleToType(node.attrs.number_style);\n if (type) {\n attrs.type = type;\n }\n if (capabilities.example) {\n if (node.attrs.number_style === ListNumberStyle.Example) {\n attrs['data-example'] = '1';\n }\n }\n attrs['data-number-delim'] = node.attrs.number_delim;\n }\n return ['ol', attrs, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.OrderedList,\n handler: (schema: Schema) => readPandocList(schema.nodes.ordered_list, capabilities),\n },\n ],\n writer: writePandocOrderedList(capabilities),\n },\n\n attr_edit: listAttrEdit('ordered_list', capabilities, ui),\n },\n ],\n\n plugins: (schema: Schema) => {\n const plugins: Plugin[] = [];\n if (capabilities.tasks) {\n plugins.push(\n new Plugin({\n key: plugin,\n props: {\n nodeViews: {\n list_item(node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) {\n return new CheckedListItemNodeView(node, view, getPos as () => number);\n },\n },\n },\n }),\n );\n }\n return plugins;\n },\n\n commands: (schema: Schema) => {\n const commands = [\n new ListCommand(\n EditorCommandId.BulletList,\n [],\n schema.nodes.bullet_list,\n schema.nodes.list_item,\n bulletListOmniInsert(ui),\n ui.prefs,\n ),\n new ListCommand(\n EditorCommandId.OrderedList,\n [],\n schema.nodes.ordered_list,\n schema.nodes.list_item,\n orderedListOmniInsert(ui),\n ui.prefs,\n ),\n new ProsemirrorCommand(EditorCommandId.ListItemSink, ['Tab'], sinkListItem(schema.nodes.list_item)),\n new ProsemirrorCommand(EditorCommandId.ListItemLift, ['Shift-Tab'], liftListItem(schema.nodes.list_item)),\n new ProsemirrorCommand(EditorCommandId.ListItemSplit, ['Enter'], splitListItem(schema.nodes.list_item)),\n new TightListCommand(),\n ];\n if (capabilities.fancy) {\n commands.push(new EditListPropertiesCommand(ui, capabilities));\n }\n if (capabilities.tasks) {\n commands.push(\n new CheckedListItemCommand(schema.nodes.list_item),\n new CheckedListItemToggleCommand(schema.nodes.list_item),\n );\n }\n return commands;\n },\n\n baseKeys: (schema: Schema) => {\n return [\n { key: BaseKey.Enter, command: splitListItem(schema.nodes.list_item) },\n { key: BaseKey.Tab, command: sinkListItem(schema.nodes.list_item) },\n { key: BaseKey.ShiftTab, command: liftListItem(schema.nodes.list_item) },\n ];\n },\n\n inputRules: (schema: Schema) => {\n // reflect tight pref\n const tightFn = () => {\n return {\n tight: ui.prefs.listSpacing() === kListSpacingTight,\n };\n };\n\n const isNotInHeading = (state: EditorState) => {\n return !findParentNodeOfType(schema.nodes.heading)(state.selection);\n };\n\n const rules = [\n conditionalWrappingInputRule(/^\\s*([-+*])\\s$/, schema.nodes.bullet_list, isNotInHeading, tightFn),\n conditionalWrappingInputRule(\n /^(\\d+)\\.\\s$/,\n schema.nodes.ordered_list,\n isNotInHeading,\n match => ({ order: +match[1], tight: tightFn() }),\n (match, node) => node.childCount + node.attrs.order === +match[1],\n ),\n ];\n if (capabilities.tasks) {\n rules.push(checkedListItemInputRule(), checkedListInputRule(schema));\n }\n return rules;\n },\n };\n};\n\nfunction listAttrEdit(type: string, capabilities: ListCapabilities, ui: EditorUI) {\n return () => {\n return {\n type: (schema: Schema) => schema.nodes[type],\n editFn: () => editListPropertiesCommandFn(ui, capabilities),\n offset: {\n top: 5,\n right: 5,\n },\n preferHidden: true\n };\n };\n}\n\nfunction numberStyleToType(style: ListNumberStyle): string | null {\n switch (style) {\n case ListNumberStyle.DefaultStyle:\n case ListNumberStyle.Decimal:\n case ListNumberStyle.Example:\n return 'l';\n case ListNumberStyle.LowerAlpha:\n return 'a';\n case ListNumberStyle.UpperAlpha:\n return 'A';\n case ListNumberStyle.LowerRoman:\n return 'i';\n case ListNumberStyle.UpperRoman:\n return 'I';\n default:\n return null;\n }\n}\n\nfunction typeToNumberStyle(type: string | null): ListNumberStyle {\n switch (type) {\n case 'l':\n return ListNumberStyle.Decimal;\n case 'a':\n return ListNumberStyle.LowerAlpha;\n case 'A':\n return ListNumberStyle.UpperAlpha;\n case 'i':\n return ListNumberStyle.LowerRoman;\n case 'I':\n return ListNumberStyle.UpperRoman;\n default:\n return ListNumberStyle.Decimal;\n }\n}\n\nfunction bulletListOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Bullet List'),\n description: ui.context.translateText('List using bullets for items'),\n group: OmniInsertGroup.Common,\n priority: 4,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.bullet_list_dark! : ui.images.omni_insert?.bullet_list!),\n };\n}\n\nfunction orderedListOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Numbered List'),\n description: ui.context.translateText('List using numbers for items'),\n group: OmniInsertGroup.Common,\n priority: 3,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.ordered_list_dark! : ui.images.omni_insert?.ordered_list!,\n };\n}\n\nexport default extension;\n","/*\n * list-commands.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { NodeType, Node as ProsemirrorNode, NodeRange, Schema } from 'prosemirror-model';\nimport { EditorState, Transaction, Selection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { autoJoin } from 'prosemirror-commands';\nimport { NodeWithPos, findParentNode } from 'prosemirror-utils';\n\nimport { NodeCommand, toggleList, ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { EditorUI, EditorUIPrefs } from '../../api/ui';\nimport { ListProps } from '../../api/ui-dialogs';\nimport { ListType, ListCapabilities, isList } from '../../api/list';\nimport { OmniInsert } from '../../api/omni_insert';\nimport { findWrapping } from 'prosemirror-transform';\nimport { trRemoveDiv } from '../div/div';\nimport { pandocAttrHasClass, pandocAttrRemoveClass, pandocAttrEnsureClass } from '../../api/pandoc_attr';\n\nexport class ListCommand extends NodeCommand {\n constructor(\n id: EditorCommandId,\n keymap: string[],\n listType: NodeType,\n listItemType: NodeType,\n omniInsert: OmniInsert,\n prefs: EditorUIPrefs,\n ) {\n super(id, keymap, listType, {}, autoJoin(toggleList(listType, listItemType, prefs), [listType.name]), omniInsert);\n }\n}\n\nexport class TightListCommand extends ProsemirrorCommand {\n constructor() {\n super(\n EditorCommandId.TightList,\n ['Mod-Alt-9'],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const parentList = findParentNode(isList)(state.selection);\n if (!parentList) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n const node = parentList.node;\n tr.setNodeMarkup(parentList.pos, node.type, {\n ...node.attrs,\n tight: !node.attrs.tight,\n });\n dispatch(tr);\n }\n\n return true;\n },\n );\n }\n\n public isActive(state: EditorState): boolean {\n if (this.isEnabled(state)) {\n const itemNode = findParentNode(isList)(state.selection) as NodeWithPos;\n return itemNode.node.attrs.tight;\n } else {\n return false;\n }\n }\n}\n\nexport function editListPropertiesCommandFn(ui: EditorUI, capabilities: ListCapabilities) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // see if a parent node is a list\n let node: ProsemirrorNode | null = null;\n let pos: number = 0;\n const nodeWithPos = findParentNode(isList)(state.selection);\n if (nodeWithPos) {\n node = nodeWithPos.node;\n pos = nodeWithPos.pos;\n }\n\n // return false (disabled) for no targets\n if (!node) {\n return false;\n }\n\n // execute command when requested\n async function asyncEditList() {\n if (dispatch) {\n await editList(node as ProsemirrorNode, pos, state, dispatch, ui, capabilities);\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditList();\n\n return true;\n };\n}\n\nexport class EditListPropertiesCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI, capabilities: ListCapabilities) {\n super(EditorCommandId.EditListProperties, [], editListPropertiesCommandFn(ui, capabilities));\n }\n}\n\nconst kListIncrementalDefault = \"default\";\nconst kListIncremental = \"incremental\";\nconst kListNonIncremental = \"nonincremental\";\n\nasync function editList(\n node: ProsemirrorNode,\n pos: number,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n ui: EditorUI,\n capabilities: ListCapabilities,\n): Promise {\n // get list properties\n const schema = node.type.schema;\n const attrs = node.attrs;\n const props = {\n ...attrs,\n type: node.type === schema.nodes.ordered_list ? ListType.Ordered : ListType.Bullet,\n } as ListProps;\n\n // if we support incremental lists then determine that value\n const incrementalDiv = wrappingIncrementalDiv(state.selection, schema);\n if (incrementalDiv && capabilities.incremental) {\n props.incremental = pandocAttrHasClass(incrementalDiv.node.attrs, clz => clz === kListIncremental) \n ? kListIncremental \n : kListNonIncremental;\n } else {\n props.incremental = kListIncrementalDefault;\n }\n\n // edit list\n const result = await ui.dialogs.editList(props, capabilities);\n\n // apply result\n if (result) {\n const tr = state.tr;\n const listType = result.type === ListType.Ordered ? schema.nodes.ordered_list : schema.nodes.bullet_list;\n tr.setNodeMarkup(pos, listType, {\n ...attrs,\n ...result,\n });\n\n \n if (capabilities.incremental) {\n\n // remove any existing wrapping\n if (result.incremental === kListIncrementalDefault) {\n if (incrementalDiv) {\n trRemoveDiv(tr, incrementalDiv);\n }\n // edit existing wrapping\n } else if (incrementalDiv) {\n const divAttrs = { ...incrementalDiv.node.attrs };\n pandocAttrRemoveClass(divAttrs, isIncrementalClass);\n pandocAttrEnsureClass(divAttrs, result.incremental);\n tr.setNodeMarkup(incrementalDiv.pos, schema.nodes.div, divAttrs);\n // create new wrapping\n } else {\n const $pos = tr.doc.resolve(pos);\n const $endPos = tr.doc.resolve(pos + node.nodeSize);\n const range = $pos.blockRange($endPos); \n if (range) {\n const wrapping = findWrapping(range, schema.nodes.div, { classes: [result.incremental]});\n if (wrapping) {\n tr.wrap(range, wrapping);\n }\n }\n }\n }\n \n dispatch(tr);\n }\n}\n\nfunction wrappingIncrementalDiv(selection: Selection, schema: Schema) {\n return findParentNode(nd => {\n return nd.type === schema.nodes.div && \n pandocAttrHasClass(nd.attrs, isIncrementalClass);\n })(selection);\n\n}\n\nfunction isIncrementalClass(clz: string) {\n return [kListIncremental, kListNonIncremental].includes(clz);\n}","/*\n * div.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, DOMOutputSpec, ResolvedPos } from 'prosemirror-model';\nimport { EditorState, Transaction, Plugin, PluginKey, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeOfType, ContentNodeWithPos } from 'prosemirror-utils';\nimport { wrapIn } from 'prosemirror-commands';\nimport { liftTarget } from 'prosemirror-transform';\n\nimport { ExtensionContext, Extension } from '../../api/extension';\nimport {\n pandocAttrSpec,\n pandocAttrToDomAttr,\n pandocAttrParseDom,\n pandocAttrReadAST,\n pandocAttrFrom,\n pandocAttrAvailable,\n PandocAttr,\n pandocAttrHasClass,\n} from '../../api/pandoc_attr';\nimport { PandocOutput, PandocTokenType, PandocToken } from '../../api/pandoc';\nimport { ProsemirrorCommand, EditorCommandId, toggleWrap } from '../../api/command';\nimport { EditorUI } from '../../api/ui';\nimport { OmniInsertGroup, OmniInsert } from '../../api/omni_insert';\nimport { markIsActive } from '../../api/mark';\nimport { BaseKey } from '../../api/basekeys';\nimport { attrInputToProps } from '../../api/ui-dialogs';\nimport { kQuartoDocType } from '../../api/format';\n\nimport { insertCalloutCommand, editCalloutDiv } from './div-callout';\nimport { insertTabsetCommand } from './div-tabset';\n\nimport './div-styles.css';\n\nconst DIV_ATTR = 0;\nconst DIV_CHILDREN = 1;\n\nconst extension = (context: ExtensionContext) : Extension | null => {\n const { pandocExtensions, format, ui } = context;\n\n if (!pandocExtensions.fenced_divs && !pandocExtensions.native_divs) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'div',\n spec: {\n attrs: {\n ...pandocAttrSpec,\n },\n defining: true,\n content: 'block+',\n group: 'block list_item_block',\n parseDOM: [\n {\n tag: 'div[data-div=\"1\"]',\n getAttrs(dom: Node | string) {\n const attrs: {} = { 'data-div': 1 };\n return {\n ...attrs,\n ...pandocAttrParseDom(dom as Element, attrs),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n const attr = {\n 'data-div': '1',\n ...pandocAttrToDomAttr({\n ...node.attrs,\n classes: [...node.attrs.classes, 'pm-div', 'pm-div-background-color'],\n }),\n };\n return ['div', attr, 0];\n },\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.div,\n editFn: () => divCommand(ui, true),\n offset: {\n top: 3,\n right: 0\n }\n }),\n\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Div,\n block: 'div',\n getAttrs: (tok: PandocToken) => ({\n ...pandocAttrReadAST(tok, DIV_ATTR),\n }),\n getChildren: (tok: PandocToken) => tok.c[DIV_CHILDREN],\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Div, () => {\n output.writeAttr(node.attrs.id, node.attrs.classes, node.attrs.keyvalue);\n output.writeArray(() => {\n output.writeNodes(node);\n });\n });\n },\n },\n },\n ],\n\n baseKeys: () => {\n return [\n { key: BaseKey.Enter, command: divInputRuleEnter() },\n ];\n },\n\n commands: () => {\n const cmds = [\n // turn current block into a div\n new DivCommand(EditorCommandId.Div, ui, true),\n\n // insert a div\n new DivCommand(EditorCommandId.InsertDiv, ui, false, {\n name: ui.context.translateText('Div...'),\n description: ui.context.translateText('Block containing other content'),\n group: OmniInsertGroup.Common,\n priority: 6,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.div_dark! : ui.images.omni_insert?.div!),\n }),\n ];\n\n // quarto div commands\n if (format.docTypes.includes(kQuartoDocType)) {\n cmds.push(\n insertCalloutCommand(ui),\n insertTabsetCommand(ui)\n );\n }\n\n return cmds;\n },\n\n plugins: (schema: Schema) => {\n return [\n new Plugin({\n key: new PluginKey(\"div-selection\"),\n appendTransaction: (_transactions: Transaction[], _oldState: EditorState, newState: EditorState) => {\n if (newState.selection.empty) {\n return;\n }\n const divNode = findParentNodeOfType(schema.nodes.div)(newState.selection);\n if (divNode && \n (newState.selection.anchor === divNode.start + 1) &&\n newState.selection.head === divNode.pos + divNode.node.nodeSize - 2) {\n const tr = newState.tr;\n const sel = TextSelection.create(tr.doc, divNode.start, divNode.start + divNode.node.nodeSize - 1);\n tr.setSelection(sel);\n return tr;\n }\n }\n }),\n ];\n },\n };\n};\n\nexport function removeDiv(state: EditorState, dispatch: (tr: Transaction) => void, div: ContentNodeWithPos) {\n const tr = state.tr;\n trRemoveDiv(tr, div);\n dispatch(tr);\n}\n\nexport function trRemoveDiv(tr: Transaction, div: ContentNodeWithPos) {\n const fromPos = tr.doc.resolve(div.pos + 1);\n const toPos = tr.doc.resolve(div.pos + div.node.nodeSize - 1);\n const nodeRange = fromPos.blockRange(toPos);\n if (nodeRange) {\n const targetLiftDepth = liftTarget(nodeRange);\n if (targetLiftDepth || targetLiftDepth === 0) {\n tr.lift(nodeRange, targetLiftDepth);\n }\n }\n}\n\nfunction divCommand(ui: EditorUI, allowEdit: boolean) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // two different modes:\n // - editing attributes of an existing div\n // - wrapping (a la blockquote)\n const schema = state.schema;\n const div = allowEdit ? findParentNodeOfType(schema.nodes.div)(state.selection) : undefined;\n if (!div && !toggleWrap(schema.nodes.div)(state)) {\n return false;\n }\n\n async function asyncEditDiv() {\n if (dispatch) {\n // selecting nothing or entire div means edit, selecting text outside of a\n // div or a subset of an existing div means create new one\n const editMode = div && (state.selection.empty || isFullDivSelection(div, state));\n if (editMode) {\n const attr = pandocAttrFrom(div!.node.attrs);\n if (pandocAttrHasClass(attr, (clz) => clz.startsWith(\"callout-\"))) {\n await editCalloutDiv(ui, state, dispatch, div!);\n } else {\n await editDiv(ui, state, dispatch, div!);\n }\n } else {\n await createDiv(ui, state, dispatch);\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditDiv();\n\n return true;\n };\n}\n\nclass DivCommand extends ProsemirrorCommand {\n constructor(id: EditorCommandId, ui: EditorUI, allowEdit: boolean, omniInsert?: OmniInsert) {\n super(id, [], divCommand(ui, allowEdit), omniInsert);\n }\n}\n\nasync function createDiv(ui: EditorUI, state: EditorState, dispatch: (tr: Transaction) => void) {\n const result = await ui.dialogs.editDiv({}, false);\n if (result) {\n wrapIn(state.schema.nodes.div)(state, (tr: Transaction) => {\n const div = findParentNodeOfType(state.schema.nodes.div)(tr.selection)!;\n tr.setNodeMarkup(div.pos, div.node.type, result.attr);\n dispatch(tr);\n });\n }\n}\n\nasync function editDiv(ui: EditorUI, state: EditorState, dispatch: (tr: Transaction) => void, div: ContentNodeWithPos) {\n const attr = pandocAttrFrom(div.node.attrs);\n const result = await ui.dialogs.editDiv(attr, pandocAttrAvailable(attr));\n if (result) {\n if (result.action === 'edit') {\n const tr = state.tr;\n tr.setNodeMarkup(div.pos, div.node.type, result.attr);\n dispatch(tr);\n } else if (result.action === 'remove') {\n removeDiv(state, dispatch, div);\n }\n }\n}\n\n\nfunction isFullDivSelection(div: ContentNodeWithPos, state: EditorState) {\n const divStart = div.pos;\n const divEnd = div.pos + div.node.nodeSize;\n return state.selection.from - 2 === divStart && state.selection.to + 2 === divEnd;\n}\n\nfunction divInputRuleEnter() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // see if the parent consist of a pending code block input rule\n const schema = state.schema;\n\n // selection must be empty\n if (!state.selection.empty) {\n return false;\n }\n\n // full text of parent must meet the pattern\n // eslint-disable-next-line no-useless-escape\n const match = state.selection.$head.parent.textContent.match(/^:{3,}(\\s+({.*?}|\\S+)?[\\s:]*)?$/);\n if (!match) {\n return false;\n }\n\n // no inline code marks\n if (markIsActive(state, schema.marks.code)) {\n return false;\n }\n\n // must be able to perform the replacement\n if (!canApplyDivInputRule(state)) {\n return false;\n }\n\n // execute\n if (dispatch) {\n // if it's just followed by whitespace then don't do it\n if (match[1] && match[1].trim().length === 0) {\n return false;\n }\n\n // parse attributes\n const attrs: PandocAttr = pandocAttrFrom({});\n const attribMatch = match[2];\n if (attribMatch) {\n const bracesMatch = attribMatch.match(/^{(.*?)}$/);\n if (bracesMatch) {\n const pandocAttrsText = bracesMatch[1];\n const pandocAttrsMatch = pandocAttrsText.match(/^\\s*(#\\S+)?\\s*((?:\\.\\S+\\s*)*)?(.*)?$/);\n if (pandocAttrsMatch) {\n const attrProps = attrInputToProps({ id: pandocAttrsMatch[1], classes: pandocAttrsMatch[2] });\n attrs.id = attrProps.id || '';\n attrs.classes = attrProps.classes || [];\n }\n } else {\n attrs.classes = [attribMatch];\n }\n }\n\n wrapIn(state.schema.nodes.div)(state, (tr: Transaction) => {\n const div = findParentNodeOfType(state.schema.nodes.div)(tr.selection)!;\n tr.setNodeMarkup(div.pos, div.node.type, attrs);\n const $head = tr.selection.$head;\n const start = $head.start();\n const end = start + $head.parent.textContent.length;\n tr.deleteRange(start, end);\n dispatch(tr);\n });\n }\n\n return true;\n };\n}\n\nfunction canReplaceNodeWithDiv(schema: Schema, $pos: ResolvedPos) {\n return $pos.node(-1).canReplaceWith($pos.index(-1), $pos.indexAfter(-1), schema.nodes.div);\n}\n\nfunction canApplyDivInputRule(state: EditorState) {\n const schema = state.schema;\n const { $head } = state.selection;\n return canReplaceNodeWithDiv(schema, $head);\n}\n\nexport default extension;\n","/*\n * div-callout.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from \"prosemirror-state\";\nimport { EditorView } from \"prosemirror-view\";\nimport { setTextSelection, ContentNodeWithPos, findParentNodeOfType } from \"prosemirror-utils\";\nimport { wrapIn } from \"prosemirror-commands\";\n\n\nimport { EditorCommandId, ProsemirrorCommand, toggleWrap } from \"../../api/command\";\nimport { EditorUI } from \"../../api/ui\";\nimport { OmniInsertGroup } from \"../../api/omni_insert\";\nimport { pandocAttrEnsureClass, pandocAttrSetKeyvalue, pandocAttrGetKeyvalue, \n pandocAttrRemoveKeyvalue, pandocAttrRemoveClass, pandocAttrFrom } from \"../../api/pandoc_attr\";\nimport { CalloutProps } from \"../../api/ui-dialogs\";\nimport { removeDiv } from \"./div\";\n\nexport function insertCalloutCommand(ui: EditorUI) {\n return new ProsemirrorCommand(EditorCommandId.Callout, [], insertCalloutCommandFn(ui), {\n name: ui.context.translateText('Callout'),\n description: ui.context.translateText('Content framed for special emphasis'),\n group: OmniInsertGroup.Content,\n priority: 2,\n image: () => ui.images.omni_insert?.generic!,\n });\n}\n\nexport async function editCalloutDiv(ui: EditorUI, state: EditorState, dispatch: (tr: Transaction) => void, div: ContentNodeWithPos) {\n \n // extract callout props\n const callout = defaultCallout();\n const attr = pandocAttrFrom(div.node.attrs);\n const calloutType = pandocAttrRemoveClass(attr, clz => clz.startsWith(\"callout-\"));\n if (calloutType) {\n let calloutAppearance = pandocAttrGetKeyvalue(attr, \"appearance\") as string | undefined;\n if (calloutAppearance) {\n pandocAttrRemoveKeyvalue(attr, \"appearance\");\n } else {\n calloutAppearance = \"default\";\n }\n let calloutIcon = true;\n if (pandocAttrGetKeyvalue(attr, \"icon\") === \"false\") {\n calloutIcon = false;\n pandocAttrRemoveKeyvalue(attr, \"icon\");\n }\n let calloutCaption = \"\";\n if (div.node.firstChild?.type === state.schema.nodes.heading) {\n calloutCaption = div.node.firstChild?.textContent || \"\";\n }\n callout.type = calloutType.replace(/^callout-/, \"\");\n callout.appearance = calloutAppearance;\n callout.icon = calloutIcon;\n callout.caption = calloutCaption;\n }\n \n // edit callout\n const result = await ui.dialogs.editCallout({ attr, callout }, true);\n \n if (result) {\n const tr = state.tr;\n if (result.action === 'edit') {\n \n // start with raw attributes\n const resultAttr = result.attr;\n\n // apply callout attributes \n pandocAttrEnsureClass(resultAttr, `callout-${result.callout.type}`);\n if (result.callout.appearance !== \"default\") {\n pandocAttrSetKeyvalue(resultAttr, \"appearance\", result.callout.appearance);\n }\n if (result.callout.icon !== true) {\n pandocAttrSetKeyvalue(resultAttr, \"icon\", \"false\");\n }\n\n // set node markup\n tr.setNodeMarkup(div.pos, div.node.type, resultAttr);\n\n // set caption if it's different\n if (result.callout && (callout?.caption !== result.callout?.caption)) {\n if (div.node.firstChild?.type === state.schema.nodes.heading) {\n if (result.callout?.caption) {\n tr.replaceRangeWith(\n div.start, \n div.start + div.node.firstChild?.nodeSize!, \n state.schema.nodes.heading.create(\n { level: 2 },\n state.schema.text(result.callout?.caption)\n )\n );\n } else {\n tr.deleteRange(div.start, div.start + div.node.firstChild?.nodeSize!);\n }\n } else if (result.callout?.caption) {\n tr.insert(\n div.start, \n state.schema.nodes.heading.create(\n { level: 2 }, \n state.schema.text(result.callout?.caption)\n )\n );\n }\n }\n dispatch(tr);\n\n } else if (result.action === 'remove') {\n removeDiv(state, dispatch, div); \n }\n }\n}\n\nfunction insertCalloutCommandFn(ui: EditorUI) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n \n const schema = state.schema;\n if (!toggleWrap(schema.nodes.div)(state)) {\n return false;\n }\n\n async function asyncInsertCallout() {\n if (dispatch) {\n await createCalloutDiv(ui, state, dispatch);\n if (view) {\n view.focus();\n }\n }\n }\n asyncInsertCallout();\n\n return true;\n };\n}\n\nasync function createCalloutDiv(ui: EditorUI, state: EditorState, dispatch: (tr: Transaction) => void) {\n const props = {\n attr: {},\n callout: defaultCallout()\n };\n const result = await ui.dialogs.editCallout(props, false);\n if (result) {\n wrapIn(state.schema.nodes.div)(state, (tr: Transaction) => {\n // set div props from callout\n const attr = result.attr as any;\n pandocAttrEnsureClass(attr, `callout-${result.callout.type}`);\n attr.keyvalue = attr.keyvalue || [];\n if (result.callout?.appearance !== \"default\") {\n attr.keyvalue.push([\"appearance\", result.callout.appearance]);\n }\n if (result.callout?.icon === false) {\n attr.keyvalue.push([\"icon\", \"false\"]);\n }\n const div = findParentNodeOfType(state.schema.nodes.div)(tr.selection)!;\n tr.setNodeMarkup(div.pos, div.node.type, attr);\n\n // insert caption if one is specified\n if (result.callout?.caption) {\n const calloutContent = [\n state.schema.nodes.heading.create(\n { level: 2 },\n state.schema.text(result.callout?.caption)\n ),\n state.schema.nodes.paragraph.create()\n ];\n tr.replaceWith(div.start, div.start + 1, calloutContent);\n setTextSelection(div.start + calloutContent[0].nodeSize)(tr);\n }\n dispatch(tr);\n });\n }\n}\n\nfunction defaultCallout() : CalloutProps {\n return {\n type: \"note\",\n appearance: \"default\",\n icon: true,\n caption: \"\"\n };\n}\n\n","/*\n * div-tabset.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from \"prosemirror-state\";\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { wrapIn } from \"prosemirror-commands\";\nimport { findParentNodeOfType, setTextSelection } from \"prosemirror-utils\";\nimport { EditorView } from \"prosemirror-view\";\n\nimport { EditorCommandId, ProsemirrorCommand, toggleWrap } from \"../../api/command\";\nimport { EditorUI } from \"../../api/ui\";\nimport { OmniInsertGroup } from \"../../api/omni_insert\";\nimport { pandocAttrEnsureClass } from \"../../api/pandoc_attr\";\n\n\nexport function insertTabsetCommand(ui: EditorUI) {\n return new ProsemirrorCommand(EditorCommandId.Tabset, [], insertTabsetCommandFn(ui), {\n name: ui.context.translateText('Tabset'),\n description: ui.context.translateText('Content divided into tabs'),\n group: OmniInsertGroup.Content,\n priority: 2,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.tabset_dark! : ui.images.omni_insert?.tabset!),\n });\n}\n\nfunction insertTabsetCommandFn(ui: EditorUI) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n \n const schema = state.schema;\n if (!toggleWrap(schema.nodes.div)(state)) {\n return false;\n }\n\n async function asyncInsertTabset() {\n if (dispatch) {\n const result = await ui.dialogs.insertTabset();\n if (result) {\n wrapIn(state.schema.nodes.div)(state, (tr: Transaction) => {\n // locate inserted div\n const div = findParentNodeOfType(state.schema.nodes.div)(tr.selection)!;\n\n // ensure that .panel-tabset is the first class then set attributes\n pandocAttrEnsureClass(result.attr, \"panel-tabset\");\n tr.setNodeMarkup(div.pos, div.node.type, result.attr);\n \n // insert tabset\n const tabset: ProsemirrorNode[] = result.tabs.flatMap(tab => {\n return [\n schema.nodes.heading.create(\n { level: 2 },\n schema.text(tab)\n ),\n schema.nodes.paragraph.create()\n ];\n });\n tr.replaceWith(div.start, div.start + 1, tabset);\n\n // set selection\n setTextSelection(div.start + tabset[0].nodeSize)(tr);\n\n // dispatch\n dispatch(tr);\n });\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncInsertTabset();\n\n return true;\n };\n}\n\n\n\n","/*\n * list-checked.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, Fragment, NodeType } from 'prosemirror-model';\nimport { NodeView, EditorView } from 'prosemirror-view';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { findParentNodeOfType, NodeWithPos, setTextSelection } from 'prosemirror-utils';\nimport { InputRule, wrappingInputRule } from 'prosemirror-inputrules';\n\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { PandocToken, mapTokens } from '../../api/pandoc';\n\n// custom NodeView that accomodates display / interaction with item check boxes\nexport class CheckedListItemNodeView implements NodeView {\n public readonly dom: HTMLElement;\n public readonly contentDOM: HTMLElement;\n\n private readonly node: ProsemirrorNode;\n private readonly view: EditorView;\n private readonly getPos: () => number;\n\n constructor(node: ProsemirrorNode, view: EditorView, getPos: () => number) {\n this.node = node;\n this.view = view;\n this.getPos = getPos;\n\n // create root li element\n this.dom = window.document.createElement('li');\n if (node.attrs.tight) {\n this.dom.setAttribute('data-tight', 'true');\n }\n\n const container = window.document.createElement('div');\n container.classList.add('list-item-container');\n this.dom.appendChild(container);\n\n // add checkbox for checked items\n if (node.attrs.checked !== null) {\n this.dom.setAttribute('data-checked', node.attrs.checked ? 'true' : 'false');\n\n // checkbox for editing checked state\n const input = window.document.createElement('input');\n input.classList.add('list-item-checkbox');\n input.setAttribute('type', 'checkbox');\n input.checked = node.attrs.checked;\n input.contentEditable = 'false';\n input.disabled = !(view as any).editable;\n input.addEventListener('mousedown', (ev: Event) => {\n ev.preventDefault(); // don't steal focus\n });\n input.addEventListener('change', (ev: Event) => {\n const tr = view.state.tr;\n tr.setNodeMarkup(getPos(), node.type, {\n ...node.attrs,\n checked: (ev.target as HTMLInputElement).checked,\n });\n setTextSelection(getPos() + 1)(tr);\n view.dispatch(tr);\n });\n container.appendChild(input);\n }\n\n // content div\n const content = window.document.createElement('div');\n content.classList.add('list-item-content');\n this.contentDOM = content;\n container.appendChild(content);\n }\n}\n\n// command to toggle checked list items\nexport function checkedListItemCommandFn(itemType: NodeType) {\n return (state: EditorState, dispatch?: ((tr: Transaction) => void) | undefined) => {\n const itemNode = findParentNodeOfType(itemType)(state.selection);\n if (!itemNode) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n if (itemNode.node.attrs.checked !== null) {\n setItemChecked(tr, itemNode, null);\n } else {\n setItemChecked(tr, itemNode, false);\n }\n\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function checkedListItemToggleCommandFn(itemType: NodeType) {\n return (state: EditorState, dispatch?: ((tr: Transaction) => void) | undefined) => {\n const itemNode = findParentNodeOfType(itemType)(state.selection);\n if (!itemNode || itemNode.node.attrs.checked === null) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n setItemChecked(tr, itemNode, !itemNode.node.attrs.checked);\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport class CheckedListItemCommand extends ProsemirrorCommand {\n constructor(itemType: NodeType) {\n super(EditorCommandId.ListItemCheck, [], checkedListItemCommandFn(itemType));\n }\n\n public isActive(state: EditorState): boolean {\n if (this.isEnabled(state)) {\n const itemNode = findParentNodeOfType(state.schema.nodes.list_item)(state.selection) as NodeWithPos;\n return itemNode.node.attrs.checked !== null;\n } else {\n return false;\n }\n }\n}\n\nexport class CheckedListItemToggleCommand extends ProsemirrorCommand {\n private itemType: NodeType;\n\n constructor(itemType: NodeType) {\n super(EditorCommandId.ListItemCheckToggle, [], checkedListItemToggleCommandFn(itemType));\n this.itemType = itemType;\n }\n\n public isActive(state: EditorState): boolean {\n const itemNode = findParentNodeOfType(this.itemType)(state.selection);\n return itemNode && itemNode.node.attrs.checked;\n }\n}\n\n// allow users to type [x] or [ ] to define a checked list item\nexport function checkedListItemInputRule() {\n return new InputRule(/\\[([ x])\\]\\s$/, (state: EditorState, match: string[], start: number, end: number) => {\n const schema = state.schema;\n\n const itemNode = findParentNodeOfType(schema.nodes.list_item)(state.selection);\n if (itemNode) {\n // create transaction\n const tr = state.tr;\n\n // set checked\n setItemChecked(tr, itemNode, match[1]);\n\n // delete entered text\n tr.delete(start, end);\n\n // return transaction\n return tr;\n } else {\n return null;\n }\n });\n}\n\n// allow users to begin a new checked list by typing [x] or [ ] at the beginning of a line\nexport function checkedListInputRule(schema: Schema) {\n // regex to match checked list at the beginning of a line\n const regex = /^\\s*\\[([ x])\\]\\s$/;\n\n // we are going to steal the handler from the base bullet list wrapping input rule\n const baseInputRule: any = wrappingInputRule(regex, schema.nodes.bullet_list);\n\n return new InputRule(regex, (state: EditorState, match: string[], start: number, end: number) => {\n // call the base handler to create the bullet list\n const tr = baseInputRule.handler(state, match, start, end);\n if (tr) {\n // set the checkbox\n const itemNode = findParentNodeOfType(schema.nodes.list_item)(tr.selection);\n if (itemNode) {\n setItemChecked(tr, itemNode, match[1]);\n }\n\n return tr;\n } else {\n return null;\n }\n });\n}\n\nfunction setItemChecked(tr: Transaction, itemNode: NodeWithPos, check: null | boolean | string) {\n tr.setNodeMarkup(itemNode.pos, itemNode.node.type, {\n ...itemNode.node.attrs,\n checked: check === null ? null : typeof check === 'string' ? check === 'x' : check,\n });\n}\n// prepend a check mark to the provided fragment\nexport function fragmentWithCheck(schema: Schema, fragment: Fragment, checked: boolean) {\n // create a raw markdown node with [x] or [ ]\n const mark = schema.marks.raw_inline.create({ format: 'markdown' });\n const check = schema.text((checked ? '[x]' : '[ ]') + ' ', [mark]);\n return Fragment.from(check).append(fragment);\n}\n\nconst kCheckedChar = '☒';\nconst kUncheckedChar = '☐';\n\nexport function tokensWithChecked(tokens: PandocToken[]): { checked: null | boolean; tokens: PandocToken[] } {\n // will set this flag based on inspecting the first Str token\n let checked: null | boolean | undefined;\n let lastWasChecked = false;\n\n // map tokens\n const mappedTokens = mapTokens(tokens, tok => {\n // if the last token was checked then strip the next space\n if (tok.t === 'Space' && lastWasChecked) {\n lastWasChecked = false;\n return {\n t: 'Str',\n c: '',\n };\n }\n\n // derive 'checked' from first chraracter of first Str token encountered\n // if we find checked or unchecked then set the flag and strip off\n // the first 2 chraracters (the check and the space after it)\n else if (tok.t === 'Str' && checked === undefined) {\n let text = tok.c as string;\n if (text.charAt(0) === kCheckedChar) {\n checked = true;\n lastWasChecked = true;\n text = text.slice(1);\n } else if (text.charAt(0) === kUncheckedChar) {\n checked = false;\n lastWasChecked = true;\n text = text.slice(1);\n } else {\n checked = null;\n }\n return {\n t: 'Str',\n c: text,\n };\n } else {\n return tok;\n }\n });\n\n // return\n return {\n checked: checked !== undefined ? checked : null,\n tokens: mappedTokens,\n };\n}\n","/*\n * list-pandoc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeType, Fragment } from 'prosemirror-model';\n\nimport { PandocOutput, PandocToken, ProsemirrorWriter, PandocTokenType } from '../../api/pandoc';\n\nimport { fragmentWithCheck, tokensWithChecked } from './list-checked';\nimport { ListNumberDelim, ListNumberStyle } from './list';\nimport { ListCapabilities, isList } from '../../api/list';\n\nconst LIST_ATTRIBS = 0;\nconst LIST_CHILDREN = 1;\n\nconst LIST_ATTRIB_ORDER = 0;\nconst LIST_ATTRIB_NUMBER_STYLE = 1;\nconst LIST_ATTRIB_NUMBER_DELIM = 2;\n\n// Note that we are planning on eliminating the markdownOutputFilter after this commit\n// as there will be no more uses of it and it plays poorly w/ e.g. pandoc table output\n// which needs to reliably know the number of characters wide each column will be).\n// (previous uses of markdownOutputFilter were converted to use output.writeRawMarkdown).\n// So, if we are attempting to re-enable example lists b/c there is now round tripping\n// of example lists through the pandoc AST we need an alternative way to fixup\n// example list output (likely a more robust pandoc AST).\nconst kListItemExampleSentinel = '20543127-1873-4833-AC49-5B352CFA2AF5';\nconst kListItemExampleRegex = new RegExp(`\\\\(\\\\d+\\\\) ${kListItemExampleSentinel}`, 'g');\n\nexport function readPandocList(nodeType: NodeType, capabilities: ListCapabilities) {\n // alias schema\n const schema = nodeType.schema;\n\n // default extraction functions\n let getChildren = (tok: PandocToken) => tok.c;\n let getAttrs = (tok: PandocToken): { [key: string]: any } => ({});\n\n // function to read the number style (convert example to default if we\n // don't support example lists)\n const readNumberStyle = (attribs: any) => {\n if (capabilities.fancy) {\n const style = attribs[LIST_ATTRIB_NUMBER_STYLE].t;\n if (style === ListNumberStyle.Example && !capabilities.example) {\n return ListNumberStyle.DefaultStyle;\n } else {\n return style;\n }\n } else {\n return ListNumberStyle.DefaultStyle;\n }\n };\n\n // specialize for ordered_list\n if (nodeType === schema.nodes.ordered_list) {\n getAttrs = (tok: PandocToken) => {\n const attribs = tok.c[LIST_ATTRIBS];\n return {\n order: capabilities.order ? attribs[LIST_ATTRIB_ORDER] : 1,\n number_style: readNumberStyle(attribs),\n number_delim: capabilities.fancy ? attribs[LIST_ATTRIB_NUMBER_DELIM].t : ListNumberDelim.DefaultDelim,\n };\n };\n getChildren = (tok: PandocToken) => tok.c[LIST_CHILDREN];\n }\n\n const listItemNodeType = schema.nodes.list_item;\n return (writer: ProsemirrorWriter, tok: PandocToken) => {\n\n // determine if this is an example list and log if it is\n if ((nodeType === schema.nodes.ordered_list) && capabilities.fancy) {\n const style = tok.c[LIST_ATTRIBS][LIST_ATTRIB_NUMBER_STYLE].t;\n if (style === ListNumberStyle.Example) {\n writer.logExampleList();\n }\n }\n \n const children = getChildren(tok);\n const attrs = getAttrs(tok);\n attrs.tight = children.length && children[0].length && children[0][0].t === 'Plain';\n writer.openNode(nodeType, attrs);\n children.forEach((child: PandocToken[]) => {\n // setup tokens/attribs for output\n let tokens = child;\n const childAttrs: { checked: null | boolean } = { checked: null };\n\n // special task list processing if the current format supports task lists\n if (capabilities.tasks) {\n // look for checkbox in first character of child tokens\n // if we see it, remove it and set childAttrs.checked as appropriate\n const childWithChecked = tokensWithChecked(child);\n childAttrs.checked = childWithChecked.checked;\n tokens = childWithChecked.tokens;\n }\n\n // process children\n writer.openNode(listItemNodeType, childAttrs);\n writer.writeTokens(tokens);\n writer.closeNode();\n });\n writer.closeNode();\n };\n}\n\nexport function writePandocOrderedList(capabilities: ListCapabilities) {\n return (output: PandocOutput, node: ProsemirrorNode) => {\n // alias some list options\n const options = listNodeOptions(node, capabilities);\n\n // force delim to two parens for example styles. we do this\n // to simplify the search/replace of example list sentinels\n // during conversion post-processing\n const delim = options.example ? ListNumberDelim.TwoParens : node.attrs.number_delim;\n\n output.writeToken(PandocTokenType.OrderedList, () => {\n output.writeArray(() => {\n output.write(capabilities.order ? node.attrs.order : 1);\n output.writeToken(capabilities.fancy ? node.attrs.number_style : ListNumberStyle.DefaultStyle);\n output.writeToken(capabilities.fancy ? delim : ListNumberDelim.DefaultDelim);\n });\n output.writeArray(() => {\n node.forEach(item => writePandocListItem(output, options, item));\n });\n });\n };\n}\n\nexport function writePandocBulletList(capabilities: ListCapabilities) {\n return (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.BulletList, () => {\n node.forEach(item => writePandocListItem(output, listNodeOptions(node, capabilities), item));\n });\n };\n}\n\nexport function exampleListPandocMarkdownOutputFilter(markdown: string) {\n return markdown.replace(kListItemExampleRegex, '(@) ');\n}\n\ninterface ListNodeOptions {\n tight: boolean;\n example: boolean;\n}\n\nfunction listNodeOptions(node: ProsemirrorNode, capabilities: ListCapabilities): ListNodeOptions {\n const options = {\n tight: node.attrs.tight,\n example: capabilities.example ? node.attrs.number_style === ListNumberStyle.Example : false,\n };\n\n // if it's tight see if we need to override b/c of multiple blocks\n // (allow case of [paragraph,list] which is just a nested list)\n node.forEach(item => {\n if (options.tight && item.childCount > 1) {\n if (item.childCount > 2 || !isList(item.child(1)) ) {\n options.tight = false;\n }\n }\n });\n\n return options;\n}\n\nfunction writePandocListItem(output: PandocOutput, options: ListNodeOptions, node: ProsemirrorNode) {\n const checked = node.attrs.checked;\n\n output.writeArray(() => {\n node.forEach((itemNode: ProsemirrorNode, _offset, index) => {\n if (itemNode.type === node.type.schema.nodes.paragraph) {\n const paraItemBlockType = options.tight ? PandocTokenType.Plain : PandocTokenType.Para;\n output.writeToken(paraItemBlockType, () => {\n // for first item block, prepend check mark if we have one\n if (checked !== null && index === 0) {\n writeListItemInlines(\n output,\n options.example,\n fragmentWithCheck(node.type.schema, itemNode.content, checked),\n index,\n );\n } else {\n writeListItemInlines(output, options.example, itemNode.content, index);\n }\n });\n } else {\n output.writeNode(itemNode);\n }\n });\n });\n}\n\nfunction writeListItemInlines(output: PandocOutput, example: boolean, fragment: Fragment, index: number) {\n if (index === 0 && example) {\n output.writeToken(PandocTokenType.Str, kListItemExampleSentinel);\n }\n output.writeInlines(fragment);\n}\n","/*\n * image.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, DOMOutputSpec } from 'prosemirror-model';\nimport { EditorState, NodeSelection, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { canInsertNode } from '../../api/node';\nimport { selectionIsImageNode, selectionIsEmptyParagraph } from '../../api/selection';\nimport {\n pandocAttrSpec,\n pandocAttrParseDom,\n pandocAttrToDomAttr,\n pandocAttrReadAST,\n pandocAttrAvailable,\n} from '../../api/pandoc_attr';\nimport {\n PandocOutput,\n PandocTokenType,\n ProsemirrorWriter,\n PandocToken,\n stringifyTokens,\n imageAttributesAvailable,\n} from '../../api/pandoc';\nimport { EditorUI } from '../../api/ui';\nimport { ImageDimensions } from '../../api/image';\nimport { asHTMLTag } from '../../api/html';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { EditorFormat } from '../../api/format';\n\nimport { imageDialog } from './image-dialog';\nimport { imageDimensionsFromImg, imageContainerWidth, inlineHTMLIsImage } from './image-util';\nimport { imageTextSelectionPlugin } from './image-textsel';\nimport { posHasProhibitedFigureParent } from './figure';\nimport { imageEventsPlugin } from './image-events';\nimport { imageNodeViewPlugins } from './image-view';\n\nconst TARGET_URL = 0;\nconst TARGET_TITLE = 1;\n\nconst IMAGE_ATTR = 0;\nconst IMAGE_ALT = 1;\nconst IMAGE_TARGET = 2;\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, ui, events, format } = context;\n\n const imageAttr = imageAttributesAvailable(pandocExtensions);\n\n return {\n nodes: [\n {\n name: 'image',\n spec: {\n inline: true,\n attrs: imageNodeAttrsSpec(false, imageAttr),\n group: 'inline',\n draggable: true,\n parseDOM: [\n {\n tag: 'img[src]',\n getAttrs(dom: Node | string) {\n return imageAttrsFromDOM(dom as Element, imageAttr);\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return imageDOMOutputSpec(node, imageAttr);\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Image,\n handler: pandocImageHandler(false, imageAttr),\n },\n ],\n inlineHTMLReader: pandocExtensions.raw_html ? imageInlineHTMLReader : undefined,\n writer: imagePandocOutputWriter(false, ui),\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.image,\n noDecorator: true,\n editFn: () => imageCommand(ui, format, imageAttr),\n }),\n },\n ],\n\n commands: (_schema: Schema) => {\n return [\n new ProsemirrorCommand(\n EditorCommandId.Image,\n ['Shift-Mod-i'],\n imageCommand(ui, format, imageAttr),\n imageOmniInsert(ui),\n ),\n ];\n },\n\n plugins: (schema: Schema) => {\n return [\n imageTextSelectionPlugin(),\n imageEventsPlugin(ui),\n ...imageNodeViewPlugins('image', ui, format, events, pandocExtensions),\n ];\n },\n };\n};\n\nexport function pandocImageHandler(figure: boolean, imageAttributes: boolean) {\n return (schema: Schema) => (writer: ProsemirrorWriter, tok: PandocToken) => {\n // get attributes\n const target = tok.c[IMAGE_TARGET];\n const attrs = {\n src: decodeURI(target[TARGET_URL]),\n title: readPandocTitle(target[TARGET_TITLE]),\n caption: '',\n ...(imageAttributes ? pandocAttrReadAST(tok, IMAGE_ATTR) : {}),\n };\n\n // add alt as plain text if it's not a figure\n if (!figure) {\n attrs.caption = stringifyTokens(tok.c[IMAGE_ALT]);\n }\n\n // read image and (if appropriate) children\n writer.openNode(figure ? schema.nodes.figure : schema.nodes.image, attrs);\n if (figure) {\n writer.writeTokens(tok.c[IMAGE_ALT]);\n }\n writer.closeNode();\n };\n}\n\nexport function imagePandocOutputWriter(figure: boolean, ui: EditorUI) {\n return (output: PandocOutput, node: ProsemirrorNode) => {\n // default writer for markdown images\n let writer = () => {\n output.writeToken(PandocTokenType.Image, () => {\n if (output.extensions.link_attributes) {\n output.writeAttr(node.attrs.id, node.attrs.classes, node.attrs.keyvalue);\n } else {\n output.writeAttr();\n }\n output.writeArray(() => {\n if (figure) {\n output.writeInlines(node.content);\n } else {\n output.writeText(node.attrs.caption);\n }\n });\n output.write([encodeURI(node.attrs.src), node.attrs.title || '']);\n });\n };\n\n // see if we need to write raw html\n const requireHTML =\n pandocAttrAvailable(node.attrs) && // attribs need to be written\n !output.extensions.link_attributes && // markdown attribs not supported\n output.extensions.raw_html; // raw html is supported\n\n // if we do, then substitute a raw html writer\n if (node.attrs.raw || requireHTML) {\n writer = () => {\n const imgAttr = imageDOMAttributes(node, true, false);\n const html = asHTMLTag('img', imgAttr, true, true);\n output.writeRawMarkdown(html);\n };\n }\n\n // write (wrap in paragraph and possibly link for figures)\n if (figure) {\n let writeFigure = writer;\n if (node.attrs.linkTo) {\n writeFigure = () => {\n output.writeLink(node.attrs.linkTo, '', null, writer);\n };\n }\n output.writeToken(PandocTokenType.Para, writeFigure);\n } else {\n writer();\n }\n };\n}\n\n// parse inline html with as image node\nfunction imageInlineHTMLReader(schema: Schema, html: string, writer?: ProsemirrorWriter) {\n const isImage = inlineHTMLIsImage(html);\n if (!isImage) {\n return false;\n }\n\n if (writer) {\n const attrs = imageAttrsFromHTML(html);\n if (attrs) {\n attrs.raw = true;\n writer.addNode(schema.nodes.image, attrs, []);\n } else {\n return false;\n }\n }\n\n return isImage;\n}\n\nexport function imageDOMOutputSpec(node: ProsemirrorNode, imageAttributes: boolean): DOMOutputSpec {\n return ['img', imageDOMAttributes(node, imageAttributes)];\n}\n\nexport function imageDOMAttributes(\n node: ProsemirrorNode,\n imageAttributes: boolean,\n marker = true,\n): { [key: string]: string } {\n const attr: { [key: string]: string } = {\n src: node.attrs.src,\n };\n const title = node.attrs.title;\n if (title) {\n attr.title = title;\n }\n const caption = node.attrs.caption || node.textContent;\n if (caption) {\n attr.alt = caption;\n }\n\n return {\n ...attr,\n ...(imageAttributes ? pandocAttrToDomAttr(node.attrs, marker) : {}),\n };\n}\n\nexport function imageNodeAttrsSpec(linkTo: boolean, imageAttributes: boolean) {\n return {\n src: {},\n title: { default: null },\n caption: { default: null },\n raw: { default: false },\n ...(linkTo ? { linkTo: { default: null } } : {}),\n ...(imageAttributes ? pandocAttrSpec : {}),\n };\n}\n\nexport function imageAttrsFromDOM(el: Element, imageAttributes: boolean, forceAttrs = false) {\n const attrs: { [key: string]: string | null } = {\n src: el.getAttribute('src') || null,\n title: el.getAttribute('title') || null,\n caption: el.getAttribute('alt') || null,\n };\n return {\n ...attrs,\n ...(imageAttributes ? pandocAttrParseDom(el, attrs, forceAttrs) : {}),\n };\n}\n\nexport function imageAttrsFromHTML(html: string) {\n const parser = new window.DOMParser();\n const doc = parser.parseFromString(html, 'text/html');\n if (doc.body && doc.body.firstChild instanceof HTMLImageElement) {\n return imageAttrsFromDOM(doc.body.firstChild, true, true);\n } else {\n return null;\n }\n}\n\nexport function imageCommand(editorUI: EditorUI, editorFormat: EditorFormat, imageAttributes: boolean) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (!canInsertNode(state, schema.nodes.image) && !canInsertNode(state, schema.nodes.figure)) {\n return false;\n }\n\n if (dispatch && view) {\n // see if we are editing an existing node\n let node: ProsemirrorNode | null = null;\n let nodeType = schema.nodes.image;\n let img: HTMLImageElement | null = null;\n let imgDimensions: ImageDimensions | null = null;\n if (selectionIsImageNode(schema, state.selection)) {\n node = (state.selection as NodeSelection).node;\n nodeType = node.type;\n if (nodeType === schema.nodes.figure) {\n const figure = view.nodeDOM(state.selection.from) as HTMLElement;\n img = figure.firstChild!.firstChild as HTMLImageElement;\n } else {\n const span = view.nodeDOM(state.selection.from) as HTMLElement;\n img = span.firstChild! as HTMLImageElement;\n }\n if (img) {\n const containerWidth = imageContainerWidth(state.selection.from, view);\n imgDimensions = imageDimensionsFromImg(img, containerWidth);\n }\n }\n\n // see if we are in an empty paragraph (in that case insert a figure)\n if (\n selectionIsEmptyParagraph(schema, state.selection) &&\n !posHasProhibitedFigureParent(schema, state.selection.$head)\n ) {\n nodeType = schema.nodes.figure;\n }\n\n // show dialog\n imageDialog(node, imgDimensions, nodeType, view, editorUI, editorFormat, imageAttributes);\n }\n\n return true;\n };\n}\n\nfunction imageOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Figure / Image...'),\n description: ui.context.translateText('Figure or inline image'),\n group: OmniInsertGroup.Content,\n priority: 10,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.image_dark! : ui.images.omni_insert?.image!),\n };\n}\n\nfunction readPandocTitle(title: string | null) {\n if (title) {\n return title.replace(/^(fig:)/, '');\n } else {\n return title;\n }\n}\n\nexport default extension;\n","/*\n * image-dialog.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeType, Fragment, Mark } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { insertAndSelectNode } from '../../api/node';\nimport { EditorUI } from '../../api/ui';\nimport { ImageProps } from '../../api/ui-dialogs';\nimport { extractSizeStyles, kPercentUnit, kPixelUnit } from '../../api/css';\nimport { ImageType, ImageDimensions, isNaturalAspectRatio } from '../../api/image';\nimport { kWidthAttrib, kHeightAttrib, pandocAttrRemoveKeyvalue, \n pandocAttrGetKeyvalue, pandocAttrSetKeyvalue, \n kFigAlignAttrib, kFigEnvAttrib, kFigAltAttrib } from '../../api/pandoc_attr';\n import { EditorFormat, kQuartoDocType } from '../../api/format';\n\nimport { imagePropsWithSizes, hasPercentWidth } from './image-util';\n\nexport async function imageDialog(\n node: ProsemirrorNode | null,\n dims: ImageDimensions | null,\n nodeType: NodeType,\n view: EditorView,\n editorUI: EditorUI,\n editorFormat: EditorFormat,\n imageAttributes: boolean,\n) {\n // alias schema\n const schema = view.state.schema;\n\n // if we are being called with an existing node then read it's attributes\n let content = Fragment.empty;\n let image: ImageProps = { src: null };\n let linkMark: Mark | undefined;\n let marks: Mark[] = [];\n if (node && dims && node.type === nodeType) {\n // base attributess\n image = {\n ...(node.attrs as ImageProps),\n caption: nodeType === schema.nodes.figure ? node.textContent : node.attrs.caption,\n };\n\n // move width and height out of style and into keyvalue if necessary\n image = {\n ...image,\n keyvalue: extractSizeStyles(image.keyvalue),\n };\n\n // move width, height, and units out of keyvalue into explicit\n // top level image properties if necessary\n image = imagePropsWithSizes(image, dims);\n\n // record marks / linkTo\n if (nodeType === schema.nodes.image) {\n marks = node.marks;\n linkMark = node.marks.find(mark => mark.type === schema.marks.link);\n if (linkMark) {\n image.linkTo = linkMark.attrs.href;\n }\n }\n\n // content (will be caption for figures)\n content = node.content;\n } else {\n // create a new image\n image = nodeType.create(image).attrs as ImageProps;\n }\n\n // determine the type\n const type = nodeType === view.state.schema.nodes.image ? ImageType.Image : ImageType.Figure;\n\n // if this is a quarto figure then remove fig-align and fig-env from attributes\n const quartoFigure = (type === ImageType.Figure) && \n editorFormat.docTypes.includes(kQuartoDocType) && \n imageAttributes;\n if (quartoFigure) {\n // fig-alt\n image.alt = pandocAttrGetKeyvalue(image, kFigAltAttrib) || \"\";\n pandocAttrRemoveKeyvalue(image, kFigAltAttrib);\n // fig-align\n image.align = pandocAttrGetKeyvalue(image, kFigAlignAttrib) || \"default\";\n pandocAttrRemoveKeyvalue(image, kFigAlignAttrib);\n // fig env\n image.env = pandocAttrGetKeyvalue(image, kFigEnvAttrib) || \"\";\n pandocAttrRemoveKeyvalue(image, kFigEnvAttrib);\n }\n\n const result = await editorUI.dialogs.editImage(\n image, dims, type === ImageType.Figure, imageAttributes\n );\n if (result) {\n // since captions support inline formatting (and the dialog doesn't) we only want \n // to update the content if the alt/caption actually changed (as it will blow away\n // formatting)\n if (type === ImageType.Figure && image.caption !== result.caption) {\n if (result.caption) {\n content = Fragment.from(view.state.schema.text(result.caption));\n } else {\n content = Fragment.empty;\n }\n }\n\n // if we have align then move into keyvalue\n if (quartoFigure) {\n // fig-alt\n if (result.alt) {\n pandocAttrSetKeyvalue(result, kFigAltAttrib, result.alt);\n } else {\n pandocAttrRemoveKeyvalue(result, kFigAltAttrib);\n }\n // fig-align\n if (result.align) {\n if (result.align !== \"default\") {\n pandocAttrSetKeyvalue(result, kFigAlignAttrib, result.align);\n } else {\n pandocAttrRemoveKeyvalue(result, kFigAlignAttrib);\n }\n }\n // fig-env\n if (result.env) {\n pandocAttrSetKeyvalue(result, kFigEnvAttrib, result.env);\n } else {\n pandocAttrRemoveKeyvalue(result, kFigEnvAttrib);\n }\n }\n\n // if we have width and height move them into keyvalue\n let keyvalue = result.keyvalue;\n if (result.units) {\n // no units for px\n const units = result.units && result.units === kPixelUnit ? '' : result.units;\n // width\n if (result.width) {\n let width = result.width;\n if (hasPercentWidth(units)) {\n width = Math.min(width, 100);\n }\n keyvalue = keyvalue || [];\n keyvalue.push([kWidthAttrib, width + units]);\n }\n // only record height if it's not % units and it's not at it's natural height\n if (result.height && units !== kPercentUnit && !isNaturalHeight(result.width, result.height, dims)) {\n keyvalue = keyvalue || [];\n keyvalue.push([kHeightAttrib, result.height + units]);\n }\n }\n\n // merge updated keyvalue\n const imageProps = { ...result, keyvalue };\n\n // update or create link mark as necessary\n if (nodeType === schema.nodes.image) {\n if (linkMark) {\n marks = linkMark.removeFromSet(marks);\n if (imageProps.linkTo) {\n linkMark = linkMark.type.create({ ...linkMark.attrs, href: imageProps.linkTo });\n }\n } else if (imageProps.linkTo) {\n linkMark = schema.marks.link.create({ href: imageProps.linkTo });\n }\n if (imageProps.linkTo && linkMark) {\n marks = linkMark.addToSet(marks);\n }\n }\n\n // create the image\n const newImage = nodeType.createAndFill(imageProps, content, marks);\n\n // insert and select\n if (newImage) {\n insertAndSelectNode(view, newImage);\n }\n }\n\n if (view) {\n view.focus();\n }\n}\n\n// wrapper for isNaturalHeight that handles potentially undefined params\nfunction isNaturalHeight(width: number | undefined, height: number | undefined, dims: ImageDimensions | null) {\n if (width && height && dims) {\n return isNaturalAspectRatio(width, height, dims, false);\n } else {\n return false;\n }\n}\n","/*\n * image-util.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeClosestToPos } from 'prosemirror-utils';\n\nimport { ImageProps } from '../../api/ui-dialogs';\nimport {\n imageSizePropWithUnit,\n isValidImageSizeUnit,\n ensureContainerWidth,\n isNaturalAspectRatio,\n ImageDimensions,\n} from '../../api/image';\nimport { kWidthAttrib, kHeightAttrib, attrPartitionKeyvalue } from '../../api/pandoc_attr';\nimport { kPercentUnit, kPixelUnit } from '../../api/css';\nimport { elementInnerDimensions } from '../../api/dom';\n\nexport function imagePropsWithSizes(image: ImageProps, dims: ImageDimensions) {\n // pull width, height, and units out of keyvalue if necessary\n // (enables front-ends to provide dedicated UI for width/height)\n // note that if the value doesn't use a unit supported by the\n // UI it's kept within the original keyvalue prop\n if (image.keyvalue) {\n let width: number | undefined;\n let height: number | undefined;\n let units: string | undefined;\n let lockRatio = true;\n const partitionedKeyvalue = attrPartitionKeyvalue([kWidthAttrib, kHeightAttrib], image.keyvalue);\n for (const kv of partitionedKeyvalue.partitioned) {\n const [key, value] = kv;\n let partitioned = false;\n const sizeWithUnit = imageSizePropWithUnit(value);\n if (sizeWithUnit) {\n sizeWithUnit.unit = sizeWithUnit.unit || kPixelUnit;\n if (isValidImageSizeUnit(sizeWithUnit.unit)) {\n if (key === kWidthAttrib) {\n width = sizeWithUnit.size;\n units = sizeWithUnit.unit;\n } else if (key === kHeightAttrib) {\n height = sizeWithUnit.size;\n units = units || sizeWithUnit.unit;\n }\n partitioned = true;\n }\n }\n if (!partitioned) {\n partitionedKeyvalue.base.push(kv);\n }\n }\n if (width && height) {\n lockRatio = isNaturalAspectRatio(width, height, dims, lockRatio);\n }\n return {\n ...image,\n width,\n height,\n units,\n lockRatio,\n keyvalue: partitionedKeyvalue.base,\n };\n } else {\n return image;\n }\n}\n\nexport function imageDimensionsFromImg(img: HTMLImageElement, containerWidth: number) {\n return {\n naturalWidth: img.naturalWidth || null,\n naturalHeight: img.naturalHeight || null,\n containerWidth: ensureContainerWidth(containerWidth),\n };\n}\n\nexport function hasPercentWidth(size: string | null) {\n return !!size && size.endsWith(kPercentUnit);\n}\n\nexport function imageContainerWidth(pos: number, view: EditorView) {\n let containerWidth = (view.dom as HTMLElement).offsetWidth;\n if (containerWidth > 0) {\n if (pos) {\n const imagePos = view.state.doc.resolve(pos);\n const resizeContainer = findParentNodeClosestToPos(imagePos, nd => nd.isBlock);\n if (resizeContainer) {\n const resizeEl = view.domAtPos(resizeContainer.pos + 1);\n containerWidth = elementInnerDimensions(resizeEl.node as HTMLElement).width;\n }\n }\n }\n\n return containerWidth;\n}\n\nexport function inlineHTMLIsImage(html: string) {\n return html\n .trimLeft()\n .toLowerCase()\n .startsWith('({\n key: pluginKey,\n state: {\n init(_config: { [key: string]: any }, instance: EditorState) {\n return DecorationSet.empty;\n },\n apply(tr: Transaction, set: DecorationSet, oldState: EditorState, newState: EditorState) {\n // no decorations for empty or node selection\n if (tr.selection.empty || tr.selection instanceof NodeSelection) {\n return DecorationSet.empty;\n }\n\n const schema = newState.schema;\n const decorations: Decoration[] = [];\n tr.doc.nodesBetween(tr.selection.from, tr.selection.to, (node, pos) => {\n if ([schema.nodes.image, schema.nodes.figure].includes(node.type)) {\n decorations.push(nodeDecoration({ node, pos }, { class: 'pm-image-text-selection' }));\n }\n });\n\n return DecorationSet.create(tr.doc, decorations);\n },\n },\n props: {\n decorations(state: EditorState) {\n return pluginKey.getState(state);\n },\n },\n });\n}\n","/*\n * figure.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, Fragment, ResolvedPos } from 'prosemirror-model';\nimport { Transaction } from 'prosemirror-state';\nimport { Transform } from 'prosemirror-transform';\n\nimport { findChildrenByType, findParentNodeClosestToPos } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { FixupContext } from '../../api/fixup';\nimport { isSingleLineHTML } from '../../api/html';\nimport { getMarkAttrs } from '../../api/mark';\nimport {\n PandocToken,\n PandocTokenType,\n ProsemirrorWriter,\n kRawBlockContent,\n kRawBlockFormat,\n imageAttributesAvailable,\n} from '../../api/pandoc';\nimport { trTransform } from '../../api/transaction';\n\nimport {\n imageAttrsFromDOM,\n imageNodeAttrsSpec,\n imageDOMOutputSpec,\n imagePandocOutputWriter,\n pandocImageHandler,\n imageAttrsFromHTML,\n imageCommand,\n} from './image';\nimport { inlineHTMLIsImage } from './image-util';\nimport { imageNodeViewPlugins } from './image-view';\nimport { figureKeys } from './figure-keys';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, ui, events, format } = context;\n\n const imageAttr = imageAttributesAvailable(pandocExtensions);\n\n return {\n nodes: [\n {\n name: 'figure',\n spec: {\n attrs: imageNodeAttrsSpec(true, imageAttr),\n content: 'inline*',\n group: 'block',\n draggable: true,\n selectable: true,\n defining: true,\n parseDOM: [\n {\n tag: 'figure',\n contentElement: 'figcaption',\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n const img = el.querySelector('img');\n if (img && img.parentNode === dom) {\n return imageAttrsFromDOM(img, imageAttr);\n } else {\n return {\n src: null,\n title: null,\n };\n }\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return ['figure', imageDOMOutputSpec(node, imageAttr), ['figcaption', { class: 'pm-figcaption' }, 0]];\n },\n },\n pandoc: {\n writer: imagePandocOutputWriter(true, ui),\n\n // intercept paragraphs with a single image and process them as figures\n blockReader: (schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) => {\n // helper to process html image\n const handleHTMLImage = (html: string) => {\n const attrs = imageAttrsFromHTML(html);\n if (attrs) {\n attrs.raw = true;\n writer.addNode(schema.nodes.figure, attrs, []);\n return true;\n } else {\n return false;\n }\n };\n\n // unroll figure from paragraph with single image\n if (isParaWrappingFigure(tok) && !writerHasProhibitedFigureParent(schema, writer)) {\n const handler = pandocImageHandler(true, imageAttr)(schema);\n handler(writer, tok.c[0]);\n return true;\n // unroll figure from html RawBlock with single tag\n } else if (isHTMLImageBlock(tok)) {\n return handleHTMLImage(tok.c[kRawBlockContent]);\n } else {\n return false;\n }\n },\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.figure,\n editFn: () => imageCommand(ui, format, imageAttr),\n offset: {\n top: 2,\n right: 0\n },\n noKeyvalueTags: true,\n preferHidden: true\n }),\n },\n ],\n\n fixups: (_schema: Schema) => {\n return [\n (tr: Transaction, fixupContext: FixupContext) => {\n if (fixupContext === FixupContext.Load) {\n return convertImagesToFigure(tr);\n } else {\n return tr;\n }\n },\n ];\n },\n\n appendTransaction: (schema: Schema) => {\n return [\n {\n name: 'figure-convert',\n nodeFilter: node => node.type === schema.nodes.image,\n append: convertImagesToFigure,\n },\n ];\n },\n\n baseKeys: figureKeys,\n\n plugins: (schema: Schema) => {\n return [...imageNodeViewPlugins('figure', ui, format, events, pandocExtensions)];\n },\n };\n};\n\nexport function posHasProhibitedFigureParent(schema: Schema, $pos: ResolvedPos) {\n return prohibitedFigureParents(schema).some(type => {\n return !!findParentNodeClosestToPos($pos, node => node.type === type);\n });\n}\n\nexport function writerHasProhibitedFigureParent(schema: Schema, writer: ProsemirrorWriter) {\n return prohibitedFigureParents(schema).some(writer.isNodeOpen);\n}\n\nfunction prohibitedFigureParents(schema: Schema) {\n return [schema.nodes.table_cell, schema.nodes.list_item, schema.nodes.definition_list];\n}\n\nfunction convertImagesToFigure(tr: Transaction) {\n return trTransform(tr, imagesToFiguresTransform);\n}\n\nfunction imagesToFiguresTransform(tr: Transform) {\n const schema = tr.doc.type.schema;\n const images = findChildrenByType(tr.doc, schema.nodes.image);\n images.forEach(image => {\n // position reflecting steps already taken in this handler\n const mappedImagePos = tr.mapping.mapResult(image.pos);\n\n // process image so long as it wasn't deleted by a previous step\n if (!mappedImagePos.deleted) {\n // resolve image pos\n const imagePos = tr.doc.resolve(mappedImagePos.pos);\n\n // if it's an image in a standalone paragraph, convert it to a figure\n if (\n imagePos.parent.type === schema.nodes.paragraph &&\n imagePos.parent.childCount === 1 &&\n !posHasProhibitedFigureParent(schema, imagePos)\n ) {\n // figure attributes\n const attrs = image.node.attrs;\n\n // extract linkTo from link mark (if any)\n if (schema.marks.link.isInSet(image.node.marks)) {\n const linkAttrs = getMarkAttrs(\n tr.doc,\n { from: mappedImagePos.pos, to: mappedImagePos.pos + image.node.nodeSize },\n schema.marks.link,\n );\n if (linkAttrs && linkAttrs.href) {\n attrs.linkTo = linkAttrs.href;\n }\n }\n\n // figure content\n const content = attrs.caption ? Fragment.from(schema.text(attrs.caption)) : Fragment.empty;\n\n // replace image with figure\n const figure = schema.nodes.figure.createAndFill(attrs, content);\n if (figure) {\n tr.replaceRangeWith(mappedImagePos.pos, mappedImagePos.pos + image.node.nodeSize, figure);\n }\n }\n }\n });\n}\n\nfunction isParaWrappingFigure(tok: PandocToken) {\n return isSingleChildParagraph(tok) && tok.c[0].t === PandocTokenType.Image;\n}\n\nfunction isHTMLImageBlock(tok: PandocToken) {\n if (tok.t === PandocTokenType.RawBlock) {\n const format = tok.c[kRawBlockFormat];\n const text = tok.c[kRawBlockContent] as string;\n return format === 'html' && isSingleLineHTML(text) && inlineHTMLIsImage(text);\n } else {\n return false;\n }\n}\n\nfunction isSingleChildParagraph(tok: PandocToken) {\n return tok.t === PandocTokenType.Para && tok.c && tok.c.length === 1;\n}\n\nexport default extension;\n","/*\n * decoration.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { NodeWithPos } from 'prosemirror-utils';\nimport { DecorationAttrs, Decoration } from 'prosemirror-view';\n\nexport function nodeDecoration(nodeWithPos: NodeWithPos, attrs: DecorationAttrs) {\n return Decoration.node(nodeWithPos.pos, nodeWithPos.pos + nodeWithPos.node.nodeSize, attrs);\n}\n","/*\n * image-view.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { NodeView, EditorView } from 'prosemirror-view';\nimport { NodeSelection, PluginKey, Plugin } from 'prosemirror-state';\n\nimport { EditorUI } from '../../api/ui';\nimport { ImageType } from '../../api/image';\nimport { PandocExtensions, imageAttributesAvailable } from '../../api/pandoc';\nimport { isElementVisible } from '../../api/dom';\nimport { EditorEvents } from '../../api/events';\nimport { ResizeEvent } from '../../api/event-types';\nimport { EditorFormat } from '../../api/format';\n\nimport { imageDialog } from './image-dialog';\nimport {\n attachResizeUI,\n initResizeContainer,\n ResizeUI,\n isResizeUICompatible,\n updateImageViewSize,\n} from './image-resize';\nimport { imageDimensionsFromImg, imageContainerWidth } from './image-util';\n\nimport './image-styles.css';\n\nexport function imageNodeViewPlugins(\n type: string,\n ui: EditorUI,\n format: EditorFormat,\n events: EditorEvents,\n pandocExtensions: PandocExtensions,\n): Plugin[] {\n return [\n new Plugin({\n key: new PluginKey(`${type}-node-view`),\n props: {\n nodeViews: {\n [type]: (node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) => {\n return new ImageNodeView(node, view, getPos as () => number, ui, format, events, pandocExtensions);\n },\n },\n },\n }),\n ];\n}\n\nclass ImageNodeView implements NodeView {\n // ProseMirror context\n private readonly type: ImageType;\n private node: ProsemirrorNode;\n private readonly view: EditorView;\n private readonly getPos: () => number;\n private readonly editorUI: EditorUI;\n private readonly editorFormat: EditorFormat;\n private readonly imageAttributes: boolean;\n private readonly implicitFigures: boolean;\n\n // DOM elements\n public readonly dom: HTMLElement;\n private readonly img: HTMLImageElement;\n public readonly contentDOM: HTMLElement | null;\n private readonly figcaption: HTMLElement | null;\n\n // transient state\n private imgBroken: boolean;\n\n // things to clean up\n private resizeUI: ResizeUI | null;\n private sizeOnVisibleTimer?: number;\n private unregisterOnResize: VoidFunction;\n private unregisterWatchImg: VoidFunction | null = null;\n\n constructor(\n node: ProsemirrorNode,\n view: EditorView,\n getPos: () => number,\n editorUI: EditorUI,\n editorFormat: EditorFormat,\n editorEvents: EditorEvents,\n pandocExtensions: PandocExtensions,\n ) {\n // determine type\n const schema = node.type.schema;\n this.type = node.type === schema.nodes.image ? ImageType.Image : ImageType.Figure;\n\n // save references\n this.node = node;\n this.view = view;\n this.getPos = getPos;\n this.imageAttributes = imageAttributesAvailable(pandocExtensions);\n this.implicitFigures = pandocExtensions.implicit_figures;\n this.editorUI = editorUI;\n this.editorFormat = editorFormat;\n this.resizeUI = null;\n this.imgBroken = false;\n\n // set node selection on click\n const selectOnClick = () => {\n const tr = view.state.tr;\n tr.setSelection(NodeSelection.create(view.state.doc, getPos()));\n view.dispatch(tr);\n };\n\n // show image dialog on double-click\n const editOnDblClick = () => {\n selectOnClick();\n imageDialog(\n this.node,\n imageDimensionsFromImg(this.img, this.containerWidth()),\n this.node.type,\n this.view,\n editorUI,\n editorFormat,\n this.imageAttributes,\n );\n };\n\n // stop propagation from child elmeents that need to handle click\n // (e.g. figcaption element)\n const noPropagateClick = (ev: MouseEvent) => {\n ev.stopPropagation();\n };\n\n // create the image (used by both image and figure node types)\n this.img = document.createElement('img');\n this.img.classList.add('pm-img');\n this.img.onload = () => {\n this.imgBroken = false;\n };\n this.img.onerror = () => {\n this.imgBroken = true;\n };\n this.img.onclick = selectOnClick;\n this.img.ondblclick = editOnDblClick;\n\n // wrap in figure if appropriate\n if (this.type === ImageType.Figure) {\n // create figure wrapper\n this.dom = document.createElement('figure');\n this.dom.classList.add('pm-figure');\n\n // create container\n const container = document.createElement('div');\n container.contentEditable = 'false';\n this.dom.append(container);\n\n // initialize the image\n container.append(this.img);\n this.updateImg();\n\n // create the caption and make it our contentDOM\n this.figcaption = document.createElement('figcaption');\n this.figcaption.classList.add('pm-figcaption');\n this.figcaption.classList.add('pm-node-caption');\n this.figcaption.onclick = noPropagateClick;\n this.figcaption.ondblclick = noPropagateClick;\n this.contentDOM = this.figcaption;\n this.dom.append(this.figcaption);\n\n // manage visibility\n this.manageFigcaption();\n\n // standard inline image\n } else {\n this.dom = document.createElement('span');\n\n this.dom.append(this.img);\n this.updateImg();\n\n this.contentDOM = null;\n this.figcaption = null;\n }\n\n // prevent drag/drop if the event doesn't target the image\n this.dom.ondragstart = (event: DragEvent) => {\n if (event.target !== this.img) {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n\n // init resize if we support imageAttributes\n if (this.imageAttributes) {\n initResizeContainer(this.dom);\n }\n\n // update image size when the image first becomes visible\n this.updateSizeOnVisible();\n\n // update image size whenever the container is resized\n this.unregisterOnResize = editorEvents.subscribe(ResizeEvent, () => {\n this.updateImageSize();\n });\n }\n\n public destroy() {\n if (this.unregisterWatchImg) {\n this.unregisterWatchImg();\n }\n this.unregisterOnResize();\n this.clearSizeOnVisibleTimer();\n this.detachResizeUI();\n }\n\n public selectNode() {\n // mirror default implementation\n this.dom.classList.add('ProseMirror-selectednode');\n if (this.contentDOM || !this.node.type.spec.draggable) {\n this.dom.draggable = true;\n }\n\n // manage figcaption\n this.manageFigcaption();\n\n // attach resize UI\n this.attachResizeUI();\n }\n\n public deselectNode() {\n // mirror default implementation\n this.dom.classList.remove('ProseMirror-selectednode');\n if (this.contentDOM || !this.node.type.spec.draggable) {\n this.dom.draggable = false;\n }\n\n // remove resize UI\n this.detachResizeUI();\n }\n\n // update image with latest node/attributes\n public update(node: ProsemirrorNode) {\n // boilerplate type check\n if (node.type !== this.node.type) {\n return false;\n }\n\n // set new node and update the image\n this.node = node;\n this.updateImg();\n\n // if we already have resize UI then either update it\n // or detach it (if e.g. the units are no longer compatible)\n if (this.resizeUI) {\n if (isResizeUICompatible(this.img!)) {\n this.resizeUI.update();\n } else {\n this.resizeUI.detach();\n this.resizeUI = null;\n }\n // attach if the node is selected\n } else if (this.isNodeSelected()) {\n this.attachResizeUI();\n }\n return true;\n }\n\n // ignore mutations outside of the content dom so sizing actions don't cause PM re-render\n public ignoreMutation(mutation: MutationRecord | { type: 'selection'; target: Element }) {\n return !this.contentDOM || !this.contentDOM.contains(mutation.target);\n }\n\n // map node to img tag\n private updateImg() {\n // unsubscribe from any existing resource watcher\n if (this.unregisterWatchImg) {\n this.unregisterWatchImg();\n }\n\n // map to path reachable within current editing frame\n const src = this.node.attrs.src;\n this.img.src = this.editorUI.context.mapResourceToURL(src);\n\n // if this is a local resource then watch it and update when it changes\n if (!src.match(/^\\w+:\\/\\//)) {\n this.unregisterWatchImg = this.editorUI.context.watchResource(src, () => {\n this.img.src = this.editorUI.context.mapResourceToURL(src);\n });\n }\n\n // title/tooltip\n this.img.title = '';\n if (this.node.attrs.title) {\n this.img.title = this.node.attrs.title;\n }\n\n // ensure alt attribute so that we get default browser broken image treatment\n this.img.alt = this.node.textContent || this.node.attrs.src;\n\n // manage caption visibility\n this.manageFigcaption();\n\n // update size\n this.updateImageSize();\n }\n\n private updateImageSize() {\n const containerWidth = this.img.isConnected ? this.containerWidth() : 0;\n updateImageViewSize(this.node, this.img, this.isFigure() ? this.dom : null, containerWidth);\n }\n\n private updateSizeOnVisible() {\n const updateSizeOnVisible = () => {\n if (isElementVisible(this.img)) {\n this.updateImageSize();\n this.clearSizeOnVisibleTimer();\n }\n };\n this.sizeOnVisibleTimer = window.setInterval(updateSizeOnVisible, 200);\n }\n\n private clearSizeOnVisibleTimer() {\n if (this.sizeOnVisibleTimer) {\n clearInterval(this.sizeOnVisibleTimer);\n this.sizeOnVisibleTimer = undefined;\n }\n }\n\n // attach resize UI if appropriate\n private attachResizeUI() {\n if (this.imageAttributes && !this.imgBroken && isResizeUICompatible(this.img!)) {\n const imageNode = () => ({ pos: this.getPos(), node: this.node });\n const imgContainerWidth = () => this.containerWidth();\n this.resizeUI = attachResizeUI(imageNode, this.dom, this.img!, imgContainerWidth, \n this.view, this.editorUI, this.editorFormat);\n }\n }\n\n private detachResizeUI() {\n if (this.resizeUI) {\n this.resizeUI.detach();\n this.resizeUI = null;\n }\n }\n\n private isNodeSelected() {\n return this.dom.classList.contains('ProseMirror-selectednode');\n }\n\n private isFigure() {\n return this.type === ImageType.Figure;\n }\n\n private containerWidth() {\n return imageContainerWidth(this.getPos(), this.view);\n }\n\n private manageFigcaption() {\n // hide the figcaption if appropriate\n const noImplicitFigures = !this.implicitFigures;\n const emptyFigcaption = this.figcaption && this.node.textContent.length === 0;\n const selection = this.view.state.selection;\n const selectionInFigcaption = selection.empty && selection.$head.node() === this.node;\n const hide = noImplicitFigures || (emptyFigcaption && !selectionInFigcaption);\n\n // hide or show if we have a figcaption\n if (this.figcaption) {\n if (noImplicitFigures) {\n this.figcaption.style.display = 'none';\n this.figcaption.contentEditable = 'false';\n } else {\n this.figcaption.contentEditable = hide ? 'false' : 'true';\n this.figcaption.style.height = hide ? '0' : '';\n this.figcaption.style.minHeight = hide ? '0' : '';\n this.figcaption.style.margin = hide ? '0' : '';\n }\n }\n }\n}\n","/*\n * image-resize.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\nimport { NodeWithPos } from 'prosemirror-utils';\nimport { NodeSelection } from 'prosemirror-state';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport {\n createPopup,\n createHorizontalPanel,\n addHorizontalPanelCell,\n createInputLabel,\n createImageButton,\n createCheckboxInput,\n createSelectInput,\n createTextInput,\n} from '../../api/widgets/widgets';\nimport { EditorUI } from '../../api/ui';\nimport { editingRootScrollContainerElement } from '../../api/node';\nimport { extractSizeStyles, kPercentUnit, kPixelUnit, removeStyleAttrib } from '../../api/css';\nimport {\n imageSizePropWithUnit,\n isNaturalAspectRatio,\n unitToPixels,\n pixelsToUnit,\n roundUnit,\n kValidUnits,\n isValidImageSizeUnit,\n} from '../../api/image';\nimport { kWidthAttrib, kHeightAttrib, kStyleAttrib, kAlignAttrib, kFigAlignAttrib, pandocAttrGetKeyvalue } from '../../api/pandoc_attr';\nimport { EditorUIImages } from '../../api/ui-images';\nimport { EditorFormat } from '../../api/format';\n\nimport { imageDialog } from './image-dialog';\nimport { hasPercentWidth, imageDimensionsFromImg } from './image-util';\n\nconst kDataWidth = 'data-width';\nconst kDataHeight = 'data-height';\n\nconst kDefaultContainerDisplay = 'inline-block';\n\nexport function initResizeContainer(container: HTMLElement) {\n // add standard parent class\n container.classList.add('pm-image-resize-container', 'pm-selected-node-outline-color');\n\n // so that we are the offsetParent for the resize handles and shelf\n container.style.position = 'relative';\n\n // so that the container matches the size of the contained image\n container.style.display = kDefaultContainerDisplay;\n\n // so that the handles and shelf can be visible outside the boundaries of the image\n container.style.overflow = 'visible';\n\n // return for convenience\n return container;\n}\n\nexport function isResizeUICompatible(img: HTMLImageElement) {\n // incompatible if it has a width, but not a data-width\n const incompatibleWidth = img.style.width && !img.hasAttribute(kDataWidth);\n\n // incompatible if it has a height, but not a data-height\n const incompatibleHeight = img.style.height && img.style.height !== 'auto' && !img.hasAttribute(kDataHeight);\n\n return !incompatibleWidth && !incompatibleHeight;\n}\n\nexport interface ResizeUI {\n update: () => void;\n detach: () => void;\n}\n\nexport function attachResizeUI(\n imageNode: () => NodeWithPos,\n container: HTMLElement,\n img: HTMLImageElement,\n imgContainerWidth: () => number,\n view: EditorView,\n ui: EditorUI,\n format: EditorFormat\n): ResizeUI {\n // indicate that resize ui is active\n container.classList.add('pm-image-resize-active');\n\n // sync current state of shelf to node\n const updateImageNodeFromShelf = () => {\n updateImageNodeSize(\n view,\n imageNode(),\n img,\n imgContainerWidth,\n shelf.props.width(),\n shelf.props.height(),\n shelf.props.units(),\n );\n };\n\n // shelf init\n const onInitShelf = () => {\n // sync props\n shelf.sync();\n\n // default for lockRatio based on naturalWidth/naturalHeight\n const dims = imageDimensionsFromImg(img, imgContainerWidth());\n shelf.props.setLockRatio(isNaturalAspectRatio(shelf.props.width(), shelf.props.height(), dims, true));\n };\n\n // handle width changed from shelf\n const onWidthChanged = () => {\n const width = shelf.props.width();\n const height = shelf.props.lockRatio() ? (img.offsetHeight / img.offsetWidth) * width : shelf.props.height();\n shelf.props.setHeight(height);\n updateImageNodeFromShelf();\n };\n\n // handle height changed from shelf\n const onHeightChanged = () => {\n const height = shelf.props.height();\n const width = shelf.props.lockRatio() ? (img.offsetWidth / img.offsetHeight) * height : shelf.props.width();\n shelf.props.setWidth(width);\n updateImageNodeFromShelf();\n };\n\n // do necessary unit conversion when the units change\n const onUnitsChanged = () => {\n const prevUnits = shelfSizeFromImage(img).unit;\n const containerWidth = imgContainerWidth();\n\n const width = shelf.props.width();\n const widthPixels = unitToPixels(width, prevUnits, containerWidth);\n let widthInUnits = pixelsToUnit(widthPixels, shelf.props.units(), containerWidth);\n if (hasPercentWidth(shelf.props.units()) && widthInUnits > 100) {\n widthInUnits = 100;\n }\n shelf.props.setWidth(widthInUnits);\n\n const height = shelf.props.height();\n const heightPixels = unitToPixels(height, prevUnits, containerWidth);\n shelf.props.setHeight(pixelsToUnit(heightPixels, shelf.props.units(), containerWidth));\n\n updateImageNodeFromShelf();\n };\n\n // handle editImage request from shelf\n const onEditImage = () => {\n const nodeWithPos = imageNode();\n imageDialog(\n nodeWithPos.node,\n imageDimensionsFromImg(img, imgContainerWidth()),\n nodeWithPos.node.type,\n view,\n ui,\n format,\n true,\n );\n };\n\n // create resize shelf\n const shelf = resizeShelf(\n view,\n container,\n img,\n onInitShelf,\n onWidthChanged,\n onHeightChanged,\n onUnitsChanged,\n onEditImage,\n ui.images,\n ui.context.translateText,\n );\n\n // create resize handle and add it to the container\n const handle = resizeHandle(\n img,\n imageNode,\n container,\n imgContainerWidth,\n shelf.props.lockRatio,\n shelf.props.units,\n shelf.sync,\n updateImageNodeFromShelf,\n );\n container.append(handle);\n\n // return functions that can be used to update and detach the ui\n return {\n update: () => {\n shelf.sync();\n },\n detach: () => {\n container.classList.remove('pm-image-resize-active');\n handle.remove();\n shelf.remove();\n },\n };\n}\n\nfunction resizeShelf(\n view: EditorView,\n container: HTMLElement,\n img: HTMLImageElement,\n onInit: () => void,\n onWidthChanged: () => void,\n onHeightChanged: () => void,\n onUnitsChanged: () => void,\n onEditImage: () => void,\n uiImages: EditorUIImages,\n translateText: (text: string) => string,\n) {\n // create resize shelf\n const shelf = createPopup(view, []);\n\n // add the shelf to the editor container (so we don't mutate the editor dom)\n const editorContainer = view.dom.parentNode as HTMLElement;\n editorContainer.appendChild(shelf);\n\n // update shelf absolute position to make sure it's visible\n const updatePosition = () => {\n const kShelfRequiredSize = 333;\n const editorBox = editorContainer.getBoundingClientRect();\n const imageBox = container.getBoundingClientRect();\n shelf.style.top = imageBox.top - editorBox.top + imageBox.height + 6 + 'px';\n const positionLeft = imageBox.left + kShelfRequiredSize < editorBox.right;\n if (positionLeft) {\n shelf.style.right = '';\n shelf.style.left = imageBox.left - editorBox.left + 'px';\n } else {\n shelf.style.left = '';\n shelf.style.right = editorBox.right - imageBox.right + 'px';\n }\n };\n\n // detect when the editing root note scrolls and update the position\n const editingScrollContainerEl = editingRootScrollContainerElement(view);\n if (editingScrollContainerEl) {\n editingScrollContainerEl.addEventListener('scroll', updatePosition);\n }\n\n // update position every 50ms (cleanup drag/drop copy/paste mispositioning)\n const positionTimer = setInterval(updatePosition, 50);\n\n // main panel that holds the controls\n const panel = createHorizontalPanel();\n shelf.append(panel);\n const addToPanel = (widget: HTMLElement, paddingRight: number) => {\n addHorizontalPanelCell(panel, widget);\n if (paddingRight) {\n const paddingSpan = window.document.createElement('span');\n paddingSpan.style.width = paddingRight + kPixelUnit;\n addHorizontalPanelCell(panel, paddingSpan);\n }\n };\n\n // width\n const inputClasses = ['pm-text-color', 'pm-background-color'];\n const wLabel = createInputLabel('w:');\n addToPanel(wLabel, 4);\n const wInput = createTextInput(4, inputClasses);\n wInput.onchange = onWidthChanged;\n addToPanel(wInput, 8);\n\n // height\n const kHeightWidth = '38px';\n const hLabel = createInputLabel('h:');\n addToPanel(hLabel, 4);\n const hInput = createTextInput(4, inputClasses, { width: kHeightWidth });\n hInput.onchange = onHeightChanged;\n addToPanel(hInput, 0);\n const hAutoLabel = createInputLabel('(auto)', ['pm-light-text-color'], { width: kHeightWidth });\n addToPanel(hAutoLabel, 10);\n\n // units\n const unitsSelect = createSelectInput(kValidUnits, inputClasses);\n unitsSelect.onchange = () => {\n // drive focus to width and back to prevent wierd selection change\n // detection condition that causes PM to re-render the node the\n // next time we resize it\n wInput.focus();\n unitsSelect.focus();\n\n // manage UI\n manageUnitsUI();\n\n // notify client\n onUnitsChanged();\n };\n addToPanel(unitsSelect, 12);\n\n // lock ratio\n const checkboxWrapper = window.document.createElement('div');\n const lockCheckbox = createCheckboxInput();\n lockCheckbox.checked = true;\n checkboxWrapper.append(lockCheckbox);\n addToPanel(checkboxWrapper, 4);\n const lockLabel = createInputLabel(translateText('Lock ratio'));\n addToPanel(lockLabel, 20);\n\n // edit button\n const editImage = createImageButton(\n uiImages.properties!,\n ['pm-image-button-edit-properties'],\n translateText('Edit Attributes'),\n );\n editImage.onclick = onEditImage;\n addHorizontalPanelCell(panel, editImage);\n\n // run onInit (wait for image to load if necessary)\n if (img.complete) {\n setTimeout(onInit, 0);\n } else {\n img.onload = onInit;\n }\n\n // function used to manage units ui (percent vs. non-percent)\n const manageUnitsUI = () => {\n const percentSizing = unitsSelect.value === kPercentUnit;\n\n if (percentSizing) {\n lockCheckbox.checked = true;\n lockCheckbox.disabled = true;\n } else {\n lockCheckbox.disabled = false;\n }\n\n hInput.style.display = percentSizing ? 'none' : '';\n hAutoLabel.style.display = percentSizing ? '' : 'none';\n };\n manageUnitsUI();\n\n // helper function to get a dimension (returns null if input not currently valid)\n const getDim = (input: HTMLInputElement) => {\n const value = parseFloat(input.value);\n if (isNaN(value)) {\n return null;\n }\n if (value > 0) {\n return value;\n } else {\n return null;\n }\n };\n\n const setWidth = (width: number) => {\n wInput.value = roundUnit(width, unitsSelect.value);\n };\n const setHeight = (height: number) => {\n hInput.value = roundUnit(height, unitsSelect.value);\n };\n\n return {\n // shelf element\n el: shelf,\n\n // sync the shelf props to the current size/units of the image\n // we don't sync to the node b/c we want to benefit from automatic\n // unit handling in the conversion to the DOM\n sync: () => {\n const size = shelfSizeFromImage(img);\n unitsSelect.value = size.unit;\n setWidth(size.width);\n setHeight(size.height);\n\n // manage units ui\n manageUnitsUI();\n\n // ensure we are positioned correctly (not offscreen, wide enough, etc.)\n updatePosition();\n },\n\n position: () => {\n updatePosition();\n },\n\n remove: () => {\n if (editingScrollContainerEl) {\n editingScrollContainerEl.removeEventListener('scroll', updatePosition);\n }\n clearInterval(positionTimer);\n shelf.remove();\n },\n\n props: {\n width: () => getDim(wInput) || shelfSizeFromImage(img).width,\n setWidth,\n height: () => getDim(hInput) || shelfSizeFromImage(img).height,\n setHeight,\n units: () => unitsSelect.value,\n setUnits: (units: string) => (unitsSelect.value = units),\n lockRatio: () => lockCheckbox.checked,\n setLockRatio: (lock: boolean) => {\n if (!lockCheckbox.disabled) {\n lockCheckbox.checked = lock;\n }\n },\n },\n };\n}\n\nfunction resizeHandle(\n img: HTMLImageElement,\n imageNode: () => NodeWithPos,\n container: HTMLElement,\n imgContainerWidth: () => number,\n lockRatio: () => boolean,\n units: () => string,\n onSizing: () => void,\n onSizingComplete: () => void,\n) {\n const handle = document.createElement('span');\n handle.contentEditable = 'false';\n handle.classList.add('pm-image-resize-handle', 'pm-background-color', 'pm-selected-node-border-color');\n handle.style.position = 'absolute';\n handle.style.bottom = '-6px';\n handle.style.right = '-6px';\n handle.style.cursor = 'nwse-resize';\n\n const havePointerEvents = !!document.body.setPointerCapture;\n\n const onPointerDown = (ev: MouseEvent) => {\n ev.preventDefault();\n\n const startWidth = img.offsetWidth;\n const startHeight = img.offsetHeight;\n\n const startX = ev.pageX;\n const startY = ev.pageY;\n\n const containerWidth = imgContainerWidth();\n\n const onPointerMove = (e: MouseEvent) => {\n // detect pointer movement\n const movedX = e.pageX - startX;\n const movedY = e.pageY - startY;\n\n let width;\n let height;\n if (lockRatio()) {\n if (movedX >= movedY) {\n width = startWidth + movedX;\n height = startHeight + movedX * (startHeight / startWidth);\n } else {\n height = startHeight + movedY;\n width = startWidth + movedY * (startWidth / startHeight);\n }\n } else {\n width = startWidth + movedX;\n height = startHeight + movedY;\n }\n\n // determine the new width in units. If it's percent and > 100 then clip\n const widthInUnits = pixelsToUnit(width, units(), containerWidth);\n if (hasPercentWidth(units()) && widthInUnits > 100) {\n width = containerWidth;\n height = width * (startHeight / startWidth);\n }\n\n // set margins for any alignment we have\n const align = pandocAttrGetKeyvalue(imageNode().node.attrs, kFigAlignAttrib);\n if (align) {\n setMarginsForAlignment(container, align, width, containerWidth);\n }\n\n img.style.width = width + kPixelUnit;\n img.setAttribute(kDataWidth, pixelsToUnit(width, units(), containerWidth) + units());\n img.style.height = height + kPixelUnit;\n img.setAttribute(kDataHeight, pixelsToUnit(height, units(), containerWidth) + units());\n\n onSizing();\n };\n\n const onPointerUp = (e: MouseEvent) => {\n e.preventDefault();\n\n // stop listening to events\n if (havePointerEvents) {\n handle.releasePointerCapture((e as PointerEvent).pointerId);\n handle.removeEventListener('pointermove', onPointerMove);\n handle.removeEventListener('pointerup', onPointerUp);\n } else {\n document.removeEventListener('mousemove', onPointerMove);\n document.removeEventListener('mouseup', onPointerUp);\n }\n\n // update image size\n onSizingComplete();\n };\n\n if (havePointerEvents) {\n handle.setPointerCapture((ev as PointerEvent).pointerId);\n handle.addEventListener('pointermove', onPointerMove);\n handle.addEventListener('pointerup', onPointerUp);\n } else {\n document.addEventListener('mousemove', onPointerMove);\n document.addEventListener('mouseup', onPointerUp);\n }\n };\n\n if (havePointerEvents) {\n handle.addEventListener('pointerdown', onPointerDown);\n } else {\n handle.addEventListener('mousedown', onPointerDown);\n }\n\n return handle;\n}\n\n// derive the shelf size attributes from the image. takes advantage of any data-width\n// or data-height attributes, then falls back to actual offsetWidth/offsetHeight\n// as necessary\nfunction shelfSizeFromImage(img: HTMLImageElement) {\n // get attributes\n const width = img.getAttribute(kDataWidth);\n const height = img.getAttribute(kDataHeight);\n\n // if there is no width and no height, then use naturalWidth/naturalHeight\n if (!width && !height) {\n return {\n width: img.naturalWidth || img.offsetWidth,\n height: img.naturalHeight || img.offsetHeight,\n unit: kPixelUnit,\n };\n\n // read units\n } else {\n let widthWithUnit = imageSizePropWithUnit(width);\n let heightWithUnit = imageSizePropWithUnit(height);\n\n if (!widthWithUnit) {\n widthWithUnit = {\n size: heightWithUnit!.size * (img.offsetWidth / img.offsetHeight),\n unit: heightWithUnit!.unit,\n };\n }\n\n if (!heightWithUnit) {\n heightWithUnit = {\n size: widthWithUnit.size * (img.offsetHeight / img.offsetWidth),\n unit: widthWithUnit.unit,\n };\n }\n\n return {\n width: widthWithUnit.size,\n height: heightWithUnit.size,\n unit: widthWithUnit.unit,\n };\n }\n}\n\nfunction updateImageNodeSize(\n view: EditorView,\n image: NodeWithPos,\n img: HTMLImageElement,\n imgContainerWidth: () => number,\n width: number,\n height: number,\n unit: string,\n) {\n // don't write pixels explicitly\n unit = unit === kPixelUnit ? '' : unit;\n\n // edit width & height in keyvalue\n let keyvalue = extractSizeStyles(image.node.attrs.keyvalue as Array<[string, string]>)!;\n keyvalue = keyvalue.filter(value => ![kWidthAttrib, kHeightAttrib].includes(value[0]));\n keyvalue.push([kWidthAttrib, width + unit]);\n const dims = imageDimensionsFromImg(img, imgContainerWidth());\n if (!hasPercentWidth(width + unit) && !isNaturalAspectRatio(width, height, dims, false)) {\n keyvalue.push([kHeightAttrib, height + unit]);\n }\n\n // create transaction\n const tr = view.state.tr;\n\n // set new attributes\n tr.setNodeMarkup(image.pos, image.node.type, { ...image.node.attrs, keyvalue });\n\n // restore node selection if our tr.setNodeMarkup blew away the selection\n const prevState = view.state;\n if (prevState.selection instanceof NodeSelection && prevState.selection.from === image.pos) {\n tr.setSelection(NodeSelection.create(tr.doc, image.pos));\n }\n\n // dispatch transaction\n view.dispatch(tr);\n}\n\n// update the DOM representation of the image. extracts size-oriented attributes from the node and\n// applies them to the img element (alignment oriented attributes are applied to the figure elmenet)\nexport function updateImageViewSize(\n node: ProsemirrorNode,\n img: HTMLImageElement,\n figure: HTMLElement | null,\n containerWidth: number,\n) {\n // reset attributes (they'll be set to new values below)\n img.removeAttribute(kStyleAttrib);\n img.removeAttribute(kDataWidth);\n img.removeAttribute(kDataHeight);\n\n // reset figure styles (only reset styles that we explicitly set below, b/c some\n // styles may have been set by e.g. the attachResizeUI function)\n if (figure) {\n figure.style.cssFloat = '';\n figure.style.verticalAlign = '';\n figure.style.margin = '';\n figure.style.marginTop = '';\n figure.style.marginBottom = '';\n figure.style.marginRight = '';\n figure.style.marginLeft = '';\n figure.style.padding = '';\n figure.style.paddingTop = '';\n figure.style.paddingBottom = '';\n figure.style.paddingRight = '';\n figure.style.paddingLeft = '';\n figure.style.display = kDefaultContainerDisplay;\n }\n\n // apply keyvalue attribute to image\n if (node.attrs.keyvalue) {\n // factor width & height out of style\n const keyvalue = extractSizeStyles(node.attrs.keyvalue);\n\n // inspect all keys and process width, height, and style\n (keyvalue as Array<[string, string]>).forEach(attr => {\n // alias key and value\n const key = attr[0];\n let value = attr[1];\n\n // set align oriented styles on figure parent\n if (key === kStyleAttrib) {\n if (figure) {\n const liftStyle = (attrib: string, val: string) => figure.style.setProperty(attrib, val);\n value = removeStyleAttrib(value, 'float', liftStyle);\n value = removeStyleAttrib(value, 'vertical-align', liftStyle);\n value = removeStyleAttrib(value, 'padding(?:[\\\\w\\\\-])*', liftStyle);\n removeStyleAttrib(value, 'display', liftStyle); // leave display for lifting by image\n }\n\n // apply selected other styles to the image view (we don't just forward the entire\n // style attribute b/c that would interfere with setting of style props in the\n // width and height cases below). here we should enumerate all styles we think\n // users might want to see in the editor\n const liftImgStyle = (attrib: string, val: string) => img.style.setProperty(attrib, val);\n value = removeStyleAttrib(value, 'border(?:[\\\\w\\\\-])*', liftImgStyle);\n value = removeStyleAttrib(value, 'margin(?:[\\\\w\\\\-])*', liftImgStyle);\n value = removeStyleAttrib(value, 'display', liftImgStyle);\n } else if (key === kWidthAttrib) {\n // see if this is a unit we can edit\n const widthProp = imageSizePropWithUnit(value);\n if (widthProp) {\n widthProp.unit = widthProp.unit || kPixelUnit;\n if (isValidImageSizeUnit(widthProp.unit)) {\n img.setAttribute(kDataWidth, widthProp.size + widthProp.unit);\n img.style.width = unitToPixels(widthProp.size, widthProp.unit, containerWidth) + kPixelUnit;\n }\n }\n\n // if not, just pass it straight through (editing UI will be disabled)\n if (!img.hasAttribute(kDataWidth)) {\n img.style.width = value;\n }\n } else if (key === kHeightAttrib) {\n // see if this is a unit we can edit\n const heightProp = imageSizePropWithUnit(value);\n if (heightProp) {\n heightProp.unit = heightProp.unit || kPixelUnit;\n if (isValidImageSizeUnit(heightProp.unit)) {\n img.setAttribute(kDataHeight, heightProp.size + heightProp.unit);\n img.style.height = unitToPixels(heightProp.size, heightProp.unit, containerWidth) + kPixelUnit;\n }\n }\n\n // if not, just pass it straight through (editing UI will be disabled)\n if (!img.hasAttribute(kDataHeight)) {\n img.style.height = value;\n }\n\n // use of legacy 'align' attribute is common for some pandoc users\n // so we convert it to the requisite CSS and apply it to the figure container\n } else if (figure && key === kAlignAttrib) {\n switch (value) {\n case 'left':\n case 'right':\n figure.style.cssFloat = value;\n break;\n case 'top':\n case 'bottom':\n case 'middle':\n figure.style.verticalAlign = value;\n break;\n }\n }\n });\n\n // if we have a fig-align value then determine the displayed width and\n // apply margins as required to the figure\n if (figure) {\n const align = pandocAttrGetKeyvalue(node.attrs, kFigAlignAttrib);\n if (align && (align !== \"default\")) {\n let width: number | null = null;\n const widthProp = imageSizePropWithUnit(img.style.width);\n if (widthProp) {\n width = widthProp.size;\n } else {\n const dims = imageDimensionsFromImg(img, containerWidth);\n width = dims.naturalWidth;\n }\n if (width !== null) {\n setMarginsForAlignment(figure, align, width, containerWidth);\n }\n }\n }\n \n // if width is a percentage, then displayed height needs to be 'auto'\n if (hasPercentWidth(img.getAttribute(kDataWidth))) {\n img.style.height = 'auto';\n }\n }\n}\n\n\nfunction setMarginsForAlignment(el: HTMLElement, align: string, width: number, containerWidth: number) {\n const marginWidth = containerWidth - width;\n if (marginWidth > 0) {\n if (align === \"left\") {\n el.style.marginRight = marginWidth + kPixelUnit;\n } else if (align === \"right\") {\n el.style.marginLeft = marginWidth + kPixelUnit;\n } else if (align === \"center\") {\n el.style.marginLeft = (marginWidth/2) + kPixelUnit;\n el.style.marginRight = el.style.marginLeft ;\n }\n } else {\n el.style.marginLeft = \"\";\n el.style.marginRight = \"\" ;\n }\n}","/*\n * widgets.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nimport { applyStyles } from '../css';\n\nimport './widgets.css';\n\nexport function createHorizontalPanel() {\n const div = window.document.createElement('div');\n div.classList.add('pm-horizontal-panel');\n return div;\n}\n\nexport function addHorizontalPanelCell(panel: HTMLDivElement, el: HTMLElement) {\n el.classList.add('pm-horizontal-panel-cell');\n panel.append(el);\n}\n\nexport function createPopup(\n view: EditorView,\n classes: string[],\n onDestroyed?: () => void,\n style?: { [key: string]: string },\n) {\n // create popup\n const popup = window.document.createElement('span');\n popup.contentEditable = 'false';\n popup.classList.add(\n 'pm-popup',\n 'pm-text-color',\n 'pm-proportional-font',\n 'pm-pane-border-color',\n 'pm-background-color',\n );\n popup.style.position = 'absolute';\n popup.style.zIndex = '10';\n applyStyles(popup, classes, style);\n\n // create mutation observer that watches for destruction\n if (onDestroyed) {\n const observer = new MutationObserver(mutationsList => {\n mutationsList.forEach(mutation => {\n mutation.removedNodes.forEach(node => {\n if (node === popup) {\n observer.disconnect();\n onDestroyed();\n }\n });\n });\n });\n observer.observe(view.dom, { attributes: false, childList: true, subtree: true });\n }\n\n return popup;\n}\n\nexport function createImageButton(image: string, classes: string[], title: string, style?: { [key: string]: string }) {\n const button = window.document.createElement('button');\n button.classList.add('pm-image-button');\n button.title = title;\n applyStyles(button, classes, style);\n const imageEl = window.document.createElement('img') as HTMLImageElement;\n imageEl.src = image;\n imageEl.setAttribute('draggable', 'false');\n button.append(imageEl);\n return button;\n}\n\nexport function createInputLabel(text: string, classes?: string[], style?: { [key: string]: string }) {\n const label = window.document.createElement('label');\n label.innerText = text;\n label.classList.add('pm-input-label');\n applyStyles(label, classes, style);\n return label;\n}\n\nexport function createSelectInput(options: string[], classes?: string[], style?: { [key: string]: string }) {\n const select = window.document.createElement('select');\n appendOptions(select, options);\n select.classList.add('pm-input-select');\n select.classList.add('pm-pane-border-color');\n applyStyles(select, classes, style);\n return select;\n}\n\nfunction appendOptions(container: HTMLElement, options: string[]) {\n options.forEach(option => {\n const optionEl = window.document.createElement('option');\n optionEl.value = option;\n optionEl.textContent = option;\n container.append(optionEl);\n });\n}\n\nexport function createCheckboxInput(classes?: string[], style?: { [key: string]: string }) {\n const input = window.document.createElement('input');\n input.classList.add('pm-input-checkbox');\n input.type = 'checkbox';\n applyStyles(input, classes, style);\n return input;\n}\n\nexport function createTextInput(widthChars: number, classes?: string[], style?: { [key: string]: string }) {\n const input = document.createElement('input');\n input.type = 'text';\n input.classList.add('pm-input-text');\n input.classList.add('pm-pane-border-color');\n applyStyles(input, classes, style);\n input.style.width = widthChars + 'ch';\n return input;\n}\n","/*\n * figure-keys.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\nimport { EditorState, Transaction, NodeSelection, Selection, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport {\n findParentNodeOfTypeClosestToPos,\n findSelectedNodeOfType,\n setTextSelection,\n ContentNodeWithPos,\n findParentNodeOfType,\n findParentNodeClosestToPos,\n} from 'prosemirror-utils';\n\nimport { BaseKey, verticalArrowCanAdvanceWithinTextBlock } from '../../api/basekeys';\nimport { exitNode } from '../../api/command';\n\nexport function figureKeys(schema: Schema) {\n return [\n { key: BaseKey.Enter, command: exitNode(schema.nodes.figure, -1, false) },\n { key: BaseKey.Backspace, command: backspaceHandler() },\n { key: BaseKey.ArrowLeft, command: arrowHandler('left') },\n { key: BaseKey.ArrowRight, command: arrowHandler('right') },\n { key: BaseKey.ArrowUp, command: arrowHandler('up') },\n { key: BaseKey.ArrowDown, command: arrowHandler('down') },\n ];\n}\n\nfunction backspaceHandler() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // must be an empty selection\n const selection = state.selection;\n if (!selection.empty) {\n return false;\n }\n\n // must be a selection at the beginning of it's parent\n const schema = state.schema;\n const { $head } = state.selection;\n const { parentOffset } = $head;\n if (parentOffset !== 0) {\n return false;\n }\n\n // two scenarios: backspace within empty caption or backspace right after figure\n const isWithinEmptyCaption = $head.parent.type === schema.nodes.figure && $head.parent.childCount === 0;\n if (isWithinEmptyCaption) {\n if (dispatch) {\n // set a node selection for the figure\n const tr = state.tr;\n tr.setSelection(NodeSelection.create(tr.doc, $head.pos - 1));\n dispatch(tr);\n }\n return true;\n } else {\n // check if the previous node is a figure\n const parent = $head.node($head.depth - 1);\n const parentIndex = $head.index($head.depth - 1);\n if (parentIndex > 0) {\n const previousNode = parent.child(parentIndex - 1);\n if (previousNode.type === schema.nodes.figure) {\n if (dispatch) {\n const tr = state.tr;\n\n // if the current node is and empty textblock then remove it\n if ($head.node().childCount === 0) {\n const parentTextBlock = findParentNodeClosestToPos($head, node => node.isTextblock);\n if (parentTextBlock) {\n tr.deleteRange(parentTextBlock.pos, parentTextBlock.pos + parentTextBlock.node.nodeSize);\n }\n }\n\n const nodePos = $head.pos - previousNode.nodeSize - 1;\n const figureSelection = NodeSelection.create(tr.doc, nodePos);\n tr.setSelection(figureSelection);\n dispatch(tr);\n }\n return true;\n }\n }\n }\n\n return false;\n };\n}\n\nfunction arrowHandler(dir: 'up' | 'down' | 'left' | 'right') {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // select figure\n const selectFigure = (figure: ContentNodeWithPos) => {\n if (dispatch) {\n const tr = state.tr;\n const figureSelection = NodeSelection.create(state.doc, figure.pos);\n tr.setSelection(figureSelection).scrollIntoView();\n dispatch(tr);\n }\n };\n\n // select figure caption\n const selectFigureCaption = (figure: ContentNodeWithPos, atEnd = false) => {\n if (dispatch) {\n const tr = state.tr;\n setTextSelection(figure.pos + (atEnd ? figure.node.textContent.length + 1 : 0), 1)(tr);\n dispatch(tr);\n }\n };\n\n // alias schema and selection\n const { schema, selection } = state;\n\n // down/right arrow for node selection w/ caption drives cursor into caption\n if (\n (dir === 'down' || dir === 'right') &&\n selection instanceof NodeSelection &&\n selection.node.type === schema.nodes.figure\n ) {\n const figure = findSelectedNodeOfType(schema.nodes.figure)(selection);\n if (figure && figure.node.childCount > 0) {\n selectFigureCaption(figure);\n return true;\n }\n }\n\n // up/left arrow for selection in caption takes us back to the node selection\n if (\n (dir === 'up' || dir === 'left') &&\n selection instanceof TextSelection &&\n !!findParentNodeOfType(schema.nodes.figure)(selection)\n ) {\n if (dir === 'up' || (dir === 'left' && selection.$head.parentOffset === 0)) {\n const figure = findParentNodeOfType(schema.nodes.figure)(selection);\n if (figure) {\n selectFigure(figure);\n return true;\n }\n }\n\n // normal node traversal\n } else if (selection.empty && view && view.endOfTextblock(dir)) {\n // compute side offset\n const side = dir === 'left' || dir === 'up' ? -1 : 1;\n\n // get selection head\n const { $head } = selection;\n\n // see if this would traverse our type\n const nextPos = Selection.near(state.doc.resolve(side > 0 ? $head.after() : $head.before()), side);\n if (nextPos.$head) {\n const figure = findParentNodeOfTypeClosestToPos(nextPos.$head, schema.nodes.figure);\n if (figure) {\n // check for e.g. math where you can advance across embedded newlines\n if ((dir === 'up' || dir === 'down') && verticalArrowCanAdvanceWithinTextBlock(state.selection, dir)) {\n return false;\n }\n // arrowing back into a figure with a caption selects the caption\n if (side === -1 && figure.node.childCount > 0) {\n selectFigureCaption(figure, dir === 'left');\n // otherwise select the figure\n } else {\n selectFigure(figure);\n }\n return true;\n }\n }\n }\n\n // not handled\n return false;\n };\n}\n","/*\n * image-events.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nimport { Plugin, PluginKey } from 'prosemirror-state';\nimport { EditorUI } from '../../api/ui';\n\nconst kTextUriList = 'text/uri-list';\nconst kApplicationQtImage = 'application/x-qt-image';\n\nconst pluginKey = new PluginKey('image-events');\n\nexport function imageEventsPlugin(ui: EditorUI) {\n return new Plugin({\n key: pluginKey,\n props: {\n handleDOMEvents: {\n drop: imageDrop(ui),\n },\n handlePaste: imagePaste(ui),\n },\n });\n}\n\nfunction imagePaste(ui: EditorUI) {\n return (view: EditorView, event: Event) => {\n const clipboardEvent = event as ClipboardEvent;\n\n if (clipboardEvent.clipboardData) {\n // detect file pastes where there is no payload, in that case check to see\n // if there is clipboard data we can get from our context (e.g. from Qt)\n if (clipboardEvent.clipboardData.types.includes(kTextUriList)) {\n const uriList = clipboardEvent.clipboardData.getData(kTextUriList);\n if (uriList.length === 0) {\n ui.context.clipboardUris().then(uris => {\n if (uris) {\n handleImageUris(view, view.state.selection.from, event, uris, ui);\n }\n });\n event.preventDefault();\n return true;\n }\n // raw image paste (e.g. from an office doc)\n } else if (clipboardEvent.clipboardData.types.includes('application/x-qt-image')) {\n\n // don't process excel sheets (we want to use their html representation)\n const kTextHtml = \"text/html\";\n if (clipboardEvent.clipboardData.types.includes(kTextHtml) &&\n clipboardEvent.clipboardData.getData(kTextHtml).includes(\"content=Excel.Sheet\")) {\n return false;\n }\n \n ui.context.clipboardImage().then(image => {\n if (image) {\n handleImageUris(view, view.state.selection.from, event, [image], ui);\n }\n });\n event.preventDefault();\n return true;\n }\n }\n\n return false;\n };\n}\n\nfunction imageDrop(ui: EditorUI) {\n return (view: EditorView, event: Event) => {\n // alias to drag event so typescript knows about event.dataTransfer\n const dragEvent = event as DragEvent;\n\n // ensure we have data transfer\n if (!dragEvent.dataTransfer) {\n return false;\n }\n\n // ensure the drop coordinates map to an editor position\n const coordinates = view.posAtCoords({\n left: dragEvent.clientX,\n top: dragEvent.clientY,\n });\n if (!coordinates) {\n return false;\n }\n\n // array of uris\n let uris: string[] | null = null;\n\n // see if this is a drag of uris\n const uriList = dragEvent.dataTransfer.getData(kTextUriList);\n if (uriList) {\n uris = uriList.split('\\r?\\n');\n } else {\n // see if the ui context has some dropped uris\n uris = ui.context.droppedUris();\n }\n\n // process uris if we have them\n if (uris && handleImageUris(view, coordinates.pos, event, uris, ui)) {\n event.preventDefault();\n return true;\n } else {\n return false;\n }\n };\n}\n\nfunction handleImageUris(view: EditorView, pos: number, event: Event, uris: string[], ui: EditorUI): boolean {\n // filter out images\n const imageUris = uris.filter(uri => {\n // get extension and check it it's an image\n // https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#Common_image_file_types\n const kImageExtensions = [\n 'apng',\n 'bmp',\n 'gif',\n 'ico',\n 'cur',\n 'jpg',\n 'jpeg',\n 'jfif',\n 'pjpeg',\n 'pjp',\n 'png',\n 'svg',\n 'tif',\n 'tiff',\n 'webp',\n ];\n const extension = uri\n .split(/\\./)\n .pop()!\n .toLowerCase();\n return kImageExtensions.includes(extension);\n });\n\n // exit if we have no image uris\n if (imageUris.length === 0) {\n return false;\n }\n\n // resolve image uris then insert them. note that this is done\n // async so we return true indicating we've handled the drop and\n // then we actually do the insertion once it returns\n ui.context.resolveImageUris(imageUris).then(images => {\n const tr = view.state.tr;\n images.forEach(image => {\n const node = view.state.schema.nodes.image.create({ src: image });\n tr.insert(pos, node);\n });\n view.dispatch(tr);\n });\n\n // indicate that we will handle the event\n return true;\n}\n","/*\n * hr.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, DOMOutputSpec } from 'prosemirror-model';\nimport { InputRule } from 'prosemirror-inputrules';\nimport { findParentNodeOfType } from 'prosemirror-utils';\nimport { EditorState } from 'prosemirror-state';\n\nimport { ProsemirrorCommand, insertNode, EditorCommandId } from '../api/command';\nimport { ExtensionContext } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { EditorUI } from '../api/ui';\nimport { OmniInsertGroup } from '../api/omni_insert';\n\nimport './hr-styles.css';\n\nconst extension = (context: ExtensionContext) => {\n const { ui } = context;\n\n return {\n nodes: [\n {\n name: 'horizontal_rule',\n spec: {\n group: 'block',\n parseDOM: [{ tag: 'hr' }],\n toDOM(): DOMOutputSpec {\n return ['div', ['hr', { class: 'pm-border-background-color' }]];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.HorizontalRule,\n node: 'horizontal_rule',\n },\n ],\n writer: (output: PandocOutput) => {\n output.writeToken(PandocTokenType.HorizontalRule);\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new ProsemirrorCommand(\n EditorCommandId.HorizontalRule,\n [],\n insertNode(schema.nodes.horizontal_rule, {}, true),\n hrOmniInsert(ui),\n ),\n ];\n },\n\n inputRules: (_schema: Schema) => {\n return [\n new InputRule(/^\\*{3}$/, (state: EditorState, match: string[], start: number, end: number) => {\n const schema = state.schema;\n const paraNode = findParentNodeOfType(schema.nodes.paragraph)(state.selection);\n if (paraNode && state.selection.$anchor.depth === 2) {\n // only in top-level paragraphs\n return state.tr.replaceRangeWith(start, end, schema.nodes.horizontal_rule.create());\n } else {\n return null;\n }\n }),\n ];\n },\n };\n};\n\nfunction hrOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Horizontal Rule'),\n keywords: [\"hr\"],\n description: ui.context.translateText('Line that spans across the page'),\n group: OmniInsertGroup.Content,\n priority: 1,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.horizontal_rule_dark! : ui.images.omni_insert?.horizontal_rule!,\n };\n}\n\nexport default extension;\n","/*\n * hard_break.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { Extension } from '../api/extension';\nimport { BaseKey } from '../api/basekeys';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\n\nconst extension: Extension = {\n nodes: [\n {\n name: 'hard_break',\n spec: {\n inline: true,\n group: 'inline',\n selectable: false,\n parseDOM: [{ tag: 'br' }],\n toDOM() {\n return ['br'];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.LineBreak,\n node: 'hard_break',\n },\n ],\n writer: (output: PandocOutput) => {\n output.writeToken(PandocTokenType.LineBreak);\n },\n },\n },\n ],\n\n baseKeys: (_schema: Schema) => {\n return [\n { key: BaseKey.ModEnter, command: hardBreakCommandFn() },\n { key: BaseKey.ShiftEnter, command: hardBreakCommandFn() },\n ];\n },\n};\n\nexport function hardBreakCommandFn() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const br = state.schema.nodes.hard_break;\n if (dispatch) {\n dispatch(state.tr.replaceSelectionWith(br.create()).scrollIntoView());\n }\n return true;\n };\n}\n\nexport default extension;\n","/*\n * null.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Extension } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\n\nimport './null-styles.css';\n\nconst extension: Extension = {\n nodes: [\n {\n name: 'null',\n spec: {\n group: 'block',\n atom: true,\n selectable: false,\n parseDOM: [{ tag: \"div[class*='null-block']\" }],\n toDOM() {\n return ['div', { class: 'null-block' }];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Null,\n node: 'null',\n },\n ],\n writer: (output: PandocOutput) => {\n output.writeToken(PandocTokenType.Null);\n },\n },\n },\n ],\n};\n\nexport default extension;\n","/*\n * em.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Mark, Fragment } from 'prosemirror-model';\n\nimport { MarkCommand, EditorCommandId } from '../api/command';\nimport { Extension } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { delimiterMarkInputRule, MarkInputRuleFilter } from '../api/input_rule';\n\nconst extension: Extension = {\n marks: [\n {\n name: 'em',\n spec: {\n group: 'formatting',\n parseDOM: [\n { tag: 'i' },\n { tag: 'em' },\n { style: 'font-weight', getAttrs: (value: string | Node) => (value as string) === 'italic' && null },\n ],\n toDOM() {\n return ['em'];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Emph,\n mark: 'em',\n },\n ],\n writer: {\n priority: 4,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeMark(PandocTokenType.Emph, parent);\n },\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [new MarkCommand(EditorCommandId.Em, ['Mod-i'], schema.marks.em)];\n },\n\n inputRules: (schema: Schema, filter: MarkInputRuleFilter) => {\n return [\n delimiterMarkInputRule('\\\\*', schema.marks.em, filter, '\\\\*-`', true),\n delimiterMarkInputRule('_', schema.marks.em, filter, '\\\\w_`', true),\n ];\n },\n};\n\nexport default extension;\n","/*\n * strong.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Mark, Fragment } from 'prosemirror-model';\n\nimport { MarkCommand, EditorCommandId } from '../api/command';\nimport { Extension } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { delimiterMarkInputRule, MarkInputRuleFilter } from '../api/input_rule';\n\nconst extension: Extension = {\n marks: [\n {\n name: 'strong',\n spec: {\n group: 'formatting',\n parseDOM: [\n // This works around a Google Docs misbehavior where pasted content will be inexplicably wrapped in ``\n // tags with a font-weight normal.\n {\n tag: 'b',\n getAttrs: (value: string | Node) => (value as HTMLElement).style.fontWeight !== 'normal' && null,\n },\n { tag: 'strong' },\n {\n style: 'font-weight',\n getAttrs: (value: string | Node) => /^(bold(er)?|[5-9]\\d{2,})$/.test(value as string) && null,\n },\n ],\n toDOM() {\n return ['strong'];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Strong,\n mark: 'strong',\n },\n ],\n writer: {\n priority: 3,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeMark(PandocTokenType.Strong, parent);\n },\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [new MarkCommand(EditorCommandId.Strong, ['Mod-b'], schema.marks.strong)];\n },\n\n inputRules: (schema: Schema, filter: MarkInputRuleFilter) => {\n return [\n delimiterMarkInputRule('\\\\*\\\\*', schema.marks.strong, filter, '`', true),\n delimiterMarkInputRule('__', schema.marks.strong, filter, '\\\\w`', true),\n ];\n },\n};\n\nexport default extension;\n","/*\n * code.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment, Mark, Node as ProsemirrorNode, Schema } from 'prosemirror-model';\n\nimport { MarkCommand, EditorCommandId } from '../api/command';\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { pandocAttrSpec, pandocAttrParseDom, pandocAttrToDomAttr, pandocAttrReadAST } from '../api/pandoc_attr';\nimport { PandocToken, PandocOutput, PandocTokenType } from '../api/pandoc';\n\nimport { kCodeText, kCodeAttr } from '../api/code';\nimport { delimiterMarkInputRule, MarkInputRuleFilter } from '../api/input_rule';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions } = context;\n\n const codeAttrs = pandocExtensions.inline_code_attributes;\n\n return {\n marks: [\n {\n name: 'code',\n noInputRules: true,\n noSpelling: true,\n spec: {\n group: 'formatting',\n attrs: codeAttrs ? pandocAttrSpec : {},\n parseDOM: [\n {\n tag: 'code',\n getAttrs(dom: Node | string) {\n if (codeAttrs) {\n return pandocAttrParseDom(dom as Element, {});\n } else {\n return {};\n }\n },\n },\n ],\n toDOM(mark: Mark) {\n const fontClass = 'pm-code pm-fixedwidth-font pm-chunk-background-color pm-block-border-color';\n const attrs = codeAttrs\n ? pandocAttrToDomAttr({\n ...mark.attrs,\n classes: [...mark.attrs.classes, fontClass],\n })\n : {\n class: fontClass,\n };\n return ['code', attrs];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Code,\n mark: 'code',\n getText: (tok: PandocToken) => tok.c[kCodeText],\n getAttrs: (tok: PandocToken) => {\n if (codeAttrs) {\n return pandocAttrReadAST(tok, kCodeAttr);\n } else {\n return {};\n }\n },\n },\n ],\n writer: {\n // lowest possible mark priority since it doesn't call writeInlines\n // (so will 'eat' any other marks on the stack)\n priority: 0,\n write: (output: PandocOutput, mark: Mark, parent: Fragment) => {\n // collect code and trim it (pandoc will do this on parse anyway)\n let code = '';\n parent.forEach((node: ProsemirrorNode) => (code = code + node.textContent));\n code = code.trim();\n if (code.length > 0) {\n output.writeToken(PandocTokenType.Code, () => {\n if (codeAttrs) {\n output.writeAttr(mark.attrs.id, mark.attrs.classes, mark.attrs.keyvalue);\n } else {\n output.writeAttr();\n }\n output.write(code);\n });\n }\n },\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [new MarkCommand(EditorCommandId.Code, ['Mod-d'], schema.marks.code)];\n },\n\n inputRules: (schema: Schema, filter: MarkInputRuleFilter) => {\n return [delimiterMarkInputRule('`', schema.marks.code, filter)];\n },\n };\n};\n\nexport default extension;\n","/*\n * link.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment, Mark, Schema } from 'prosemirror-model';\nimport { PluginKey, Plugin } from 'prosemirror-state';\n\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { PandocToken, PandocOutput, PandocTokenType } from '../../api/pandoc';\nimport {\n pandocAttrSpec,\n pandocAttrParseDom,\n pandocAttrToDomAttr,\n pandocAttrReadAST,\n PandocAttr,\n} from '../../api/pandoc_attr';\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { kLinkTarget, kLinkTargetUrl, kLinkTargetTitle, kLinkAttr, kLinkChildren } from '../../api/link';\nimport { hasShortcutHeadingLinks } from '../../api/pandoc_format';\n\nimport { linkCommand, removeLinkCommand, linkOmniInsert } from './link-command';\nimport { linkInputRules, linkPasteHandler } from './link-auto';\nimport { linkHeadingsPostprocessor, syncHeadingLinksAppendTransaction } from './link-headings';\nimport { linkPopupPlugin } from './link-popup';\n\nimport './link-styles.css';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, ui, navigation } = context;\n\n const capabilities = {\n headings: hasShortcutHeadingLinks(pandocExtensions),\n attributes: pandocExtensions.link_attributes,\n text: true,\n };\n const linkAttr = pandocExtensions.link_attributes;\n const autoLink = pandocExtensions.autolink_bare_uris;\n const headingLink = hasShortcutHeadingLinks(pandocExtensions);\n const citations = pandocExtensions.citations;\n\n const excludes = citations ? { excludes: 'cite_id' } : {};\n\n return {\n marks: [\n {\n name: 'link',\n spec: {\n attrs: {\n href: {},\n heading: { default: null },\n title: { default: null },\n ...(linkAttr ? pandocAttrSpec : {}),\n },\n inclusive: false,\n ...excludes,\n parseDOM: [\n {\n tag: 'a[href]',\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n const attrs: { [key: string]: string | null } = {\n href: el.getAttribute('href'),\n title: el.getAttribute('title'),\n heading: el.getAttribute('data-heading'),\n };\n return {\n ...attrs,\n ...(linkAttr ? pandocAttrParseDom(el, attrs) : {}),\n };\n },\n },\n ],\n toDOM(mark: Mark) {\n const linkClasses = 'pm-link pm-link-text-color';\n\n let extraAttr: any = {};\n if (linkAttr) {\n extraAttr = pandocAttrToDomAttr({\n ...mark.attrs,\n classes: [...mark.attrs.classes, linkClasses],\n });\n } else {\n extraAttr = { class: linkClasses };\n }\n\n return [\n 'a',\n {\n href: mark.attrs.href,\n title: mark.attrs.title,\n 'data-heading': mark.attrs.heading,\n ...extraAttr,\n },\n ];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Link,\n mark: 'link',\n getAttrs: (tok: PandocToken) => {\n const target = tok.c[kLinkTarget];\n return {\n href: target[kLinkTargetUrl],\n title: target[kLinkTargetTitle] || null,\n ...(linkAttr ? pandocAttrReadAST(tok, kLinkAttr) : {}),\n };\n },\n getChildren: (tok: PandocToken) => tok.c[kLinkChildren],\n\n postprocessor: hasShortcutHeadingLinks(pandocExtensions) ? linkHeadingsPostprocessor : undefined,\n },\n ],\n\n writer: {\n priority: 12,\n write: (output: PandocOutput, mark: Mark, parent: Fragment) => {\n if (mark.attrs.heading) {\n output.writeRawMarkdown('[');\n output.writeInlines(parent);\n output.writeRawMarkdown(']');\n } else {\n output.writeLink(\n mark.attrs.href,\n mark.attrs.title,\n linkAttr ? (mark.attrs as PandocAttr) : null,\n () => {\n output.writeInlines(parent);\n },\n );\n }\n },\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new ProsemirrorCommand(\n EditorCommandId.Link,\n ['Mod-k'],\n linkCommand(schema.marks.link, ui.dialogs.editLink, capabilities),\n linkOmniInsert(ui),\n ),\n new ProsemirrorCommand(EditorCommandId.RemoveLink, [], removeLinkCommand(schema.marks.link)),\n ];\n },\n\n inputRules: linkInputRules(autoLink, headingLink),\n\n appendTransaction: (schema: Schema) =>\n pandocExtensions.implicit_header_references ? [syncHeadingLinksAppendTransaction()] : [],\n\n plugins: (schema: Schema) => {\n const plugins = [\n linkPopupPlugin(\n schema,\n ui,\n navigation,\n linkCommand(schema.marks.link, ui.dialogs.editLink, capabilities),\n removeLinkCommand(schema.marks.link),\n ),\n ];\n if (autoLink) {\n plugins.push(\n new Plugin({\n key: new PluginKey('link-auto'),\n props: {\n transformPasted: linkPasteHandler(schema),\n },\n }),\n );\n }\n return plugins;\n },\n };\n};\n\nexport default extension;\n","/*\n * link-command.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { MarkType } from 'prosemirror-model';\nimport { EditorUI } from '../../api/ui';\nimport { LinkEditorFn, LinkProps } from '../../api/ui-dialogs';\nimport { EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findChildren } from 'prosemirror-utils';\n\nimport { markIsActive, getMarkAttrs, getSelectionMarkRange, getMarkRange } from '../../api/mark';\n\nimport { linkTargets, LinkCapabilities, LinkType } from '../../api/link';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { equalsIgnoreCase } from '../../api/text';\n\nexport function linkCommand(markType: MarkType, onEditLink: LinkEditorFn, capabilities: LinkCapabilities) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // if the current node doesn't allow this mark return false\n if (!state.selection.$from.node().type.allowsMarkType(markType)) {\n return false;\n }\n\n async function asyncEditLink() {\n if (dispatch) {\n // collect link targets\n const targets = await linkTargets(state.doc);\n\n // get the range of the mark\n const range = getSelectionMarkRange(state.selection, markType);\n\n // get link attributes if we have them\n let link: { [key: string]: any } = {};\n\n // only get text if this is a text selection\n if (state.selection instanceof TextSelection) {\n link.text = state.doc.textBetween(range.from, range.to);\n capabilities.text = true;\n } else {\n capabilities.text = false;\n }\n\n // get other attributes\n if (markIsActive(state, markType)) {\n link = {\n ...link,\n ...getMarkAttrs(state.doc, range, markType),\n };\n } else {\n // if the link text is a URL then make it the default\n if (link.text && link.text.match(/^https?:\\/\\/.*$/)) {\n link.href = link.text;\n }\n }\n\n // determine type\n if (link.heading) {\n link.type = LinkType.Heading;\n } else if (link.href && link.href.startsWith('#')) {\n link.type = LinkType.ID;\n } else {\n link.type = LinkType.URL;\n }\n\n // show edit ui\n const result = await onEditLink({ ...link } as LinkProps, targets, capabilities);\n if (result) {\n const tr = state.tr;\n tr.removeMark(range.from, range.to, markType);\n if (result.action === 'edit') {\n // create the mark\n const mark = markType.create(result.link);\n\n // if the content changed then replace the range, otherwise\n if (capabilities.text && link.text !== result.link.text) {\n const node = markType.schema.text(result.link.text, [mark]);\n // if we are editing an existing link then replace it, otherwise replace the selection\n if (link.href) {\n tr.replaceRangeWith(range.from, range.to, node);\n } else {\n tr.replaceSelectionWith(node, false);\n }\n } else {\n tr.addMark(range.from, range.to, mark);\n }\n\n // if it's a heading link then update heading to indicate it has an associated link\n if (result.link.type === LinkType.Heading) {\n const heading = findChildren(\n tr.doc,\n node =>\n node.type === state.schema.nodes.heading &&\n equalsIgnoreCase(node.textContent, result.link.heading || ''),\n );\n if (heading.length > 0) {\n tr.setNodeMarkup(heading[0].pos, state.schema.nodes.heading, {\n ...heading[0].node.attrs,\n link: result.link.heading,\n });\n }\n }\n }\n dispatch(tr);\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditLink();\n\n return true;\n };\n}\n\nexport function linkOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Link...'),\n description: ui.context.translateText('Link to another location'),\n group: OmniInsertGroup.Content,\n priority: 8,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.link_dark! : ui.images.omni_insert?.link!),\n };\n}\n\nexport function removeLinkCommand(markType: MarkType) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const range = getMarkRange(state.selection.$from, markType);\n if (!range) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n tr.removeMark(range.from, range.to, markType);\n dispatch(tr);\n }\n\n return true;\n };\n}\n","/*\n * link-auto.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\nimport { InputRule } from 'prosemirror-inputrules';\nimport { EditorState } from 'prosemirror-state';\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { markInputRule, MarkInputRuleFilter } from '../../api/input_rule';\nimport { markPasteHandler } from '../../api/clipboard';\n\nexport function linkInputRules(autoLink: boolean, headingLink: boolean) {\n return (schema: Schema, filter: MarkInputRuleFilter) => {\n const rules = [\n // style link\n markInputRule(/(?:(?:^|[^`])<)(https?:\\/\\/[^>]+)(?:>)$/, schema.marks.link, filter, (match: string[]) => ({\n href: match[1],\n })),\n // full markdown link\n new InputRule(/(?:\\[)([^\\]]+)(?:\\]\\()([^)]+)(?:\\))$/, (state: EditorState, match: string[], start: number, end: number) => {\n if (!filter(state, start, end)) {\n return null;\n }\n \n // remove any leading delimter (modulo spaces)\n const textIndex = match[0].indexOf(match[1]);\n const prefix = match[0].substring(0, textIndex).replace(/^\\s/, \"\");\n const delimStart = start + textIndex - prefix.length;\n const tr = state.tr;\n tr.delete(delimStart, delimStart + prefix.length);\n \n // create mark\n const attrs = { href: match[2] };\n const mark = schema.marks.link.create(attrs);\n \n // apply it to the matching core text\n const markStart = start + textIndex - prefix.length;\n tr.addMark(markStart, markStart + match[1].length, mark);\n tr.removeStoredMark(mark); // Do not continue with mark.\n \n // remove any remaining text\n const remainStart = markStart + match[1].length;\n tr.delete(remainStart, end);\n setTextSelection(remainStart)(tr);\n \n return tr;\n })\n ];\n\n if (autoLink) {\n // plain link\n rules.push(\n new InputRule(\n /(^|[^`])(https?:\\/\\/[^\\s]+\\w)[\\.\\?!\\,)]* $/,\n (state: EditorState, match: string[], start: number, end: number) => {\n const tr = state.tr;\n start = start + match[1].length;\n const linkEnd = start + match[2].length;\n tr.addMark(start, linkEnd, schema.marks.link.create({ href: match[2] }));\n tr.removeStoredMark(schema.marks.link);\n tr.insertText(' ');\n setTextSelection(end + 1)(tr);\n return tr;\n },\n ),\n );\n }\n\n return rules;\n };\n}\n\nexport function linkPasteHandler(schema: Schema) {\n return markPasteHandler(/(?:<)?([a-z]+:\\/\\/[^\\s>]+)(?:>)?/g, schema.marks.link, url => ({ href: url }));\n}\n","/*\n * clipboard.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Slice, Fragment, MarkType, Node as ProsemirrorNode } from 'prosemirror-model';\n\n// add marks to plain text pasted into the editor (e.g. urls become links)\n// https://github.com/ProseMirror/prosemirror/issues/90\nexport function markPasteHandler(regexp: RegExp, type: MarkType, getAttrs: (s: string) => {}) {\n const handler = (fragment: Fragment) => {\n regexp.lastIndex = 0;\n\n const nodes: ProsemirrorNode[] = [];\n\n fragment.forEach((child: ProsemirrorNode) => {\n if (child.isText) {\n const { text } = child;\n let pos = 0;\n let match;\n\n do {\n match = regexp.exec(text!);\n if (match) {\n const start = match.index;\n const end = start + match[0].length;\n const matchText = match.length > 1 ? match[1] : match[0];\n const attrs = getAttrs instanceof Function ? getAttrs(matchText) : getAttrs;\n if (start > 0) {\n nodes.push(child.cut(pos, start));\n }\n nodes.push(type.schema.text(matchText).mark(type.create(attrs).addToSet(child.marks)));\n pos = end;\n }\n } while (match);\n\n if (pos < text!.length) {\n nodes.push(child.cut(pos));\n }\n } else {\n nodes.push(child.copy(handler(child.content)));\n }\n });\n\n regexp.lastIndex = 0;\n\n return Fragment.fromArray(nodes);\n };\n\n return (slice: Slice) => new Slice(handler(slice.content), slice.openStart, slice.openEnd);\n}\n","/*\n * link-headings.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { findChildrenByType, findChildrenByMark } from 'prosemirror-utils';\n\nimport { getMarkRange, getMarkAttrs } from '../../api/mark';\nimport { Transaction } from 'prosemirror-state';\nimport { equalsIgnoreCase } from '../../api/text';\n\n// detect links to headings within the doc read from pandoc and update the doc\n// to note those headings in the link attributes\nexport function linkHeadingsPostprocessor(doc: ProsemirrorNode) {\n // alias schema\n const schema = doc.type.schema;\n\n // start with a list of all headings\n const headings = findChildrenByType(doc, schema.nodes.heading);\n\n // find link marks\n findChildrenByMark(doc, schema.marks.link).forEach(link => {\n const markRange = getMarkRange(doc.resolve(link.pos), schema.marks.link);\n if (markRange) {\n const attrs = getMarkAttrs(doc, markRange, schema.marks.link);\n const linkText = doc.textBetween(markRange.from, markRange.to);\n const matchedHeading = headings.find(heading => {\n return equalsIgnoreCase(heading.node.textContent, linkText) && !attrs.title && attrs.href === '#';\n });\n if (matchedHeading) {\n // point the link mark at this heading by name\n doc.nodesBetween(markRange.from, markRange.to, node => {\n const linkMark = node.marks.find(m => m.type === schema.marks.link);\n if (linkMark) {\n linkMark.attrs.heading = matchedHeading.node.textContent;\n }\n });\n\n // update the heading to indicate it has a named link to it\n matchedHeading.node.attrs.link = linkText;\n }\n }\n });\n\n // return doc\n return doc;\n}\n\nexport function syncHeadingLinksAppendTransaction() {\n return {\n name: 'sync-heading-links',\n nodeFilter: (node: ProsemirrorNode) =>\n node.type === node.type.schema.nodes.heading || node.type.schema.marks.link.isInSet(node.marks),\n append: (tr: Transaction) => {\n // alias schema\n const schema = tr.doc.type.schema;\n\n // fix links to be in sync with their text\n const links = findChildrenByMark(tr.doc, schema.marks.link);\n links.forEach(link => {\n const linkPos = tr.mapping.map(link.pos);\n const range = getMarkRange(tr.doc.resolve(linkPos), schema.marks.link);\n if (range) {\n const attrs = getMarkAttrs(tr.doc, range, schema.marks.link);\n const linkText = tr.doc.textBetween(range.from, range.to);\n if (attrs.heading && !equalsIgnoreCase(attrs.heading, linkText)) {\n tr.removeMark(range.from, range.to, schema.marks.link);\n tr.addMark(range.from, range.to, schema.marks.link.create({ ...attrs, heading: linkText }));\n }\n }\n });\n\n // if a heading has deviated from it's link, then update the link\n findChildrenByType(tr.doc, schema.nodes.heading).forEach(heading => {\n const headingPos = tr.mapping.map(heading.pos);\n const headingText = heading.node.textContent;\n const headingLink = heading.node.attrs.link;\n\n if (headingLink && !equalsIgnoreCase(headingLink, headingText) && headingText.length > 0) {\n // set the heading link text\n tr.setNodeMarkup(headingPos, schema.nodes.heading, {\n ...heading.node.attrs,\n link: headingText,\n });\n\n // find links that don't match and update them\n findChildrenByMark(tr.doc, schema.marks.link).forEach(link => {\n const linkPos = tr.mapping.map(link.pos);\n const range = getMarkRange(tr.doc.resolve(linkPos), schema.marks.link);\n if (range) {\n const attrs = getMarkAttrs(tr.doc, range, schema.marks.link);\n if (equalsIgnoreCase(attrs.heading, headingLink)) {\n tr.insertText(headingText, range.from, range.to);\n tr.addMark(\n range.from,\n range.from + headingText.length,\n schema.marks.link.create({ ...attrs, heading: headingText }),\n );\n }\n }\n });\n }\n });\n },\n };\n}\n","/*\n * LinkPopup.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { DecorationSet, EditorView } from 'prosemirror-view';\nimport { Selection, PluginKey } from 'prosemirror-state';\n\nimport * as React from 'react';\n\nimport ClipboardJS from 'clipboard';\n\nimport { EditorUI } from '../../api/ui';\nimport { LinkProps } from '../../api/ui-dialogs';\nimport { CommandFn } from '../../api/command';\n\nimport { selectionIsImageNode } from '../../api/selection';\n\nimport { showTooltip } from '../../api/widgets/tooltip';\n\nimport { WidgetProps } from '../../api/widgets/react';\nimport { LinkButton, ImageButton } from '../../api/widgets/button';\nimport { Popup } from '../../api/widgets/popup';\nimport { EditorNavigation, NavigationType } from '../../api/navigation';\nimport { Schema } from 'prosemirror-model';\nimport { textPopupDecorationPlugin, TextPopupTarget } from '../../api/text-popup';\n\nexport function linkPopupPlugin(\n schema: Schema,\n ui: EditorUI,\n nav: EditorNavigation,\n linkCmd: CommandFn,\n removeLinkCmd: CommandFn,\n) {\n const kPopupChromeWidth = 70;\n const kMaxLinkWidth = 300;\n const maxWidth = kMaxLinkWidth + kPopupChromeWidth;\n\n return textPopupDecorationPlugin({\n key: new PluginKey('link-popup'),\n markType: schema.marks.link,\n maxWidth,\n createPopup: (view: EditorView, target: TextPopupTarget, style: React.CSSProperties) => {\n return Promise.resolve(\n ,\n );\n },\n specKey: (target: TextPopupTarget) => {\n const linkText = target.attrs.heading ? target.attrs.heading : target.attrs.href;\n return `link:${linkText}`;\n },\n filter: (selection: Selection) => {\n return !selectionIsImageNode(schema, selection);\n },\n onCmdClick: (target: TextPopupTarget) => {\n ui.display.openURL(target.attrs.href);\n },\n });\n}\n\ninterface LinkPopupProps extends WidgetProps {\n link: LinkProps;\n maxLinkWidth: number;\n view: EditorView;\n ui: EditorUI;\n nav: EditorNavigation;\n linkCmd: CommandFn;\n removeLinkCmd: CommandFn;\n}\n\nconst LinkPopup: React.FC = props => {\n // link\n const linkText = props.link.heading ? props.link.heading : props.link.href;\n const onLinkClicked = () => {\n props.view.focus();\n if (props.link.heading) {\n props.nav.navigate(NavigationType.Heading, props.link.heading);\n } else if (props.link.href.startsWith('#')) {\n props.nav.navigate(NavigationType.Href, props.link.href.substr(1));\n } else {\n props.ui.display.openURL(props.link.href);\n }\n };\n\n // copy\n const showCopyButton = !props.link.heading && ClipboardJS.isSupported();\n let clipboard: ClipboardJS;\n const setCopyButton = (button: HTMLButtonElement | null) => {\n if (button) {\n clipboard = new ClipboardJS(button, {\n text: () => linkText,\n });\n clipboard.on('success', () => {\n showTooltip(button, props.ui.context.translateText('Copied to Clipboard'), 's');\n });\n } else {\n if (clipboard) {\n clipboard.destroy();\n }\n }\n };\n\n // remove\n const onRemoveClicked = () => {\n // in rstudio (w/ webkit) removing the link during the click results\n // in a page-navigation! defer to next event cycle to avoid this\n setTimeout(() => {\n props.removeLinkCmd(props.view.state, props.view.dispatch, props.view);\n props.view.focus();\n }, 0);\n };\n\n // edit\n const onEditClicked = () => {\n props.linkCmd(props.view.state, props.view.dispatch, props.view);\n };\n\n return (\n \n \n {showCopyButton ? (\n \n ) : null}\n \n \n \n );\n};\n","/*\n * tooltip.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport tlite from 'tlite';\n\nimport './tooltip.css';\n\nexport function showTooltip(\n el: Element,\n text: string,\n grav: 's' | 'n' | 'e' | 'w' | 'sw' | 'se' | 'nw' | 'ne' = 'n',\n timeout = 2000,\n) {\n el.setAttribute('title', '');\n el.setAttribute('data-tlite', text);\n tlite.show(el, { grav });\n setTimeout(() => tlite.hide(el), timeout);\n}\n","/*\n * button.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport React from 'react';\n\nimport { WidgetProps } from './react';\n\nexport interface LinkButtonProps extends WidgetProps {\n text: string;\n onClick: () => void;\n title?: string;\n maxWidth?: number;\n}\n\nexport const LinkButton: React.FC = props => {\n const className = ['pm-link', 'pm-link-text-color'].concat(props.classes || []).join(' ');\n\n const style: React.CSSProperties = {\n ...props.style,\n maxWidth: props.maxWidth,\n };\n\n const onClick = (e: React.MouseEvent) => {\n e.preventDefault();\n props.onClick();\n };\n\n const onKeyDown = (e: React.KeyboardEvent) => {\n if (e.keyCode === 32) {\n e.preventDefault();\n props.onClick();\n }\n };\n\n return (\n \n {props.text}\n \n );\n};\n\nexport interface ImageButtonProps extends WidgetProps {\n title: string;\n image: string;\n tabIndex?: number;\n onClick?: () => void;\n}\n\nexport const ImageButton = React.forwardRef((props: ImageButtonProps, ref) => {\n const className = ['pm-image-button'].concat(props.classes || []).join(' ');\n const onClick = (e: React.MouseEvent) => {\n if (props.onClick) {\n e.preventDefault();\n props.onClick();\n }\n };\n return (\n \n {props.title}\n \n );\n});\n\nexport interface TextButtonProps extends WidgetProps {\n title: string;\n onClick?: () => void;\n tabIndex?: number;\n disabled?: boolean;\n}\n\nexport const TextButton = React.forwardRef((props: TextButtonProps, ref) => {\n const className = ['pm-text-button', 'pm-input-button'].concat(props.classes || []).join(' ');\n const onClick = (e: React.MouseEvent) => {\n if (props.onClick) {\n e.preventDefault();\n props.onClick();\n }\n };\n return (\n \n {props.title}\n \n );\n});\n\nexport interface OutlineButtonProps extends WidgetProps {\n title: string;\n onClick?: (event: React.MouseEvent) => void;\n tabIndex?: number;\n}\n\nexport const OutlineButton = React.forwardRef(\n (props: OutlineButtonProps, ref) => {\n const className = ['pm-outline-button', 'pm-input-button', 'pm-input-outline-button']\n .concat(props.classes || [])\n .join(' ');\n return (\n \n {props.title}\n \n );\n },\n);\n","/*\n * TextPopup.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { DecorationSet, Decoration, EditorView } from 'prosemirror-view';\nimport { Selection, Plugin, PluginKey, EditorState, Transaction } from 'prosemirror-state';\n\nimport * as React from 'react';\n\nimport { getMarkRange, getMarkAttrs } from './mark';\nimport { kRestoreLocationTransaction, kNavigationTransaction } from './transaction';\n\nimport { reactRenderForEditorView } from './widgets/react';\nimport { textRangePopupDecorationPosition } from './widgets/decoration';\nimport { kPlatformMac } from './platform';\nimport { MarkType } from 'prosemirror-model';\n\nexport interface TextPopupTarget {\n attrs: AttrsType;\n text: string;\n}\n\nexport interface TextPopupDecoration {\n key: PluginKey;\n markType: MarkType;\n maxWidth: number;\n createPopup: (\n view: EditorView,\n target: TextPopupTarget,\n style: React.CSSProperties,\n ) => Promise;\n dismissOnEdit?: boolean;\n makeLinksAccessible?: boolean;\n specKey?: (target: TextPopupTarget) => string;\n filter?: (selection: Selection) => boolean;\n onCmdClick?: (target: TextPopupTarget) => void;\n}\n\nexport function textPopupDecorationPlugin(deco: TextPopupDecoration): Plugin {\n const {\n key,\n markType,\n maxWidth,\n createPopup,\n specKey,\n dismissOnEdit,\n makeLinksAccessible,\n filter,\n onCmdClick,\n } = deco;\n\n let editorView: EditorView;\n\n return new Plugin({\n key,\n view(view: EditorView) {\n editorView = view;\n return {};\n },\n state: {\n init: (_config: { [key: string]: any }) => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, _oldState: EditorState, newState: EditorState) => {\n // if this a restore location or navigation then return empty\n if (tr.getMeta(kRestoreLocationTransaction) || tr.getMeta(kNavigationTransaction)) {\n return DecorationSet.empty;\n }\n\n // if this is doc update and we have dismiss on edit then return empty\n if (dismissOnEdit && tr.docChanged) {\n return DecorationSet.empty;\n }\n\n // if the selection is contained within the mark then show the popup\n const selection = newState.selection;\n\n // TODO JJA: The mark range is undefined when the the selection is 'after' the mark\n // e.g. [@allaire2012|]\n // which means that the preview doesn't show\n const range = getMarkRange(selection.$from, markType);\n\n if (range) {\n // selection has to be bounded by the range\n if (selection.from < range.from || selection.to > range.to) {\n return DecorationSet.empty;\n }\n\n // apply the filter\n if (filter && !filter(selection)) {\n return DecorationSet.empty;\n }\n\n // don't show the link popup if it's positioned at the far left of the mark\n // (awkward when cursor is just left of an image)\n if (selection.empty && range.from === selection.from) {\n return DecorationSet.empty;\n }\n\n // mark target\n const attrs = getMarkAttrs(newState.doc, range, markType);\n const text = newState.doc.textBetween(range.from, range.to);\n const target = { attrs, text };\n\n // compute position (we need this both for setting the styles on the LinkPopup\n // as well as for setting the Decorator pos)\n const decorationPosition = textRangePopupDecorationPosition(editorView, range, maxWidth);\n\n // key if one was provided\n let decoratorSpec: { [key: string]: any } | undefined;\n if (specKey) {\n decoratorSpec = {\n key: decorationPosition.key + specKey(target),\n ignoreSelection: true,\n stopEvent: () => {\n return true;\n },\n };\n }\n\n // create decorator\n const textPopupDecorator = Decoration.widget(\n decorationPosition.pos,\n\n (view: EditorView, getPos: () => number) => {\n // create decorator and render popup into it\n const decorationEl = window.document.createElement('div');\n decorationEl.style.visibility = 'hidden';\n\n // create popup component\n createPopup(view, target, decorationPosition.style).then(popup => {\n if (popup) {\n reactRenderForEditorView(popup, decorationEl, view);\n\n // make sure links responsd to spacebar\n if (makeLinksAccessible) {\n const links = decorationEl.getElementsByTagName('a');\n // tslint:disable-next-line: prefer-for-of\n for (let i = 0; i < links.length; i++) {\n const link = links[0];\n link.onkeydown = (e: KeyboardEvent) => {\n if (e.keyCode === 32) {\n e.preventDefault();\n link.click();\n }\n };\n }\n }\n\n decorationEl.style.visibility = 'visible';\n }\n });\n\n return decorationEl;\n },\n\n decoratorSpec,\n );\n\n // return decorations\n return DecorationSet.create(tr.doc, [textPopupDecorator]);\n } else {\n return DecorationSet.empty;\n }\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n handleClick: onCmdClick\n ? (view: EditorView, pos: number, event: MouseEvent) => {\n const keyPressed = kPlatformMac && event.metaKey;\n if (keyPressed) {\n const attrs = getMarkAttrs(view.state.doc, { from: pos, to: pos }, markType);\n const range = getMarkRange(view.state.doc.resolve(pos));\n if (attrs && range) {\n event.stopPropagation();\n event.preventDefault();\n const text = view.state.doc.textBetween(range.from, range.to);\n onCmdClick({ attrs, text });\n return true;\n }\n }\n return false;\n }\n : undefined,\n },\n });\n}\n","/*\n * react.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\n\nimport { EditorView } from 'prosemirror-view';\n\nexport interface WidgetProps {\n classes?: string[];\n style?: React.CSSProperties;\n}\n\n// Render a react element into a DOM container that will eventually be added to the EditorView.dom\n// this function is necessary for situations where an element is created and then handed to ProseMirror\n// (unattached to the DOM), and then subsequently destoyed/unmounted by ProseMirror. We use a\n// MutationObserver to watch EditorView.dom for the element's removal then in response call\n// ReactDOM.unmountComponentAtNode\nexport function reactRenderForEditorView(element: React.ReactElement, container: HTMLElement, view: EditorView) {\n // render the react element into the container\n const ref = ReactDOM.render(element, container);\n\n // track view dom mutations to determine when ProseMirror has destroyed the element\n // (our cue to unmount/cleanup the react component)\n const observer = new MutationObserver(mutationsList => {\n mutationsList.forEach(mutation => {\n mutation.removedNodes.forEach(node => {\n if (node === container) {\n observer.disconnect();\n ReactDOM.unmountComponentAtNode(container);\n }\n });\n });\n });\n observer.observe(view.dom, { attributes: false, childList: true, subtree: true });\n\n // return the ref\n return ref;\n}\n","/*\n * decoration.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { ResolvedPos } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { editingRootNodeClosestToPos } from '../node';\n\nimport { kPixelUnit } from '../css';\n\nexport interface DecorationPosition {\n pos: number;\n style: { [key: string]: string };\n key: string;\n}\n\nexport function textRangePopupDecorationPosition(\n view: EditorView,\n range: { from: number; to: number },\n maxWidth: number,\n): DecorationPosition {\n // get the (window) DOM coordinates for the start of the range. we use range.from + 1 so\n // that ranges that are at the beginning of a line don't have their position set\n // to the previous line\n const rangeCoords = view.coordsAtPos(range.from + 1);\n\n // get the node, element, coordinates, and style for the current editing root\n const rangePos = view.state.doc.resolve(range.from);\n const editingNode = editingRootNodeClosestToPos(rangePos)!;\n const editingEl = view.domAtPos(editingNode!.pos + 1).node as HTMLElement;\n const editingBox = editingEl.getBoundingClientRect();\n const editingBoxStyle = window.getComputedStyle(editingEl);\n\n // base popup style\n const topPadding = parseInt(editingBoxStyle.paddingTop!, 10) || 0;\n const popupStyle = {\n top: rangeCoords.bottom - editingBox.top - topPadding + 5 + kPixelUnit,\n };\n\n // we need to compute whether the popup will be visible (horizontally), do\n // this by testing whether we have room for the max link width + controls/padding\n let style: { [key: string]: string };\n const positionRight = rangeCoords.left + maxWidth > editingBox.right;\n if (positionRight) {\n const rightCoords = view.coordsAtPos(range.to);\n const rightPos = rangeCoords.top === rightCoords.top ? editingBox.right - rightCoords.right : 0;\n style = {\n ...popupStyle,\n right: rightPos + kPixelUnit,\n };\n } else {\n const marginLeft =\n 'calc(' +\n (rangeCoords.left - editingBox.left) +\n 'px ' +\n ' - ' +\n editingBoxStyle.borderLeftWidth +\n ' - ' +\n editingBoxStyle.paddingLeft +\n ' - ' +\n editingBoxStyle.marginLeft +\n ' - 1ch' +\n ')';\n style = {\n ...popupStyle,\n marginLeft,\n };\n }\n\n // calculate key\n const key = Object.keys(style)\n .map(attrib => `${attrib}=${style[attrib]}`)\n .join(';');\n\n return {\n pos: editingNode.pos + editingNode.node.nodeSize - 1,\n style,\n key,\n };\n}\n\nfunction getEditingBox(view: EditorView, pos$: ResolvedPos) {\n const editingNode = editingRootNodeClosestToPos(pos$);\n const editingEl = view.domAtPos(editingNode!.pos + 1).node as HTMLElement;\n return editingEl.getBoundingClientRect();\n}\n","/*\n * select_all.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findBlockNodes, ContentNodeWithPos } from 'prosemirror-utils';\n\nimport { Extension } from '../api/extension';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { editingRootNode } from '../api/node';\n\nconst extension: Extension = {\n commands: () => {\n return [new ProsemirrorCommand(EditorCommandId.SelectAll, ['Mod-a'], selectAll)];\n },\n};\n\nexport function selectAll(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) {\n if (dispatch) {\n const editingRoot = editingRootNode(state.selection);\n if (editingRoot) {\n const schema = state.schema;\n const tr = state.tr;\n if (editingRoot.node.type === schema.nodes.note) {\n tr.setSelection(childBlocksSelection(tr.doc, editingRoot));\n } else {\n const start = tr.doc.resolve(editingRoot.pos);\n const end = tr.doc.resolve(editingRoot.pos + editingRoot.node.nodeSize);\n tr.setSelection(new TextSelection(start, end));\n }\n dispatch(tr);\n if (view) {\n // we do this to escape from embedded editors e.g. codemirror\n view.focus();\n }\n }\n }\n return true;\n}\n\nfunction childBlocksSelection(doc: ProsemirrorNode, parent: ContentNodeWithPos) {\n const blocks = findBlockNodes(parent.node);\n const begin = parent.start + blocks[0].pos + 1;\n const lastBlock = blocks[blocks.length - 1];\n const end = parent.start + lastBlock.pos + lastBlock.node.nodeSize;\n return TextSelection.create(doc, begin, end);\n}\n\nexport default extension;\n","/*\n * history.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { history, redo, undo } from 'prosemirror-history';\n\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { Extension } from '../api/extension';\n\nconst extension: Extension = {\n commands: () => {\n return [\n new ProsemirrorCommand(EditorCommandId.Undo, ['Mod-z'], undo),\n new ProsemirrorCommand(EditorCommandId.Redo, ['Shift-Mod-z'], redo),\n ];\n },\n\n plugins: () => {\n return [history()];\n },\n};\n\nexport default extension;\n","/*\n * cursor.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { PluginKey, Plugin, EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { ResolvedPos, Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { dropCursor } from 'prosemirror-dropcursor';\nimport { gapCursor, GapCursor } from 'prosemirror-gapcursor';\nimport 'prosemirror-gapcursor/style/gapcursor.css';\n\nimport { findParentNodeOfTypeClosestToPos, findParentNodeOfType, findParentNode } from 'prosemirror-utils';\n\nimport { Extension } from '../api/extension';\nimport { BaseKey, verticalArrowCanAdvanceWithinTextBlock } from '../api/basekeys';\nimport { isList } from '../api/list';\n\nimport './cursor.css';\n\n\nconst extension: Extension = {\n\n baseKeys: () => {\n return [\n { key: BaseKey.ArrowLeft, command: gapArrowHandler('left') },\n { key: BaseKey.ArrowUp, command: gapArrowHandler('up') }\n ];\n },\n\n plugins: () => {\n return [\n gapCursor(), \n dropCursor(),\n new Plugin({\n key: new PluginKey('div-gap-cursor'),\n props: {\n handleDOMEvents: {\n click: gapClickHandler,\n },\n },\n })];\n },\n};\n\nfunction gapArrowHandler(dir: 'up' | 'left') {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n \n\n // function to create a gap cursor\n const createGapCursor = ($pos: ResolvedPos) => {\n if (dispatch) {\n const cursor = new GapCursor($pos, $pos);\n const tr = state.tr;\n tr.setSelection(cursor);\n dispatch(tr);\n }\n return true;\n };\n\n if (state.selection.empty && view && view.endOfTextblock(dir)) {\n \n // get the selection\n const $head = state.selection.$head;\n\n // if we are in a block that handles up/down (e.g. display math)\n // then we don't want to make a gap cursor\n if (dir === 'up' && verticalArrowCanAdvanceWithinTextBlock(state.selection, dir)) {\n return false;\n }\n\n // check if we are in a div \n if (state.schema.nodes.div) {\n const div = findParentNodeOfType(state.schema.nodes.div)(state.selection);\n \n // if we are at the very top of a div then create a gap cursor\n if (div) {\n \n const $divPos = state.doc.resolve(div.pos);\n if ($head.index($head.depth - 1) === 0 && !(state.selection instanceof GapCursor)) {\n \n // if we are in a list item the calculations about view.endOfTextblock will be off\n if (findParentNode(isList)(state.selection)) {\n return false;\n }\n \n return createGapCursor(state.doc.resolve($divPos.pos + 1));\n // if we are between divs then create a gap cursor between them\n } else if ($divPos.nodeBefore?.type === state.schema.nodes.div) {\n return createGapCursor(state.doc.resolve($divPos.pos));\n } \n }\n }\n \n\n // if we are at the top of the document then create a gap cursor\n if (!$head.nodeBefore && ($head.pos <= 2)) {\n return createGapCursor(state.doc.resolve($head.pos - 1));\n }\n \n return false;\n\n } else {\n return false;\n }\n\n \n };\n}\n\n\nfunction gapClickHandler(view: EditorView, event: Event): boolean {\n\n const schema = view.state.schema;\n const mouseEvent = event as MouseEvent;\n const clickPos = view.posAtCoords({ left: mouseEvent.clientX, top: mouseEvent.clientY } );\n\n if (clickPos) {\n\n // resolve click pos\n const $clickPos = view.state.doc.resolve(clickPos.pos); \n\n // create a gap cursor at the click position\n const createGapCursor = () => {\n // focus the view\n view.focus();\n \n // create the gap cursor\n const tr = view.state.tr;\n const cursor = new GapCursor($clickPos, $clickPos); \n tr.setSelection(cursor);\n view.dispatch(tr);\n \n // prevent default event handling\n event.preventDefault();\n event.stopImmediatePropagation();\n return false;\n };\n \n // handle clicks at the top of divs\n if (schema.nodes.div) {\n const div = findParentNodeOfTypeClosestToPos(\n view.state.doc.resolve(clickPos.pos), schema.nodes.div\n );\n if (div && div.pos === clickPos.inside) {\n const divNode = view.nodeDOM(div.start);\n if (divNode instanceof HTMLElement) {\n if (Math.abs(mouseEvent.clientX - divNode.getBoundingClientRect().left) < 150) {\n return createGapCursor();\n }\n }\n }\n }\n\n // handle clicks between certain block types that don't have a natural text cursor\n // for inserting additioanl content\n const blockRequiresGap = (node: ProsemirrorNode | null | undefined) => {\n if (node) {\n return node.type === schema.nodes.div ||\n node.type === schema.nodes.figure ||\n node.type === schema.nodes.table ||\n node.type === schema.nodes.horizontal_rule ||\n node.type === schema.nodes.code_block;\n } else {\n return false;\n }\n };\n if (!clickPos.inside) {\n if (blockRequiresGap($clickPos.nodeBefore) && blockRequiresGap($clickPos.nodeAfter)) {\n return createGapCursor();\n }\n }\n\n // handle clicks above body\n // Take this out for now b/c it was interfering with other mouse \n // gestures (e.g. clicking on attr editor). keyboard gestures still\n // work to get to the top of the body\n /*\n if ($clickPos.parent.type === schema.nodes.body &&\n $clickPos.start() === $clickPos.pos) {\n \n return createGapCursor();\n\n }\n */\n }\n\n return false;\n}\n\nexport default extension;\n","/*\n * clear_formatting.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\n\nimport { Extension } from '../api/extension';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { liftTarget } from 'prosemirror-transform';\n\n// marks included in clear formatting\nconst kFormattingMarks = ['code', 'em', 'underline', 'smallcaps', 'span', 'strikeout', 'strong', 'superscript', 'subscript'];\n\n// for nodes, all nodes with isTextblock === true will be converted to paragraph, and all\n// nodes in this list will be lifted\nconst kLiftFormattingNodes = ['blockquote', 'line_block', 'div', 'raw_block'];\n\nconst extension: Extension = {\n commands: () => {\n return [new ProsemirrorCommand(EditorCommandId.ClearFormatting, ['Mod-\\\\'], clearFormatting)];\n },\n};\n\nexport function clearFormatting(state: EditorState, dispatch?: (tr: Transaction) => void) {\n if (dispatch) {\n // create transaction\n const tr = state.tr;\n\n // alias schema and selection\n const schema = state.schema;\n const { from, to } = tr.selection;\n\n // clear formatting marks\n kFormattingMarks.forEach(markName => {\n const mark = state.schema.marks[markName];\n if (mark) {\n tr.removeMark(from, to, mark);\n }\n });\n tr.setStoredMarks([]);\n\n // lift / set nodes as required\n tr.doc.nodesBetween(from, to, (node: ProsemirrorNode, pos: number) => {\n // ignore paragraph and text nodes (already have 'cleared' formatting)\n if (node.type === schema.nodes.paragraph || node.type === schema.nodes.text) {\n return;\n }\n\n // pass recursively through list container nodes\n if (\n node.type === schema.nodes.bullet_list ||\n node.type === schema.nodes.ordered_list ||\n node.type === schema.nodes.definition_list ||\n node.type === schema.nodes.definition_list_term ||\n node.type === schema.nodes.definition_list_description\n ) {\n return;\n }\n\n // get node range (map positions)\n const fromPos = tr.doc.resolve(tr.mapping.map(pos + 1));\n const toPos = tr.doc.resolve(tr.mapping.map(pos + node.nodeSize - 1));\n const nodeRange = fromPos.blockRange(toPos);\n\n // process text blocks and blocks that can be lifted (e.g. blockquote)\n if (nodeRange) {\n if (node.type.isTextblock) {\n tr.setNodeMarkup(nodeRange.start, schema.nodes.paragraph);\n } else if (kLiftFormattingNodes.includes(node.type.name)) {\n const targetLiftDepth = liftTarget(nodeRange);\n if (targetLiftDepth || targetLiftDepth === 0) {\n tr.lift(nodeRange, targetLiftDepth);\n }\n }\n }\n });\n\n dispatch(tr);\n }\n\n return true;\n}\n\nexport default extension;\n","/*\n * smarty.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { ellipsis, InputRule } from 'prosemirror-inputrules';\nimport { Plugin, PluginKey, EditorState } from 'prosemirror-state';\nimport { Schema } from 'prosemirror-model';\n\nimport { Extension, extensionIfEnabled } from '../api/extension';\nimport { fancyQuotesToSimple } from '../api/quote';\n\nconst plugin = new PluginKey('smartypaste');\n\n// match enDash but only for lines that aren't an html comment\nconst enDash = new InputRule(/[^!-`]--$/, (state: EditorState, match: string[], start: number, end: number) => {\n const { parent, parentOffset } = state.selection.$head;\n const precedingText = parent.textBetween(0, parentOffset);\n if (precedingText.indexOf('$/;\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { options, ui } = context;\n\n return {\n marks: [\n {\n name: 'raw_html_comment',\n noInputRules: true,\n noSpelling: true,\n spec: {\n attrs: {\n editing: { default: false },\n format: { default: false },\n },\n inclusive: false,\n excludes: 'formatting',\n parseDOM: [\n {\n tag: \"span[class*='raw-html-comment']\",\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n return {\n editing: el.getAttribute('data-editing') === '1',\n format: el.getAttribute('data-format') === '1',\n };\n },\n },\n ],\n toDOM(mark: Mark) {\n const attr: any = {\n class:\n 'raw-html-comment pm-fixedwidth-font ' +\n (mark.attrs.editing ? 'pm-comment-color pm-comment-background-color' : 'pm-light-text-color') +\n (mark.attrs.format && options.hideFormatComment ? ' pm-comment-hidden' : ''),\n 'data-editing': mark.attrs.editing ? '1' : '0',\n 'data-format': mark.attrs.format ? '1' : '0',\n };\n return ['span', attr];\n },\n },\n pandoc: {\n readers: [],\n inlineHTMLReader: (schema: Schema, html: string, writer?: ProsemirrorWriter) => {\n const isComment = isHTMLComment(html);\n if (!isComment) {\n return false;\n }\n\n if (writer) {\n const mark = schema.marks.raw_html_comment.create(commentMarkAttribs(html));\n writer.openMark(mark);\n writer.writeText(html);\n writer.closeMark(mark);\n }\n\n return isComment;\n },\n writer: {\n priority: 1,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeRawMarkdown(parent);\n },\n },\n },\n },\n ],\n\n appendMarkTransaction: (schema: Schema) => {\n const markType = schema.marks.raw_html_comment;\n const kHTMLCommentMarkRegEx = new RegExp(kHTMLCommentRegEx.source, 'g');\n return [\n {\n name: 'html-editing-comment-marks',\n filter: (node: ProsemirrorNode) => node.isTextblock && node.type.allowsMarkType(markType),\n append: (tr: MarkTransaction, node: ProsemirrorNode, pos: number) => {\n removeInvalidatedMarks(tr, node, pos, kHTMLCommentRegEx, markType);\n detectAndApplyMarks(\n tr,\n tr.doc.nodeAt(pos)!,\n pos,\n kHTMLCommentMarkRegEx,\n markType,\n match => commentMarkAttribs(match[1]),\n () => true,\n match => match[1],\n );\n },\n },\n ];\n },\n\n // insert command\n commands: (schema: Schema) => {\n return [new InsertHTMLCommentCommand(schema, ui)];\n },\n };\n};\n\nexport class InsertHTMLCommentCommand extends ProsemirrorCommand {\n constructor(schema: Schema, ui: EditorUI) {\n super(\n EditorCommandId.HTMLComment,\n ['Shift-Mod-c'],\n (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // make sure we can insert a text node here\n if (!canInsertNode(state, schema.nodes.text)) {\n return false;\n }\n\n // make sure we can apply this mark here\n if (!toggleMarkType(schema.marks.raw_html)(state)) {\n return false;\n }\n\n // make sure the end of the selection (where we will insert the comment)\n // isn't already in a mark of this type\n if (state.doc.rangeHasMark(state.selection.to, state.selection.to + 1, schema.marks.raw_html)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n\n // set the selection to the end of the current selection (comment 'on' the selection)\n setTextSelection(tr.selection.to)(tr);\n\n // if we have a character right before us then insert a space\n const { parent, parentOffset } = tr.selection.$to;\n const charBefore = parent.textContent.slice(parentOffset - 1, parentOffset);\n if (charBefore.length && charBefore !== ' ') {\n tr.insertText(' ');\n }\n\n // insert the comment\n const comment = '';\n const mark = schema.marks.raw_html_comment.create({ editing: true });\n tr.insert(tr.selection.to, schema.text(comment, [mark]));\n\n // set the selection to the middle of the comment\n tr.setSelection(new TextSelection(tr.doc.resolve(tr.selection.to - (comment.length / 2 - 1))));\n\n // dispatch\n dispatch(tr);\n }\n\n return true;\n },\n {\n name: ui.context.translateText('Comment'),\n description: ui.context.translateText('Editing comment'),\n group: OmniInsertGroup.Content,\n priority: 3,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.comment_dark! : ui.images.omni_insert?.comment!),\n },\n );\n }\n}\n\nfunction commentMarkAttribs(comment: string) {\n return {\n editing: !!comment.match(kHTMLEditingCommentRegEx),\n format: !!matchPandocFormatComment(comment),\n };\n}\n\nexport default extension;\n","/*\n * shortcode.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Node as ProsemirrorNode, Mark, Fragment } from 'prosemirror-model';\nimport { Transaction } from 'prosemirror-state';\n\nimport { findChildren } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { detectAndApplyMarks, removeInvalidatedMarks } from '../api/mark';\nimport { MarkTransaction } from '../api/transaction';\nimport { FixupContext } from '../api/fixup';\nimport { kShortcodeRegEx } from '../api/shortcode';\nimport { PandocOutput } from '../api/pandoc';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { format } = context;\n\n if (!format.hugoExtensions.shortcodes) {\n return null;\n }\n\n return {\n marks: [\n {\n name: 'shortcode',\n noInputRules: true,\n noSpelling: true,\n spec: {\n inclusive: false,\n excludes: 'formatting',\n attrs: {},\n parseDOM: [\n {\n tag: \"span[class*='shortcode']\",\n },\n ],\n toDOM(_mark: Mark) {\n return ['span', { class: 'shortcode pm-markup-text-color pm-fixedwidth-font' }];\n },\n },\n pandoc: {\n readers: [],\n writer: {\n priority: 1,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeRawMarkdown(parent);\n },\n },\n },\n },\n ],\n\n fixups: (schema: Schema) => {\n return [\n (tr: Transaction, fixupContext: FixupContext) => {\n if (fixupContext === FixupContext.Load) {\n // apply marks\n const markType = schema.marks.shortcode;\n const predicate = (node: ProsemirrorNode) => {\n return node.isTextblock && node.type.allowsMarkType(markType);\n };\n const markTr = new MarkTransaction(tr);\n findChildren(tr.doc, predicate).forEach(nodeWithPos => {\n const { pos } = nodeWithPos;\n detectAndCreateShortcodes(schema, markTr, pos);\n });\n }\n return tr;\n },\n ];\n },\n\n appendMarkTransaction: (schema: Schema) => {\n return [\n {\n name: 'shortcode-marks',\n filter: (node: ProsemirrorNode) =>\n node.isTextblock && node.type.allowsMarkType(node.type.schema.marks.shortcode),\n append: (tr: MarkTransaction, node: ProsemirrorNode, pos: number) => {\n removeInvalidatedMarks(tr, node, pos, kShortcodeRegEx, node.type.schema.marks.shortcode);\n detectAndCreateShortcodes(node.type.schema, tr, pos);\n },\n },\n ];\n },\n };\n};\n\nfunction detectAndCreateShortcodes(schema: Schema, tr: MarkTransaction, pos: number) {\n // apply marks wherever they belong\n detectAndApplyMarks(\n tr,\n tr.doc.nodeAt(pos)!,\n pos,\n kShortcodeRegEx,\n schema.marks.shortcode,\n () => ({}),\n () => true,\n match => match[1],\n );\n}\n\nexport default extension;\n","/*\n * footnote.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, Fragment, NodeType, DOMOutputSpec } from 'prosemirror-model';\nimport { Plugin, PluginKey, EditorState, Transaction, TextSelection, Selection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport {\n findChildrenByType,\n findParentNodeOfType,\n findSelectedNodeOfType,\n NodeWithPos,\n findChildren,\n} from 'prosemirror-utils';\n\nimport { ExtensionContext } from '../../api/extension';\nimport { uuidv4 } from '../../api/util';\nimport { PandocOutput, PandocTokenType, ProsemirrorWriter, PandocToken } from '../../api/pandoc';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { canInsertNode } from '../../api/node';\nimport { EditorUI } from '../../api/ui';\nimport { OmniInsertGroup } from '../../api/omni_insert';\n\nimport {\n footnoteEditorKeyDownHandler,\n footnoteEditorActivationPlugin,\n footnoteEditorNodeViews,\n} from './footnote-editor';\nimport {\n footnoteAppendTransaction,\n footnoteFilterTransaction,\n footnoteSelectNoteAppendTransaction,\n} from './footnote-transaction';\n\nimport './footnote-styles.css';\n\nconst plugin = new PluginKey('footnote');\n\nconst extension = (context: ExtensionContext) => {\n const { pandocExtensions, ui } = context;\n\n if (!pandocExtensions.footnotes) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'footnote',\n spec: {\n inline: true,\n attrs: {\n number: { default: 1 },\n ref: {},\n content: { default: '' },\n },\n group: 'inline',\n // atom: true,\n parseDOM: [\n {\n tag: \"span[class*='footnote']\",\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n return {\n ref: el.getAttribute('data-ref'),\n content: el.getAttribute('data-content'),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n return [\n 'span',\n { class: 'footnote pm-footnote', 'data-ref': node.attrs.ref, 'data-content': node.attrs.content },\n node.attrs.number.toString(),\n ];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Note,\n handler: writePandocNote,\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeNote(node);\n },\n },\n },\n ],\n\n appendTransaction: (_schema: Schema) => {\n return [footnoteAppendTransaction()];\n },\n\n plugins: (_schema: Schema) => {\n return [\n footnoteEditorActivationPlugin(),\n\n new Plugin({\n key: plugin,\n\n // footnote editor\n props: {\n handleKeyDown: footnoteEditorKeyDownHandler(),\n nodeViews: footnoteEditorNodeViews(),\n },\n\n // footnote transactions (fixups, etc.)\n filterTransaction: footnoteFilterTransaction(),\n appendTransaction: footnoteSelectNoteAppendTransaction(),\n }),\n ];\n },\n\n commands: () => {\n return [\n new ProsemirrorCommand(EditorCommandId.Footnote, ['Shift-Mod-F7'], footnoteCommandFn(), footnoteOmniInsert(ui)),\n ];\n },\n };\n};\n\nfunction writePandocNote(schema: Schema) {\n return (writer: ProsemirrorWriter, tok: PandocToken) => {\n // generate unique id\n const ref = uuidv4();\n\n // add note to notes collection (will be handled specially by closeNode b/c it\n // has schema.nodes.node type)\n writer.openNoteNode(ref);\n writer.writeTokens(tok.c);\n const noteNode = writer.closeNode();\n\n // store json version of node in an attribute of the footnote (we can copy/paste)\n // between different documents\n const content = JSON.stringify(noteNode.content.toJSON());\n\n // add inline node to the body\n writer.addNode(schema.nodes.footnote, { ref, number: noteNode.attrs.number, content }, []);\n };\n}\n\nfunction footnoteCommandFn() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (!canInsertFootnote(state)) {\n return false;\n }\n if (dispatch) {\n const tr = state.tr;\n insertFootnote(tr);\n dispatch(tr);\n }\n return true;\n };\n}\n\nfunction footnoteOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Footnote'),\n description: ui.context.translateText('Note placed at the bottom of the page'),\n group: OmniInsertGroup.References,\n priority: 2,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.footnote_dark! : ui.images.omni_insert?.footnote!),\n };\n}\n\nfunction canInsertFootnote(state: EditorState) {\n return (\n canInsertNode(state, state.schema.nodes.footnote) && !findParentNodeOfType(state.schema.nodes.note)(state.selection)\n );\n}\n\nfunction insertFootnote(\n tr: Transaction,\n edit = true,\n content?: Fragment | ProsemirrorNode | ProsemirrorNode[] | undefined,\n): string {\n // resolve content\n const schema = tr.doc.type.schema;\n if (!content) {\n content = schema.nodes.paragraph.create();\n }\n\n // generate note id\n const ref = uuidv4();\n\n // insert empty note\n const notes = findChildrenByType(tr.doc, schema.nodes.notes, true)[0];\n const note = schema.nodes.note.createAndFill({ ref }, content);\n tr.insert(notes.pos + 1, note as ProsemirrorNode);\n\n // insert footnote linked to note\n const footnote = schema.nodes.footnote.create({ ref });\n tr.replaceSelectionWith(footnote, false);\n\n // open note editor\n if (edit) {\n const noteNode = findNoteNode(tr.doc, ref);\n if (noteNode) {\n tr.setSelection(TextSelection.create(tr.doc, noteNode.pos + 1));\n }\n }\n\n // return ref\n return ref;\n}\n\nexport function selectedFootnote(selection: Selection): NodeWithPos | undefined {\n const schema = selection.$head.node().type.schema;\n return findSelectedNodeOfType(schema.nodes.footnote)(selection);\n}\n\nexport function selectedNote(selection: Selection): NodeWithPos | undefined {\n const schema = selection.$head.node().type.schema;\n return findParentNodeOfType(schema.nodes.note)(selection);\n}\n\nexport function findNoteNode(doc: ProsemirrorNode, ref: string): NodeWithPos | undefined {\n return findNodeOfTypeWithRef(doc, doc.type.schema.nodes.note, ref);\n}\n\nexport function findFootnoteNode(doc: ProsemirrorNode, ref: string): NodeWithPos | undefined {\n return findNodeOfTypeWithRef(doc, doc.type.schema.nodes.footnote, ref);\n}\n\nfunction findNodeOfTypeWithRef(doc: ProsemirrorNode, type: NodeType, ref: string): NodeWithPos | undefined {\n const foundNode = findChildren(doc, node => node.type === type && node.attrs.ref === ref, true);\n if (foundNode.length) {\n return foundNode[0];\n } else {\n return undefined;\n }\n}\n\nexport default extension;\n","/*\n * shortcode.ts\n *\n * Copyright (C) 2019-20 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport const kShortcodePattern = '(?:^|[^`])({{([%<])\\\\s+.*?[%>]}})';\nexport const kShortcodeRegEx = new RegExp(kShortcodePattern, 'g');\n","/*\n * footnote-editor.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView, DecorationSet, NodeView } from 'prosemirror-view';\nimport { findParentNodeOfType, NodeWithPos, findChildrenByType, findChildren } from 'prosemirror-utils';\nimport { EditorState, TextSelection, Plugin, PluginKey, Transaction } from 'prosemirror-state';\n\nimport { nodeDecoration } from '../../api/decoration';\nimport { firstNode, lastNode } from '../../api/node';\nimport { selectionIsWithin } from '../../api/selection';\nimport { scrollIntoView } from '../../api/scroll';\n\nimport { findFootnoteNode, selectedFootnote, selectedNote } from './footnote';\n\nconst key = new PluginKey('footnote-editor-activate');\n\nexport function footnoteEditorActivationPlugin() {\n return new Plugin({\n key,\n state: {\n init(_config: { [key: string]: any }, instance: EditorState) {\n return DecorationSet.empty;\n },\n\n // whenever an edit affecting this mark type occurs then update the decorations\n apply(tr: Transaction, set: DecorationSet, oldState: EditorState, newState: EditorState) {\n if (selectedFootnote(newState.selection) || selectedNote(newState.selection)) {\n // if we are in the same note selection as before just return the set\n if (oldState.selection.$head.node() === newState.selection.$head.node()) {\n return set.map(tr.mapping, tr.doc);\n } else {\n return footnoteEditorDecorations(newState);\n }\n } else {\n return DecorationSet.empty;\n }\n },\n },\n props: {\n decorations(state: EditorState) {\n return key.getState(state);\n },\n },\n\n view: () => ({\n // scroll footnote into view (if necessary) when note editor is active\n update: (view: EditorView) => {\n const note = selectedNote(view.state.selection);\n if (note) {\n const footnote = findFootnoteNode(view.state.doc, note.node.attrs.ref);\n if (footnote) {\n scrollIntoView(view, footnote.pos, false, 0, 30);\n }\n }\n },\n }),\n });\n}\n\n// selection-driven decorations (mostly css classes) required to activate the footnote editor\nfunction footnoteEditorDecorations(state: EditorState) {\n const schema = state.schema;\n\n // see if either a footnote node or note (footnote editor) node has the selection\n let footnoteNode = selectedFootnote(state.selection);\n let noteNode = selectedNote(state.selection);\n\n // if they do then we need to enable footnote editing/behavior by\n // using decorators to inject appropriate css classes\n if (footnoteNode || noteNode) {\n // get body and notes nodes\n const bodyNode = findChildrenByType(state.doc, schema.nodes.body)[0];\n const notesNode = findChildrenByType(state.doc, schema.nodes.notes)[0];\n\n // resolve the specific footnote node or specific note node\n if (footnoteNode) {\n const ref = footnoteNode.node.attrs.ref;\n const matching = findChildren(notesNode.node, node => node.attrs.ref === ref);\n if (matching.length) {\n noteNode = matching[0];\n noteNode.pos = notesNode.pos + 1 + noteNode.pos;\n }\n } else if (noteNode) {\n const ref = noteNode.node.attrs.ref;\n const matching = findChildren(\n state.doc,\n node => node.type === schema.nodes.footnote && node.attrs.ref === ref,\n true,\n );\n if (matching.length) {\n footnoteNode = matching[0];\n }\n }\n\n if (footnoteNode && noteNode) {\n return DecorationSet.create(state.doc, [\n // make notes node visible\n nodeDecoration(noteNode, { class: 'active' }),\n\n // paint outline over footnote\n nodeDecoration(footnoteNode, { class: 'active pm-selected-node-outline-color' }),\n\n // position body and notes nodes for footnote editing\n nodeDecoration(bodyNode, { class: 'editing-footnote pm-pane-border-color' }),\n nodeDecoration(notesNode, { class: 'editing-footnote pm-pane-border-color' }),\n ]);\n } else {\n return DecorationSet.empty;\n }\n } else {\n return DecorationSet.empty;\n }\n}\n\n// node view that display the note number alongside the note content\nexport function footnoteEditorNodeViews() {\n return {\n note(node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) {\n return new NoteEditorView(node, view, getPos as () => number);\n },\n };\n}\n\nclass NoteEditorView implements NodeView {\n public readonly dom: HTMLElement;\n public readonly contentDOM: HTMLElement;\n\n private readonly node: ProsemirrorNode;\n private readonly view: EditorView;\n private readonly getPos: () => number;\n\n constructor(node: ProsemirrorNode, view: EditorView, getPos: () => number) {\n this.node = node;\n this.view = view;\n this.getPos = getPos;\n\n this.dom = window.document.createElement('div');\n this.dom.setAttribute('data-ref', this.node.attrs.ref);\n this.dom.classList.add('note');\n\n const label = window.document.createElement('div');\n label.classList.add('note-label');\n label.contentEditable = 'false';\n label.innerHTML = `

${this.node.attrs.number}:

`;\n this.dom.appendChild(label);\n\n const content = window.document.createElement('div');\n content.classList.add('note-content');\n this.contentDOM = content;\n this.dom.appendChild(content);\n }\n}\n\n// custom handling for arrow keys that cause selection to escape the editor\nexport function footnoteEditorKeyDownHandler() {\n return (view: EditorView, event: KeyboardEvent) => {\n // alias schema & selection\n const schema = view.state.schema;\n const selection = view.state.selection;\n\n // pass if the selection isn't in a note\n const noteNode: NodeWithPos | undefined = findParentNodeOfType(schema.nodes.note)(selection);\n if (!noteNode) {\n return false;\n }\n\n // function to find and move selection to associated footnote\n // will call this from Escape, ArrowLeft, and ArrowUp handlers below\n const selectFootnote = (before = true) => {\n const footnoteNode = findFootnoteNode(view.state.doc, noteNode.node.attrs.ref);\n if (footnoteNode) {\n const tr = view.state.tr;\n tr.setSelection(TextSelection.near(tr.doc.resolve(footnoteNode.pos + (before ? 0 : 1))));\n view.dispatch(tr);\n }\n };\n\n // if this is the Escape key then close the editor\n if (event.key === 'Escape') {\n selectFootnote();\n return true;\n }\n\n // ...otherwise check to see if the user is attempting to arrow out of the footnote\n\n // get first and last text block nodes (bail if we aren't in either)\n const firstTextBlock = firstNode(noteNode, node => node.isTextblock);\n const lastTextBlock = lastNode(noteNode, node => node.isTextblock);\n if (!firstTextBlock && !lastTextBlock) {\n return false;\n }\n\n // exiting from first text block w/ left or up arrow?\n if (firstTextBlock) {\n if (selectionIsWithin(selection, firstTextBlock)) {\n switch (event.key) {\n case 'ArrowLeft':\n if (selection.anchor === firstTextBlock.pos + 1) {\n selectFootnote(true);\n return true;\n }\n break;\n case 'ArrowUp': {\n if (view.endOfTextblock('up')) {\n selectFootnote(true);\n return true;\n }\n break;\n }\n }\n }\n }\n\n // exiting from last text block with right or down arrow?\n if (lastTextBlock) {\n if (selectionIsWithin(selection, lastTextBlock)) {\n switch (event.key) {\n case 'ArrowRight':\n if (selection.anchor === lastTextBlock.pos + lastTextBlock.node.nodeSize - 1) {\n selectFootnote(false);\n return true;\n }\n break;\n case 'ArrowDown': {\n if (view.endOfTextblock('down')) {\n selectFootnote(false);\n return true;\n }\n break;\n }\n }\n }\n }\n\n return false;\n };\n}\n","/*\n * footnote-transaction.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Transaction, EditorState, TextSelection } from 'prosemirror-state';\nimport {\n findChildrenByType,\n NodeWithPos,\n findSelectedNodeOfType,\n ContentNodeWithPos,\n findParentNodeOfType,\n} from 'prosemirror-utils';\nimport { Transform } from 'prosemirror-transform';\n\nimport { uuidv4 } from '../../api/util';\n\nimport { findNoteNode, selectedNote } from './footnote';\nimport { trTransform } from '../../api/transaction';\n\n// examine transactions and filter out attempts to place foonotes within note bodies\n// (this is not allowed by pandoc markdown)\nexport function footnoteFilterTransaction() {\n return (tr: Transaction, state: EditorState) => {\n const noteWithPos = selectedNote(tr.selection);\n if (noteWithPos && findChildrenByType(noteWithPos.node, state.schema.nodes.footnote).length) {\n return false;\n }\n return true;\n };\n}\n\n// examine editor transactions and append a transaction that handles fixup of footnote numbers,\n// importing of pasted footnotes, selection propagation to the footnote editor, etc.\nexport function footnoteAppendTransaction() {\n const footnoteChange = (node: ProsemirrorNode) => {\n const schema = node.type.schema;\n return node.type === schema.nodes.footnote || node.type === schema.nodes.note;\n };\n\n return {\n name: 'footnote-renumber',\n nodeFilter: footnoteChange,\n append: (tr: Transaction) => {\n const schema = tr.doc.type.schema;\n const activeNote = findParentNodeOfType(schema.nodes.note)(tr.selection);\n trTransform(tr, footnoteFixupTransform(activeNote));\n },\n };\n}\n\nfunction footnoteFixupTransform(activeNote: ContentNodeWithPos | undefined) {\n return (tr: Transform) => {\n // query for notes and footnotes. note that since these are computed at the beginning\n // before any steps are applied, we always need to map their positions before using them\n const schema = tr.doc.type.schema;\n const footnotes = findAllFootnotes(tr.doc);\n const allNotes = findAllNotes(tr.doc);\n\n // iterate through footnotes in the newState\n const refs = new Set();\n footnotes.forEach((footnote, index) => {\n // map position\n footnote.pos = tr.mapping.map(footnote.pos);\n\n // footnote number\n const number = index + 1;\n\n // alias ref and content (either or both may be updated)\n let { ref, content } = footnote.node.attrs;\n\n // we may be creating a new note to append\n let newNote: any;\n\n // get reference to note (if any)\n const note = allNotes.find(noteWithPos => noteWithPos.node.attrs.ref === ref);\n\n // matching note found\n if (note) {\n // map position since we scanned for all of the notes at the top and we may\n // have called tr.insert for a new note below which would have invalidated\n // the positions\n note.pos = tr.mapping.map(note.pos);\n\n // update content if this is a note edit (used to propagate user edits back to data-content)\n if (activeNote && activeNote.node.attrs.ref === ref) {\n content = JSON.stringify(note.node.content.toJSON());\n }\n\n // if we've already processed this ref then it's a duplicate, make a copy w/ a new ref/id\n if (refs.has(ref)) {\n // create a new unique id and change the ref to it\n ref = uuidv4();\n\n // create and insert new note with this id\n newNote = schema.nodes.note.createAndFill({ ref, number }, note.node.content);\n\n // otherwise update the note with the correct number (if necessary)\n } else {\n if (note.node.attrs.number !== number) {\n tr.setNodeMarkup(note.pos, schema.nodes.note, {\n ...note.node.attrs,\n number,\n });\n }\n }\n\n // if there is no note then create one using the content attr\n // (this can happen for a copy/paste operation from another document)\n } else if (content) {\n newNote = schema.nodes.note.createAndFill({ ref, number }, Fragment.fromJSON(schema, JSON.parse(content)));\n }\n\n // insert newNote if necessary\n if (newNote) {\n const notesContainer = findNotesContainer(tr.doc);\n tr.insert(notesContainer.pos + 1, newNote as ProsemirrorNode);\n }\n\n // indicate that we've seen this ref\n refs.add(ref);\n\n // set new footnote markup if necessary\n const attrs = footnote.node.attrs;\n if (ref !== attrs.ref || content !== attrs.content || number !== attrs.number) {\n tr.setNodeMarkup(footnote.pos, schema.nodes.footnote, {\n ...footnote.node.attrs,\n ref,\n content,\n number,\n });\n }\n });\n\n // remove ophraned notes\n for (let i = allNotes.length - 1; i >= 0; i--) {\n const note = allNotes[i];\n note.pos = tr.mapping.map(note.pos);\n const footnote = footnotes.find(fn => fn.node.attrs.ref === note.node.attrs.ref);\n if (!footnote) {\n tr.delete(note.pos, note.pos + note.node.nodeSize);\n }\n }\n };\n}\n\nexport function footnoteSelectNoteAppendTransaction() {\n return (_transactions: Transaction[], _oldState: EditorState, newState: EditorState) => {\n const schema = newState.schema;\n const footnoteNode: NodeWithPos | undefined = findSelectedNodeOfType(schema.nodes.footnote)(newState.selection);\n if (footnoteNode) {\n const tr = newState.tr;\n const ref = footnoteNode.node.attrs.ref;\n const noteNode = findNoteNode(tr.doc, ref);\n if (noteNode) {\n tr.setSelection(TextSelection.near(tr.doc.resolve(noteNode.pos)));\n }\n return tr;\n }\n };\n}\n\nfunction findAllFootnotes(doc: ProsemirrorNode) {\n const schema = doc.type.schema;\n return findChildrenByType(doc, schema.nodes.footnote, true);\n}\n\nfunction findAllNotes(doc: ProsemirrorNode) {\n const schema = doc.type.schema;\n const notesContainer = findNotesContainer(doc);\n const offset = notesContainer.pos + 1;\n const notes = findChildrenByType(notesContainer.node, schema.nodes.note, false);\n return notes.map(note => ({ ...note, pos: note.pos + offset }));\n}\n\nfunction findNotesContainer(doc: ProsemirrorNode) {\n return findChildrenByType(doc, doc.type.schema.nodes.notes, false)[0];\n}\n","/*\n * raw_block.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, NodeType } from 'prosemirror-model';\n\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { setBlockType } from 'prosemirror-commands';\n\nimport { findParentNode } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../api/extension';\n\nimport {\n PandocOutput,\n PandocToken,\n PandocTokenType,\n ProsemirrorWriter,\n kRawBlockContent,\n kRawBlockFormat,\n} from '../api/pandoc';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\n\nimport { EditorUI } from '../api/ui';\nimport { isSingleLineHTML } from '../api/html';\nimport { kHTMLFormat, kTexFormat, editRawBlockCommand, isRawHTMLFormat } from '../api/raw';\nimport { OmniInsert, OmniInsertGroup } from '../api/omni_insert';\nimport { kRawInlineFormat, kRawInlineContent } from '../marks/raw_inline/raw_inline';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { pandocExtensions, pandocCapabilities, ui } = context;\n\n const rawAttribute = pandocExtensions.raw_attribute;\n\n return {\n nodes: [\n {\n name: 'raw_block',\n spec: {\n content: 'text*',\n group: 'block',\n marks: '',\n code: true,\n defining: true,\n isolating: true,\n attrs: {\n format: {},\n },\n parseDOM: [\n {\n tag: \"div[class*='raw-block']\",\n preserveWhitespace: 'full',\n getAttrs: (node: Node | string) => {\n const el = node as Element;\n return {\n format: el.getAttribute('data-format'),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return [\n 'div',\n {\n class: 'raw-block pm-fixedwidth-font pm-code-block pm-markup-text-color',\n 'data-format': node.attrs.format,\n },\n 0,\n ];\n },\n },\n\n code_view: {\n lang: (node: ProsemirrorNode) => {\n return node.attrs.format;\n },\n attrEditFn: rawAttribute ? editRawBlockCommand(ui, pandocCapabilities.output_formats) : undefined,\n borderColorClass: 'pm-raw-block-border',\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.raw_block,\n tags: (node: ProsemirrorNode) => [node.attrs.format],\n editFn: rawAttribute\n ? () => editRawBlockCommand(ui, pandocCapabilities.output_formats)\n : () => (state: EditorState) => false,\n }),\n\n pandoc: {\n readers: [\n {\n token: PandocTokenType.RawBlock,\n block: 'raw_block',\n },\n ],\n\n // ensure that usethis badges comment ends up in it's own block\n preprocessor: (markdown: string) => {\n return markdown.replace(/([^\\n])(\\n^$)/gm, (_match, p1, p2) => {\n return p1 + '\\n' + p2;\n });\n },\n\n // we define a custom blockReader here so that we can convert html and tex blocks with\n // a single line of code into paragraph with a raw inline\n blockReader: (schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) => {\n if (tok.t === PandocTokenType.RawBlock) {\n readPandocRawBlock(schema, tok, writer);\n return true;\n } else if (isParagraphWrappingMultilineRaw(tok)) {\n const rawTok = tok.c[0];\n const format = rawTok.c[kRawBlockFormat];\n const content = rawTok.c[kRawBlockContent];\n writer.addNode(schema.nodes.raw_block, { format }, [schema.text(content)]);\n return true;\n } else if (isParagraphWrappingLatexBeginOrEnd(tok)) {\n writer.addNode(schema.nodes.raw_block, { format: kTexFormat }, [schema.text(tok.c[0].c)]);\n return true;\n } else if (isParagraphWrappingRawLatexBeginOrEnd(tok)) {\n writer.addNode(schema.nodes.raw_block, { format: kTexFormat }, [schema.text(tok.c[0].c[kRawInlineContent])]);\n return true;\n } else {\n return false;\n }\n },\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n if (!pandocExtensions.raw_attribute || node.textContent.trim() === '') {\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(node.textContent);\n });\n\n // raw block with embedded ``` (e.g. a commented out Rmd code chunk) needs\n // extra backticks on the outside to prevent the rmd chunk end backticks\n // from being considered the end of the raw html block.\n } else if (node.textContent.includes(\"\\n```\")) {\n // find the ``` standing by itself on a line\n const matches: RegExpExecArray[] = [];\n const embeddedTickRegEx = /\\n(`{3,})\\s*?\\n/g;\n embeddedTickRegEx.lastIndex = 0;\n let match: RegExpExecArray | null = null;\n // tslint:disable-next-line no-conditional-assignment\n while (match = embeddedTickRegEx.exec(node.textContent)) {\n matches.push(match);\n }\n embeddedTickRegEx.lastIndex = 0;\n const matchRev = matches.reverse();\n const ticks = (matchRev.length > 0 ? matchRev[0][1] : \"```\") + \"`\";\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(`${ticks}{=${node.attrs.format}}\\n${node.textContent}\\n${ticks}\\n`);\n });\n } else {\n output.writeToken(PandocTokenType.RawBlock, () => {\n output.write(node.attrs.format);\n output.write(node.textContent);\n });\n }\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n const commands: ProsemirrorCommand[] = [];\n\n commands.push(\n new FormatRawBlockCommand(EditorCommandId.HTMLBlock, kHTMLFormat, schema.nodes.raw_block, {\n name: ui.context.translateText('HTML Block'),\n description: ui.context.translateText('Raw HTML content'),\n group: OmniInsertGroup.Blocks,\n priority: 6,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.html_block_dark! : ui.images.omni_insert?.html_block!,\n }),\n );\n\n if (pandocExtensions.raw_tex) {\n commands.push(\n new FormatRawBlockCommand(EditorCommandId.TexBlock, kTexFormat, schema.nodes.raw_block, {\n name: ui.context.translateText('TeX Block'),\n description: ui.context.translateText('Raw TeX content'),\n group: OmniInsertGroup.Blocks,\n priority: 5,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.tex_block_dark! : ui.images.omni_insert?.tex_block!,\n }),\n );\n }\n\n if (rawAttribute) {\n commands.push(new RawBlockCommand(ui, pandocCapabilities.output_formats));\n }\n\n return commands;\n },\n };\n};\n\nfunction readPandocRawBlock(schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) {\n // single lines of html should be read as inline html (allows for\n // highlighting and more seamless editing experience)\n const format = tok.c[kRawBlockFormat];\n const text = tok.c[kRawBlockContent] as string;\n const textTrimmed = text.trimRight();\n if (isRawHTMLFormat(format) && isSingleLineHTML(textTrimmed) && writer.hasInlineHTMLWriter(textTrimmed)) {\n writer.openNode(schema.nodes.paragraph, {});\n writer.writeInlineHTML(textTrimmed);\n writer.closeNode();\n\n // similarly, single lines of tex (that aren't begin or end) should be read as inline tex\n } else if (format === kTexFormat && readAsInlineTex(textTrimmed)) {\n writer.openNode(schema.nodes.paragraph, {});\n const rawTexMark = schema.marks.raw_tex.create();\n writer.openMark(rawTexMark);\n writer.writeText(textTrimmed);\n writer.closeMark(rawTexMark);\n writer.closeNode();\n } else {\n writer.openNode(schema.nodes.raw_block, { format });\n writer.writeText(text);\n writer.closeNode();\n }\n}\n\n\nexport function readAsInlineTex(tex: string) {\n tex = tex.trimRight();\n if (tex.split('\\n').length === 1){\n return !isLatexBeginOrEnd(tex);\n } else {\n return false;\n }\n}\n\nfunction isParagraphWrappingMultilineRaw(tok: PandocToken) {\n return isSingleChildParagraph(tok) && \n tok.c[0].t === PandocTokenType.RawInline &&\n isMultilineString(tok.c[0].c[kRawBlockContent]);\n}\n\nfunction isParagraphWrappingLatexBeginOrEnd(tok: PandocToken) {\n return isSingleChildParagraph(tok) &&\n tok.c[0].t === PandocTokenType.Str &&\n isLatexBeginOrEnd(tok.c[0].c);\n}\n\nfunction isParagraphWrappingRawLatexBeginOrEnd(tok: PandocToken) {\n return isSingleChildParagraph(tok) &&\n (tok.c[0].t === PandocTokenType.RawInline &&\n tok.c[0].c[kRawInlineFormat] === kTexFormat &&\n isLatexBeginOrEnd(tok.c[0].c[kRawInlineContent]));\n}\n\nfunction isLatexBeginOrEnd(str: string) {\n return str && str.trimLeft().match(/\\\\(begin|end)/);\n}\n\nfunction isSingleChildParagraph(tok: PandocToken) {\n return tok.t === PandocTokenType.Para && tok.c && tok.c.length === 1;\n}\n\nfunction isMultilineString(str: string) {\n return str.indexOf('\\n') !== -1;\n}\n\n// base class for format specific raw block commands (e.g. html/tex)\nclass FormatRawBlockCommand extends ProsemirrorCommand {\n private format: string;\n private nodeType: NodeType;\n\n constructor(id: EditorCommandId, format: string, nodeType: NodeType, omniInsert?: OmniInsert) {\n super(\n id,\n [],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (!this.isActive(state) && !setBlockType(this.nodeType, { format })(state)) {\n return false;\n }\n\n if (dispatch) {\n const schema = state.schema;\n if (this.isActive(state)) {\n setBlockType(schema.nodes.paragraph)(state, dispatch);\n } else {\n setBlockType(this.nodeType, { format })(state, dispatch);\n }\n }\n\n return true;\n },\n omniInsert,\n );\n this.format = format;\n this.nodeType = nodeType;\n }\n\n public isActive(state: EditorState) {\n return !!findParentNode(node => node.type === this.nodeType && node.attrs.format === this.format)(state.selection);\n }\n}\n\n// generic raw block command (shows dialog to allow choosing from among raw formats)\nclass RawBlockCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI, outputFormats: string[]) {\n super(EditorCommandId.RawBlock, [], editRawBlockCommand(ui, outputFormats), {\n name: ui.context.translateText('Raw Block...'),\n description: ui.context.translateText('Raw content block'),\n group: OmniInsertGroup.Blocks,\n priority: 4,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.raw_block_dark! : ui.images.omni_insert?.raw_block!),\n });\n }\n}\n\nexport default extension;\n","/*\n * yaml_metadata.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, DOMOutputSpec, ParseRule } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { ExtensionContext, Extension } from '../../api/extension';\nimport { PandocOutput, PandocTokenType } from '../../api/pandoc';\nimport { EditorUI } from '../../api/ui';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { canInsertNode } from '../../api/node';\nimport { codeNodeSpec } from '../../api/code';\nimport { selectionIsBodyTopLevel } from '../../api/selection';\nimport { yamlMetadataTitlePlugin } from './yaml_metadata-title';\nimport { yamlMetadataBlockCapsuleFilter } from './yaml_metadata-capsule';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { fragmentText } from '../../api/fragment';\nimport { stripYamlDelimeters } from '../../api/yaml';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { ui } = context;\n\n return {\n nodes: [\n {\n name: 'yaml_metadata',\n\n spec: {\n ...codeNodeSpec(),\n attrs: {\n navigation_id: { default: null },\n },\n parseDOM: [\n {\n tag: \"div[class*='yaml-block']\",\n preserveWhitespace: 'full',\n } as ParseRule,\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n return ['div', { class: 'yaml-block pm-code-block' }, 0];\n },\n },\n\n code_view: {\n lang: () => 'yaml-frontmatter',\n classes: ['pm-metadata-background-color', 'pm-yaml-metadata-block'],\n },\n\n pandoc: {\n blockCapsuleFilter: yamlMetadataBlockCapsuleFilter(),\n\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n const yaml = '---\\n' + stripYamlDelimeters(fragmentText(node.content)) + '\\n---';\n output.writeRawMarkdown(yaml);\n });\n },\n },\n },\n ],\n\n commands: () => {\n return [new YamlMetadataCommand(ui)];\n },\n\n plugins: () => [yamlMetadataTitlePlugin()],\n };\n};\n\nclass YamlMetadataCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI) {\n super(\n EditorCommandId.YamlMetadata,\n [],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (!canInsertNode(state, schema.nodes.yaml_metadata)) {\n return false;\n }\n\n // only allow inserting at the top level\n if (!selectionIsBodyTopLevel(state.selection)) {\n return false;\n }\n\n // create yaml metadata text\n if (dispatch) {\n const tr = state.tr;\n const kYamlLeading = '---\\n';\n const kYamlTrailing = '\\n---';\n const yamlText = schema.text(kYamlLeading + kYamlTrailing);\n const yamlNode = schema.nodes.yaml_metadata.create({}, yamlText);\n tr.replaceSelectionWith(yamlNode);\n setTextSelection(tr.mapping.map(state.selection.from) - kYamlTrailing.length - 1)(tr);\n dispatch(tr);\n }\n\n return true;\n },\n {\n name: ui.context.translateText('YAML'),\n description: ui.context.translateText('YAML metadata block'),\n group: OmniInsertGroup.Blocks,\n priority: 3,\n selectionOffset: -4,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.yaml_block_dark! : ui.images.omni_insert?.yaml_block!,\n },\n );\n }\n}\n\nexport default extension;\n","/*\n * yaml_metadata-capsule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\n\nimport { ProsemirrorWriter } from '../../api/pandoc';\nimport { uuidv4 } from '../../api/util';\nimport {\n encodedBlockCapsuleRegex,\n blockCapsuleSourceWithoutPrefix,\n PandocBlockCapsule,\n blockCapsuleParagraphTokenHandler,\n blockCapsuleTextHandler,\n} from '../../api/pandoc_capsule';\n\nconst kYamlBlocksRegex = /(^)(---[ \\t]*\\n(?![ \\t]*\\n)[\\W\\w]*?\\n(?:---|\\.\\.\\.))([ \\t]*)$/gm;\n\nconst kYamlDiscardRegex = /^([\\t >]*)`{3,}/m;\n\nexport function yamlMetadataBlockCapsuleFilter() {\n const kYamlMetadataCapsuleType = 'E1819605-0ACD-4FAE-8B99-9C1B7BD7C0F1'.toLowerCase();\n\n return {\n type: kYamlMetadataCapsuleType,\n\n match: kYamlBlocksRegex,\n\n // if there was an unterminated yaml block inside a code block (followed by more yaml,\n // perhaps in yet another code block) then the main regex eats the code block boundary.\n // provide a discard expression that excludes any yaml block that has what appears\n // to be a fenced code block boundary\n discard: kYamlDiscardRegex,\n\n // add a newline to ensure that if the metadata block has text right\n // below it we still end up in our own pandoc paragarph block\n enclose: (capsuleText: string) => capsuleText + '\\n',\n // globally replace any instances of our block capsule found in text\n handleText: blockCapsuleTextHandler(\n kYamlMetadataCapsuleType,\n encodedBlockCapsuleRegex(undefined, '\\\\n', 'gm'),\n (text: string) => text.substring(0, text.length - 1), // trim off newline\n ),\n\n // we are looking for a paragraph token consisting entirely of a\n // block capsule of our type. if find that then return the block\n // capsule text\n handleToken: blockCapsuleParagraphTokenHandler(kYamlMetadataCapsuleType),\n\n // write as yaml_metadata\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n writer.openNode(schema.nodes.yaml_metadata, {\n navigation_id: uuidv4(),\n md_index: capsule.position,\n });\n // write the lines w/o the source-level prefix\n writer.writeText(blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix));\n writer.closeNode();\n },\n };\n}\n","/*\n * rmd_chunk.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\n\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { PandocOutput, PandocTokenType } from '../../api/pandoc';\n\nimport { codeNodeSpec } from '../../api/code';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\n\nimport { EditorUI } from '../../api/ui';\nimport { kBookdownDocType } from '../../api/format';\nimport { rmdChunk, insertRmdChunk } from '../../api/rmd';\nimport { OmniInsertGroup } from '../../api/omni_insert';\n\nimport { RmdChunkImagePreviewPlugin } from './rmd_chunk-image';\nimport { rmdChunkBlockCapsuleFilter } from './rmd_chunk-capsule';\n\nimport './rmd_chunk-styles.css';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { ui, options, format } = context;\n\n if (!format.rmdExtensions.codeChunks) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'rmd_chunk',\n spec: {\n ...codeNodeSpec(),\n attrs: {\n navigation_id: { default: null },\n md_index: { default: 0 },\n },\n parseDOM: [\n {\n tag: \"div[class*='rmd-chunk']\",\n preserveWhitespace: 'full',\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return ['div', { class: 'rmd-chunk pm-code-block' }, 0];\n },\n },\n\n code_view: {\n firstLineMeta: true,\n lineNumbers: true,\n lineNumberFormatter: (lineNumber: number, lineCount?: number, line?: string) => {\n if (lineNumber === 1) {\n return '';\n } else {\n return lineNumber - 1 + '';\n }\n },\n bookdownTheorems: format.docTypes.includes(kBookdownDocType),\n classes: ['pm-chunk-background-color'],\n lang: (_node: ProsemirrorNode, content: string) => {\n const match = content.match(/^\\{([a-zA-Z0-9_]+)/);\n if (match) {\n return match[1];\n } else {\n return null;\n }\n },\n createFromPastePattern: /^\\{([a-zA-Z0-9_]+).*}.*?\\n/m,\n },\n\n pandoc: {\n blockCapsuleFilter: rmdChunkBlockCapsuleFilter(),\n\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n const parts = rmdChunk(node.textContent);\n if (parts) {\n output.writeRawMarkdown(parts.delimiter + '{' + parts.meta + '}\\n' + parts.code + parts.delimiter + '\\n');\n }\n });\n },\n },\n },\n ],\n\n commands: (_schema: Schema) => {\n const commands = [\n new RChunkCommand(ui),\n new PythonChunkCommand(ui),\n new BashChunkCommand(ui),\n new RcppChunkCommand(ui),\n new SQLChunkCommand(ui),\n new D3ChunkCommand(ui),\n new StanChunkCommand(ui),\n new ExpandAllChunksCommand(ui),\n new CollapseAllChunksCommand(ui)\n ];\n return commands;\n },\n\n plugins: (_schema: Schema) => {\n if (options.rmdImagePreview) {\n return [new RmdChunkImagePreviewPlugin(ui.context)];\n } else {\n return [];\n }\n },\n };\n};\n\nclass RmdChunkCommand extends ProsemirrorCommand {\n constructor(\n ui: EditorUI,\n id: EditorCommandId,\n keymap: string[],\n priority: number,\n lang: string,\n placeholder: string,\n image: () => string,\n group = OmniInsertGroup.Chunks\n ) {\n super(id, keymap, insertRmdChunk(placeholder), {\n name: `${lang} ${ui.context.translateText('Code Chunk')}`,\n description: `${ui.context.translateText('Executable')} ${lang} ${ui.context.translateText('chunk')}`,\n group,\n priority,\n image\n });\n }\n}\n\nclass RChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.RCodeChunk, ['Mod-Alt-i'], 10, 'R', '{r}\\n', () =>\n ui.prefs.darkMode() ? ui.images.omni_insert!.r_chunk_dark! : ui.images.omni_insert!.r_chunk!,\n OmniInsertGroup.Common\n );\n }\n}\n\nclass PythonChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(\n ui,\n EditorCommandId.PythonCodeChunk,\n [],\n 8,\n 'Python',\n '{python}\\n',\n () => ui.images.omni_insert!.python_chunk!,\n OmniInsertGroup.Common\n );\n }\n}\n\nclass BashChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.BashCodeChunk, [], 7, 'Bash', '{bash}\\n', () =>\n ui.prefs.darkMode() ? ui.images.omni_insert!.bash_chunk_dark! : ui.images.omni_insert!.bash_chunk!,\n );\n }\n}\n\nclass RcppChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.RcppCodeChunk, [], 6, 'Rcpp', '{Rcpp}\\n', () =>\n ui.prefs.darkMode() ? ui.images.omni_insert!.rcpp_chunk_dark! : ui.images.omni_insert!.rcpp_chunk!,\n );\n }\n}\n\nclass SQLChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(\n ui,\n EditorCommandId.SQLCodeChunk,\n [],\n 5,\n 'SQL',\n '{sql connection=}\\n',\n () => ui.images.omni_insert!.sql_chunk!,\n OmniInsertGroup.Chunks\n );\n }\n}\n\nclass D3ChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.D3CodeChunk, [], 4, 'D3', '{d3 data=}\\n', () => ui.images.omni_insert!.d3_chunk!, OmniInsertGroup.Chunks);\n }\n}\n\nclass StanChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(\n ui,\n EditorCommandId.StanCodeChunk,\n [],\n 7,\n 'Stan',\n '{stan output.var=}\\n',\n () => ui.images.omni_insert!.stan_chunk!,\n OmniInsertGroup.Chunks\n );\n }\n}\n\nclass ChunkExpansionCommand extends ProsemirrorCommand {\n constructor(\n ui: EditorUI,\n id: EditorCommandId,\n keymap: string[],\n expand: boolean\n ) {\n super(id, keymap, (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => \n {\n if (dispatch) {\n ui.chunks.setChunksExpanded(expand);\n }\n return true;\n });\n }\n}\n\nclass ExpandAllChunksCommand extends ChunkExpansionCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.ExpandAllChunks, [], true);\n }\n}\n\nclass CollapseAllChunksCommand extends ChunkExpansionCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.CollapseAllChunks, [], false);\n }\n}\n\nexport default extension;\n","/*\n * rmd_chunk-image.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Plugin, PluginKey, Transaction, EditorState } from 'prosemirror-state';\nimport { DecorationSet, Decoration, EditorView } from 'prosemirror-view';\n\nimport { findChildrenByType, setTextSelection } from 'prosemirror-utils';\n\nimport { transactionsAreTypingChange, transactionsHaveChange } from '../../api/transaction';\nimport { EditorUIContext } from '../../api/ui';\nimport { stripQuotes } from '../../api/text';\nimport { onElementRemoved } from '../../api/dom';\n\nconst key = new PluginKey('rmd-chunk-image-preview');\n\nexport class RmdChunkImagePreviewPlugin extends Plugin {\n constructor(uiContext: EditorUIContext) {\n super({\n key,\n state: {\n init: (_config: { [key: string]: any }, state: EditorState) => {\n return imagePreviewDecorations(state, uiContext);\n },\n apply: (tr: Transaction, old: DecorationSet, oldState: EditorState, newState: EditorState) => {\n const transactions = [tr];\n\n // doc didn't change, return existing decorations\n if (!tr.docChanged) {\n return old.map(tr.mapping, tr.doc);\n\n // non-typing change, do a full rescan\n } else if (!transactionsAreTypingChange(transactions)) {\n return imagePreviewDecorations(newState, uiContext);\n\n // change that affects a rmd chunk block, do a full rescan\n } else if (transactionsHaveChange(transactions, oldState, newState, isRmdChunkNode)) {\n return imagePreviewDecorations(newState, uiContext);\n }\n\n // otherwise return the existing set (mapped)\n else {\n return old.map(tr.mapping, tr.doc);\n }\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n },\n });\n }\n}\n\nfunction imagePreviewDecorations(state: EditorState, uiContext: EditorUIContext) {\n // find all rmd code chunks with knitr::include_graphics\n const decorations: Decoration[] = [];\n findChildrenByType(state.doc, state.schema.nodes.rmd_chunk).forEach(rmdChunk => {\n // look for a line with knitr::include_graphics\n const match = rmdChunk.node.textContent.match(/^(knitr::)?include_graphics\\((['\"])([^\\2]+)\\2/m);\n if (match) {\n // see if we can also find an out.width on the first line\n let width = '';\n const firstLine = rmdChunk.node.textContent.split(/\\r?\\n/)[0];\n const widthMatch = firstLine.match(/^\\s*\\{[r|R][, ].*out\\.width\\s*=\\s*([^ ,$]+).*}/);\n if (widthMatch) {\n width = stripQuotes(widthMatch[1].trim());\n // revert if they are using out.width = NULL\n if (width === 'NULL') {\n width = '';\n }\n }\n\n // see if we can find fig.align='center'\n const alignCenter = !!firstLine.match(/^\\s*\\{[r|R][, ].*fig\\.align\\s*=\\s*['\"]?center['\"]?/);\n\n const imagePath = match[3];\n const decoration = Decoration.widget(\n rmdChunk.pos + rmdChunk.node.nodeSize,\n (view: EditorView, getPos: () => number) => {\n const container = window.document.createElement('div');\n container.style.marginTop = '-1.5em'; // to bridge back to the codemirror block\n // which has a margin-block-end of 1em\n container.classList.add('pm-image-preview');\n container.classList.add('pm-block-border-color');\n const img = window.document.createElement('img');\n if (alignCenter) {\n img.classList.add('pm-image-centered');\n }\n\n img.src = uiContext.mapResourceToURL(imagePath);\n img.setAttribute('draggable', 'false');\n\n // watch for changes to the file\n const unsubscribe = uiContext.watchResource(imagePath, () => {\n img.src = uiContext.mapResourceToURL(imagePath);\n });\n onElementRemoved(view.dom, container, unsubscribe);\n\n if (width) {\n img.setAttribute('width', width);\n }\n img.draggable = false;\n img.onload = () => {\n img.alt = '';\n };\n img.onerror = () => {\n img.alt = ` ${uiContext.translateText('Image not found')}: ${imagePath}`;\n };\n // select rmd_chunk for clicks on the preview image\n img.onclick = () => {\n const tr = view.state.tr;\n setTextSelection(getPos() - 1)(tr);\n view.dispatch(tr);\n };\n container.append(img);\n return container;\n },\n { key: imagePath + 'width:' + width + 'center:' + alignCenter },\n );\n decorations.push(decoration);\n }\n });\n\n // return decorations\n return DecorationSet.create(state.doc, decorations);\n}\n\nfunction isRmdChunkNode(node: ProsemirrorNode) {\n return node.type === node.type.schema.nodes.rmd_chunk;\n}\n","/*\n * rmd_chunk-capsule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\n\nimport { PandocBlockCapsule, parsePandocBlockCapsule, blockCapsuleSourceWithoutPrefix } from '../../api/pandoc_capsule';\nimport { PandocToken, PandocTokenType, ProsemirrorWriter } from '../../api/pandoc';\nimport { pandocAttrReadAST, kCodeBlockAttr, PandocAttr, kCodeBlockText } from '../../api/pandoc_attr';\nimport { uuidv4 } from '../../api/util';\n\nexport function rmdChunkBlockCapsuleFilter() {\n // (note that this constant is also defined in VisualMode.java)\n const kBlockCapsuleType = 'F3175F2A-E8A0-4436-BE12-B33925B6D220'.toLowerCase();\n const kBlockCapsuleTextRegEx = new RegExp('```' + kBlockCapsuleType + '\\\\n[ \\\\t>]*([^`]+)\\\\n[ \\\\t>]*```', 'g');\n\n return {\n type: kBlockCapsuleType,\n\n match: /^([\\t >]*)((```+)\\s*\\{[a-zA-Z0-9_]+(?: *[ ,].*?)?\\}[ \\t]*\\n(?:[\\t >]*\\3|[\\W\\w]*?\\n[\\t >]*\\3))([ \\t]*)$/gm,\n\n extract: (match: string, p1: string, p2: string, p3: string, p4: string) => {\n return {\n prefix: p1,\n source: p2,\n suffix: p4,\n };\n },\n\n // textually enclose the capsule so that pandoc parses it as the type of block we want it to\n // (in this case a code block). we use the capsule prefix here to make sure that the code block's\n // content and end backticks match the indentation level of the first line correctly\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) =>\n '```' + kBlockCapsuleType + '\\n' + capsule.prefix + capsuleText + '\\n' + capsule.prefix + '```',\n // look for one of our block capsules within pandoc ast text (e.g. a code or raw block)\n // and if we find it, parse and return the original source code\n handleText: (text: string, tok: PandocToken) => {\n // if this is a code block then we need to strip the prefix\n const stripPrefix = tok.t === PandocTokenType.CodeBlock;\n\n return text.replace(kBlockCapsuleTextRegEx, (_match, p1) => {\n const capsuleText = p1;\n const capsule = parsePandocBlockCapsule(capsuleText);\n if (stripPrefix) {\n return blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n } else {\n return capsule.source;\n }\n });\n },\n\n // look for a block capsule of our type within a code block (indicated by the\n // presence of a special css class)\n handleToken: (tok: PandocToken) => {\n if (tok.t === PandocTokenType.CodeBlock) {\n const attr = pandocAttrReadAST(tok, kCodeBlockAttr) as PandocAttr;\n if (attr.classes.includes(kBlockCapsuleType)) {\n return tok.c[kCodeBlockText];\n }\n }\n return null;\n },\n\n // write the node as an rmd_chunk, being careful to remove the backticks\n // preserved as part of the source, and striping out the base indentation\n // level implied by the prefix\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n // open node\n writer.openNode(schema.nodes.rmd_chunk, {\n navigation_id: uuidv4(),\n md_index: capsule.position,\n });\n\n // source still has leading and trailing backticks, remove them\n const source = capsule.source.replace(/^```+/, '').replace(/\\n[\\t >]*```+$/, '');\n\n // write the lines w/o the source-level prefix\n writer.writeText(blockCapsuleSourceWithoutPrefix(source, capsule.prefix));\n\n // all done\n writer.closeNode();\n },\n };\n}\n","/*\n * line_block.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, DOMOutputSpec } from 'prosemirror-model';\n\nimport { ExtensionContext } from '../api/extension';\nimport { PandocOutput, PandocTokenType, PandocToken, kWriteSpaces } from '../api/pandoc';\n\nimport { EditorCommandId, WrapCommand } from '../api/command';\nimport { OmniInsertGroup } from '../api/omni_insert';\n\nimport './line_block-styles.css';\n\nconst extension = (context: ExtensionContext) => {\n const { pandocExtensions, ui } = context;\n\n if (!pandocExtensions.line_blocks) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'line_block',\n spec: {\n content: 'paragraph+',\n group: 'block',\n defining: true,\n parseDOM: [\n {\n tag: \"div[class*='line-block']\",\n },\n ],\n toDOM(): DOMOutputSpec {\n return ['div', { class: 'line-block pm-line-block pm-block-border-color pm-margin-bordered' }, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.LineBlock,\n block: 'line_block',\n getChildren: (tok: PandocToken) => {\n return tok.c.map((line: PandocToken[]) => ({ t: PandocTokenType.Para, c: line }));\n },\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.withOption(kWriteSpaces, false, () => {\n output.writeToken(PandocTokenType.LineBlock, () => {\n node.forEach(line => {\n output.writeArray(() => {\n output.writeInlines(line.content);\n });\n });\n });\n });\n },\n },\n },\n ],\n commands: (schema: Schema) => {\n return [\n new WrapCommand(\n EditorCommandId.LineBlock,\n [],\n schema.nodes.line_block,\n {},\n {\n name: ui.context.translateText('Line Block'),\n description: ui.context.translateText('Preserve leading spaces and line breaks'),\n group: OmniInsertGroup.Blocks,\n priority: 2,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.line_block_dark! : ui.images.omni_insert?.line_block!,\n },\n ),\n ];\n },\n };\n};\n\nexport default extension;\n","/*\n * table.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\nimport { Transaction, EditorState } from 'prosemirror-state';\nimport { Transform } from 'prosemirror-transform';\nimport { tableEditing, columnResizing, goToNextCell, deleteColumn, deleteRow } from 'prosemirror-tables';\nimport { sinkListItem, liftListItem } from 'prosemirror-schema-list';\n\nimport { findChildrenByType } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { BaseKey } from '../../api/basekeys';\nimport { ProsemirrorCommand, EditorCommandId, exitNode } from '../../api/command';\nimport { TableCapabilities } from '../../api/table';\nimport { trTransform } from '../../api/transaction';\n\nimport {\n insertTable,\n deleteTable,\n deleteTableCaption,\n addRows,\n addColumns,\n TableColumnAlignmentCommand,\n TableRowCommand,\n TableColumnCommand,\n TableToggleHeaderCommand,\n TableToggleCaptionCommand,\n CssAlignment,\n insertTableOmniInsert,\n} from './table-commands';\n\nimport {\n tableContainerNode,\n tableNode,\n tableCaptionNode,\n tableCellNode,\n tableHeaderNode,\n tableRowNode,\n} from './table-nodes';\n\nimport { fixupTableWidths } from './table-columns';\nimport { TableContextMenuPlugin } from './table-contextmenu';\nimport { tablePaste } from './table-paste';\n\nimport 'prosemirror-tables/style/tables.css';\nimport './table-styles.css';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { pandocExtensions, ui } = context;\n\n // not enabled if there are no tables enabled\n if (\n !pandocExtensions.grid_tables &&\n !pandocExtensions.pipe_tables &&\n !pandocExtensions.simple_tables &&\n !pandocExtensions.multiline_tables &&\n !pandocExtensions.raw_html\n ) {\n return null;\n }\n\n // define table capabilities\n const capabilities: TableCapabilities = {\n captions: pandocExtensions.table_captions,\n headerOptional: pandocExtensions.grid_tables,\n multiline: pandocExtensions.multiline_tables || pandocExtensions.grid_tables,\n };\n\n return {\n nodes: [\n tableContainerNode,\n tableNode,\n tableCaptionNode,\n tableCellNode(pandocExtensions.grid_tables),\n tableHeaderNode,\n tableRowNode,\n ],\n\n commands: (_schema: Schema) => {\n const commands = [\n new ProsemirrorCommand(\n EditorCommandId.Table,\n ['Alt-Mod-t'],\n insertTable(capabilities, ui),\n insertTableOmniInsert(ui),\n ),\n new ProsemirrorCommand(\n EditorCommandId.TableInsertTable,\n [],\n insertTable(capabilities, ui),\n ),\n new ProsemirrorCommand(EditorCommandId.TableNextCell, ['Tab'], goToNextCell(1)),\n new ProsemirrorCommand(EditorCommandId.TablePreviousCell, ['Shift-Tab'], goToNextCell(-1)),\n new TableColumnCommand(EditorCommandId.TableAddColumnAfter, [], addColumns(true)),\n new TableColumnCommand(EditorCommandId.TableAddColumnBefore, [], addColumns(false)),\n new TableColumnCommand(EditorCommandId.TableDeleteColumn, [], deleteColumn),\n new TableRowCommand(EditorCommandId.TableAddRowAfter, [], addRows(true)),\n new TableRowCommand(EditorCommandId.TableAddRowBefore, [], addRows(false)),\n new TableRowCommand(EditorCommandId.TableDeleteRow, [], deleteRow),\n new ProsemirrorCommand(EditorCommandId.TableDeleteTable, [], deleteTable()),\n new TableColumnAlignmentCommand(EditorCommandId.TableAlignColumnLeft, CssAlignment.Left),\n new TableColumnAlignmentCommand(EditorCommandId.TableAlignColumnRight, CssAlignment.Right),\n new TableColumnAlignmentCommand(EditorCommandId.TableAlignColumnCenter, CssAlignment.Center),\n new TableColumnAlignmentCommand(EditorCommandId.TableAlignColumnDefault, null),\n ];\n if (capabilities.captions) {\n commands.push(new TableToggleCaptionCommand());\n }\n if (capabilities.headerOptional) {\n commands.push(new TableToggleHeaderCommand());\n }\n return commands;\n },\n\n plugins: (schema: Schema) => {\n return [\n columnResizing({\n handleWidth: 5,\n }),\n tableEditing(),\n tablePaste(),\n new TableContextMenuPlugin(schema, ui),\n ];\n },\n\n baseKeys: (schema: Schema) => {\n // core keys\n const keys = [\n { key: BaseKey.Backspace, command: deleteTableCaption() },\n { key: BaseKey.Enter, command: exitNode(schema.nodes.table_caption, -2, false) },\n { key: BaseKey.Tab, command: tableTabKey },\n { key: BaseKey.ShiftTab, command: tableShiftTabKey },\n ];\n\n // turn enter key variations into tab if we don't support multi-line\n if (!capabilities.multiline) {\n keys.push({ key: BaseKey.Enter, command: goToNextCell(1) });\n keys.push({ key: BaseKey.ShiftEnter, command: goToNextCell(-11) });\n keys.push({ key: BaseKey.ModEnter, command: goToNextCell(1) });\n }\n\n return keys;\n },\n\n fixups: (_schema: Schema, view: EditorView) => {\n return [fixupTableWidths(view)];\n },\n\n appendTransaction: (_schema: Schema) => {\n return [\n {\n name: 'table-repair',\n nodeFilter: node => node.type === node.type.schema.nodes.table,\n append: (tr: Transaction) => {\n trTransform(tr, tableRepairTransform);\n },\n },\n ];\n },\n };\n};\n\nexport function tableTabKey(state: EditorState, dispatch?: (tr: Transaction) => void): boolean {\n if (sinkListItem(state.schema.nodes.list_item)(state)) {\n return false;\n } else {\n return goToNextCell(1)(state, dispatch);\n }\n}\n\nexport function tableShiftTabKey(state: EditorState, dispatch?: (tr: Transaction) => void): boolean {\n if (liftListItem(state.schema.nodes.list_item)(state)) {\n return false;\n } else {\n return goToNextCell(-1)(state, dispatch);\n }\n}\n\nfunction tableRepairTransform(tr: Transform) {\n const schema = tr.doc.type.schema;\n const tables = findChildrenByType(tr.doc, schema.nodes.table);\n tables.forEach(table => {\n // map the position\n const pos = tr.mapping.map(table.pos);\n\n // get containing node (pos is right before the table)\n const containingNode = tr.doc.resolve(pos).node();\n\n // table with no container\n if (containingNode.type !== schema.nodes.table_container) {\n // add the container\n const caption = schema.nodes.table_caption.createAndFill({ inactive: true }, undefined)!;\n const container = schema.nodes.table_container.createAndFill({}, [table.node, caption])!;\n tr.replaceWith(pos, pos + table.node.nodeSize, container);\n }\n\n // table with no content (possible w/ half caption leftover)\n else if (table.node.firstChild && table.node.firstChild.childCount === 0) {\n // delete the table (and container if necessary)\n const hasContainer = containingNode.type === schema.nodes.table_container;\n if (hasContainer) {\n tr.deleteRange(pos - 1, pos - 1 + containingNode.nodeSize);\n } else {\n tr.deleteRange(pos, table.node.nodeSize);\n }\n }\n });\n}\n\nexport default extension;\n","/*\n * table-commands.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\nimport { Node as ProsemirrorNode, Fragment } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { findParentNodeOfType, setTextSelection, findChildrenByType } from 'prosemirror-utils';\nimport {\n isInTable,\n Rect,\n TableMap,\n selectionCell,\n CellSelection,\n toggleHeader,\n addRow,\n addColumn,\n} from 'prosemirror-tables';\n\nimport { EditorUI } from '../../api/ui';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { canInsertNode } from '../../api/node';\nimport { TableCapabilities } from '../../api/table';\nimport { OmniInsertGroup } from '../../api/omni_insert';\n\nexport function insertTable(capabilities: TableCapabilities, ui: EditorUI) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n // can we insert?\n if (!canInsertNode(state, schema.nodes.table_container)) {\n return false;\n }\n\n // is the selection inside a table caption? if it is then we can't insert\n // as it will \"split\" the table_container in such a way that an invalid\n // table will be created\n if (findParentNodeOfType(schema.nodes.table_caption)(state.selection)) {\n return false;\n }\n\n async function asyncInsertTable() {\n if (dispatch) {\n const result = await ui.dialogs.insertTable(capabilities);\n if (result) {\n // create cells\n const numRows = result.rows + (result.header ? 1 : 0);\n const rows: ProsemirrorNode[] = [];\n for (let r = 0; r < numRows; r++) {\n const cells: ProsemirrorNode[] = [];\n const cellType = r === 0 && result.header ? schema.nodes.table_header : schema.nodes.table_cell;\n for (let c = 0; c < result.cols; c++) {\n const content =\n cellType === schema.nodes.table_header\n ? schema.text(`${ui.context.translateText('Col')}${c + 1}`)\n : Fragment.empty;\n cells.push(cellType.createAndFill({}, schema.nodes.paragraph.createAndFill({}, content)!)!);\n }\n rows.push(schema.nodes.table_row.createAndFill({}, cells)!);\n }\n\n // create table\n const table = schema.nodes.table.createAndFill({}, rows)!;\n const tableCaption = schema.nodes.table_caption.createAndFill(\n { inactive: !result.caption },\n result.caption ? schema.text(result.caption) : undefined,\n )!;\n const tableContainer = schema.nodes.table_container.createAndFill({}, [table, tableCaption])!;\n\n // insert\n const tr = state.tr;\n tr.replaceSelectionWith(tableContainer);\n\n // select first cell\n const selectionPos = tr.mapping.map(state.selection.from, -1);\n setTextSelection(selectionPos)(tr).scrollIntoView();\n\n // dispatch & focus\n dispatch(tr);\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncInsertTable();\n\n return true;\n };\n}\n\nexport function insertTableOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Table'),\n description: ui.context.translateText('Content in rows and columns'),\n group: OmniInsertGroup.Lists,\n priority: 1,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.table_dark! : ui.images.omni_insert?.table!),\n };\n}\n\nexport function deleteTable() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n const schema = state.schema;\n const container = findParentNodeOfType(schema.nodes.table_container)(state.selection);\n if (container) {\n if (dispatch) {\n const tr = state.tr;\n tr.delete(container.pos, container.pos + container.node.nodeSize);\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n return false;\n };\n}\n\nexport function deleteTableCaption() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // must be a selection within an empty table caption\n const schema = state.schema;\n const { $head } = state.selection;\n if ($head.parent.type !== schema.nodes.table_caption || $head.parent.childCount !== 0) {\n return false;\n }\n\n if (dispatch) {\n // set the caption to inactive\n const tr = state.tr;\n const caption = $head.parent;\n tr.setNodeMarkup($head.pos - 1, schema.nodes.table_caption, {\n ...caption.attrs,\n inactive: true,\n });\n setTextSelection($head.pos - 1, -1)(tr);\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function addColumns(after: boolean) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!isInTable(state)) {\n return false;\n }\n if (dispatch) {\n let tr = state.tr;\n const rect = selectedRect(state);\n const columns = rect.right - rect.left;\n for (let i = 0; i < columns; i++) {\n tr = addColumn(tr, rect, after ? rect.right : rect.left);\n }\n dispatch(tr);\n }\n return true;\n };\n}\n\nexport function addRows(after: boolean) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!isInTable(state)) {\n return false;\n }\n if (dispatch) {\n // add the rows\n let tr = state.tr;\n const rect = selectedRect(state);\n const rows = rect.bottom - rect.top;\n for (let i = 0; i < rows; i++) {\n tr = addRow(tr, rect, after ? rect.bottom : rect.top);\n }\n\n // sync column alignments for table\n const table = findParentNodeOfType(state.schema.nodes.table)(tr.selection);\n if (table) {\n const alignments = new Array(rect.map.width);\n table.node.forEach((rowNode, rowOffset, rowIndex) => {\n rowNode.forEach((cellNode, cellOffset, colIndex) => {\n const cellPos = table.pos + 1 + rowOffset + 1 + cellOffset;\n if (rowIndex === 0) {\n const cell = tr.doc.nodeAt(cellPos);\n alignments[colIndex] = cell?.attrs.align || null;\n } else {\n tr.setNodeMarkup(cellPos, cellNode.type, {\n ...cellNode.attrs,\n align: alignments[colIndex] || null,\n });\n }\n });\n });\n }\n\n dispatch(tr);\n }\n return true;\n };\n}\n\nexport class TableToggleHeaderCommand extends ProsemirrorCommand {\n constructor() {\n super(EditorCommandId.TableToggleHeader, [], toggleHeader('row'));\n }\n\n public isActive(state: EditorState): boolean {\n if (!isInTable(state)) {\n return false;\n }\n const { table } = selectedRect(state);\n const firstCell = table.firstChild!.firstChild!;\n return firstCell.type === state.schema.nodes.table_header;\n }\n}\n\nexport class TableToggleCaptionCommand extends ProsemirrorCommand {\n constructor() {\n super(\n EditorCommandId.TableToggleCaption,\n [],\n (state: EditorState, dispatch?: (tr: Transaction, view?: EditorView) => void) => {\n if (!isInTable(state)) {\n return false;\n }\n const caption = this.tableCaptionNode(state);\n if (!caption) {\n return false;\n }\n\n if (dispatch) {\n const focus = caption.node.attrs.inactive;\n const tr = state.tr;\n tr.setNodeMarkup(caption.pos + 1, state.schema.nodes.table_caption, {\n ...caption.node.attrs,\n inactive: !caption.node.attrs.inactive,\n });\n if (focus) {\n setTextSelection(caption.pos + 1)(tr).scrollIntoView();\n }\n dispatch(tr);\n }\n\n return true;\n },\n );\n }\n\n public isActive(state: EditorState): boolean {\n if (!isInTable(state)) {\n return false;\n }\n\n const caption = this.tableCaptionNode(state);\n if (!caption) {\n return false;\n }\n\n return !caption.node.attrs.inactive;\n }\n\n private tableCaptionNode(state: EditorState) {\n const container = findParentNodeOfType(state.schema.nodes.table_container)(state.selection);\n if (container) {\n const caption = findChildrenByType(container.node, state.schema.nodes.table_caption);\n return {\n node: caption[0].node,\n pos: container.pos + caption[0].pos,\n };\n } else {\n return undefined;\n }\n }\n}\n\nexport enum CssAlignment {\n Left = 'left',\n Right = 'right',\n Center = 'center',\n}\n\nexport class TableRowCommand extends ProsemirrorCommand {\n public plural(state: EditorState) {\n if (!isInTable(state)) {\n return 1;\n }\n\n const rect = selectedRect(state);\n return rect.bottom - rect.top;\n }\n}\n\nexport class TableColumnCommand extends ProsemirrorCommand {\n public plural(state: EditorState) {\n if (!isInTable(state)) {\n return 1;\n }\n\n const rect = selectedRect(state);\n return rect.right - rect.left;\n }\n}\n\nexport class TableColumnAlignmentCommand extends ProsemirrorCommand {\n private readonly align: CssAlignment | null;\n\n constructor(id: EditorCommandId, align: CssAlignment | null) {\n super(id, [], (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!isInTable(state)) {\n return false;\n }\n\n if (dispatch) {\n const { table, tableStart, left, right } = selectedRect(state);\n const tr = state.tr;\n table.forEach((rowNode, rowOffset) => {\n rowNode.forEach((cellNode, cellOffset, i) => {\n if (i >= left && i < right) {\n const cellPos = tableStart + 1 + rowOffset + cellOffset;\n tr.setNodeMarkup(cellPos, cellNode.type, {\n ...cellNode.attrs,\n align,\n });\n }\n });\n });\n dispatch(tr);\n }\n\n return true;\n });\n this.align = align;\n }\n\n public isActive(state: EditorState): boolean {\n if (!isInTable(state)) {\n return false;\n }\n const { table, top, left } = selectedRect(state);\n const cell = table.child(top).child(left);\n return cell.attrs.align === this.align;\n }\n}\n\n// from: https://github.com/ProseMirror/prosemirror-tables/blob/master/src/commands.js\n\ninterface SelectedRect extends Rect {\n tableStart: number;\n map: TableMap;\n table: ProsemirrorNode;\n}\n\nfunction selectedRect(state: EditorState): SelectedRect {\n const sel = state.selection;\n const $pos = selectionCell(state)!;\n const table = $pos.node(-1);\n const tableStart = $pos.start(-1);\n const map = TableMap.get(table);\n let rect: Rect;\n if (sel instanceof CellSelection) {\n rect = map.rectBetween(sel.$anchorCell.pos - tableStart, sel.$headCell.pos - tableStart);\n } else {\n rect = map.findCell($pos.pos - tableStart);\n }\n return {\n ...rect,\n tableStart,\n map,\n table,\n };\n}\n","/*\n * table-nodes.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { tableNodes } from 'prosemirror-tables';\nimport { Node as ProsemirrorNode, DOMOutputSpec } from 'prosemirror-model';\n\nimport { PandocTokenType } from '../../api/pandoc';\n\nimport {\n readPandocTable,\n writePandocTableContainer,\n writePandocTable,\n writePandocTableCaption,\n writePandocTableNodes,\n writePandocTableHeaderNodes,\n} from './table-pandoc';\nimport { tableColumnWidths } from './table-columns';\nimport { tableBlockCapsuleFilter } from './table-capsule';\n\nexport const kDefaultCellClasses = 'pm-table-cell pm-block-border-color';\n\nconst nodes = tableNodes({\n tableGroup: 'block',\n cellContent: 'block+',\n cellAttributes: {\n align: {\n default: null,\n getFromDOM(dom: Element) {\n return (dom as HTMLElement).style.textAlign || null;\n },\n setDOMAttr(value, attrs) {\n if (value) {\n attrs.style = (attrs.style || '') + `text-align: ${value};`;\n }\n },\n },\n className: {\n default: kDefaultCellClasses,\n getFromDOM(dom: Element) {\n return (dom as HTMLElement).className;\n },\n setDOMAttr(value, attrs) {\n attrs.class = kDefaultCellClasses;\n },\n },\n },\n});\n\nexport const tableContainerNode = {\n name: 'table_container',\n spec: {\n content: 'table table_caption',\n group: 'block',\n parseDOM: [{ tag: \"div[class*='table-container']\" }],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n return ['div', { class: 'table-container pm-table-container' }, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Table,\n handler: readPandocTable,\n },\n ],\n writer: writePandocTableContainer,\n blockCapsuleFilter: tableBlockCapsuleFilter(),\n },\n};\n\nexport const tableNode = {\n name: 'table',\n spec: {\n ...nodes.table,\n attrs: {\n ...nodes.table.attrs,\n width: { default: null },\n colpercents: { default: null },\n },\n parseDOM: [\n {\n tag: 'table',\n getAttrs: (dom: Node | string) => {\n const el = dom as HTMLElement;\n\n // shared colpercents\n let colpercents: number[] | null = null;\n\n // if we have a colgroup w/ widths then read percents from there\n // \n const colgroup = el.getElementsByTagName('colgroup');\n if (colgroup.length) {\n const cols = colgroup[0].childElementCount;\n colpercents = new Array(cols).fill(0);\n for (let i = 0; i < cols; i++) {\n const col = colgroup[0].children.item(i) as HTMLElement;\n if (col.style.width) {\n colpercents[i] = (parseInt(col.style.width, 10) || 0) / 100;\n }\n }\n if (colpercents.every(value => !!value)) {\n return {\n colpercents,\n };\n }\n }\n\n // otherwise read from data-colwidth\n let width: number | null = null;\n const rows = el.getElementsByTagName('tr');\n if (rows.length) {\n const firstRow = rows.item(0)!;\n const numCells = firstRow.cells.length;\n const colWidths = new Array(numCells).fill(0);\n for (let i = 0; i < numCells; i++) {\n const cell = firstRow.cells.item(i)!;\n const colWidth = cell.getAttribute('data-colwidth');\n if (colWidth) {\n colWidths[i] = Number(colWidth);\n }\n }\n if (colWidths.every(colWidth => colWidth > 0)) {\n width = colWidths.reduce((total, value) => total + value, 0);\n colpercents = colWidths.map(colWidth => colWidth / width!);\n }\n }\n\n return {\n width,\n colpercents,\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n const attrs: any = {};\n if (node.attrs.width) {\n attrs['data-width'] = node.attrs.width.toString();\n }\n attrs['data-colpercents'] = tableColumnWidths(node).join(',');\n return ['table', attrs, ['tbody', 0]];\n },\n },\n pandoc: {\n writer: writePandocTable,\n },\n};\n\nexport const tableCaptionNode = {\n name: 'table_caption',\n spec: {\n attrs: {\n inactive: { default: false },\n },\n content: 'inline*',\n parseDOM: [\n {\n tag: \"p[class*='table-caption']\",\n getAttrs(dom: Node | string) {\n return {\n inactive: (dom as HTMLElement).classList.contains('table-caption-inactive'),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n const classes = ['table-caption', 'pm-node-caption'];\n if (node.attrs.inactive) {\n classes.push('table-caption-inactive');\n }\n return ['p', { class: classes.join(' ') }, 0];\n },\n },\n pandoc: {\n writer: writePandocTableCaption,\n },\n};\n\nexport const tableRowNode = {\n name: 'table_row',\n spec: nodes.table_row,\n pandoc: {\n writer: writePandocTableNodes,\n },\n};\n\nexport const tableCellNode = (blocks: boolean) => ({\n name: 'table_cell',\n spec: {\n ...nodes.table_cell,\n content: blocks ? 'block+' : 'paragraph',\n },\n pandoc: {\n writer: writePandocTableNodes,\n },\n});\n\nexport const tableHeaderNode = {\n name: 'table_header',\n spec: nodes.table_header,\n pandoc: {\n writer: writePandocTableHeaderNodes,\n },\n};\n","/*\n * table-pandoc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, NodeType, Node as ProsemirrorNode, Fragment } from 'prosemirror-model';\n\nimport { ProsemirrorWriter, PandocToken, PandocTokenType, PandocOutput } from '../../api/pandoc';\n\nimport { CssAlignment } from './table-commands';\nimport { tableColumnAlignments, tableColumnWidths } from './table-columns';\n\n// attributes\nconst kTableAttr = 0;\n\n// caption\nconst kTableCaption = 1;\nconst kTableCaptionShort = 0; // [Inline]\nconst kTableCaptionFull = 1; // [Block]\n\n// columdefs\nconst kTableColSpec = 2;\nconst kTableColSpecAlign = 0;\nconst kTableColSpecWidth = 1;\n\n// table head\nconst kTableHead = 3;\nconst kTableHeadAttr = 0;\nconst kTableHeadRows = 1; // [Row]\n\n// table body\nconst kTableBody = 4;\nconst kTableBodyAttr = 0;\nconst kTableBodyRowHeadNumColumns = 1;\nconst kTableBodyRowHead = 2;\nconst kTableBodyRows = 3; // [Row]\n\n// table foot\nconst kTableFoot = 5;\nconst kTableFootAttr = 0;\nconst kTableFootRows = 1; // [Row]\n\n// table row\nconst kTableRowAttr = 0;\nconst kTableRowCells = 1; // [Cell]\n\n// table cell\nconst kTableCellAttr = 0;\nconst kTableCellAlignments = 1;\nconst kTableCellRowSpan = 2;\nconst kTableCellColSpan = 3;\nconst KTableCellContents = 4; // [Block]\n\n\nexport function readPandocTable(schema: Schema) {\n return (writer: ProsemirrorWriter, tok: PandocToken) => {\n // get alignments and columns widths\n const alignments = columnCssAlignments(tok);\n const colpercents = columnPercents(tok);\n\n // helper function to parse a table row\n const parseRow = (row: any[], cellType: NodeType) => {\n const cells: any[] = row[kTableRowCells];\n if (cells.length) {\n writer.openNode(schema.nodes.table_row, {});\n cells.forEach((cell: any[], i) => {\n writer.openNode(cellType, { align: alignments[i] });\n writer.writeTokens(cell[KTableCellContents]);\n writer.closeNode();\n });\n writer.closeNode();\n }\n };\n\n // open table container node\n writer.openNode(schema.nodes.table_container, {});\n\n // open table node\n writer.openNode(schema.nodes.table, { colpercents });\n\n // parse column headers\n const head = tok.c[kTableHead] as any[];\n const firstRow = head[kTableHeadRows][0];\n if (firstRow && firstRow[kTableRowCells].some((cell: any[]) => cell[KTableCellContents].length > 0)) {\n parseRow(firstRow, schema.nodes.table_header);\n }\n\n // parse table rows\n const body = tok.c[kTableBody][0] as any[];\n body[kTableBodyRows].forEach((row: any[]) => {\n parseRow(row, schema.nodes.table_cell);\n });\n\n // close table node\n writer.closeNode();\n\n // read caption\n const caption = tok.c[kTableCaption][kTableCaptionFull];\n const captionBlock: PandocToken[] = caption.length ? caption[0].c : [];\n writer.openNode(schema.nodes.table_caption, { inactive: captionBlock.length === 0 });\n writer.writeTokens(captionBlock);\n writer.closeNode();\n\n // close table container node\n writer.closeNode();\n };\n}\n\nexport function writePandocTableContainer(output: PandocOutput, node: ProsemirrorNode) {\n const caption = node.lastChild!;\n const table = node.firstChild!;\n\n output.writeToken(PandocTokenType.Table, () => {\n\n // write empty attributes\n output.writeAttr();\n\n // write caption\n output.writeNode(caption);\n\n // write table\n output.writeNode(table);\n });\n}\n\nexport function writePandocTable(output: PandocOutput, node: ProsemirrorNode) {\n const firstRow = node.firstChild!;\n\n // get alignments and column widths\n const alignments = tableColumnAlignments(node);\n const widths = tableColumnWidths(node);\n\n // write colspcs\n // TODO: Columns are coming out ColWidthDefault\n output.writeArray(() => {\n alignments.forEach((align, i) => {\n output.writeArray(() => {\n output.writeToken(align);\n if (widths[i] === 0) {\n output.writeToken(PandocTokenType.ColWidthDefault);\n } else {\n output.writeToken(PandocTokenType.ColWidth, widths[i]);\n }\n });\n });\n });\n\n\n // write header row if necessary\n const headerCut = firstRow.firstChild!.type === node.type.schema.nodes.table_header ? 1 : 0;\n output.writeArray(() => {\n output.writeAttr();\n output.writeArray(() => {\n writePandocTableRow(output, firstRow, headerCut === 0);\n });\n });\n\n // write table body\n output.writeArray(() => {\n output.writeArray(() => {\n output.writeAttr();\n output.write(0);\n output.writeArray(() => { /* */ });\n // write rows\n output.writeArray(() => {\n for (let i = headerCut; i < node.childCount; i++) {\n writePandocTableRow(output, node.content.child(i));\n }\n });\n });\n });\n\n // write table footer\n output.writeArray(() => {\n output.writeAttr();\n output.writeArray(() => { /* */ });\n });\n\n\n}\n\nexport function writePandocTableCaption(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n output.write(null);\n output.writeArray(() => {\n if (!node.attrs.inactive && node.childCount > 0) {\n output.writeToken(PandocTokenType.Plain, () => {\n output.writeInlines(node.content);\n });\n }\n });\n });\n}\n\nexport function writePandocTableNodes(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n output.writeNodes(node);\n });\n}\n\nexport function writePandocTableHeaderNodes(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n if (node.textContent.length > 0) {\n output.writeNodes(node);\n } else {\n // write a paragraph containing a space (this is an attempt to fix an issue where\n // empty headers don't get correct round-tripping)\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(' ');\n });\n }\n });\n}\n\nfunction writePandocTableRow(output: PandocOutput, node: ProsemirrorNode, empty = false) {\n output.writeArray(() => {\n output.writeAttr();\n output.writeArray(() => {\n node.forEach((cellNode) => {\n output.writeArray(() => {\n output.writeAttr();\n output.writeToken(PandocTokenType.AlignDefault);\n output.write(1);\n output.write(1);\n if (!empty) {\n output.writeNode(cellNode);\n } else {\n output.writeArray(() => {\n output.writeInlines(Fragment.empty);\n });\n }\n });\n });\n });\n });\n}\n\n\nfunction columnCssAlignments(tableToken: PandocToken) {\n return tableToken.c[kTableColSpec].map((spec: any) => {\n const alignment = spec[kTableColSpecAlign];\n switch (alignment.t) {\n case PandocTokenType.AlignLeft:\n return CssAlignment.Left;\n case PandocTokenType.AlignRight:\n return CssAlignment.Right;\n case PandocTokenType.AlignCenter:\n return CssAlignment.Center;\n case PandocTokenType.AlignDefault:\n default:\n return null;\n }\n });\n}\n\nfunction columnPercents(tableToken: PandocToken): number[] {\n return tableToken.c[kTableColSpec].map((spec: any) => {\n const width = spec[kTableColSpecWidth];\n return width.t === PandocTokenType.ColWidth ? width.c : 0;\n });\n}\n","/*\n * table-columns.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\nimport { Transaction } from 'prosemirror-state';\nimport { findChildrenByType } from 'prosemirror-utils';\n\nimport { PandocTokenType } from '../../api/pandoc';\n\nimport { CssAlignment } from './table-commands';\n\nexport function tableColumnAlignments(node: ProsemirrorNode) {\n // get the first row (schema requires at least 1 row)\n const firstRow = node.firstChild!;\n\n // determine # of columns\n const cols = firstRow.childCount;\n\n // return alignments\n const alignments = new Array(cols);\n for (let i = 0; i < cols; i++) {\n const cell = firstRow.child(i);\n const align: CssAlignment = cell.attrs.align;\n switch (align) {\n case CssAlignment.Left:\n alignments[i] = PandocTokenType.AlignLeft;\n break;\n case CssAlignment.Right:\n alignments[i] = PandocTokenType.AlignRight;\n break;\n case CssAlignment.Center:\n alignments[i] = PandocTokenType.AlignCenter;\n break;\n case null:\n default:\n alignments[i] = PandocTokenType.AlignDefault;\n break;\n }\n }\n return alignments;\n}\n\nexport function tableColumnWidths(node: ProsemirrorNode) {\n // get the first row (schema requires at least 1 row)\n const firstRow = node.firstChild!;\n\n // determine # of columns\n const cols = firstRow.childCount;\n\n // width percentages\n let widths = new Array(cols).fill(0);\n\n // take note of explicitly sized columns\n const totalWidth = node.attrs.width;\n let availableWidth = totalWidth;\n let colsWithWidth = 0;\n for (let i = 0; i < cols; i++) {\n const col = firstRow.child(i);\n if (col.attrs.colwidth && col.attrs.colwidth[0]) {\n widths[i] = col.attrs.colwidth[0];\n colsWithWidth++;\n availableWidth -= widths[i];\n }\n }\n\n // allocate remaining widths if we have at least 1 sized columns (otherwise\n // we leave all of the widths at 0 which results in no sizing)\n if (colsWithWidth > 0) {\n if (availableWidth > 0) {\n const defaultWidth = availableWidth / (cols - colsWithWidth);\n for (let i = 0; i < cols; i++) {\n const col = firstRow.child(i);\n if (!col.attrs.colwidth || !col.attrs.colwidth[0]) {\n widths[i] = defaultWidth;\n }\n }\n }\n\n // convert widths to percentages\n widths = widths.map(width => width / totalWidth);\n }\n\n return widths;\n}\n\nexport function fixupTableWidths(view: EditorView) {\n return (tr: Transaction) => {\n const schema = tr.doc.type.schema;\n\n // don't do fixup if we aren't connected to the DOM\n if (!view.dom || !view.dom.isConnected) {\n return tr;\n }\n\n const tables = findChildrenByType(tr.doc, schema.nodes.table);\n for (const table of tables) {\n // get table width\n const el = view.domAtPos(table.pos).node as HTMLElement;\n const containerWidth = table.node.attrs.width || el.clientWidth;\n if (containerWidth === 0) {\n continue;\n }\n\n // resolve colpercents (read by tokenzier)\n let colpercents: number[] = table.node.attrs.colpercents;\n\n if (colpercents) {\n\n // enforce a minimum column width of 25% (otherwise hard to edit)\n // note some of this will get taken back when we adjust all columns\n // for the extra bonus given to small columns\n const kMinPercent = 0.25;\n const totalPercent = colpercents.reduce((total: number, pct: number) => {\n return total + pct;\n }, 0);\n colpercents = colpercents.map(pct => Math.max(pct, kMinPercent));\n const adjustedPercent = colpercents.reduce((total: number, pct: number) => {\n return total + pct;\n }, 0);\n const extraPercent = adjustedPercent - totalPercent;\n colpercents = colpercents.map(pct => pct - (extraPercent/colpercents.length));\n const colWidths = colpercents.map(pct => Math.floor(pct * containerWidth));\n\n // for each row\n table.node.forEach((rowNode, rowOffset, r) => {\n // for each cell\n rowNode.forEach((cellNode, cellOffset, c) => {\n const cellPos = table.pos + 1 + rowOffset + 1 + cellOffset;\n const colWidth = [colWidths[c]];\n if (colWidth !== cellNode.attrs.colwidth) {\n tr.setNodeMarkup(cellPos, cellNode.type, {\n ...cellNode.attrs,\n colwidth: colWidth,\n });\n }\n });\n });\n }\n\n if (containerWidth !== table.node.attrs.width || colpercents) {\n tr.setNodeMarkup(table.pos, schema.nodes.table, {\n ...table.node.attrs,\n width: containerWidth,\n colpercents: null,\n });\n }\n }\n return tr;\n };\n}\n","/*\n * table-capsule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, DOMParser } from 'prosemirror-model';\n\nimport {\n PandocBlockCapsuleFilter,\n PandocBlockCapsule,\n blockCapsuleParagraphTokenHandler,\n encodedBlockCapsuleRegex,\n blockCapsuleTextHandler,\n blockCapsuleSourceWithoutPrefix,\n parsePandocBlockCapsule,\n} from '../../api/pandoc_capsule';\nimport { ProsemirrorWriter, PandocToken, PandocTokenType } from '../../api/pandoc';\nimport { kHTMLFormat } from '../../api/raw';\n\nexport function tableBlockCapsuleFilter(): PandocBlockCapsuleFilter {\n const kTableBlockCapsuleType = '8EF5A772-DD63-4622-84BF-AF1995A1B2B9'.toLowerCase();\n const pagraphTokenCapsuleHandler = blockCapsuleParagraphTokenHandler(kTableBlockCapsuleType);\n const tokenRegex = encodedBlockCapsuleRegex('^', '$');\n\n return {\n type: kTableBlockCapsuleType,\n\n match: /^([\\t >]*)()([ \\t]*)$/gm,\n\n // textually enclose the capsule so that pandoc parses it as the type of block we want it to\n // (in this case we don't do anything because pandoc would have written this table as a\n // semantically standalone block)\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) => {\n return capsuleText;\n },\n\n // look for one of our block capsules within pandoc ast text (e.g. a code or raw block)\n // and if we find it, parse and return the original source code\n handleText: blockCapsuleTextHandler(kTableBlockCapsuleType, encodedBlockCapsuleRegex(undefined, undefined, 'gm')),\n\n // we are looking for a paragraph token consisting entirely of a block capsule of our type.\n // if find that then return the block capsule text\n handleToken: (tok: PandocToken) => {\n // first check for a paragraph\n const capsuleText = pagraphTokenCapsuleHandler(tok);\n if (capsuleText) {\n return capsuleText;\n }\n\n // now look for a definition list (which is what a table with a caption parses as)\n if (tok.t === PandocTokenType.DefinitionList) {\n if (tok.c.length === 1) {\n const definition = tok.c[0];\n if (definition[0][0].t === PandocTokenType.Str) {\n const term = definition[0][0].c as string;\n const match = term.match(tokenRegex);\n if (match) {\n const capsuleRecord = parsePandocBlockCapsule(term);\n if (capsuleRecord.type === kTableBlockCapsuleType) {\n return term;\n }\n }\n }\n }\n }\n\n return null;\n },\n\n // write the node as a table (parse the html)\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n // remove the source prefix\n const source = blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n\n // fallback to write as raw html\n const writeAsRawHTML = () => {\n writer.openNode(schema.nodes.raw_block, { format: kHTMLFormat });\n writer.writeText(source);\n writer.closeNode();\n };\n\n // parse the table from the string\n const parser = new window.DOMParser();\n const doc = parser.parseFromString(capsule.source, 'text/html');\n if (doc.body && doc.body.firstChild instanceof HTMLTableElement) {\n // get prosemirror dom parser\n const prosemirrorDomParser = DOMParser.fromSchema(schema);\n\n // get unparsed (by prosemirror) table\n const unparsedTable = doc.body.firstChild;\n\n // ensure that table cells all have content\n const ensureCellContent = (tag: string) => {\n const cells = unparsedTable.getElementsByTagName(tag);\n for (let i = 0; i < cells.length; i++) {\n const cell = cells.item(i)!;\n if (cell.children.length === 0) {\n cell.append(window.document.createElement('p'));\n }\n }\n };\n ensureCellContent('td');\n ensureCellContent('th');\n\n // extract caption element\n let captionElement: HTMLTableCaptionElement | null = null;\n const captionCollection = unparsedTable.getElementsByTagName('caption');\n if (captionCollection.length) {\n captionElement = captionCollection.item(0);\n if (captionElement) {\n captionElement.remove();\n }\n }\n\n // determine caption (either empty or parsed from element)\n let caption = schema.nodes.table_caption.create({ inactive: true });\n if (captionElement) {\n const captionSlice = prosemirrorDomParser.parseSlice(captionElement);\n caption = schema.nodes.table_caption.createAndFill({ inactive: false }, captionSlice.content)!;\n }\n\n // parse the prosemirror table element\n const slice = prosemirrorDomParser.parseSlice(doc.body);\n if (slice.content.firstChild && slice.content.firstChild.type === schema.nodes.table) {\n const table = slice.content.firstChild;\n writer.addNode(schema.nodes.table_container, {}, [table, caption]);\n } else {\n writeAsRawHTML();\n }\n\n // fallback to writing as raw_html (round-trip unmodified)\n } else {\n writeAsRawHTML();\n }\n },\n };\n}\n","/*\n * table-contextmenu.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey, Transaction, EditorState } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { Schema } from 'prosemirror-model';\nimport { isInTable } from 'prosemirror-tables';\n\nimport { EditorUI } from '../../api/ui';\nimport { EditorCommandId } from '../../api/command';\n\nexport class TableContextMenuPlugin extends Plugin {\n private menuVisible = false;\n\n constructor(_schema: Schema, ui: EditorUI) {\n super({\n key: new PluginKey('table-contextmenu'),\n\n props: {\n handleDOMEvents: {\n contextmenu: (view: EditorView, event: Event) => {\n // only trigger when in table\n if (!isInTable(view.state)) {\n return false;\n }\n\n const asyncShowTableContextMenu = async () => {\n const menu = [\n { command: EditorCommandId.TableAddRowBefore },\n { command: EditorCommandId.TableAddRowAfter },\n { separator: true },\n { command: EditorCommandId.TableAddColumnBefore },\n { command: EditorCommandId.TableAddColumnAfter },\n { separator: true },\n { command: EditorCommandId.TableDeleteRow },\n { command: EditorCommandId.TableDeleteColumn },\n { separator: true },\n { command: EditorCommandId.TableDeleteTable },\n { separator: true },\n {\n text: ui.context.translateText('Align Column'),\n subMenu: {\n items: [\n { command: EditorCommandId.TableAlignColumnLeft },\n { command: EditorCommandId.TableAlignColumnCenter },\n { command: EditorCommandId.TableAlignColumnRight },\n { separator: true },\n { command: EditorCommandId.TableAlignColumnDefault },\n ],\n },\n },\n { separator: true },\n { command: EditorCommandId.TableToggleHeader },\n { command: EditorCommandId.TableToggleCaption },\n ];\n\n const { clientX, clientY } = event as MouseEvent;\n await ui.display.showContextMenu!(menu, clientX, clientY);\n this.menuVisible = false;\n };\n\n if (ui.display.showContextMenu) {\n this.menuVisible = true;\n asyncShowTableContextMenu();\n event.stopPropagation();\n event.preventDefault();\n return true;\n } else {\n return false;\n }\n },\n },\n },\n\n // prevent selection while the context menu is visible (the right-click\n // that invokes the context menu ends up resetting the selection, which\n // makes the selection-based commands behave incorrectly when multiple\n // rows or columns are selected)\n filterTransaction: (tr: Transaction, state: EditorState) => {\n if (this.menuVisible && isInTable(state)) {\n return !(tr.selectionSet && !tr.docChanged && !tr.storedMarksSet);\n } else {\n return true;\n }\n },\n });\n }\n}\n","/*\n * table-paste.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey, Transaction, EditorState } from 'prosemirror-state';\nimport { Slice, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { sliceHasNode } from '../../api/slice';\n\nimport { fixupTableWidths } from './table-columns';\nimport { forChangedNodes } from '../../api/transaction';\n\nimport { kDefaultCellClasses } from './table-nodes';\n\nexport function tablePaste() {\n return new Plugin({\n key: new PluginKey('table-paste'),\n props: {\n handlePaste: (view: EditorView, _event: Event, slice: Slice) => {\n // if the slice contains a table then we handle it\n if (sliceHasNode(slice, node => node.type === node.type.schema.nodes.table)) {\n // based on https://github.com/ProseMirror/prosemirror-view/blob/fb799aae4e9dd5cfc256708a6845d76aaaf145bf/src/input.js#L503-L510\n const tr = view.state.tr.replaceSelection(slice);\n view.dispatch(\n tr\n .scrollIntoView()\n .setMeta('paste', true)\n .setMeta('tablePaste', true)\n .setMeta('uiEvent', 'paste'),\n );\n view.dispatch(fixupTableWidths(view)(view.state.tr));\n return true;\n } else {\n return false;\n }\n },\n },\n appendTransaction: (transactions: Transaction[], oldState: EditorState, newState: EditorState) => {\n // alias schema\n const schema = newState.schema;\n\n // only process table paste transactions\n if (!transactions.some(transaction => transaction.getMeta('tablePaste'))) {\n return null;\n }\n\n // cleanup table by converting the first row to header cells, ensuring that column alignments\n // are derived from the alignment of the first row, and applying the standard cell class names\n const tr = newState.tr;\n forChangedNodes(\n oldState,\n newState,\n node => node.type === node.type.schema.nodes.table,\n (node, pos) => {\n let firstRow: ProsemirrorNode;\n let currentColumn = 0;\n const columnAlignments: string[] = [];\n\n node.descendants((childNode, childPos, parent) => {\n // if this is a row then reset the current column to 0\n if (childNode.type === schema.nodes.table_row) {\n currentColumn = 0;\n }\n\n // first thing we will encounter in traveral is the first row, note that and move along to cells\n if (!firstRow) {\n // note first row\n firstRow = childNode;\n\n // children of the first row are the headers\n } else if (parent === firstRow) {\n // collect alignment (will be applied below to cells in this column)\n columnAlignments.push(childNode.attrs.align);\n\n // convert to a table header w/ default class\n const headerPos = pos + 1 + childPos;\n tr.setNodeMarkup(headerPos, schema.nodes.table_header, {\n ...childNode.attrs,\n className: kDefaultCellClasses,\n });\n\n // normal cell - apply the requisite alignment and give it the default class\n } else if (childNode.type === schema.nodes.table_cell) {\n // determine alignment\n const align = columnAlignments[currentColumn] || null;\n\n // apply markup\n const cellPos = pos + 1 + childPos;\n tr.setNodeMarkup(cellPos, schema.nodes.table_cell, {\n ...childNode.attrs,\n align,\n className: kDefaultCellClasses,\n });\n }\n\n // if this is a cell then advance the current column\n if (childNode.type === schema.nodes.table_header || childNode.type === schema.nodes.table_cell) {\n currentColumn++;\n }\n });\n },\n );\n\n if (tr.docChanged) {\n return tr;\n }\n },\n });\n}\n","/*\n * definition_list.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, DOMOutputSpec } from 'prosemirror-model';\n\nimport { PandocTokenType } from '../../api/pandoc';\nimport { ExtensionContext } from '../../api/extension';\nimport { BaseKey } from '../../api/basekeys';\n\nimport { InsertDefinitionList, InsertDefinitionDescription, InsertDefinitionTerm } from './definition_list-commands';\n\nimport {\n definitionListEnter,\n definitionListBackspace,\n definitionListTab,\n definitionListShiftTab,\n} from './definition-list-keys';\n\nimport { definitionInputRule } from './definition_list-inputrule';\n\nimport { insertDefinitionListAppendTransaction } from './definition_list-insert';\nimport {\n readPandocDefinitionList,\n writePandocDefinitionList,\n writePandocDefinitionListTerm,\n writePandocDefinitionListDescription,\n} from './definition_list-pandoc';\n\nimport './definition_list-styles.css';\nimport { emptyNodePlaceholderPlugin } from '../../api/placeholder';\n\nconst extension = (context: ExtensionContext) => {\n const { pandocExtensions, ui } = context;\n\n if (!pandocExtensions.definition_lists) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'definition_list_term',\n spec: {\n content: 'inline*',\n isolating: true,\n parseDOM: [{ tag: 'dt' }],\n toDOM(): DOMOutputSpec {\n return ['dt', { class: 'pm-definition-term' }, 0];\n },\n },\n pandoc: {\n writer: writePandocDefinitionListTerm,\n },\n },\n {\n name: 'definition_list_description',\n spec: {\n content: 'block+',\n parseDOM: [{ tag: 'dd' }],\n toDOM(): DOMOutputSpec {\n return ['dd', { class: 'pm-definition-description pm-block-border-color pm-margin-bordered' }, 0];\n },\n },\n pandoc: {\n writer: writePandocDefinitionListDescription,\n },\n },\n {\n name: 'definition_list',\n spec: {\n content: '(definition_list_term definition_list_description*)+',\n group: 'block',\n defining: true,\n parseDOM: [{ tag: 'dl' }],\n toDOM(): DOMOutputSpec {\n return ['dl', { class: 'pm-definition-list' }, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.DefinitionList,\n handler: readPandocDefinitionList,\n },\n ],\n\n writer: writePandocDefinitionList,\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new InsertDefinitionList(ui),\n new InsertDefinitionTerm(schema, ui),\n new InsertDefinitionDescription(schema),\n ];\n },\n\n baseKeys: (_schema: Schema) => {\n return [\n { key: BaseKey.Enter, command: definitionListEnter() },\n { key: BaseKey.Backspace, command: definitionListBackspace() },\n { key: BaseKey.Tab, command: definitionListTab() },\n { key: BaseKey.ShiftTab, command: definitionListShiftTab() },\n ];\n },\n\n inputRules: (_schema: Schema) => {\n return [definitionInputRule()];\n },\n\n appendTransaction: (_schema: Schema) => {\n return [insertDefinitionListAppendTransaction()];\n },\n\n plugins: (schema: Schema) => {\n return [emptyNodePlaceholderPlugin(schema.nodes.definition_list_term, () => ui.context.translateText('Term'))];\n },\n };\n};\n\nexport default extension;\n","/*\n * definition_list-commands.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeOfType, setTextSelection } from 'prosemirror-utils';\n\nimport { canInsertNode } from '../../api/node';\nimport { insertDefinitionList } from './definition_list-insert';\nimport { EditorUI } from '../../api/ui';\nimport { OmniInsertGroup } from '../../api/omni_insert';\n\nexport class InsertDefinitionList extends ProsemirrorCommand {\n constructor(ui: EditorUI) {\n super(\n EditorCommandId.DefinitionList,\n [],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (\n findParentNodeOfType(schema.nodes.definition_list)(state.selection) ||\n !canInsertNode(state, schema.nodes.definition_list)\n ) {\n return false;\n }\n\n // new definition list\n if (dispatch) {\n const tr = state.tr;\n\n // create new list\n const termText = insertTermText(ui);\n const term = schema.text(termText);\n insertDefinitionList(tr, [\n schema.nodes.definition_list_term.createAndFill({}, term),\n createDefinitionDescription(schema),\n ]);\n const start = state.selection.from;\n tr.setSelection(TextSelection.create(tr.doc, start, start + termText.length + 1)).scrollIntoView();\n dispatch(tr);\n }\n return true;\n },\n // omni insert\n {\n name: ui.context.translateText('Definition List'),\n description: ui.context.translateText('List with a definition for each item'),\n group: OmniInsertGroup.Lists,\n priority: 3,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.definition_list_dark! : ui.images.omni_insert?.definition_list!,\n },\n );\n }\n}\n\nclass InsertDefinitionListItemCommand extends ProsemirrorCommand {\n constructor(id: EditorCommandId, createFn: () => ProsemirrorNode) {\n super(id, [], (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (!findParentNodeOfType(schema.nodes.definition_list)(state.selection)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n const dlTypes = [schema.nodes.definition_list_term, schema.nodes.definition_list_description];\n const parent = findParentNodeOfType(dlTypes)(state.selection)!;\n const insertPos = parent.pos + parent.node.nodeSize;\n const insertNode = createFn();\n tr.insert(insertPos, insertNode);\n if (insertNode.textContent.length > 1) {\n tr.setSelection(TextSelection.create(tr.doc, insertPos, insertPos + insertNode.textContent.length + 1));\n } else {\n setTextSelection(insertPos, 1)(tr);\n }\n tr.scrollIntoView();\n\n dispatch(tr);\n }\n\n return true;\n });\n }\n}\n\nexport class InsertDefinitionTerm extends InsertDefinitionListItemCommand {\n constructor(schema: Schema, ui: EditorUI) {\n super(EditorCommandId.DefinitionTerm, () => {\n const term = schema.text(insertTermText(ui));\n return schema.nodes.definition_list_term.createAndFill({}, term)!;\n });\n }\n}\n\nexport class InsertDefinitionDescription extends InsertDefinitionListItemCommand {\n constructor(schema: Schema) {\n super(EditorCommandId.DefinitionDescription, () => {\n return createDefinitionDescription(schema);\n });\n }\n}\n\nfunction insertTermText(ui: EditorUI) {\n return ui.context.translateText('term');\n}\n\nfunction createDefinitionDescription(schema: Schema) {\n return schema.nodes.definition_list_description.createAndFill({}, schema.nodes.paragraph.create())!;\n}\n","/*\n * definition_list-insert.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Transaction } from 'prosemirror-state';\nimport { setTextSelection } from 'prosemirror-utils';\nimport { findChildrenByType } from 'prosemirror-utils';\nimport { trTransform } from '../../api/transaction';\nimport { Transform } from 'prosemirror-transform';\n\nexport function insertDefinitionList(tr: Transaction, items: ProsemirrorNode[]) {\n const schema = items[0].type.schema;\n const definitionList = schema.nodes.definition_list.createAndFill({}, items)!;\n const prevCursor = tr.selection.to;\n tr.replaceSelectionWith(definitionList);\n setTextSelection(tr.mapping.map(prevCursor) - 1, -1)(tr).scrollIntoView();\n return tr;\n}\n\nexport function insertDefinitionListAppendTransaction() {\n return {\n name: 'definition-list-join',\n nodeFilter: (node: ProsemirrorNode) => node.type === node.type.schema.nodes.definition_list,\n append: (tr: Transaction) => {\n // if a transaction creates 2 adjacent definition lists then join them\n trTransform(tr, joinDefinitionListsTransform);\n },\n };\n}\n\nfunction joinDefinitionListsTransform(tr: Transform) {\n const nodeType = tr.doc.type.schema.nodes.definition_list;\n const lists = findChildrenByType(tr.doc, nodeType, true);\n for (const list of lists) {\n // NOTE: no mapping (checking for deletion + getting the updated\n // position) is required here because we only ever do one transform\n // (see return after tr.join below)\n const listPos = tr.doc.resolve(list.pos + 1);\n const listIndex = listPos.index(listPos.depth - 1);\n const listParent = listPos.node(listPos.depth - 1);\n if (listIndex + 1 < listParent.childCount) {\n const nextNode = listParent.child(listIndex + 1);\n if (nextNode.type === nodeType) {\n tr.join(list.pos + list.node.nodeSize);\n return;\n }\n }\n }\n}\n","/*\n * definition_list-keys.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport {\n findParentNodeOfType,\n findParentNodeOfTypeClosestToPos,\n setTextSelection,\n hasParentNodeOfType,\n ContentNodeWithPos,\n} from 'prosemirror-utils';\n\nimport { isLastChild, isOnlyChild } from '../../api/position';\n\nexport function definitionListEnter() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // process if we are within a definition list\n const schema = state.schema;\n const parentDL = findParentNodeOfType(schema.nodes.definition_list)(state.selection);\n if (!parentDL) {\n return false;\n }\n\n // handle only empty selections\n if (!state.selection.empty) {\n return false;\n }\n\n // handle enter in either a term or definition\n const parentTerm = findParentNodeOfType(schema.nodes.definition_list_term)(state.selection);\n if (parentTerm) {\n return termEnter(parentTerm, state, dispatch);\n\n // enter in trailing empty description paragraph (append a term)\n } else if (isTrailingEmptyParagraph(state)) {\n if (dispatch) {\n endOfDescriptionEnter(state, dispatch);\n }\n return true;\n } else {\n return false;\n }\n };\n}\n\nexport function definitionListBackspace() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // process if we are within a definition item\n const schema = state.schema;\n const dlTypes = [schema.nodes.definition_list_term, schema.nodes.definition_list_description];\n const parentTerm = findParentNodeOfType(dlTypes)(state.selection);\n if (!parentTerm) {\n return false;\n }\n\n if (parentTerm.node.type === schema.nodes.definition_list_term) {\n // if it's empty\n if (parentTerm.node.childCount === 0) {\n if (dispatch) {\n emptyTermBackspace(state, dispatch);\n }\n return true;\n }\n } else {\n // if the enclosing description is empty then delete it\n if (parentTerm.node.textContent.length === 0) {\n if (dispatch) {\n emptyDescriptionBackspace(parentTerm, state, dispatch);\n }\n\n return true;\n }\n }\n\n return false;\n };\n}\n\nexport function definitionListTab() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // process if we are within a definition_term\n const schema = state.schema;\n const dlTypes = [schema.nodes.definition_list_term, schema.nodes.definition_list_description];\n const parentTerm = findParentNodeOfType(dlTypes)(state.selection);\n if (!parentTerm) {\n return false;\n }\n\n // advance past node\n if (dispatch) {\n const tr = state.tr;\n const advancePos = parentTerm.pos + parentTerm.node.nodeSize;\n setTextSelection(advancePos, 1)(tr).scrollIntoView();\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function definitionListShiftTab() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // process if we are within a definition_term\n const schema = state.schema;\n const dlTypes = [schema.nodes.definition_list_term, schema.nodes.definition_list_description];\n const parentTerm = findParentNodeOfType(dlTypes)(state.selection);\n if (!parentTerm) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n const backwardPos = state.doc.resolve(parentTerm.pos - 1);\n const prevNode = findParentNodeOfTypeClosestToPos(backwardPos, dlTypes);\n if (prevNode) {\n setTextSelection(prevNode.start, 1)(tr).scrollIntoView();\n } else {\n const listNode = findParentNodeOfType(schema.nodes.definition_list)(tr.selection)!;\n setTextSelection(listNode.pos, -1)(tr).scrollIntoView();\n }\n\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nfunction termEnter(term: ContentNodeWithPos, state: EditorState, dispatch?: (tr: Transaction) => void) {\n const schema = state.schema;\n const $head = state.selection.$head;\n\n // only handle empty selections\n if (!state.selection.empty) {\n return false;\n }\n\n // if we are empty then it's an exit (delete the term)\n const isEmpty = term.node.textContent.length === 0;\n if (isEmpty) {\n if (dispatch) {\n const tr = state.tr;\n tr.deleteRange(term.pos, term.pos + term.node.nodeSize);\n tr.replaceSelectionWith(schema.nodes.paragraph.create());\n setTextSelection(tr.mapping.map(state.selection.from), 1)(tr);\n dispatch(tr);\n }\n return true;\n\n // variable handling for non-empty\n } else {\n // selection at the beginning means insert another term above\n if ($head.parentOffset === 0) {\n if (dispatch) {\n const tr = state.tr;\n const insertPos = tr.selection.$head.before($head.depth);\n tr.insert(insertPos, schema.nodes.definition_list_term.create());\n dispatch(tr);\n }\n return true;\n\n // selection at the end means insert a description below\n } else if ($head.parentOffset === term.node.textContent.length) {\n if (dispatch) {\n const tr = state.tr;\n const insertPos = tr.selection.$head.after($head.depth);\n tr.insert(\n insertPos,\n schema.nodes.definition_list_description.createAndFill({}, schema.nodes.paragraph.create())!,\n );\n setTextSelection(insertPos, 1)(tr).scrollIntoView();\n dispatch(tr);\n }\n return true;\n }\n }\n\n return false;\n}\n\nfunction emptyTermBackspace(state: EditorState, dispatch: (tr: Transaction) => void) {\n const { $head } = state.selection;\n const tr = state.tr;\n // if it's the only child then delete the entire list\n if (isOnlyChild($head)) {\n const start = $head.start($head.depth - 1) - 1;\n tr.deleteRange(start, start + $head.node($head.depth - 1).nodeSize);\n } else {\n const start = $head.start($head.depth) - 1;\n tr.deleteRange(start, start + $head.node($head.depth).nodeSize);\n }\n dispatch(tr);\n}\n\nfunction endOfDescriptionEnter(state: EditorState, dispatch: (tr: Transaction) => void) {\n const schema = state.schema;\n const { $head } = state.selection;\n const selectionNode = $head.node($head.depth);\n\n const tr = state.tr;\n\n // if the parent description is empty then delete it\n let start = null;\n const descriptionNode = $head.node($head.depth - 1);\n if (descriptionNode.textContent.trim().length === 0) {\n start = $head.start($head.depth - 1) - 1;\n tr.deleteRange(start, start + descriptionNode.nodeSize);\n\n // only if at very end\n if (isLastChild($head, 2)) {\n const insertPos = tr.mapping.map($head.after($head.depth - 2));\n tr.insert(insertPos, schema.nodes.paragraph.create());\n setTextSelection(insertPos, 1)(tr).scrollIntoView();\n }\n\n // otherwise just delete the paragraph and insert a term\n } else {\n start = $head.start($head.depth) - 1;\n tr.deleteRange(start, start + selectionNode.nodeSize);\n start = tr.mapping.map(start);\n tr.insert(start + 1, schema.nodes.definition_list_term.create());\n setTextSelection(start, 1)(tr).scrollIntoView();\n }\n\n dispatch(tr);\n}\n\nfunction emptyDescriptionBackspace(\n description: ContentNodeWithPos,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n) {\n const tr = state.tr;\n tr.deleteRange(description.pos, description.pos + description.node.nodeSize);\n dispatch(tr);\n}\n\nfunction isTrailingEmptyParagraph(state: EditorState) {\n const { $head } = state.selection;\n const selectionNode = $head.node($head.depth);\n const isParagraph = selectionNode.type === state.schema.nodes.paragraph;\n const isEmpty = selectionNode.textContent.trim().length === 0;\n return isParagraph && isEmpty && isLastChild($head);\n}\n\n// eslint-disable-next-line\nfunction selectionCrossesListBoundary(state: EditorState) {\n const { $head, $anchor } = state.selection;\n const headInDL = hasParentNodeOfType(state.schema.nodes.definition_list)(TextSelection.near($head));\n const anchorInDL = hasParentNodeOfType(state.schema.nodes.definition_list)(TextSelection.near($anchor));\n return headInDL !== anchorInDL;\n}\n","/*\n * definition_list-inputrule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { InputRule } from 'prosemirror-inputrules';\nimport { EditorState } from 'prosemirror-state';\nimport { setTextSelection, findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';\n\nimport { insertDefinitionList } from './definition_list-insert';\n\nexport function definitionInputRule() {\n return new InputRule(/^:[ ]+$/, (state: EditorState, match: string[], start: number, end: number) => {\n const schema = state.schema;\n\n // if we are inside a definiition list description this means start a new description\n const { $head } = state.selection;\n const container = $head.node($head.depth - 1);\n const parent = $head.node($head.depth);\n\n // must be just ': '\n if (parent.textContent.trim() !== ':') {\n return null;\n }\n\n // check for : within a definition list description\n if (container.type === schema.nodes.definition_list_description && parent.type === schema.nodes.paragraph) {\n const tr = state.tr;\n const startPos = $head.start($head.depth) - 1;\n tr.deleteRange(startPos, startPos + $head.node($head.depth).nodeSize);\n const insertPos = tr.mapping.map(startPos) + 1;\n tr.insert(\n insertPos,\n schema.nodes.definition_list_description.createAndFill({}, schema.nodes.paragraph.create())!,\n );\n setTextSelection(insertPos, 1)(tr).scrollIntoView();\n return tr;\n\n // check for : in a paragraph immediately after another paragraph\n } else if (container.type !== schema.nodes.definition_list_description && isParagraphAfterParagraph(state)) {\n const prevPara = findParentNodeOfTypeClosestToPos(state.doc.resolve(start - 2), schema.nodes.paragraph);\n if (prevPara) {\n const tr = state.tr;\n tr.deleteRange(prevPara.start, end);\n insertDefinitionList(tr, [\n schema.nodes.definition_list_term.createAndFill({}, prevPara.node.content)!,\n schema.nodes.definition_list_description.createAndFill({}, schema.nodes.paragraph.create())!,\n ]);\n return tr;\n } else {\n return null;\n }\n } else {\n return null;\n }\n });\n}\n\nfunction isParagraphAfterParagraph(state: EditorState) {\n const schema = state.schema;\n const { $head } = state.selection;\n\n // check if the selection is in a paragraph\n const selectionInParagraph = $head.node($head.depth).type === schema.nodes.paragraph;\n if (!selectionInParagraph) {\n return false;\n }\n\n // check if the previous node is a paragraph\n const parent = $head.node($head.depth - 1);\n const parentIndex = $head.index($head.depth - 1);\n return parentIndex > 0 && parent.child(parentIndex - 1).type === schema.nodes.paragraph;\n}\n","/*\n * position.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { ResolvedPos } from 'prosemirror-model';\n\nexport function isOnlyChild(pos: ResolvedPos, depthOffset = 1) {\n return pos.node(pos.depth - depthOffset).childCount === 1;\n}\n\nexport function isLastChild(pos: ResolvedPos, depthOffset = 1) {\n return pos.index(pos.depth - depthOffset) === pos.node(pos.depth - depthOffset).childCount - 1;\n}\n","/*\n * definition_list-pandoc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { ProsemirrorWriter, PandocToken, PandocOutput, PandocTokenType } from '../../api/pandoc';\n\nexport function readPandocDefinitionList(schema: Schema) {\n return (writer: ProsemirrorWriter, tok: PandocToken) => {\n writer.openNode(schema.nodes.definition_list, {});\n\n const definitions = tok.c;\n definitions.forEach((definition: [PandocToken[], PandocToken[][]]) => {\n const term = definition[0];\n writer.openNode(schema.nodes.definition_list_term, {});\n writer.writeTokens(term);\n writer.closeNode();\n\n const descriptions = definition[1];\n descriptions.forEach(description => {\n writer.openNode(schema.nodes.definition_list_description, {});\n writer.writeTokens(description);\n writer.closeNode();\n });\n });\n writer.closeNode();\n };\n}\n\nexport function writePandocDefinitionList(output: PandocOutput, node: ProsemirrorNode) {\n output.writeToken(PandocTokenType.DefinitionList, () => {\n // collect terms and descriptions\n const currentDefinition: {\n term?: ProsemirrorNode;\n descriptions: ProsemirrorNode[];\n } = { descriptions: new Array() };\n\n // functions to manipulate current definition\n function writeCurrent() {\n if (currentDefinition.term) {\n output.writeArray(() => {\n output.writeNode(currentDefinition.term!);\n output.writeArray(() => {\n currentDefinition.descriptions.forEach(description => {\n output.writeNode(description);\n });\n });\n });\n }\n }\n\n // write the list\n node.forEach(child => {\n if (child.type === child.type.schema.nodes.definition_list_term) {\n writeCurrent();\n currentDefinition.term = child;\n currentDefinition.descriptions = [];\n } else {\n currentDefinition.descriptions.push(child);\n }\n });\n writeCurrent();\n });\n}\n\nexport function writePandocDefinitionListTerm(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n output.writeInlines(node.content);\n });\n}\n\nexport function writePandocDefinitionListDescription(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n output.writeNodes(node);\n });\n}\n","/*\n * shortcode_block.ts\n *\n * Copyright (C) 2019-20 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { PandocOutput, PandocTokenType, PandocToken, stringifyTokens, ProsemirrorWriter } from '../api/pandoc';\n\nimport { kHugoDocType, kQuartoDocType } from '../api/format';\n\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { codeNodeSpec } from '../api/code';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { canInsertNode } from '../api/node';\nimport { kShortcodeRegEx } from '../api/shortcode';\nimport {\n PandocBlockCapsuleFilter,\n blockCapsuleParagraphTokenHandler,\n encodedBlockCapsuleRegex,\n PandocBlockCapsule,\n blockCapsuleTextHandler,\n blockCapsuleSourceWithoutPrefix,\n} from '../api/pandoc_capsule';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { format } = context;\n\n // return null if no shortcodes\n if (!format.hugoExtensions.shortcodes) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'shortcode_block',\n\n spec: {\n ...codeNodeSpec(),\n attrs: {},\n parseDOM: [\n {\n tag: \"div[class*='shortcode-block']\",\n preserveWhitespace: 'full',\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return ['div', { class: 'shortcode-block pm-fixedwidth-font pm-code-block pm-markup-text-color' }, 0];\n },\n },\n\n code_view: {\n lang: () => 'text',\n borderColorClass: 'pm-raw-block-border',\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.shortcode_block,\n tags: () => ['shortcode'],\n editFn: () => () => false,\n }),\n\n pandoc: {\n // unroll shortcode from paragraph with single shortcode\n blockReader: (schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) => {\n if (isParaWrappingShortcode(tok)) {\n const text = stringifyTokens(tok.c);\n writer.addNode(schema.nodes.shortcode_block, {}, [schema.text(text)]);\n return true;\n } else {\n return false;\n }\n },\n\n // capture shortcuts w/ begin/end tags\n blockCapsuleFilter: shortcodeBlockCapsuleFilter(),\n\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(node.content);\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n // only create command for hugo anq quarto doc types\n if (!format.docTypes.includes(kHugoDocType) && \n !format.docTypes.includes(kQuartoDocType)) {\n return [];\n }\n\n return [\n new ProsemirrorCommand(\n EditorCommandId.Shortcode,\n [],\n (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // enable/disable command\n if (!canInsertNode(state, schema.nodes.shortcode_block)) {\n return false;\n }\n if (dispatch) {\n const tr = state.tr;\n const shortcode = '{{< >}}';\n const shortcodeNode = schema.nodes.shortcode_block.create({}, schema.text(shortcode));\n tr.replaceSelectionWith(shortcodeNode);\n setTextSelection(tr.mapping.map(state.selection.from) - shortcode.length / 2 - 1)(tr);\n dispatch(tr);\n }\n return true;\n },\n ),\n ];\n },\n };\n};\n\nfunction isParaWrappingShortcode(tok: PandocToken) {\n if (tok.t === PandocTokenType.Para) {\n // qualify that this paragraph has text that begins with {{< (so that\n // we don't end up scanning every token of every paragraph )\n const children: PandocToken[] = tok.c;\n if (tok.c.length > 1) {\n const [first, second] = tok.c;\n const firstText = first.t === PandocTokenType.Str ? first.c : second.c;\n if (typeof firstText === 'string' && firstText.startsWith('{{<')) {\n const text = stringifyTokens(children);\n return !!text.match(kShortcodeRegEx);\n }\n }\n }\n return false;\n}\n\nexport function shortcodeBlockCapsuleFilter(): PandocBlockCapsuleFilter {\n const kShortcodeBlockCapsuleType = 'B65B58FD-D707-4C30-8C97-3D99ACF9A157'.toLowerCase();\n\n return {\n type: kShortcodeBlockCapsuleType,\n\n // eslint-disable-next-line no-useless-escape\n match: /^([\\t >]*)(\\{\\{<\\s+([^\\/][^\\t ]+).*?>\\}\\}[ \\t]*\\n(?![ \\t]*\\n)[\\W\\w]*?\\n[\\t >]*\\{\\{<\\s+\\/\\3\\s+>\\}\\})([ \\t]*)$/gm,\n\n extract: (_match: string, p1: string, p2: string, _p3: string, p4: string) => {\n return {\n prefix: p1,\n source: p2,\n suffix: p4,\n };\n },\n\n // textually enclose the capsule so that pandoc parses it as the type of block we want it to\n // (in this case we don't do anything because pandoc would have written this table as a\n // semantically standalone block)\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) => {\n return capsuleText;\n },\n\n // look for one of our block capsules within pandoc ast text (e.g. a code or raw block)\n // and if we find it, parse and return the original source code\n handleText: blockCapsuleTextHandler(\n kShortcodeBlockCapsuleType,\n encodedBlockCapsuleRegex(undefined, undefined, 'gm'),\n ),\n\n // we are looking for a paragraph token consisting entirely of a block capsule of our type.\n // if find that then return the block capsule text\n handleToken: blockCapsuleParagraphTokenHandler(kShortcodeBlockCapsuleType),\n\n // write the node\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n // remove the source prefix\n const source = blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n\n // write the node\n writer.addNode(schema.nodes.shortcode_block, {}, [schema.text(source)]);\n },\n };\n}\n\nexport default extension;\n","/*\n * html_preserve.ts\n *\n * Copyright (C) 2019-20 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\n\nimport { PandocOutput, PandocTokenType, ProsemirrorWriter } from '../api/pandoc';\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { codeNodeSpec } from '../api/code';\n\nimport {\n PandocBlockCapsuleFilter,\n blockCapsuleParagraphTokenHandler,\n encodedBlockCapsuleRegex,\n PandocBlockCapsule,\n blockCapsuleTextHandler,\n blockCapsuleSourceWithoutPrefix,\n} from '../api/pandoc_capsule';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { format } = context;\n\n return {\n nodes: [\n {\n name: 'html_preserve',\n\n spec: {\n ...codeNodeSpec(),\n attrs: {},\n parseDOM: [\n {\n tag: \"div[class*='pm-html-preserve']\",\n preserveWhitespace: 'full',\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return ['div', { class: 'pm-html-preserve pm-fixedwidth-font pm-code-block pm-markup-text-color' }, 0];\n },\n },\n\n code_view: {\n lang: () => 'html',\n borderColorClass: 'pm-raw-block-border',\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.html_preserve,\n tags: () => ['html_preserve'],\n editFn: () => () => false,\n }),\n\n pandoc: {\n // capture shortcuts w/ begin/end tags\n blockCapsuleFilter: htmlPreserveBlockCapsuleFilter(),\n\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(node.content);\n });\n },\n },\n },\n ],\n };\n};\n\nexport function htmlPreserveBlockCapsuleFilter(): PandocBlockCapsuleFilter {\n const kHtmlPreserveBlockCapsuleType = '83CFCBF3-0429-4822-AAC6-D6F31591AEA8'.toLowerCase();\n\n return {\n type: kHtmlPreserveBlockCapsuleType,\n\n // eslint-disable-next-line no-useless-escape\n match: /^([\\t >]*)([\\W\\w]*?)([ \\t]*)$/gm,\n\n extract: (_match: string, p1: string, p2: string, p3: string) => {\n return {\n prefix: p1,\n source: p2,\n suffix: p3,\n };\n },\n\n // textually enclose the capsule so that pandoc parses it as the type of block we want it to\n // (in this case we don't do anything because pandoc would have written this as a\n // semantically standalone block)\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) => {\n return capsuleText;\n },\n\n // look for one of our block capsules within pandoc ast text (e.g. a code or raw block)\n // and if we find it, parse and return the original source code\n handleText: blockCapsuleTextHandler(\n kHtmlPreserveBlockCapsuleType,\n encodedBlockCapsuleRegex(undefined, undefined, 'gm'),\n ),\n\n // we are looking for a paragraph token consisting entirely of a block capsule of our type.\n // if find that then return the block capsule text\n handleToken: blockCapsuleParagraphTokenHandler(kHtmlPreserveBlockCapsuleType),\n\n // write the node\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n // remove the source prefix\n const source = blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n\n // write the node\n writer.addNode(schema.nodes.html_preserve, {}, [schema.text(source)]);\n },\n };\n}\n\nexport default extension;\n","/*\n * ace.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport {\n Plugin,\n PluginKey,\n TextSelection,\n EditorState,\n Transaction,\n Selection,\n NodeSelection,\n} from 'prosemirror-state';\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView, NodeView, Decoration } from 'prosemirror-view';\nimport { undo, redo } from 'prosemirror-history';\nimport { exitCode } from 'prosemirror-commands';\nimport { keymap } from 'prosemirror-keymap';\nimport { undoInputRule } from 'prosemirror-inputrules';\nimport { GapCursor } from 'prosemirror-gapcursor';\n\nimport { CodeViewOptions, editingRootNode } from '../../api/node';\nimport { insertParagraph } from '../../api/paragraph';\nimport { EditorUI, ChunkEditor } from '../../api/ui';\nimport { EditorOptions } from '../../api/options';\nimport { EditorEvents } from '../../api/events';\nimport { ExtensionContext, ExtensionFn } from '../../api/extension';\nimport { DispatchEvent, ResizeEvent, ScrollEvent } from '../../api/event-types';\nimport { verticalArrowCanAdvanceWithinTextBlock } from '../../api/basekeys';\nimport { handleArrowToAdjacentNode } from '../../api/cursor';\n\nimport { selectAll } from '../../behaviors/select_all';\nimport { findPluginState } from '../../behaviors/find';\n\nimport { AceRenderQueue } from './ace-render-queue';\nimport { AcePlaceholder } from './ace-placeholder';\nimport { AceNodeViews } from './ace-node-views';\n\nimport zenscroll from 'zenscroll';\n\nimport './ace.css';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { setTextSelection } from 'prosemirror-utils';\n\nconst plugin = new PluginKey('ace');\n\nexport function aceExtension(codeViews: { [key: string]: CodeViewOptions }): ExtensionFn {\n\n return (context: ExtensionContext) => {\n // shared services\n const aceRenderQueue = new AceRenderQueue(context.events);\n const aceNodeViews = new AceNodeViews();\n\n // build nodeViews\n const nodeTypes = Object.keys(codeViews);\n const nodeViews: {\n [name: string]: (node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) => NodeView;\n } = {};\n nodeTypes.forEach(name => {\n nodeViews[name] = (node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) => {\n return new AceNodeView(\n node,\n view,\n getPos as () => number,\n context,\n codeViews[name],\n aceRenderQueue,\n aceNodeViews,\n );\n };\n });\n\n const activeAceNodeViewCommand = (fn: (view: AceNodeView) => void) => {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const activeView = aceNodeViews.activeNodeView();\n if (!activeView) {\n return false;\n }\n if (dispatch) {\n fn(activeView);\n }\n return true;\n };\n };\n\n return {\n plugins: () => [\n new Plugin({\n key: plugin,\n props: {\n nodeViews,\n handleDOMEvents: {\n click: aceNodeViews.handleClick.bind(aceNodeViews),\n },\n },\n }),\n // arrow in and out of editor\n keymap({\n ArrowLeft: arrowHandler('left', nodeTypes),\n ArrowRight: arrowHandler('right', nodeTypes),\n ArrowUp: arrowHandler('up', nodeTypes),\n ArrowDown: arrowHandler('down', nodeTypes),\n }),\n ],\n commands: () => [\n new ProsemirrorCommand(EditorCommandId.ExpandChunk, [], activeAceNodeViewCommand(nodeView => {\n nodeView.setExpanded(true); \n })),\n new ProsemirrorCommand(EditorCommandId.CollapseChunk, [], activeAceNodeViewCommand(nodeView => {\n nodeView.setExpanded(false);\n })),\n ]\n };\n };\n}\n\n/**\n * Represents a selection that was applied prior to the editor rendering (needs\n * to be applied when the editor rendering completes)\n */\nclass QueuedSelection {\n constructor(public readonly anchor: number, public readonly head: number) {}\n}\n\nexport class AceNodeView implements NodeView {\n public readonly getPos: () => number;\n public node: ProsemirrorNode;\n public readonly dom: HTMLElement;\n\n private readonly view: EditorView;\n private readonly ui: EditorUI;\n private readonly nodeViews: AceNodeViews;\n private readonly renderQueue: AceRenderQueue;\n private chunk?: ChunkEditor;\n private aceEditor?: AceAjax.Editor;\n private editSession?: AceAjax.IEditSession;\n private readonly editorOptions: EditorOptions;\n private readonly options: CodeViewOptions;\n private readonly events: EditorEvents;\n\n private updating: boolean;\n private escaping: boolean;\n private gapCursorPending: boolean;\n private mouseDown: boolean;\n private mode: string;\n private findMarkers: number[];\n private selectionMarker: number | null;\n private queuedSelection: QueuedSelection | null;\n private resizeTimer: number;\n private renderedWidth: number;\n private scrollRow: number;\n private cursorDirty: boolean;\n\n private readonly subscriptions: VoidFunction[];\n\n constructor(\n node: ProsemirrorNode,\n view: EditorView,\n getPos: () => number,\n context: ExtensionContext,\n options: CodeViewOptions,\n renderQueue: AceRenderQueue,\n nodeViews: AceNodeViews,\n ) {\n // context\n const ui = context.ui;\n const editorOptions = context.options;\n\n // Store for later\n this.node = node;\n this.view = view;\n this.ui = context.ui;\n this.events = context.events;\n this.getPos = getPos;\n\n // Initialize values\n this.mode = '';\n this.escaping = false;\n this.gapCursorPending = false;\n this.findMarkers = [];\n this.selectionMarker = null;\n this.renderQueue = renderQueue;\n this.nodeViews = nodeViews;\n this.queuedSelection = null;\n this.subscriptions = [];\n this.resizeTimer = 0;\n this.renderedWidth = 0;\n this.scrollRow = -1;\n this.cursorDirty = false;\n this.mouseDown = false;\n\n // options\n this.editorOptions = editorOptions;\n this.options = options;\n\n // The editor's outer node is our DOM representation\n this.dom = document.createElement('div');\n this.dom.classList.add('pm-code-editor');\n this.dom.classList.add('pm-ace-editor');\n this.dom.classList.add('pm-ace-editor-inactive');\n this.dom.classList.add(options.borderColorClass || 'pm-block-border-color');\n if (this.options.classes) {\n this.options.classes.forEach(className => this.dom.classList.add(className));\n }\n\n // Create a preview of the text (will be shown until editor is fully initialized)\n const preview = new AcePlaceholder(node.textContent);\n this.dom.appendChild(preview.getElement());\n\n // Style the first line differently if requested\n if (options.firstLineMeta) {\n this.dom.classList.add('pm-ace-first-line-meta');\n }\n\n // update mode\n this.updateMode();\n\n // observe all editor dispatches\n this.subscriptions.push(\n this.events.subscribe(DispatchEvent, (tr: Transaction | undefined) => {\n if (tr) {\n this.onEditorDispatch(tr);\n }\n }),\n );\n\n // This flag is used to avoid an update loop between the outer and\n // inner editor\n this.updating = false;\n\n if (renderQueue.isRenderCompleted()) {\n // All editors have been rendered and the queue is empty; initialize\n // directly (this happens when e.g., inserting code chunks interactively\n // after the document is fully rendered)\n this.initEditor();\n } else {\n // Rendering is not complete; add to the queue\n renderQueue.add(this);\n }\n\n // add ourselves to the list of all ace node views\n this.nodeViews.add(this);\n }\n\n public destroy() {\n // Unsubscribe from events\n this.subscriptions.forEach(unsub => unsub());\n\n // Clean up attached editor instance when it's removed from the DOM\n if (this.chunk) {\n this.chunk.destroy();\n }\n\n // remove ourselves from the list of all ace node views\n this.nodeViews.remove(this);\n }\n\n public update(node: ProsemirrorNode, _decos: Decoration[]) {\n if (node.type !== this.node.type) {\n return false;\n }\n if (!this.editSession) {\n return false;\n }\n this.node = node;\n this.updateMode();\n\n const AceRange = window.require('ace/range').Range;\n const doc = this.editSession.getDocument();\n\n const change = computeChange(this.editSession.getValue(), node.textContent);\n if (change) {\n this.updating = true;\n const range = AceRange.fromPoints(doc.indexToPosition(change.from, 0), doc.indexToPosition(change.to, 0));\n this.editSession.replace(range, change.text);\n this.updating = false;\n }\n\n // Clear any previously rendered find markers\n this.findMarkers.forEach(id => {\n if (this.editSession) {\n this.editSession.removeMarker(id);\n }\n });\n this.findMarkers = [];\n\n // Get all of the find results inside this node\n const decorations = findPluginState(this.view.state);\n if (decorations) {\n const decos = decorations?.find(this.getPos(), this.getPos() + node.nodeSize - 1);\n\n // If we got results, render them\n if (decos) {\n decos.forEach((deco: any) => {\n if (!this.editSession) {\n return;\n }\n\n // Calculate from/to position for result marker (adjust for zero based column)\n const markerFrom = doc.indexToPosition(deco.from - this.getPos(), 0);\n markerFrom.column--;\n const markerTo = doc.indexToPosition(deco.to - this.getPos(), 0);\n markerTo.column--;\n const range = AceRange.fromPoints(markerFrom, markerTo);\n\n // Create the search result marker and add it to the rendered set\n const markerId = this.editSession.addMarker(range, deco.type.attrs.class, 'result', true);\n this.findMarkers.push(markerId);\n });\n }\n }\n\n // Ensure that the chunk is expanded if it contains find markers (so user can see search results)\n if (this.chunk && this.findMarkers.length > 0) {\n this.chunk.setExpanded(true);\n }\n\n return true;\n }\n\n public setSelection(anchor: number, head: number) {\n // We haven't drawn the editor yet, so queue the selection until we can\n // apply it.\n if (!this.aceEditor || !this.editSession) {\n this.queuedSelection = new QueuedSelection(anchor, head);\n return;\n }\n if (!this.escaping && !this.gapCursorPending) {\n this.aceEditor.focus();\n }\n this.updating = true;\n const doc = this.editSession.getDocument();\n const AceRange = window.require('ace/range').Range;\n const range = AceRange.fromPoints(doc.indexToPosition(anchor, 0), doc.indexToPosition(head, 0));\n this.editSession.getSelection().setSelectionRange(range);\n this.updating = false;\n }\n\n public setGapCursorPending(pending: boolean) {\n this.gapCursorPending = pending;\n }\n\n public isFocused() {\n return this.aceEditor && this.aceEditor.isFocused();\n }\n\n public setExpanded(expanded: boolean) {\n if (this.chunk) {\n this.chunk.setExpanded(expanded);\n }\n }\n\n public getExpanded() {\n if (this.chunk) {\n return this.chunk.getExpanded();\n } else {\n return false;\n }\n }\n\n public selectNode() {\n if (this.aceEditor) {\n this.aceEditor.focus();\n }\n }\n\n public stopEvent() {\n return true;\n }\n\n public ignoreMutation(_mutation: MutationRecord | { type: 'selection'; target: Element }) {\n return true;\n }\n\n private onEditorDispatch(tr: Transaction) {\n if (!tr.docChanged && tr.selectionSet) {\n this.highlightSelectionAcross(tr.selection); \n }\n }\n\n private forwardSelection() {\n // ignore if we don't have focus\n if (!this.chunk || !this.chunk.element.contains(window.document.activeElement)) {\n return;\n }\n\n const state = this.view.state;\n const selection = this.asProseMirrorSelection(state.doc);\n if (selection && !selection.eq(state.selection)) {\n this.view.dispatch(state.tr.setSelection(selection));\n }\n }\n\n private asProseMirrorSelection(doc: ProsemirrorNode) {\n if (!this.editSession) {\n return null;\n }\n const offset = this.getPos() + 1;\n const session = this.editSession;\n const range = session.getSelection().getRange();\n const anchor = session.getDocument().positionToIndex(range.start, 0) + offset;\n const head = session.getDocument().positionToIndex(range.end, 0) + offset;\n return TextSelection.create(doc, anchor, head);\n }\n\n // detect the entire editor being selected across, in which case we add an ace marker\n // visually indicating that the text is selected\n private highlightSelectionAcross(selection: Selection) {\n if (!this.aceEditor || !this.editSession) {\n return;\n }\n\n // clear any existing selection marker\n if (this.selectionMarker !== null) {\n this.editSession.removeMarker(this.selectionMarker);\n this.selectionMarker = null;\n }\n\n // check for selection spanning us\n const pos = this.getPos();\n if (selection.from < pos && selection.to > pos + this.node.nodeSize) {\n const doc = this.editSession.getDocument();\n const AceRange = window.require('ace/range').Range;\n const range = AceRange.fromPoints(doc.indexToPosition(0, 0), doc.indexToPosition(this.node.nodeSize - 1, 0));\n this.selectionMarker = this.editSession.addMarker(range, 'pm-selected-text', 'selection', true);\n }\n }\n\n private valueChanged() {\n const change = computeChange(this.node.textContent, this.getContents());\n if (change) {\n // update content\n const start = this.getPos() + 1;\n if (!isNaN(start)) {\n const tr = this.view.state.tr.replaceWith(\n start + change.from,\n start + change.to,\n change.text ? this.node.type.schema.text(change.text) : null,\n );\n this.view.dispatch(tr);\n }\n }\n this.updateMode();\n }\n\n /**\n * Scrolls a child of the editor chunk into view.\n *\n * @param ele The child to scroll.\n */\n private scrollIntoView(ele: HTMLElement) {\n const editingRoot = editingRootNode(this.view.state.selection);\n if (editingRoot) {\n const container = this.view.nodeDOM(editingRoot.pos) as HTMLElement;\n const scroller = zenscroll.createScroller(container);\n\n let top = 0;\n\n // The DOM node representing this editor chunk (this.dom) may not be a\n // direct child of the scrollable container. If it isn't, walk up the DOM\n // tree until we find the main content node (pm-content), which is the\n // offset parent against which we need to compute scroll position.\n let scrollParent = this.dom;\n while (scrollParent.offsetParent != null &&\n !scrollParent.offsetParent.classList.contains(\"pm-content\"))\n {\n top += scrollParent.offsetTop;\n scrollParent = scrollParent.offsetParent as HTMLElement;\n }\n\n // Since the element we want to scroll into view is not a direct child of\n // the scrollable container, do a little math to figure out the\n // destination scroll position.\n top += ele.offsetTop + scrollParent.offsetTop;\n const bottom = top + ele.offsetHeight;\n const viewTop = container.scrollTop;\n const viewBottom = container.scrollTop + container.offsetHeight;\n\n // Scroll based on element's current position and size\n if (top > viewTop && bottom < viewBottom) {\n // Element is already fully contained in the viewport\n return;\n } else if (ele.offsetHeight > container.offsetHeight) {\n // Element is taller than the viewport, so show the first part of it\n scroller.toY(top);\n } else if (top < viewTop) {\n // Element is above viewport, so scroll it into view\n scroller.toY(top);\n } else if (bottom > viewBottom) {\n // Part of the element is beneath the viewport, so scroll just enough to\n // bring it into view\n scroller.toY(container.scrollTop - (viewBottom - bottom));\n }\n }\n }\n\n /**\n * Initializes the editing surface by creating and injecting an Ace editor\n * instance from the host.\n */\n public initEditor() {\n // skip if we're already initialized\n if (this.aceEditor) {\n return;\n }\n\n // call host factory to instantiate editor\n this.chunk = this.ui.chunks.createChunkEditor('ace', this.dom, this.node.attrs.md_index, this.node.attrs.classes, {\n getPos: () => this.getPos(),\n scrollIntoView: ele => this.scrollIntoView(ele),\n scrollCursorIntoView: () => this.scrollCursorIntoView(),\n getTextContent: () => this.node.textContent\n });\n\n // populate initial contents\n this.aceEditor = this.chunk.editor as AceAjax.Editor;\n this.updating = true;\n this.aceEditor.setValue(this.node.textContent);\n this.updating = false;\n\n this.aceEditor.clearSelection();\n\n // cache edit session for convenience; most operations happen on the session\n this.editSession = this.aceEditor.getSession();\n\n // remove the preview and recreate chunk toolbar\n this.dom.innerHTML = '';\n this.dom.appendChild(this.chunk.element);\n\n // Propagate updates from the code editor to ProseMirror\n this.aceEditor.on('changeSelection', () => {\n if (!this.updating) {\n this.forwardSelection();\n }\n });\n this.aceEditor.on('change', () => {\n if (!this.updating) {\n this.valueChanged();\n }\n });\n\n // Forward selection we we receive it\n this.aceEditor.on('focus', () => {\n this.dom.classList.remove('pm-ace-editor-inactive');\n this.forwardSelection();\n });\n\n this.aceEditor.on('blur', () => {\n // Add a class to editor; this class contains CSS rules that hide editor\n // components that Ace cannot hide natively (such as the cursor,\n // matching bracket indicator, and active selection)\n this.dom.classList.add('pm-ace-editor-inactive');\n });\n\n // If the cursor moves and we're in focus, ensure that the cursor is\n // visible. Ace's own cursor visiblity mechanisms don't work in embedded\n // editors.\n this.aceEditor.getSelection().on('changeCursor', () => {\n if (this.dom.contains(document.activeElement) && !this.mouseDown) {\n this.cursorDirty = true;\n }\n });\n\n this.aceEditor.renderer.on('afterRender', () => {\n // If the cursor position is dirty and the mouse is not down, scroll the\n // cursor into view. Don't scroll while the mouse is down, as it will be\n // treated as a click-and-drag by Ace.\n if (this.cursorDirty && !this.mouseDown) {\n this.scrollCursorIntoView();\n this.cursorDirty = false;\n }\n });\n\n // Add custom escape commands for movement keys (left/right/up/down); these\n // will check to see whether the movement should leave the editor, and if\n // so will do so instead of moving the cursor.\n this.aceEditor.commands.addCommand({\n name: 'leftEscape',\n bindKey: 'Left',\n exec: () => {\n this.arrowMaybeEscape('char', -1, 'gotoleft');\n },\n readOnly: true\n });\n this.aceEditor.commands.addCommand({\n name: 'rightEscape',\n bindKey: 'Right',\n exec: () => {\n // if the chunk is currently collapsed, the right arrow should open it up\n if (this.chunk && !this.chunk.getExpanded()) {\n this.chunk.setExpanded(true);\n return;\n }\n this.arrowMaybeEscape('char', 1, 'gotoright');\n },\n readOnly: true\n });\n this.aceEditor.commands.addCommand({\n name: 'upEscape',\n bindKey: 'Up',\n exec: () => {\n this.arrowMaybeEscape('line', -1, 'golineup');\n },\n readOnly: true\n });\n this.aceEditor.commands.addCommand({\n name: 'downEscape',\n bindKey: 'Down',\n exec: () => {\n this.arrowMaybeEscape('line', 1, 'golinedown');\n },\n readOnly: true\n });\n\n // Pressing Backspace in the editor when it's empty should delete it.\n this.aceEditor.commands.addCommand({\n name: 'backspaceDeleteNode',\n bindKey: 'Backspace',\n exec: () => {\n this.backspaceMaybeDeleteNode();\n },\n });\n\n // Handle undo/redo in ProseMirror\n this.aceEditor.commands.addCommand({\n name: 'undoProsemirror',\n bindKey: {\n win: 'Ctrl-Z',\n mac: 'Command-Z',\n },\n exec: () => {\n if (undo(this.view.state, this.view.dispatch)) {\n this.view.focus();\n }\n },\n });\n this.aceEditor.commands.addCommand({\n name: 'redoProsemirror',\n bindKey: {\n win: 'Ctrl-Shift-Z|Ctrl-Y',\n mac: 'Command-Shift-Z|Command-Y',\n },\n exec: () => {\n if (redo(this.view.state, this.view.dispatch)) {\n this.view.focus();\n }\n },\n });\n\n // Handle Select All in ProseMirror\n this.aceEditor.commands.addCommand({\n name: 'selectAllProsemirror',\n bindKey: {\n win: 'Ctrl-A',\n mac: 'Command-A',\n },\n exec: () => {\n if (selectAll(this.view.state, this.view.dispatch, this.view)) {\n this.view.focus();\n }\n },\n });\n\n // Handle shortcuts for moving focus out of the code editor and into\n // ProseMirror\n this.aceEditor.commands.addCommand({\n name: 'exitCodeBlock',\n bindKey: 'Shift-Enter',\n exec: () => {\n if (exitCode(this.view.state, this.view.dispatch)) {\n this.view.focus();\n }\n },\n });\n\n // Create a command for inserting paragraphs from the code editor\n this.aceEditor.commands.addCommand({\n name: 'insertParagraph',\n bindKey: {\n win: 'Ctrl-\\\\',\n mac: 'Command-\\\\',\n },\n exec: () => {\n if (insertParagraph(this.view.state, this.view.dispatch)) {\n this.view.focus();\n }\n },\n });\n\n // Line-by-line execution\n this.aceEditor.commands.addCommand({\n name: 'executeSelection',\n bindKey: {\n win: 'Ctrl-Enter',\n mac: 'Ctrl-Enter|Command-Enter',\n },\n exec: () => {\n if (this.chunk && this.aceEditor) {\n // Record the position prior to execution\n const pos = this.aceEditor.getCursorPosition();\n\n // Execute the selection\n this.chunk.executeSelection();\n\n // If the cursor stayed on the last line, step out of the code block\n // if we're not at the end of the doc (this is a no-op when not on the\n // last line, and mirrors the behavior when stepping past the end of\n // chunks in the code editor)\n if (pos.row === this.aceEditor.getCursorPosition().row) {\n this.arrowMaybeEscape('line', 1);\n }\n }\n },\n });\n\n // If an attribute editor function was supplied, bind it to F4\n if (this.options.attrEditFn) {\n this.aceEditor.commands.addCommand({\n name: 'editAttributes',\n bindKey: 'F4',\n exec: () => {\n this.options.attrEditFn!(this.view.state, this.view.dispatch, this.view);\n },\n });\n }\n\n // Apply editor mode\n if (this.mode) {\n this.chunk.setMode(this.mode);\n }\n\n // Disconnect font metrics system after render loop\n (this.aceEditor.renderer as any).on('afterRender', () => {\n // Update known rendered width\n if (this.chunk) {\n this.renderedWidth = this.chunk.element.offsetWidth;\n }\n\n window.setTimeout(() => {\n if (this.aceEditor) {\n const metrics = (this.aceEditor.renderer as any).$fontMetrics;\n if (metrics && metrics.$observer) {\n metrics.$observer.disconnect();\n }\n }\n }, 0);\n });\n\n // Hook up the container to the render queue\n const editingRoot = editingRootNode(this.view.state.selection)!;\n const container = this.view.nodeDOM(editingRoot.pos) as HTMLElement;\n if (container.parentElement) {\n this.renderQueue.setContainer(container);\n }\n\n // Forward selection, if we have one (this can be set while the editor is\n // waiting to render)\n if (this.queuedSelection) {\n this.setSelection(this.queuedSelection.anchor, this.queuedSelection.head);\n this.queuedSelection = null;\n }\n\n // Subscribe to resize event; will reflow the editor to wrap properly at the\n // new width\n this.subscriptions.push(\n this.events.subscribe(ResizeEvent, () => {\n this.debounceResize();\n }),\n );\n\n // Subscribe to scroll event; invalidates the row we're scrolled to so\n // scrollback will be triggered if necessary (after e.g., typing after\n // scrolling offscreen)\n this.subscriptions.push(\n this.events.subscribe(ScrollEvent, () => {\n this.scrollRow = -1;\n }),\n );\n\n // Keep track of mouse state so we can avoid e.g., autoscrolling while the\n // mouse is down\n this.dom.addEventListener(\"mousedown\", (evt) => {\n this.mouseDown = true;\n });\n this.dom.addEventListener(\"mouseup\", (evt) => {\n this.mouseDown = false;\n });\n this.dom.addEventListener(\"mouseleave\", (evt) => {\n // Treat mouse exit as an up since it will cause us to miss the up event\n this.mouseDown = false;\n });\n }\n\n /**\n * Debounced version of editor resize; ensures we don't aggressively resize\n * while size is still changing.\n */\n private debounceResize() {\n // Clear any previously running resize timer\n if (this.resizeTimer !== 0) {\n window.clearTimeout(this.resizeTimer);\n }\n\n // Create a new resize timer\n this.resizeTimer = window.setTimeout(() => {\n if (this.chunk && this.aceEditor) {\n // If the width we last rendered is different than our current width,\n // trigger an Ace resize event (causes editor to reflow wrapped text)\n if (this.renderedWidth !== this.chunk.element.offsetWidth) {\n this.aceEditor.resize();\n }\n }\n this.resizeTimer = 0;\n }, 500);\n }\n\n private updateMode() {\n // get lang\n const lang = this.options.lang(this.node, this.getContents());\n\n if (lang !== null && this.mode !== lang) {\n if (this.chunk) {\n this.chunk.setMode(lang);\n }\n this.mode = lang;\n }\n }\n\n private backspaceMaybeDeleteNode() {\n // if the node is empty and we execute a backspace then delete the node\n if (this.node.childCount === 0) {\n // if there is an input rule we just executed then use this to undo it\n if (undoInputRule(this.view.state)) {\n undoInputRule(this.view.state, this.view.dispatch);\n this.view.focus();\n } else {\n const tr = this.view.state.tr;\n tr.delete(this.getPos(), this.getPos() + this.node.nodeSize);\n tr.setSelection(TextSelection.near(tr.doc.resolve(this.getPos()), -1));\n this.view.dispatch(tr);\n this.view.focus();\n }\n } else if (this.aceEditor) {\n this.aceEditor.execCommand('backspace');\n }\n }\n\n // Checks to see whether an arrow key should escape the editor or not. If so,\n // sends the focus to the right node; if not, executes the given Ace command\n // (to perform the arrow key's usual action)\n private arrowMaybeEscape(unit: string, dir: number, command?: string) {\n if (!this.aceEditor || !this.editSession) {\n return;\n }\n\n const pos = this.aceEditor.getCursorPosition();\n const lastrow = this.editSession.getLength() - 1;\n if (this.getExpanded() && // special handing of keys for collapsed\n (!this.aceEditor.getSelection().isEmpty() ||\n pos.row !== (dir < 0 ? 0 : lastrow) ||\n (unit === 'char' && pos.column !== (dir < 0 ? 0 : this.editSession.getDocument().getLine(pos.row).length)))\n ) {\n // this movement is happening inside the editor itself. don't escape\n // the editor; just execute the underlying command\n if (command) {\n this.aceEditor.execCommand(command);\n }\n return;\n }\n\n // the cursor is about to leave the editor region; flag this to avoid side\n // effects\n this.escaping = true;\n\n // ensure we are focused\n this.view.focus();\n\n // handle arrow key\n handleArrowToAdjacentNode(this.getPos(), dir, this.view.state, this.view.dispatch);\n\n // set focus\n this.view.focus();\n this.escaping = false;\n }\n\n private getContents(): string {\n if (this.editSession) {\n return this.editSession.getValue();\n } else {\n return this.dom.innerText;\n }\n }\n\n /**\n * Ensures that the Ace cursor is visible in the scrollable region of the document.\n */\n private scrollCursorIntoView(): void {\n // No need to try to enforce cursor position if we're already scrolled to\n // this row\n if (this.editSession && this.editSession.getSelection().getCursor().row === this.scrollRow) {\n return;\n }\n\n // Ensure we still have focus before proceeding\n if (this.dom.contains(document.activeElement)) {\n\n // Find the element containing the rendered virtual cursor \n const cursor = this.dom.querySelector(\".ace_cursor\");\n if (cursor === null) {\n return;\n }\n\n // Ace doesn't actually move the cursor but uses CSS translations to\n // make it appear in the right place, so we need to use the somewhat\n // expensive getBoundingClientRect call to get a resolved position.\n // (The alternative would be parse the translate: transform(10px 20px))\n // call from the style property.)\n const editingRoot = editingRootNode(this.view.state.selection)!;\n const container = this.view.nodeDOM(editingRoot.pos) as HTMLElement;\n const containerRect = container.getBoundingClientRect();\n const cursorRect = cursor.getBoundingClientRect();\n\n // Scrolling down?\n const down = cursorRect.bottom + 10 - containerRect.bottom;\n if (down > 0) {\n container.scrollTop += down;\n } else {\n // Scrolling up?\n const up = containerRect.top + 10 - cursorRect.top;\n if (up > 0) {\n container.scrollTop -= up;\n }\n }\n\n // Update cached scroll row so we don't unnecessarily redo these\n // computations\n if (this.editSession) {\n this.scrollRow = this.editSession.getSelection().getCursor().row;\n }\n }\n }\n}\n\nfunction computeChange(oldVal: string, newVal: string) {\n if (oldVal === newVal) {\n return null;\n }\n let start = 0;\n let oldEnd = oldVal.length;\n let newEnd = newVal.length;\n while (start < oldEnd && oldVal.charCodeAt(start) === newVal.charCodeAt(start)) {\n ++start;\n }\n while (oldEnd > start && newEnd > start && oldVal.charCodeAt(oldEnd - 1) === newVal.charCodeAt(newEnd - 1)) {\n oldEnd--;\n newEnd--;\n }\n return {\n from: start,\n to: oldEnd,\n text: newVal.slice(start, newEnd),\n };\n}\n\nfunction arrowHandler(dir: 'up' | 'down' | 'left' | 'right', nodeTypes: string[]) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (state.selection.empty && !(state.selection instanceof GapCursor) && view && view.endOfTextblock(dir)) {\n const side = dir === 'left' || dir === 'up' ? -1 : 1;\n const $head = state.selection.$head;\n const nextPos = Selection.near(state.doc.resolve(side > 0 ? $head.after() : $head.before()), side);\n if (nextPos.$head && nodeTypes.includes(nextPos.$head.parent.type.name)) {\n // check for e.g. math where you can advance across embedded newlines\n if ((dir === 'up' || dir === 'down') && verticalArrowCanAdvanceWithinTextBlock(state.selection, dir)) {\n return false;\n }\n if (dispatch) {\n dispatch(state.tr.setSelection(nextPos));\n }\n return true;\n }\n }\n return false;\n };\n}\n","/*\n * cursor.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction, NodeSelection, Selection } from 'prosemirror-state';\nimport { GapCursor } from 'prosemirror-gapcursor';\n\nexport function handleArrowToAdjacentNode(\n nodePos: number,\n dir: number,\n state: EditorState,\n dispatch?: (tr: Transaction) => void,\n): boolean {\n // resolve the node and position\n const node = state.doc.nodeAt(nodePos);\n if (!node) {\n return false;\n }\n const $pos = state.doc.resolve(nodePos);\n\n // helpers to figure out the nature of prev/next nodes\n const prevNodeSelectable = () => {\n return $pos.nodeBefore && $pos.nodeBefore.type.spec.selectable;\n };\n const nextNodeSelectable = () => {\n const nextNode = state.doc.nodeAt(nodePos + node.nodeSize);\n return nextNode?.type.spec.selectable;\n };\n const prevNodeTextBlock = () => {\n return $pos.nodeBefore && $pos.nodeBefore.isTextblock;\n };\n const nextNodeTextBlock = () => {\n const nextNode = state.doc.nodeAt(nodePos + node.nodeSize);\n return nextNode?.isTextblock;\n };\n const prevNodeCode = () => {\n return $pos.nodeBefore && !!$pos.nodeBefore.type.spec.code;\n };\n const nextNodeCode = () => {\n const nextNode = state.doc.nodeAt(nodePos + node.nodeSize);\n return !!nextNode?.type.spec.code;\n };\n\n // see if we can get a new selection\n const tr = state.tr;\n let selection: Selection | undefined;\n\n // if we are going backwards and there is no previous position, then return a gap cursor\n if (dir < 0 && !$pos.nodeBefore) {\n selection = new GapCursor(tr.doc.resolve(nodePos), tr.doc.resolve(nodePos));\n\n // if we are going forwards and there is no next position, then return a gap cursor\n } else if (dir > 0 && !$pos.nodeAfter) {\n const cursorPos = nodePos + node.nodeSize;\n selection = new GapCursor(tr.doc.resolve(cursorPos), tr.doc.resolve(cursorPos));\n\n // if we are going backwards and the previous node can take node selections then select it\n } else if (dir < 0 && prevNodeSelectable()) {\n const prevNodePos = nodePos - $pos.nodeBefore!.nodeSize;\n selection = NodeSelection.create(tr.doc, prevNodePos);\n\n // if we are going forwards and the next node can take node selections then select it\n } else if (dir >= 0 && nextNodeSelectable()) {\n const nextNodePos = nodePos + node.nodeSize;\n selection = NodeSelection.create(tr.doc, nextNodePos);\n\n // if we are going backwards and the previous node is not a text block then create a gap cursor\n } else if (dir < 0 && (!prevNodeTextBlock() || prevNodeCode())) {\n selection = new GapCursor(tr.doc.resolve(nodePos), tr.doc.resolve(nodePos));\n\n // if we are going forwards and the next node is not a text block then create a gap cursor\n } else if (dir >= 0 && (!nextNodeTextBlock() || nextNodeCode())) {\n const endPos = nodePos + node.nodeSize;\n selection = new GapCursor(tr.doc.resolve(endPos), tr.doc.resolve(endPos));\n\n // otherwise use text selection handling (handles forward/backward text selections)\n } else {\n const targetPos = nodePos + (dir < 0 ? 0 : node.nodeSize);\n const targetNode = tr.doc.nodeAt(targetPos);\n if (targetNode) {\n selection = Selection.near(tr.doc.resolve(targetPos), dir);\n }\n }\n\n if (selection) {\n if (dispatch) {\n tr.setSelection(selection);\n dispatch(tr);\n }\n return true;\n } else {\n return false;\n }\n}\n","/*\n * ace-render-queue.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { AceNodeView } from './ace';\nimport { EditorEvents } from '../../api/events';\nimport { ScrollEvent, UpdateEvent } from '../../api/event-types';\n\n/**\n * Represents a queue of Ace editor instances that are rendered asynchronously.\n */\nexport class AceRenderQueue {\n private readonly renderQueue: AceNodeView[] = [];\n\n private renderCompleted: boolean = false;\n private renderTimer: number = 0;\n private updateTimer: number = 0;\n private container?: HTMLElement;\n private needsSort: boolean = true;\n private bypass: number = 5;\n private observer?: IntersectionObserver;\n private visible: boolean = true;\n private readonly subscriptions: VoidFunction[] = [];\n\n constructor(private events: EditorEvents) {\n // Begin listening for scroll and update events so we can manage the queue\n // accordingly\n this.subscriptions.push(\n events.subscribe(ScrollEvent, () => {\n this.onScroll();\n }),\n );\n this.subscriptions.push(\n events.subscribe(UpdateEvent, () => {\n this.onUpdate();\n }),\n );\n }\n\n /**\n * Sets (or replaces) the scroll container hosting the render queue. The\n * scroll container is used to prioritize the queue (i.e. objects in the\n * viewport or close to it are to be given more priority).\n *\n * @param container The HTML element of the scroll container\n */\n public setContainer(container: HTMLElement) {\n // Skip if we're already looking at this container\n if (this.container === container) {\n return;\n }\n\n // Clean up observer on any previous container\n if (this.observer) {\n this.observer.disconnect();\n }\n\n // Save reference to container\n this.container = container;\n\n // Create intersection observer to ensure that we don't needlessly churn\n // through renders while offscreen.\n this.observer = new IntersectionObserver(\n (entries: IntersectionObserverEntry[]) => {\n for (const entry of entries) {\n if (entry.isIntersecting && !this.visible) {\n // We just became visible; process the render queue now.\n this.visible = true;\n this.processRenderQueue();\n }\n if (!entry.isIntersecting && this.visible) {\n // We just lost visibility; end processing of the render queue. (Note\n // that we only do this when connected to the DOM as another reason\n // the element can become invisible is ProseMirror swapping it out\n // internally.)\n if (this.container?.parentElement) {\n this.visible = false;\n this.cancelTimer();\n }\n }\n }\n },\n {\n root: null,\n },\n );\n\n // Begin observing intersection events in container\n this.observer.observe(container);\n }\n\n /**\n * Invoke when the editor surface is scrolled\n */\n private onScroll() {\n // Whenever a scroll event occurs, we need to re-sort the queue so that\n // objects in or closest to the viewport are given priority.\n this.needsSort = true;\n\n // If we don't think we're visible but we're scrolling and have height,\n // then we are in fact visible. (This catches a case where the\n // intsersection observer created below doesn't fire for visiblity\n // changes.)\n if (!this.visible && this.container && this.container.offsetHeight > 0) {\n this.visible = true;\n this.processRenderQueue();\n }\n }\n\n /**\n * Invoke when the document has changed\n */\n private onUpdate() {\n // Debounce update timer. This timer is used to prevent the CPU intensive\n // editor rendering from happening while the user is actively updating the\n // document.\n if (this.updateTimer !== 0) {\n window.clearTimeout(this.updateTimer);\n }\n this.updateTimer = window.setTimeout(() => {\n this.updateTimer = 0;\n // Process queue immediately if we have one\n this.scheduleRender(0);\n }, 1000);\n }\n\n /**\n * Indicates whether the render queue has a scroll container defined\n */\n public hasContainer(): boolean {\n if (this.container) {\n return true;\n }\n return false;\n }\n\n /**\n * Indicates whether the rendering is finished.\n */\n public isRenderCompleted(): boolean {\n return this.renderCompleted;\n }\n\n /**\n * Adds a node view to the render queue\n */\n public add(view: AceNodeView) {\n // We allow the first few code blocks to render synchronously instead of\n // being dumped into the queue for later processing. This slightly increases\n // startup time but prevents the flicker that would otherwise occur as\n // editors render one by one.\n if (this.bypass > 0) {\n this.bypass--;\n view.initEditor();\n return;\n }\n\n this.renderQueue.push(view);\n\n // Defer/debounce rendering of editors until event loop finishes\n if (this.renderTimer === 0) {\n this.scheduleRender(0);\n }\n }\n\n /**\n * Processes the queue of editor instances that need to be rendered.\n */\n private processRenderQueue() {\n // No work to do if queue is empty\n if (this.renderQueue.length === 0) {\n return;\n }\n\n // Don't render while hidden; it wastes resources plus can result in\n // incorrect sizing calculations\n if (!this.visible) {\n return;\n }\n\n // Don't render while the user is actively updating the document (it makes\n // the interface sluggish)\n if (this.updateTimer !== 0) {\n return;\n }\n\n // Compute offset for sorting (based on scroll position)\n let offset = 0;\n if (this.container) {\n offset = this.container.scrollTop;\n }\n\n // Sort the queue if required\n if (this.needsSort) {\n // Sort the render queue based on distance from the top of the viewport\n this.renderQueue.sort((a, b) => {\n return Math.abs(a.dom.offsetTop - offset) - Math.abs(b.dom.offsetTop - offset);\n });\n\n // Clear flag so we don't sort the queue on every render\n this.needsSort = false;\n }\n\n // Pop the next view (editor instance) to be rendered off the stack.\n // Fast-forward past instances that no longer have a position; these can\n // accumulate when NodeViews are added to the render queue but replaced\n // (by a document rebuild) before they have a chance to render.\n let view: AceNodeView | undefined;\n while ((view === null || view === undefined || view.getPos() === undefined) &&\n this.renderQueue.length > 0) {\n view = this.renderQueue.shift();\n }\n\n // Render this view\n if (view) {\n view.initEditor();\n }\n\n if (this.renderQueue.length > 0) {\n // There are still remaining editors to be rendered, so process again on\n // the next event loop.\n //\n // If these editors are near the viewport, render them as soon as\n // possible; otherwise, let the render proceed at a slower pace to\n // increase responsiveness.\n let delayMs = 1000;\n if (this.container) {\n const distance = Math.abs(this.renderQueue[0].dom.offsetTop - offset);\n if (distance < this.container.offsetHeight * 2) {\n // Container is near the viewport, so render it ASAP\n delayMs = 0;\n }\n }\n this.scheduleRender(delayMs);\n } else {\n // No remaining editors; we're done.\n this.renderCompleted = true;\n this.destroy();\n }\n }\n\n /**\n * Cancels the timer that is responsible for triggering the processing of the\n * next unit in the render queue.\n */\n private cancelTimer() {\n if (this.renderTimer !== 0) {\n window.clearTimeout(this.renderTimer);\n this.renderTimer = 0;\n }\n }\n\n /**\n * Reschedules a pending render, or schedules a new one.\n */\n private scheduleRender(delayMs: number) {\n this.cancelTimer();\n this.renderTimer = window.setTimeout(() => {\n this.processRenderQueue();\n this.renderTimer = 0;\n }, delayMs);\n }\n\n /**\n * Cleans up the render queue instance\n */\n private destroy() {\n // Cancel any pending renders\n this.cancelTimer();\n\n // Clear any pending update timer\n if (this.updateTimer !== 0) {\n window.clearTimeout(this.updateTimer);\n }\n\n // Remove event subscriptions\n this.subscriptions.forEach(unsub => unsub());\n\n // Clean up resize observer\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n}\n","/*\n * ace-placeholder.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n/**\n * Represents a placeholder (preview) rendering of an Ace editor. Since Ace\n * editors are somewhat expensive to draw, this placeholder is used in place\n * of a real editor instance to make code visible and allow for correct height\n * computations.\n */\nexport class AcePlaceholder {\n private readonly element: HTMLElement;\n\n constructor(content: string) {\n const ele = document.createElement('pre');\n ele.innerText = content;\n ele.className = 'ace_editor';\n this.element = ele;\n }\n\n public getElement() {\n return this.element;\n }\n}\n","/*\n * ace-node-views.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { GapCursor } from 'prosemirror-gapcursor';\nimport { AceNodeView } from './ace';\nimport { EditorView } from 'prosemirror-view';\n\n/**\n * Track all Ace node view instances to implement additional behavior\n * (e.g. gap cursor for clicks between editor instances)\n */\n\nexport class AceNodeViews {\n private nodeViews: AceNodeView[];\n\n constructor() {\n this.nodeViews = [];\n }\n public add(nodeView: AceNodeView) {\n this.nodeViews.push(nodeView);\n }\n\n public remove(nodeView: AceNodeView) {\n const index = this.nodeViews.indexOf(nodeView);\n if (index >= 0) {\n this.nodeViews.splice(index, 1);\n }\n }\n\n public activeNodeView() : AceNodeView | undefined {\n return this.nodeViews.find(view => view.isFocused());\n }\n\n public handleClick(view: EditorView, event: Event): boolean {\n // alias to mouseEvent\n const mouseEvent = event as MouseEvent;\n\n // see if the click is between 2 contiguously located node views\n for (const nodeView of this.nodeViews) {\n // gap cursor we might detect\n let gapCursor: GapCursor | null = null;\n\n // get the position\n const pos = nodeView.getPos();\n const $pos = view.state.doc.resolve(pos);\n\n // if the previous node is code, see if the click is between the 2 nodes\n if ($pos.nodeBefore && $pos.nodeBefore.type.spec.code) {\n // get our bounding rect\n const dom = nodeView.dom;\n const nodeViewRect = dom.getBoundingClientRect();\n\n // get the previous node's bounding rect\n const prevNodePos = pos - $pos.nodeBefore!.nodeSize;\n const prevNodeView = this.nodeViews.find(nv => nv.getPos() === prevNodePos);\n if (prevNodeView) {\n const prevNodeRect = prevNodeView.dom.getBoundingClientRect();\n\n // check for a click between the two nodes\n const mouseY = mouseEvent.clientY;\n if (mouseY > prevNodeRect.top + prevNodeRect.height && mouseY < nodeViewRect.top) {\n gapCursor = new GapCursor($pos, $pos);\n }\n }\n\n // if there is no previous node and the click is above us then gap cursor above\n // (only do this if the cursor is within 150 pixels of the left edge)\n } else if (\n !$pos.nodeBefore &&\n $pos.depth === 1 &&\n mouseEvent.clientY < nodeView.dom.getBoundingClientRect().top &&\n Math.abs(mouseEvent.clientX - nodeView.dom.getBoundingClientRect().left) < 150\n ) {\n gapCursor = new GapCursor($pos, $pos);\n }\n\n // return gapCursor if we found one\n if (gapCursor) {\n const tr = view.state.tr;\n\n // notify the node views that we are setting a gap cursor\n this.nodeViews.forEach(ndView => ndView.setGapCursorPending(true));\n\n // ensure the view is focused\n view.focus();\n\n // set the selection\n tr.setSelection(gapCursor);\n view.dispatch(tr);\n\n // notify the node views that we are done setting the gap cursor\n this.nodeViews.forEach(ndView => ndView.setGapCursorPending(false));\n\n // prevent default event handling\n event.preventDefault();\n event.stopImmediatePropagation();\n return true;\n }\n }\n\n return false;\n }\n}\n","/*\n * attr_edit.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { findChildren } from 'prosemirror-utils';\nimport { Plugin, PluginKey, Transaction, EditorState, Selection } from 'prosemirror-state';\nimport { DecorationSet, Decoration, WidgetDecorationSpec } from 'prosemirror-view';\n\nimport { EditorUI } from '../../api/ui';\nimport { pandocAttrEnabled, pandocAttrAvailable } from '../../api/pandoc_attr';\nimport { kSetMarkdownTransaction, transactionsAreTypingChange, forChangedNodes } from '../../api/transaction';\n\nimport { PandocExtensions } from '../../api/pandoc';\nimport { Extension } from '../../api/extension';\nimport { hasFencedCodeBlocks } from '../../api/pandoc_format';\nimport { selectionIsWithinRange } from '../../api/selection';\n\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { attrEditDecorationWidget } from '../../api/attr_edit/attr_edit-decoration';\n\nimport { AttrEditCommand, attrEditNodeCommandFn } from './attr_edit-command';\nimport { EditorFormat } from '../../api/format';\n\nexport function attrEditExtension(\n pandocExtensions: PandocExtensions,\n ui: EditorUI,\n format: EditorFormat,\n editors: AttrEditOptions[],\n): Extension {\n const hasAttr = pandocAttrEnabled(pandocExtensions) || hasFencedCodeBlocks(pandocExtensions);\n\n return {\n commands: (_schema: Schema) => {\n if (hasAttr) {\n return [new AttrEditCommand(ui, format, pandocExtensions, editors)];\n } else {\n return [];\n }\n },\n\n plugins: (_schema: Schema) => {\n if (hasAttr) {\n return [new AttrEditDecorationPlugin(ui, pandocExtensions, editors)];\n } else {\n return [];\n }\n },\n };\n}\n\nconst key = new PluginKey('attr_edit_decoration');\n\nclass AttrEditDecorationPlugin extends Plugin {\n constructor(ui: EditorUI, pandocExtensions: PandocExtensions, editors: AttrEditOptions[]) {\n\n const decoratorForNode = (editor: AttrEditOptions, \n selection: Selection, \n node: ProsemirrorNode, \n pos: number) => {\n\n // if we prefer hidden and have no attributes then bail\n const range = { from: pos, to: pos + node.nodeSize };\n if (editor.preferHidden && \n !pandocAttrAvailable(node.attrs, !editor.noKeyvalueTags) && \n !selectionIsWithinRange(selection, range)) {\n return undefined;\n }\n\n // provide some editor defaults\n editor.tags = editor.tags ||\n (editorNode => {\n const attrTags = [];\n if (editorNode.attrs.id) {\n attrTags.push(`#${editorNode.attrs.id}`);\n }\n if (editorNode.attrs.classes && editorNode.attrs.classes.length) {\n attrTags.push(`${editorNode.attrs.classes.map((clz: string) => '.' + clz).join(' ')}`);\n }\n if (!editor.noKeyvalueTags && editorNode.attrs.keyvalue && editorNode.attrs.keyvalue.length) {\n attrTags.push(`${editorNode.attrs.keyvalue.map(\n (kv: [string,string]) => kv[0] + '=\"' + (kv[1] || '1') + '\"').join(' ')}\n `);\n }\n return attrTags;\n });\n editor.offset = editor.offset || { top: 0, right: 0 };\n\n // get editFn\n const editFn = attrEditNodeCommandFn(\n { node, pos }, \n ui, \n pandocExtensions, \n editors\n );\n\n // attr_edit controls\n return attrEditDecorationWidget({\n pos,\n tags: editor.tags(node),\n editFn,\n ui,\n offset: editor.offset,\n preferHidden: editor.preferHidden\n });\n \n };\n\n function decoratorsForDoc(state: EditorState) {\n const decorations: Decoration[] = [];\n const nodeTypes = editors.map(ed => ed.type(state.schema));\n findChildren(state.doc, node => nodeTypes.includes(node.type), true).forEach(attrNode => {\n const editor = editors.find(ed => ed.type(state.schema) === attrNode.node.type)!;\n if (!editor.noDecorator) {\n const decorator = decoratorForNode(editor, state.selection, attrNode.node, attrNode.pos);\n if (decorator) {\n decorations.push(decorator);\n }\n \n }\n });\n return DecorationSet.create(state.doc, decorations);\n }\n \n super({\n key,\n state: {\n init: (_config: { [key: string]: any }, state: EditorState) => {\n return decoratorsForDoc(state);\n },\n apply: (tr: Transaction, set: DecorationSet, oldState: EditorState, newState: EditorState) => {\n\n // replacing the entire editor triggers decorations\n if (tr.getMeta(kSetMarkdownTransaction)) {\n return decoratorsForDoc(newState);\n }\n\n // get schema and nodetypes\n const schema = newState.schema;\n const nodeTypes = editors.map(ed => ed.type(schema));\n\n // map \n set = set.map(tr.mapping, tr.doc);\n\n // typing change, return existing decorations\n if (transactionsAreTypingChange([tr])) {\n return set;\n }\n\n // selection change, might need to toggle some decorations on/off\n if (tr.selectionSet) {\n \n // look through each decorator, if it has preferHidden, it's node has no attributes,\n // and it's no longer in the selection then remove it\n const preferHiddenDecorators = set.find(undefined, undefined, spec => !!spec.preferHidden);\n for (const dec of preferHiddenDecorators) {\n const node = newState.doc.nodeAt(dec.from);\n if (node && !pandocAttrAvailable(node.attrs)) {\n if (!selectionIsWithinRange(tr.selection, \n { from: dec.from, to: dec.from + node.nodeSize })) {\n set = set.remove([dec]);\n }\n }\n }\n \n // now look for nodes above us with preferHidden and add decorators for them\n const $head = tr.selection.$head;\n for (let i=1; i<=$head.depth; i++) {\n const parentWithAttrs = { node: $head.node(i), pos: $head.before(i) };\n if (!nodeTypes.includes(parentWithAttrs.node.type)) {\n continue;\n }\n const { pos, node } = parentWithAttrs;\n const editor = editors.find(ed => ed.type(schema) === parentWithAttrs.node.type)!;\n if (editor?.preferHidden && set.find(pos, pos).length === 0) {\n const decorator = decoratorForNode(editor, tr.selection, node, pos);\n if (decorator) {\n set = set.add(tr.doc, [decorator]);\n }\n }\n }\n }\n\n // doc didn't change, return existing decorations\n if (!tr.docChanged && !tr.storedMarksSet) {\n return set;\n }\n \n // scan for added/modified nodes that have attr_edit decorations\n forChangedNodes(\n oldState,\n newState,\n node => nodeTypes.includes(node.type),\n (node, pos) => {\n // remove existing decorations for changed nodes\n const removeDecorations = set.find(pos, pos, (spec: WidgetDecorationSpec) => {\n return !!spec.key && spec.key.startsWith(\"tags:\");\n });\n if (removeDecorations.length > 0) {\n set = set.remove(removeDecorations);\n }\n\n // get editor and screen on noDecorator\n const editor = editors.find(ed => ed.type(schema) === node.type)!;\n if (!editor.noDecorator) {\n const decorator = decoratorForNode(editor, newState.selection, node, pos);\n if (decorator) {\n set = set.add(tr.doc, [decorator]);\n }\n }\n },\n );\n \n // return the updated set\n return set;\n }\n },\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n },\n });\n }\n}\n\n\n","/*\n * attr_edit-command.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction, NodeSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { Mark, Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { findParentNodeOfType, NodeWithPos } from 'prosemirror-utils';\n\nimport { EditorUI } from '../../api/ui';\nimport { pandocAttrInSpec } from '../../api/pandoc_attr';\nimport { getSelectionMarkRange } from '../../api/mark';\nimport { EditorCommandId, ProsemirrorCommand } from '../../api/command';\n\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { pandocAutoIdentifier, gfmAutoIdentifier } from '../../api/pandoc_id';\nimport { PandocExtensions } from '../../api/pandoc';\nimport { fragmentText } from '../../api/fragment';\nimport { kEditAttrShortcut } from '../../api/attr_edit/attr_edit-decoration';\nimport { EditorFormat } from '../../api/format';\nimport { editMathAttributesEnabled, editMathAttributes } from '../../marks/math/math-commands';\n\nexport class AttrEditCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI, format: EditorFormat, pandocExtensions: PandocExtensions, editors: AttrEditOptions[]) {\n super(EditorCommandId.AttrEdit, [kEditAttrShortcut], attrEditCommandFn(ui, format, pandocExtensions, editors));\n }\n}\n\nexport function attrEditCommandFn(\n ui: EditorUI, \n format: EditorFormat,\n pandocExtensions: PandocExtensions, \n editors: AttrEditOptions[]\n) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n \n // give math attributes first crack (in case it's inside a node with attributes)\n if (editMathAttributesEnabled(format, state)) {\n return editMathAttributes(ui)(state, dispatch, view);\n }\n \n // see if there is an active mark with attrs or a parent node with attrs\n const marks = state.storedMarks || state.selection.$head.marks();\n const mark = marks.find((m: Mark) => pandocAttrInSpec(m.type.spec));\n\n let node: ProsemirrorNode | null = null;\n let pos: number = 0;\n // node selection of node with attributes\n if (state.selection instanceof NodeSelection && pandocAttrInSpec(state.selection.node.type.spec)) {\n node = state.selection.node;\n pos = state.selection.$anchor.pos;\n } else {\n // selection inside node with editable attributes\n const nodeTypes = editors.map(editor => editor.type(state.schema));\n const parentWithAttrs = findParentNodeOfType(nodeTypes)(state.selection);\n if (parentWithAttrs) {\n node = parentWithAttrs.node;\n pos = parentWithAttrs.pos;\n }\n }\n\n // return false (disabled) for no targets\n if (!mark && !node) {\n return false;\n }\n\n // if this is a node and we have a custom attribute editor then just delegate to that\n if (node) {\n const editor = editors.find(ed => ed.type(state.schema) === node!.type)!;\n if (editor && editor.editFn) {\n return editor.editFn()(state, dispatch, view);\n }\n }\n\n // edit attributes\n async function asyncEditAttrs() {\n if (dispatch) {\n if (mark) {\n await editMarkAttrs(mark, state, dispatch, ui);\n } else {\n await editNodeAttrs(pos, state, dispatch, ui, pandocExtensions);\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditAttrs();\n\n // return true\n return true;\n };\n}\n\nexport function attrEditNodeCommandFn(nodeWithPos: NodeWithPos, \n ui: EditorUI, \n pandocExtensions: PandocExtensions, \n editors: AttrEditOptions[]) {\n \n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n\n // alias\n const { node, pos } = nodeWithPos;\n\n // registered editor\n const editor = editors.find(ed => ed.type(state.schema) === node!.type)!;\n if (editor && editor.editFn) {\n return editor.editFn()(state, dispatch, view);\n }\n\n // generic editor\n async function asyncEditAttrs() {\n if (dispatch) {\n await editNodeAttrs(pos, state, dispatch, ui, pandocExtensions);\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditAttrs();\n\n // return true\n return true;\n };\n}\n\nasync function editMarkAttrs(\n mark: Mark,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n ui: EditorUI,\n): Promise {\n const attrs = mark.attrs;\n const markType = mark.type;\n const result = await ui.dialogs.editAttr({ ...attrs });\n if (result) {\n const tr = state.tr;\n const range = getSelectionMarkRange(state.selection, markType);\n tr.removeMark(range.from, range.to, markType);\n tr.addMark(\n range.from,\n range.to,\n markType.create({\n ...attrs,\n ...result.attr,\n }),\n );\n dispatch(tr);\n }\n}\n\nasync function editNodeAttrs(\n pos: number,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n ui: EditorUI,\n pandocExtensions: PandocExtensions,\n): Promise {\n const node = state.doc.nodeAt(pos);\n if (node) {\n const attrs = node.attrs;\n const result = await ui.dialogs.editAttr({ ...attrs }, idHint(node, pandocExtensions));\n if (result) {\n const tr = state.tr;\n const targetNode = tr.doc.nodeAt(pos);\n if (targetNode) {\n tr.setNodeMarkup(pos, targetNode.type, {\n ...attrs,\n ...result.attr,\n }),\n dispatch(tr);\n }\n }\n }\n}\n\nfunction idHint(node: ProsemirrorNode, pandocExtensions: PandocExtensions) {\n if (node.type === node.type.schema.nodes.heading) {\n const unemoji = pandocExtensions.gfm_auto_identifiers;\n const text = fragmentText(node.content, unemoji);\n\n if (pandocExtensions.gfm_auto_identifiers) {\n return gfmAutoIdentifier(text, pandocExtensions.ascii_identifiers);\n } else {\n return pandocAutoIdentifier(text, pandocExtensions.ascii_identifiers);\n }\n } else {\n return undefined;\n }\n}\n","/*\n * editor-theme.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport interface EditorTheme {\n darkMode: boolean;\n solarizedMode: boolean;\n cursorColor: string;\n selectionColor: string;\n nodeSelectionColor: string;\n backgroundColor: string;\n metadataBackgroundColor: string;\n chunkBackgroundColor: string;\n spanBackgroundColor: string;\n divBackgroundColor: string;\n commentColor: string;\n commentBackgroundColor: string;\n gutterBackgroundColor: string;\n gutterTextColor: string;\n textColor: string;\n lightTextColor: string;\n placeholderTextColor: string;\n invisibleTextColor: string;\n linkTextColor: string;\n surfaceWidgetTextColor: string;\n markupTextColor: string;\n findTextBackgroundColor: string;\n findTextBorderColor: string;\n borderBackgroundColor: string;\n blockBorderColor: string;\n focusOutlineColor: string;\n paneBorderColor: string;\n fixedWidthFont: string;\n fixedWidthFontSizePt: number;\n proportionalFont: string;\n proportionalFontSizePt: number;\n code: CodeTheme;\n}\n\nexport interface CodeTheme {\n keywordColor: string;\n atomColor: string;\n numberColor: string;\n variableColor: string;\n defColor: string;\n operatorColor: string;\n commentColor: string;\n stringColor: string;\n metaColor: string;\n builtinColor: string;\n bracketColor: string;\n tagColor: string;\n attributeColor: string;\n hrColor: string;\n linkColor: string;\n errorColor: string;\n}\n\nexport function defaultTheme(): EditorTheme {\n return {\n darkMode: false,\n solarizedMode: false,\n cursorColor: 'black',\n selectionColor: '#8cf',\n nodeSelectionColor: 'rgb(102,155,243)',\n backgroundColor: 'white',\n metadataBackgroundColor: 'rgb(255, 255, 255)',\n chunkBackgroundColor: 'rgb(251,251,251)',\n spanBackgroundColor: '#fff8dc',\n divBackgroundColor: 'rgb(243, 243, 243)',\n commentColor: '#3c4c72',\n commentBackgroundColor: '#FFECCB',\n gutterBackgroundColor: '#f0f0f0',\n gutterTextColor: '#333',\n textColor: 'black',\n surfaceWidgetTextColor: 'rgba(0,0,0,0.5)',\n lightTextColor: 'rgb(60, 76, 114)',\n linkTextColor: '#106ba3',\n placeholderTextColor: 'gray',\n invisibleTextColor: 'rgb(191, 191, 191)',\n markupTextColor: 'rgb(185, 6, 144)',\n findTextBackgroundColor: 'rgb(250, 250, 255)',\n findTextBorderColor: 'rgb(200, 200, 250)',\n borderBackgroundColor: '#ddd',\n blockBorderColor: '#ddd',\n focusOutlineColor: '#5d84cd',\n paneBorderColor: 'silver',\n fixedWidthFont: 'monospace, monospace',\n fixedWidthFontSizePt: 9,\n proportionalFont: '\"Lucida Sans\", \"DejaVu Sans\", \"Lucida Grande\", \"Segoe UI\", Verdana, Helvetica, sans-serif',\n proportionalFontSizePt: 10,\n code: {\n keywordColor: 'rgb(0, 0, 255)',\n atomColor: 'rgb(88, 92, 246)',\n numberColor: 'rgb(0, 0, 205)',\n variableColor: 'rgb(0, 0, 0)',\n defColor: 'rgb(0, 0, 0)',\n operatorColor: 'rgb(104, 118, 135)',\n commentColor: 'rgb(76, 136, 107)',\n stringColor: 'rgb(3, 106, 7)',\n metaColor: 'rgb(0, 0, 0)',\n builtinColor: 'rgb(0, 0, 0)',\n bracketColor: 'rgb(104, 118, 135)',\n tagColor: 'rgb(0, 22, 142)',\n attributeColor: 'rgb(0, 0, 0)',\n hrColor: 'rgb(0, 0, 0)',\n linkColor: 'rgb(0, 0, 255)',\n errorColor: 'rgb(197, 6, 11)',\n },\n };\n}\n\nexport function applyTheme(theme: EditorTheme) {\n // merge w/ defaults\n const defaults = defaultTheme();\n theme = {\n ...defaults,\n ...theme,\n code: {\n ...defaults.code,\n ...theme.code,\n },\n };\n\n // generate theme css\n const themeCss = `\n .pm-default-theme .pm-background-color {\n background-color: ${defaults.backgroundColor} !important;\n }\n .pm-default-theme .pm-text-color {\n color: ${defaults.textColor} !important;\n }\n .pm-default-theme .pm-border-background-color {\n background-color: ${defaults.borderBackgroundColor} !important;\n }\n .pm-default-theme .pm-input-text {\n border-color: ${defaults.paneBorderColor} !important\n }\n .pm-default-theme .pm-block-border-color {\n border-color: ${defaults.blockBorderColor} !important;\n }\n .pm-default-theme .pm-input-outline-button {\n color: ${defaults.textColor};\n border-color: ${defaults.textColor};\n background-color: ${defaults.backgroundColor};\n }\n .pm-default-theme .pm-selected-navigation-tree-item {\n background-color: ${defaults.findTextBackgroundColor} !important;\n border-color: ${defaults.findTextBorderColor} !important;\n }\n .pm-default-theme .pm-navigation-tree-item {\n border-color: ${defaults.backgroundColor} !important;\n }\n .pm-default-theme .pm-block-border-color {\n border-color: ${defaults.blockBorderColor} !important;\n }\n .pm-default-theme .pm-focus-outline-color {\n border-color: ${defaults.focusOutlineColor} !important;\n }\n .pm-default-theme .pm-input-button {\n border-color: ${defaults.borderBackgroundColor};\n background-color: ${defaults.backgroundColor};\n }\n .pm-default-theme .pm-placeholder-text-color {\n color: ${defaults.placeholderTextColor} !important;\n }\n .pm-default-theme .pm-background-color *::selection {\n background-color: ${defaults.selectionColor} !important;\n }\n .pm-default-theme .pm-find-text,\n .pm-default-theme .pm-list-item-selected,\n .pm-default-theme .pm-grid-item-selected {\n background-color: ${defaults.findTextBackgroundColor} !important;\n box-shadow: 0 0 0 1px ${defaults.findTextBorderColor}; \n border-radius: 3px;\n }\n .pm-default-theme .pm-rstudio-button {\n border-color: DarkGray !important;\n }\n .pm-cursor-color {\n caret-color: ${theme.cursorColor}\n }\n .pm-background-color {\n background-color: ${theme.backgroundColor} !important;\n }\n .pm-metadata-background-color {\n background-color: ${theme.metadataBackgroundColor} !important;\n }\n .pm-chunk-background-color {\n background-color: ${theme.chunkBackgroundColor} !important;\n }\n .pm-span-background-color {\n background-color: ${theme.spanBackgroundColor} !important;\n }\n .pm-div-background-color {\n background-color: ${theme.divBackgroundColor} !important;\n }\n .pm-nbsp-background-color {\n background-color: ${theme.spanBackgroundColor} !important;\n }\n .pm-comment-color {\n color: ${theme.commentColor} !important;\n }\n .pm-comment-background-color {\n background-color: ${theme.commentBackgroundColor} !important;\n }\n .pm-text-color {\n color: ${theme.textColor} !important;\n }\n .pm-surface-widget-text-color {\n color: ${theme.surfaceWidgetTextColor} !important;\n }\n .pm-light-text-color {\n color: ${theme.lightTextColor} !important;\n }\n .pm-placeholder-text-color {\n color: ${theme.placeholderTextColor} !important;\n }\n .pm-invisible-text-color {\n color: ${theme.invisibleTextColor} !important;\n }\n .pm-link-text-color {\n color: ${theme.linkTextColor} !important;\n }\n .pm-markup-text-color {\n color: ${theme.markupTextColor} !important;\n }\n .pm-find-text,\n .pm-list-item-selected,\n .pm-grid-item-selected {\n background-color: ${theme.findTextBackgroundColor} !important;\n box-shadow: 0 0 0 1px ${theme.findTextBorderColor}; \n border-radius: 3px;\n }\n .pm-selected-text {\n background-color: ${theme.selectionColor} !important;\n }\n .pm-selected-list-item {\n background-color: ${theme.findTextBackgroundColor} !important;\n border: 1px solid ${theme.findTextBorderColor} !important;\n border-radius: 3px;\n }\n .pm-dark-mode .pm-selected-list-item {\n background-color: ${theme.chunkBackgroundColor} !important;\n border: 1px solid transparent !important;\n }\n .pm-navigation-tree-item {\n border: 1px solid ${theme.backgroundColor} !important;\n border-radius: 3px;\n margin-left: 2px;\n margin-right: 2px;\n }\n .pm-selected-navigation-tree-item {\n background-color: ${theme.findTextBackgroundColor} !important;\n border: 1px solid ${theme.findTextBorderColor} !important;\n border-radius: 3px;\n margin-left: 2px;\n margin-right: 2px;\n }\n .pm-border-background-color {\n background-color: ${theme.borderBackgroundColor}!important;\n }\n .pm-block-border-color {\n border-color: ${theme.blockBorderColor} !important;\n }\n .pm-focus-outline-color {\n border-color: ${theme.focusOutlineColor} !important;\n }\n .pm-pane-border-color {\n border-color: ${theme.paneBorderColor} !important;\n }\n .pm-div .pm-div {\n border-color: ${theme.focusOutlineColor} !important;\n }\n .pm-raw-block-border {\n border-color: ${theme.markupTextColor} !important;\n }\n .pm-popup {\n box-shadow: 0 1px 3px ${theme.blockBorderColor} !important;\n }\n .pm-selected-node-outline-color,\n .ProseMirror-selectednode {\n outline-color: ${theme.nodeSelectionColor} !important;\n }\n .pm-selected-node-border-color {\n border-color: ${theme.nodeSelectionColor} !important;\n }\n .pm-dark-mode .pm-selected-node-outline-color,\n .pm-dark-mode .ProseMirror-selectednode {\n outline-color: ${theme.nodeSelectionColor} !important;\n }\n .pm-dark-mode .pm-selected-node-border-color {\n border-color: ${theme.nodeSelectionColor} !important;\n }\n .pm-background-color *::selection {\n background-color: ${theme.selectionColor} !important;\n }\n .pm-background-color *::-moz-selection {\n background-color: ${theme.selectionColor} !important;\n }\n .pm-fixedwidth-font {\n font-family: ${theme.fixedWidthFont} !important;\n font-size: ${theme.fixedWidthFontSizePt}pt !important;\n }\n .pm-proportional-font {\n font-family: ${theme.proportionalFont} !important;\n font-size: ${theme.proportionalFontSizePt}pt !important;\n }\n .pm-emoji-font {\n font-family: ${theme.fixedWidthFont} !important;\n }\n .pm-input-text {\n border-color: ${theme.paneBorderColor};\n }\n .pm-input-button {\n border-color: ${theme.borderBackgroundColor};\n background-color: ${theme.backgroundColor};\n }\n .pm-input-outline-button {\n color: ${theme.textColor};\n border-color: ${theme.textColor};\n background-color: ${theme.backgroundColor};\n }\n .pm-ace-first-line-meta .ace_text-layer .ace_line_group:first-child,\n .pm-ace-first-line-meta .ace_text-layer .ace_line_group:first-child span {\n color: ${theme.lightTextColor} !important;\n }\n .pm-ace-collapsed.pm-ace-focused {\n border-color: ${theme.paneBorderColor} !important;\n }\n .ProseMirror-gapcursor:after {\n border-top: 1px solid ${theme.textColor};\n }\n `;\n\n // set style\n setStyleElement('pm-editor-theme-styles-id', themeCss);\n}\n\nexport function applyPadding(padding: string) {\n const paddingCss = `\n .pm-editing-root-node {\n padding-left: ${padding} !important;\n padding-right: ${padding} !important;\n }\n `;\n setStyleElement('pm-editor-padding-styles-id', paddingCss);\n}\n\nfunction setStyleElement(id: string, css: string) {\n // get access to style element (create if necessary)\n let styleEl = window.document.getElementById(id);\n if (styleEl === null) {\n styleEl = window.document.createElement('style');\n styleEl.setAttribute('id', id);\n styleEl.setAttribute('type', 'text/css');\n window.document.head.appendChild(styleEl);\n }\n\n // set css\n styleEl.innerHTML = css;\n}\n","/*\n * editor-images.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorUIImages } from '../api/ui-images';\n\nimport copyImage from './images/copy.png';\nimport propertiesImage from './images/properties.png';\nimport propertiesDecoImage from './images/properties_deco.png';\nimport propertiesDecoDarkImage from './images/properties_deco_dark.png';\nimport removelinkImage from './images/removelink.png';\nimport runchunkImage from './images/runchunk.png';\nimport runprevchunksImage from './images/runprevchunks.png';\nimport searchImage from './images/search.png';\nimport searchProgressImage from './images/search_progress.gif';\n\nimport omniInsertGenericImage from './images/omni_insert/generic.png';\nimport heading1Image from './images/omni_insert/heading1.png';\nimport heading1DarkImage from './images/omni_insert/heading1_dark.png';\nimport heading2Image from './images/omni_insert/heading2.png';\nimport heading2DarkImage from './images/omni_insert/heading2_dark.png';\nimport heading3Image from './images/omni_insert/heading3.png';\nimport heading3DarkImage from './images/omni_insert/heading3_dark.png';\nimport heading4Image from './images/omni_insert/heading4.png';\nimport heading4DarkImage from './images/omni_insert/heading4_dark.png';\nimport bulletListImage from './images/omni_insert/bullet_list.png';\nimport bulletListDarkImage from './images/omni_insert/bullet_list_dark.png';\nimport orderedListImage from './images/omni_insert/ordered_list.png';\nimport orderedListDarkImage from './images/omni_insert/ordered_list_dark.png';\nimport blockquoteImage from './images/omni_insert/blockquote.png';\nimport blockquoteDarkImage from './images/omni_insert/blockquote_dark.png';\nimport mathInlineImage from './images/omni_insert/math_inline.png';\nimport mathInlineDarkImage from './images/omni_insert/math_inline_dark.png';\nimport mathDisplayImage from './images/omni_insert/math_display.png';\nimport mathDisplayDarkImage from './images/omni_insert/math_display_dark.png';\nimport htmlBlockImage from './images/omni_insert/html_block.png';\nimport htmlBlockDarkImage from './images/omni_insert/html_block_dark.png';\nimport lineBlockImage from './images/omni_insert/line_block.png';\nimport lineBlockDarkImage from './images/omni_insert/line_block_dark.png';\nimport emojiImage from './images/omni_insert/emoji.png';\nimport emojiDarkImage from './images/omni_insert/emoji_dark.png';\nimport commentImage from './images/omni_insert/comment.png';\nimport commentDarkImage from './images/omni_insert/comment_dark.png';\nimport divImage from './images/omni_insert/div.png';\nimport divDarkImage from './images/omni_insert/div_dark.png';\nimport codeBlockImage from './images/omni_insert/code_block.png';\nimport codeBlockDarkImage from './images/omni_insert/code_block_dark.png';\nimport footnoteImage from './images/omni_insert/footnote.png';\nimport footnoteDarkImage from './images/omni_insert/footnote_dark.png';\nimport citationImage from './images/omni_insert/citation.png';\nimport citationDarkImage from './images/omni_insert/citation_dark.png';\nimport crossReferenceImage from './images/omni_insert/cross_reference.png';\nimport crossReferenceDarkImage from './images/omni_insert/cross_reference_dark.png';\nimport symbolImage from './images/omni_insert/symbol.png';\nimport symbolDarkImage from './images/omni_insert/symbol_dark.png';\nimport tableImage from './images/omni_insert/table.png';\nimport tableDarkImage from './images/omni_insert/table_dark.png';\nimport definitionListImage from './images/omni_insert/definition_list.png';\nimport definitionListDarkImage from './images/omni_insert/definition_list_dark.png';\nimport horizontalRuleImage from './images/omni_insert/horizontal_rule.png';\nimport horizontalRuleDarkImage from './images/omni_insert/horizontal_rule_dark.png';\nimport imgImage from './images/omni_insert/image.png';\nimport imgDarkImage from './images/omni_insert/image_dark.png';\nimport linkImage from './images/omni_insert/link.png';\nimport linkDarkImage from './images/omni_insert/link_dark.png';\nimport paragraphImage from './images/omni_insert/paragraph.png';\nimport paragraphDarkImage from './images/omni_insert/paragraph_dark.png';\nimport rawBlockImage from './images/omni_insert/raw_block.png';\nimport rawBlockDarkImage from './images/omni_insert/raw_block_dark.png';\nimport rawInlineImage from './images/omni_insert/raw_inline.png';\nimport rawInlineDarkImage from './images/omni_insert/raw_inline_dark.png';\nimport texBlockImage from './images/omni_insert/tex_block.png';\nimport texBlockDarkImage from './images/omni_insert/tex_block_dark.png';\nimport yamlBlockImage from './images/omni_insert/yaml_block.png';\nimport yamlBlockDarkImage from './images/omni_insert/yaml_block_dark.png';\nimport pythonChunkImage from './images/omni_insert/python_chunk.png';\nimport sqlChunkImage from './images/omni_insert/sql_chunk.png';\nimport d3ChunkImage from './images/omni_insert/d3_chunk.png';\nimport stanChunkImage from './images/omni_insert/stan_chunk.png';\nimport bashChunkImage from './images/omni_insert/bash_chunk.png';\nimport bashChunkDarkImage from './images/omni_insert/bash_chunk_dark.png';\nimport rChunkImage from './images/omni_insert/r_chunk.png';\nimport rChunkDarkImage from './images/omni_insert/r_chunk_dark.png';\nimport rcppChunkImage from './images/omni_insert/rcpp_chunk.png';\nimport rcppChunkDarkImage from './images/omni_insert/rcpp_chunk_dark.png';\nimport tabsetImage from './images/omni_insert/tabset.png';\nimport tabsetDarkImage from './images/omni_insert/tabset_dark.png';\nimport slideColumns from './images/omni_insert/slide_columns.png';\nimport slideColumnsDark from './images/omni_insert/slide_columns_dark.png';\nimport slidePause from './images/omni_insert/slide_pause.png';\nimport slidePauseDark from './images/omni_insert/slide_pause_dark.png';\nimport slideNotes from './images/omni_insert/slide_notes.png';\nimport slideNotesDark from './images/omni_insert/slide_notes_dark.png';\n\nimport articleImage from './images/citations/article.png';\nimport articleDarkImage from './images/citations/article_dark.png';\nimport bookImage from './images/citations/book.png';\nimport bookDarkImage from './images/citations/book_dark.png';\nimport broadcastImage from './images/citations/broadcast.png';\nimport broadcastDarkImage from './images/citations/broadcast_dark.png';\nimport dataImage from './images/citations/data.png';\nimport dataDarkImage from './images/citations/data_dark.png';\nimport entryImage from './images/citations/entry.png';\nimport entryDarkImage from './images/citations/entry_dark.png';\nimport imageImage from './images/citations/image.png';\nimport imageDarkImage from './images/citations/image_dark.png';\nimport legalImage from './images/citations/legal.png';\nimport legalDarkImage from './images/citations/legal_dark.png';\nimport mapImage from './images/citations/map.png';\nimport mapDarkImage from './images/citations/map_dark.png';\nimport movieImage from './images/citations/movie.png';\nimport movieDarkImage from './images/citations/movie_dark.png';\nimport otherImage from './images/citations/other.png';\nimport otherDarkImage from './images/citations/other_dark.png';\nimport songImage from './images/citations/song.png';\nimport songDarkImage from './images/citations/song_dark.png';\nimport webImage from './images/citations/web.png';\nimport webDarkImage from './images/citations/web_dark.png';\nimport zoteroOverlayImage from './images/citations/zotero-overlay.png';\nimport localSourcesImage from './images/citations/insert/local-sources.png';\nimport packageImage from './images/citations/insert/packages.png';\nimport bibliographyImage from './images/citations/insert/bibliography.png';\nimport bibliographyFolderImage from './images/citations/insert/bibliography-folder.png';\nimport zoteroRootImage from './images/citations/insert/zotero-root.png';\nimport zoteroLibraryImage from './images/citations/insert/zotero-library.png';\nimport zoteroCollectionImage from './images/citations/insert/zotero-collection.png';\nimport doiImage from './images/citations/insert/doi.png';\nimport crossRefImage from './images/citations/insert/crossref.png';\nimport pubmedImage from './images/citations/insert/pubmed.png';\nimport dataciteImage from './images/citations/insert/datacite.png';\n\nimport equationXRefImage from './images/xref/equation.png';\nimport equationXRefDarkImage from './images/xref/equation_dark.png';\nimport sectionXRefImage from './images/xref/section.png';\nimport sectionXRefDarkImage from './images/xref/section_dark.png';\nimport listingXRefImage from './images/xref/listing.png';\nimport listingXRefDarkImage from './images/xref/listing.png';\nimport tableXRefImage from './images/xref/table.png';\nimport tableXRefDarkImage from './images/xref/table_dark.png';\nimport figureXRefImage from './images/xref/figure.png';\nimport figureXRefDarkImage from './images/xref/figure_dark.png';\nimport theoremXRefImage from './images/xref/theorem.png';\nimport theoremXRefDarkImage from './images/xref/theorem_dark.png';\n\nimport allXRefInsertImage from './images/xref/insert/all.png';\nimport equationXRefInsertImage from './images/xref/insert/equation.png';\nimport sectionXRefInsertImage from './images/xref/insert/section.png';\nimport listingXRefInsertImage from './images/xref/insert/listing.png';\nimport tableXRefInsertImage from './images/xref/insert/table.png';\nimport figureXRefInsertImage from './images/xref/insert/figure.png';\nimport theoremXRefInsertImage from './images/xref/insert/theorem.png';\n\nimport tagDelete from './images/widgets/tag-delete.png';\nimport tagEdit from './images/widgets/tag-edit.png';\n\nexport function defaultEditorUIImages(): EditorUIImages {\n return {\n copy: copyImage,\n properties: propertiesImage,\n properties_deco: propertiesDecoImage,\n properties_deco_dark: propertiesDecoDarkImage,\n removelink: removelinkImage,\n runchunk: runchunkImage,\n runprevchunks: runprevchunksImage,\n search: searchImage,\n search_progress: searchProgressImage,\n omni_insert: {\n generic: omniInsertGenericImage,\n heading1: heading1Image,\n heading1_dark: heading1DarkImage,\n heading2: heading2Image,\n heading2_dark: heading2DarkImage,\n heading3: heading3Image,\n heading3_dark: heading3DarkImage,\n heading4: heading4Image,\n heading4_dark: heading4DarkImage,\n bullet_list: bulletListImage,\n bullet_list_dark: bulletListDarkImage,\n ordered_list: orderedListImage,\n ordered_list_dark: orderedListDarkImage,\n blockquote: blockquoteImage,\n blockquote_dark: blockquoteDarkImage,\n math_inline: mathInlineImage,\n math_inline_dark: mathInlineDarkImage,\n math_display: mathDisplayImage,\n math_display_dark: mathDisplayDarkImage,\n html_block: htmlBlockImage,\n html_block_dark: htmlBlockDarkImage,\n line_block: lineBlockImage,\n line_block_dark: lineBlockDarkImage,\n emoji: emojiImage,\n emoji_dark: emojiDarkImage,\n comment: commentImage,\n comment_dark: commentDarkImage,\n div: divImage,\n div_dark: divDarkImage,\n code_block: codeBlockImage,\n code_block_dark: codeBlockDarkImage,\n footnote: footnoteImage,\n footnote_dark: footnoteDarkImage,\n citation: citationImage,\n citation_dark: citationDarkImage,\n cross_reference: crossReferenceImage,\n cross_reference_dark: crossReferenceDarkImage,\n symbol: symbolImage,\n symbol_dark: symbolDarkImage,\n table: tableImage,\n table_dark: tableDarkImage,\n definition_list: definitionListImage,\n definition_list_dark: definitionListDarkImage,\n horizontal_rule: horizontalRuleImage,\n horizontal_rule_dark: horizontalRuleDarkImage,\n image: imgImage,\n image_dark: imgDarkImage,\n link: linkImage,\n link_dark: linkDarkImage,\n paragraph: paragraphImage,\n paragraph_dark: paragraphDarkImage,\n raw_block: rawBlockImage,\n raw_block_dark: rawBlockDarkImage,\n raw_inline: rawInlineImage,\n raw_inline_dark: rawInlineDarkImage,\n tex_block: texBlockImage,\n tex_block_dark: texBlockDarkImage,\n yaml_block: yamlBlockImage,\n yaml_block_dark: yamlBlockDarkImage,\n python_chunk: pythonChunkImage,\n sql_chunk: sqlChunkImage,\n d3_chunk: d3ChunkImage,\n stan_chunk: stanChunkImage,\n bash_chunk: bashChunkImage,\n bash_chunk_dark: bashChunkDarkImage,\n r_chunk: rChunkImage,\n r_chunk_dark: rChunkDarkImage,\n rcpp_chunk: rcppChunkImage,\n rcpp_chunk_dark: rcppChunkDarkImage,\n tabset: tabsetImage,\n tabset_dark: tabsetDarkImage,\n slide_columns: slideColumns,\n slide_columns_dark: slideColumnsDark,\n slide_notes: slideNotes,\n slide_notes_dark: slideNotesDark,\n slide_pause: slidePause,\n slide_pause_dark: slidePauseDark\n },\n citations: {\n article: articleImage,\n article_dark: articleDarkImage,\n book: bookImage,\n book_dark: bookDarkImage,\n broadcast: broadcastImage,\n broadcast_dark: broadcastDarkImage,\n data: dataImage,\n data_dark: dataDarkImage,\n entry: entryImage,\n entry_dark: entryDarkImage,\n image: imageImage,\n image_dark: imageDarkImage,\n legal: legalImage,\n legal_dark: legalDarkImage,\n map: mapImage,\n map_dark: mapDarkImage,\n movie: movieImage,\n movie_dark: movieDarkImage,\n other: otherImage,\n other_dark: otherDarkImage,\n song: songImage,\n song_dark: songDarkImage,\n web: webImage,\n web_dark: webDarkImage,\n zoteroOverlay: zoteroOverlayImage,\n local_sources: localSourcesImage,\n packages: packageImage,\n bibligraphy: bibliographyImage,\n bibligraphy_folder: bibliographyFolderImage,\n zotero_library: zoteroLibraryImage,\n zotero_collection: zoteroCollectionImage,\n zotero_root: zoteroRootImage,\n doi: doiImage,\n crossref: crossRefImage,\n pubmed: pubmedImage,\n datacite: dataciteImage,\n },\n xrefs: {\n section: sectionXRefImage,\n section_dark: sectionXRefDarkImage,\n figure: figureXRefImage,\n figure_dark: figureXRefDarkImage,\n table: tableXRefImage,\n table_dark: tableXRefDarkImage,\n listing: listingXRefImage,\n listing_dark: listingXRefDarkImage,\n equation: equationXRefImage,\n equation_dark: equationXRefDarkImage,\n theorem: theoremXRefImage,\n theorem_dark: theoremXRefDarkImage,\n type_all: allXRefInsertImage,\n type_section: sectionXRefInsertImage,\n type_equation: equationXRefInsertImage,\n type_figure: figureXRefInsertImage,\n type_table: tableXRefInsertImage,\n type_listing: listingXRefInsertImage,\n type_theorem: theoremXRefInsertImage\n },\n widgets: {\n tag_delete: tagDelete,\n tag_edit: tagEdit,\n },\n };\n}\n","/*\n * editor-menus.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorMenuItem, EditorUI } from '../api/ui';\nimport { tableMenu } from '../api/table';\nimport { EditorCommandId, EditorCommand } from '../api/command';\n\nexport interface EditorMenus {\n format: EditorMenuItem[];\n insert: EditorMenuItem[];\n table: EditorMenuItem[];\n}\n\nexport function editorMenus(ui: EditorUI, commands: EditorCommand[]) {\n return {\n format: formatMenu(ui, commands),\n insert: insertMenu(ui, commands),\n table: tableMenu(true, ui),\n };\n}\n\nfunction formatMenu(ui: EditorUI, commands: EditorCommand[]) {\n return [\n { command: EditorCommandId.Strong },\n { command: EditorCommandId.Em },\n { command: EditorCommandId.Underline },\n { command: EditorCommandId.Code },\n {\n text: ui.context.translateText('Text'),\n subMenu: {\n items: [\n { command: EditorCommandId.Strikeout },\n { command: EditorCommandId.Superscript },\n { command: EditorCommandId.Subscript },\n { command: EditorCommandId.Smallcaps },\n ],\n },\n },\n { separator: true },\n {\n text: ui.context.translateText('Bullets & Numbering'),\n subMenu: {\n items: [\n { command: EditorCommandId.BulletList },\n { command: EditorCommandId.OrderedList },\n { separator: true },\n { command: EditorCommandId.TightList },\n { separator: true },\n { command: EditorCommandId.ListItemCheck },\n { command: EditorCommandId.ListItemCheckToggle },\n { separator: true },\n { command: EditorCommandId.ListItemSink },\n { command: EditorCommandId.ListItemLift },\n { separator: true },\n { command: EditorCommandId.EditListProperties },\n ],\n },\n },\n { separator: true },\n { command: codeBlockCommand(commands) },\n { command: EditorCommandId.Blockquote },\n { command: EditorCommandId.LineBlock },\n { separator: haveAnyOf(commands, EditorCommandId.Div, EditorCommandId.Span) },\n { command: EditorCommandId.Div },\n { command: EditorCommandId.Span },\n { separator: true },\n {\n text: ui.context.translateText('Raw'),\n subMenu: {\n items: [\n { command: EditorCommandId.HTMLInline },\n { command: EditorCommandId.HTMLBlock },\n { separator: true },\n { command: EditorCommandId.TexInline },\n { command: EditorCommandId.TexBlock },\n { separator: true },\n { command: EditorCommandId.RawInline },\n { command: EditorCommandId.RawBlock },\n ],\n },\n },\n { separator: true },\n { command: EditorCommandId.ClearFormatting },\n { separator: true },\n { command: EditorCommandId.AttrEdit },\n ];\n}\n\nfunction insertMenu(ui: EditorUI, commands: EditorCommand[]) {\n return [\n { command: EditorCommandId.OmniInsert },\n ...(haveAnyOf(commands, EditorCommandId.RCodeChunk, EditorCommandId.PythonCodeChunk)\n ? [\n { separator: true },\n {\n text: ui.context.translateText('Code Chunk'),\n subMenu: {\n items: [\n { command: EditorCommandId.RCodeChunk },\n { separator: true },\n { command: EditorCommandId.PythonCodeChunk },\n { command: EditorCommandId.BashCodeChunk },\n { command: EditorCommandId.RcppCodeChunk },\n { command: EditorCommandId.SQLCodeChunk },\n { command: EditorCommandId.D3CodeChunk },\n { command: EditorCommandId.StanCodeChunk },\n ],\n },\n },\n ]\n : []),\n { separator: true },\n { command: EditorCommandId.Table },\n { command: EditorCommandId.Image },\n { command: EditorCommandId.Link },\n { command: EditorCommandId.Shortcode },\n ...(haveAnyOf(commands, EditorCommandId.Citation, EditorCommandId.CrossReference, EditorCommandId.Footnote)\n ? [\n { separator: true },\n { command: EditorCommandId.Citation },\n { command: EditorCommandId.CrossReference },\n { command: EditorCommandId.Footnote },\n ] : []),\n ...(haveAnyOf(commands, EditorCommandId.InsertSlideNotes, EditorCommandId.InsertSlidePause, EditorCommandId.InsertSlideColumns)\n ? [\n { separator: true },\n { command: EditorCommandId.InsertSlideColumns },\n { command: EditorCommandId.InsertSlidePause },\n { command: EditorCommandId.InsertSlideNotes }\n ] : []),\n { separator: true },\n ...(haveAnyOf(commands, EditorCommandId.InlineMath, EditorCommandId.DisplayMath)\n ? [\n {\n text: ui.context.translateText('LaTeX Math'),\n subMenu: {\n items: [\n { command: EditorCommandId.InlineMath },\n { command: EditorCommandId.DisplayMath },\n ],\n },\n },\n ]\n : []),\n ...(haveAnyOf(commands, EditorCommandId.DefinitionList)\n ? [\n {\n text: ui.context.translateText('Definition'),\n subMenu: {\n items: [\n { command: EditorCommandId.DefinitionList },\n { separator: true },\n { command: EditorCommandId.DefinitionTerm },\n { command: EditorCommandId.DefinitionDescription },\n ],\n },\n },\n ]\n : []),\n {\n text: ui.context.translateText('Special Characters'),\n subMenu: {\n items: [\n { command: EditorCommandId.Emoji },\n { command: EditorCommandId.Symbol },\n { separator: true },\n { command: EditorCommandId.EnDash },\n { command: EditorCommandId.EmDash },\n { separator: true },\n { command: EditorCommandId.NonBreakingSpace },\n { separator: true },\n { command: EditorCommandId.HardLineBreak },\n ],\n },\n },\n { separator: true },\n { command: EditorCommandId.ParagraphInsert },\n { command: EditorCommandId.InsertDiv },\n { command: EditorCommandId.HorizontalRule },\n ...(haveAnyOf(commands, EditorCommandId.Tabset)\n ? [\n { separator: true },\n { command: EditorCommandId.Tabset },\n { command: EditorCommandId.Callout },\n ] : []),\n { separator: true },\n { command: EditorCommandId.CodeBlockFormat },\n { command: EditorCommandId.YamlMetadata },\n { separator: true },\n { command: EditorCommandId.HTMLComment },\n ];\n}\n\n\nfunction haveReferenceMenu(commands: EditorCommand[]) {\n return haveAnyOf(commands, \n EditorCommandId.Citation,\n EditorCommandId.CrossReference,\n EditorCommandId.Footnote\n );\n}\n\nfunction haveAnyOf(commands: EditorCommand[], ...ids: EditorCommandId[]) {\n for (const command of commands) {\n if (ids.includes(command.id)) {\n return true;\n }\n }\n return false;\n}\n\nfunction codeBlockCommand(commands: EditorCommand[]) {\n return haveAnyOf(commands, EditorCommandId.CodeBlockFormat)\n ? EditorCommandId.CodeBlockFormat\n : EditorCommandId.CodeBlock;\n}\n","/*\n * table.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorCommandId } from './command';\nimport { EditorUI } from './ui';\n\nexport interface TableCapabilities {\n captions: boolean;\n headerOptional: boolean;\n multiline: boolean;\n}\n\nexport function tableMenu(insert: boolean, ui: EditorUI) {\n return [\n ...(insert \n ? [{ command: EditorCommandId.TableInsertTable }, \n { separator: true }\n ] \n : []\n ),\n { command: EditorCommandId.TableAddRowBefore },\n { command: EditorCommandId.TableAddRowAfter },\n { separator: true },\n { command: EditorCommandId.TableAddColumnBefore },\n { command: EditorCommandId.TableAddColumnAfter },\n { separator: true },\n { command: EditorCommandId.TableDeleteRow },\n { command: EditorCommandId.TableDeleteColumn },\n { separator: true },\n { command: EditorCommandId.TableDeleteTable },\n { separator: true },\n {\n text: ui.context.translateText('Align Column'),\n subMenu: {\n items: [\n { command: EditorCommandId.TableAlignColumnLeft },\n { command: EditorCommandId.TableAlignColumnCenter },\n { command: EditorCommandId.TableAlignColumnRight },\n { separator: true },\n { command: EditorCommandId.TableAlignColumnDefault },\n ],\n },\n },\n { separator: true },\n { command: EditorCommandId.TableToggleHeader },\n { command: EditorCommandId.TableToggleCaption },\n ];\n}\n","/*\n * editor-schema.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, NodeSpec, MarkSpec, Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { ExtensionManager } from './editor-extensions';\nimport { PandocNode } from '../api/node';\nimport { PandocMark } from '../api/mark';\n\nexport function editorSchema(extensions: ExtensionManager): Schema {\n // build in doc node + nodes from extensions\n const nodes: { [name: string]: NodeSpec } = {\n doc: {\n attrs: {\n initial: { default: false },\n },\n content: 'body notes',\n },\n\n body: {\n content: 'block+',\n isolating: true,\n parseDOM: [{ tag: 'div[class*=\"body\"]' }],\n toDOM() {\n return [\n 'div',\n { class: 'body pm-cursor-color pm-text-color pm-background-color pm-editing-root-node' },\n ['div', { class: 'pm-content' }, 0],\n ];\n },\n },\n\n notes: {\n content: 'note*',\n parseDOM: [{ tag: 'div[class*=\"notes\"]' }],\n toDOM() {\n return [\n 'div',\n { class: 'notes pm-cursor-color pm-text-color pm-background-color pm-editing-root-node' },\n ['div', { class: 'pm-content' }, 0],\n ];\n },\n },\n\n note: {\n content: 'block+',\n attrs: {\n ref: {},\n number: { default: 1 },\n },\n isolating: true,\n parseDOM: [\n {\n tag: 'div[class*=\"note\"]',\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n return {\n ref: el.getAttribute('data-ref'),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return [\n 'div',\n { 'data-ref': node.attrs.ref, class: 'note pm-footnote-body', 'data-number': node.attrs.number },\n 0,\n ];\n },\n },\n };\n extensions.pandocNodes().forEach((node: PandocNode) => {\n nodes[node.name] = node.spec;\n });\n\n // marks from extensions\n const marks: { [name: string]: MarkSpec } = {};\n extensions.pandocMarks().forEach((mark: PandocMark) => {\n marks[mark.name] = mark.spec;\n });\n\n // allow code to exclude marks that don't support input rules\n // (e.g. marks that denote a special escape sequences from markdown,\n // like raw_tex, raw_html, shortcodes, xrefs, math, etc.)\n if (marks.code) {\n const excludeInCode = extensions\n .pandocMarks()\n .filter(mark => mark.noInputRules && mark.name !== 'code')\n .map(mark => mark.name)\n .join(' ');\n marks.code.excludes = excludeInCode;\n }\n\n // return schema\n return new Schema({\n nodes,\n marks,\n });\n}\n","/*\n * presentation.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState } from 'prosemirror-state';\n\nimport { findTopLevelBodyNodes } from './node';\nimport { titleFromState } from './yaml';\n\nexport interface PresentationEditorLocation {\n items: PresentationEditorLocationItem[];\n auto_slide_level: number;\n}\n\nexport const kPresentationEditorLocationTitle = \"title\";\nexport const kPresentationEditorLocationHeading = \"heading\";\nexport const kPresentationEditorLocationHr = \"hr\";\nexport const kPresentationEditorLocationCursor = \"cursor\";\n\nexport interface PresentationEditorLocationItem {\n type: string;\n level: number;\n // extra field we use internally for navigation\n pos: number;\n}\n\nexport function getPresentationEditorLocation(state: EditorState) : PresentationEditorLocation {\n \n // not the cursor position\n const cursorPos = state.selection.from;\n\n // build list of items\n let autoSlideLevel = Number.MAX_VALUE;\n const items: PresentationEditorLocationItem[] = [];\n\n // get top level headings and horizontal rules\n const schema = state.schema;\n const bodyNodes = findTopLevelBodyNodes(state.doc, node => true);\n\n // bail if empty\n if (bodyNodes.length === 0) {\n return { items, auto_slide_level: 0 };\n }\n\n // start with title if we have one. note that pandoc will make the title slide\n // first no matter where it appears in the document, so we do the same here\n const title = titleFromState(state);\n if (title) {\n items.push({ \n type: kPresentationEditorLocationTitle, \n level: 0,\n pos: bodyNodes[0].pos\n });\n }\n\n // get top level headings and horizontal rules\n \n let pendingAutoSlideLevel = 0;\n let foundCursor = false;\n for (const nodeWithPos of bodyNodes) {\n // if node is past the selection then add the cursor token\n if (!foundCursor && (nodeWithPos.pos > cursorPos)) {\n foundCursor = true;\n items.push({\n type: kPresentationEditorLocationCursor,\n level: 0,\n pos: nodeWithPos.pos\n });\n }\n // add the node with the requisite type\n const node = nodeWithPos.node;\n if (node.type === schema.nodes.heading) {\n const level = node.attrs.level || 0;\n // track pending auto slide level\n if (level < autoSlideLevel) {\n pendingAutoSlideLevel = level;\n } else{\n pendingAutoSlideLevel= 0;\n }\n items.push({\n type: kPresentationEditorLocationHeading,\n level,\n pos: nodeWithPos.pos\n });\n } else if (node.type === schema.nodes.horizontal_rule) {\n items.push({\n type: kPresentationEditorLocationHr,\n level: 0,\n pos: nodeWithPos.pos\n });\n pendingAutoSlideLevel= 0;\n } else if (pendingAutoSlideLevel > 0) {\n autoSlideLevel = pendingAutoSlideLevel;\n pendingAutoSlideLevel = 0;\n }\n }\n\n // last chance to collect pending auto slide level\n if (pendingAutoSlideLevel > 0){\n autoSlideLevel = pendingAutoSlideLevel;\n }\n \n // didn't find an auto slide level\n if (autoSlideLevel === Number.MAX_VALUE) {\n autoSlideLevel = 0;\n }\n \n // return the items\n return { items, auto_slide_level: autoSlideLevel };\n}\n\nexport function positionForPresentationEditorLocation(\n state: EditorState, \n location: PresentationEditorLocation\n) : number {\n // get the positions of the editor's current state (filter out cursor)\n const editorItems = getPresentationEditorLocation(state).items\n .filter(item => item.type !== kPresentationEditorLocationCursor);\n \n // get the index of the cursor passed in the location\n const cursorIdx = location.items.findIndex(\n item => item.type === kPresentationEditorLocationCursor)\n ;\n\n // go one slide before the cursor\n if (cursorIdx >= 0) {\n const locationItem = editorItems[cursorIdx];\n return locationItem.pos;\n }\n\n // default if we can't find a location\n return -1;\n}\n"]} \ No newline at end of file +{"version":3,"sources":["src/polyfill/index.ts","src/polyfill/isconnected.ts","src/index.ts","src/polyfill/custom-event.ts","src/editor/editor.ts","src/api/cite.ts","src/api/doi.ts","src/api/ui-dialogs.ts","src/api/pandoc_attr.ts","src/api/extension.ts","src/api/pandoc_capabilities.ts","src/api/pandoc.ts","src/api/quote.ts","src/api/math.ts","src/api/mark.ts","src/api/text.ts","src/api/code.ts","src/api/node.ts","src/api/link.ts","src/api/html.ts","src/api/events.ts","src/api/event-types.ts","src/api/pandoc_format.ts","src/api/yaml.ts","src/api/format.ts","src/api/object.ts","src/api/log.ts","src/api/basekeys.ts","src/api/selection.ts","src/api/transaction.ts","src/api/slice.ts","src/api/platform.ts","src/api/outline.ts","src/api/rmd.ts","src/api/list.ts","src/api/command.ts","src/api/ui.ts","src/api/trailing_p.ts","src/api/paragraph.ts","src/api/util.ts","src/api/location.ts","src/api/dom.ts","src/api/scroll.ts","src/api/navigation.ts","src/api/xref.ts","src/api/pandoc_id.ts","src/api/raw.ts","src/api/image.ts","src/api/fixup.ts","src/api/css.ts","src/api/change.ts","src/api/input_rule.ts","src/api/wrap.ts","src/nodes/yaml_metadata/yaml_metadata-title.ts","src/behaviors/outline.ts","src/behaviors/find.ts","src/behaviors/omni_insert/omni_insert.ts","src/api/completion.ts","src/behaviors/omni_insert/omni_insert-completion.tsx","src/api/omni_insert.ts","src/api/placeholder.ts","src/behaviors/completion/completion.ts","src/behaviors/completion/completion-popup.tsx","src/api/widgets/popup.tsx","src/api/promise.ts","src/behaviors/spelling/spelling-interactive.ts","src/behaviors/spelling/spelling.ts","src/api/spelling.ts","src/behaviors/spelling/spelling-realtime.ts","src/pandoc/pandoc_converter.ts","src/api/pandoc_capsule.ts","src/api/base64.ts","src/pandoc/pandoc_to_prosemirror.ts","src/pandoc/pandoc_from_prosemirror.ts","src/api/fragment.ts","src/editor/editor-extensions.ts","src/nodes/text.ts","src/nodes/paragraph.ts","src/nodes/heading.ts","src/nodes/blockquote.ts","src/nodes/code_block.ts","src/nodes/list/list.ts","src/nodes/list/list-commands.ts","src/nodes/div/div.ts","src/nodes/div/div-callout.ts","src/nodes/div/div-tabset.ts","src/nodes/list/list-checked.ts","src/nodes/list/list-pandoc.ts","src/nodes/image/image.ts","src/nodes/image/image-dialog.ts","src/nodes/image/image-util.ts","src/nodes/image/image-textsel.ts","src/nodes/image/figure.ts","src/api/decoration.ts","src/nodes/image/image-view.ts","src/nodes/image/image-resize.ts","src/api/widgets/widgets.ts","src/nodes/image/figure-keys.ts","src/nodes/image/image-events.ts","src/nodes/hr.ts","src/nodes/hard_break.ts","src/nodes/null.ts","src/marks/em.ts","src/marks/strong.ts","src/marks/code.ts","src/marks/link/link.ts","src/marks/link/link-command.ts","src/marks/link/link-auto.ts","src/api/clipboard.ts","src/marks/link/link-headings.ts","src/marks/link/link-popup.tsx","src/api/widgets/tooltip.ts","src/api/widgets/button.tsx","src/api/text-popup.ts","src/api/widgets/react.ts","src/api/widgets/decoration.ts","src/behaviors/select_all.ts","src/behaviors/history.ts","src/behaviors/cursor.ts","src/behaviors/clear_formatting.ts","src/behaviors/smarty.ts","src/behaviors/attr_duplicate_id.ts","src/behaviors/trailing_p.ts","src/behaviors/empty_mark.ts","src/behaviors/escape_mark.ts","src/behaviors/code_block_input.ts","src/behaviors/paste_text.ts","src/behaviors/bottom_padding.ts","src/behaviors/insert_symbol/insert_symbol-plugin-symbol.tsx","src/api/unicode.ts","src/behaviors/insert_symbol/insert_symbol-plugin.tsx","src/behaviors/insert_symbol/insert_symbol-popup.tsx","src/api/focus.ts","src/api/widgets/select.tsx","src/api/widgets/text.tsx","src/behaviors/insert_symbol/insert_symbol-grid.tsx","src/behaviors/insert_symbol/insert_symbol-grid-cell.tsx","src/behaviors/insert_symbol/insert_symbol-grid-preview.tsx","src/behaviors/insert_symbol/symbols.ts","src/behaviors/insert_symbol/insert_symbol-plugin-emoji.tsx","src/api/emoji.ts","src/api/emojis-all.ts","src/marks/emoji/emoji.ts","src/marks/emoji/emoji-completion.tsx","src/behaviors/insert_symbol/insert_symbol-emoji-skintone.tsx","src/behaviors/insert_symbol/insert_special_characters.ts","src/behaviors/nbsp.ts","src/behaviors/remove_section.ts","src/behaviors/slides.ts","src/marks/strikeout.ts","src/marks/superscript.ts","src/marks/subscript.ts","src/marks/smallcaps.ts","src/marks/underline.ts","src/marks/raw_inline/raw_inline.ts","src/marks/raw_inline/raw_tex.ts","src/api/mark-highlight.ts","src/api/tex.ts","src/marks/raw_inline/raw_html.ts","src/marks/math/math.ts","src/marks/math/math-commands.ts","src/marks/math/math-transaction.ts","src/marks/math/math-highlight.ts","src/marks/math/math-popup.ts","src/marks/math/math-view.ts","src/api/attr_edit/attr_edit-decoration.tsx","src/marks/math/math-keys.ts","src/marks/cite/cite.ts","src/api/bibliography/bibliography.ts","src/api/bibliography/bibliography-provider_local.ts","src/api/path.ts","src/api/bibliography/bibDB.ts","src/api/csl.ts","src/api/crossref.ts","src/api/csl-text.ts","src/api/bibtex/bibtex.ts","src/api/bibtex/fields.ts","src/api/bibtex/language.ts","src/api/bibtex/types.ts","src/api/bibtex/formatting.ts","src/api/bibtex/characters.ts","src/api/bibliography/bibliography-provider_zotero.ts","src/api/zotero.ts","src/marks/cite/cite-completion.tsx","src/api/widgets/completion.tsx","src/marks/cite/cite-completion-bibliography.ts","src/marks/cite/cite-completion-quarto-xref.ts","src/marks/xref/xref-completion.tsx","src/marks/cite/cite-completion-search.ts","src/marks/cite/cite-highlight.ts","src/marks/cite/cite-completion_doi.tsx","src/api/widgets/completion-detailed.tsx","src/marks/cite/cite-doi.ts","src/marks/cite/cite-popup.tsx","src/marks/cite/cite-commands.ts","src/behaviors/insert_citation/insert_citation.tsx","src/api/widgets/tag-input.tsx","src/api/widgets/navigation-tree.tsx","src/api/widgets/dialog-buttons.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel.ts","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-bibliography.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-typeahead-search.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-list.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-list-item.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-doi.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-latent-search.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-list-item-detailed.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-crossref.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-pubmed.tsx","src/api/pubmed.ts","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-datacite.tsx","src/api/datacite.ts","src/behaviors/insert_citation/insert_citation-bibliography-picker.tsx","src/behaviors/insert_citation/source_panels/insert_citation-source-panel-packages.tsx","src/api/widgets/checkbox-input.tsx","src/marks/cite/cite-popup-xref.tsx","src/marks/span.ts","src/marks/xref/xref.ts","src/marks/xref/xref-popup.tsx","src/behaviors/insert_xref/insert_xref.tsx","src/behaviors/insert_xref/insert_xref_index.ts","src/marks/raw_inline/raw_html_comment.ts","src/marks/shortcode.ts","src/nodes/footnote/footnote.ts","src/api/shortcode.ts","src/nodes/footnote/footnote-editor.ts","src/nodes/footnote/footnote-transaction.ts","src/nodes/raw_block.ts","src/nodes/yaml_metadata/yaml_metadata.ts","src/nodes/yaml_metadata/yaml_metadata-capsule.ts","src/nodes/rmd_chunk/rmd_chunk.ts","src/nodes/rmd_chunk/rmd_chunk-image.ts","src/nodes/rmd_chunk/rmd_chunk-capsule.ts","src/nodes/line_block.ts","src/nodes/table/table.ts","src/nodes/table/table-commands.ts","src/nodes/table/table-nodes.ts","src/nodes/table/table-pandoc.ts","src/nodes/table/table-columns.ts","src/nodes/table/table-capsule.ts","src/nodes/table/table-contextmenu.ts","src/nodes/table/table-paste.ts","src/nodes/definition_list/definition_list.ts","src/nodes/definition_list/definition_list-commands.ts","src/nodes/definition_list/definition_list-insert.ts","src/nodes/definition_list/definition-list-keys.ts","src/nodes/definition_list/definition_list-inputrule.ts","src/api/position.ts","src/nodes/definition_list/definition_list-pandoc.ts","src/nodes/shortcode_block.ts","src/nodes/html_preserve.ts","src/optional/ace/ace.ts","src/api/cursor.ts","src/optional/ace/ace-render-queue.ts","src/optional/ace/ace-placeholder.ts","src/optional/ace/ace-node-views.ts","src/behaviors/attr_edit/attr_edit.ts","src/behaviors/attr_edit/attr_edit-command.ts","src/editor/editor-theme.ts","src/editor/editor-images.ts","src/editor/editor-menus.ts","src/api/table.ts","src/editor/editor-schema.ts","src/api/presentation.ts"],"names":["_4973","f","r","id","cached","m","exports","Object","isFrozen","input","default","module","editor_1","Editor","UITools","mod","__esModule","value","custom_event_1","__importDefault","isconnected_1","t","_","label","ops","push","op","pop","trys","body","call","thisArg","e","y","done","__spreadArrays","this","s","i","il","arguments","length","Array","k","a","j","jl","defineProperty","prosemirror_inputrules_1","prosemirror_keymap_1","prosemirror_model_1","prosemirror_state_1","prosemirror_view_1","prosemirror_utils_1","cite_1","ui_dialogs_1","pandoc_capabilities_1","omni_insert_1","spelling_interactive_1","spelling_realtime_1","pandoc_converter_1","editor_extensions_1","EditorCommands","command_1","EditorCommandId","attr","propsToInput","attrPropsToInput","inputToProps","attrInputToProps","pandocAutoIdentifier","text","pandoc_id_1","image","validUnits","percentUnit","css_1","kPercentUnit","unitToPixels","image_1","pixelsToUnit","roundUnit","format","parseFormatConfig","pandoc_format_1","pandocFormatConfigFromCode","citation","citeUI","PluginKey","parent","context","options","pandocFormat","pandocCapabilities","_this","maxContentWidth","events","events_1","DOMEditorEvents","keybindings","initExtensions","editorSchema","extensions","EditorState","create","initialDoc","attributes","dispatchTransaction","bind","EditorDOMParser","schema","view","dom","add","editor_theme_1","defaultTheme","PandocConverter","server","pandoc","setAttribute","addEventListener","event_types_1","ScrollEvent","pandocFmt","editor","_a","spellCheck","codeEditor","rmdImagePreview","hideFormatComment","className","codeChunks","bookdownXRef","bookdownPart","blogdownMathInCode","rmdExtensions","hugoExtensions","__assign","shortcodes","docTypes","ui","images","defaultImages","omni_insert","sent","resolve","event","handler","subscribe","eventName","title","setTitle","state","setMarkdown","markdown","emitUpdate","Promise","doc","line_wrapping","unrecognized","example_lists","unparsed_meta","loc","tr_1","i_1","getMarkdownTr","canonical","location","pandocConverter","toProsemirror","result","isInitialDoc","plugins","updateState","getEditingLocation","tr","setTextSelection","pos","applyFixups","fixup_1","FixupContext","Load","emitEvent","UpdateEvent","getMarkdownCode","prototype","attrs","initial","getMarkdown","__generator","code","outline_1","getEditingOutlineLocation","getHTML","getTitle","getSelection","navigation_id","navigationIdForSelection","setEditingLocation","outlineLocation","previousLocation","getOutline","getFindReplace","selectCurrent","find_1","selectFirst","selectNext","selectPrevious","replace","getSpellingDoc","pandocMarks","spelling","spellingInvalidateAllWords","invalidateAllWords","spellingInvalidateWord","word","invalidateWord","extensionFixups","getSelectedText","replaceSelection","selection","from","empty","marks","$from","dispatch","sel","TextSelection","trSetSel","getYamlFrontMatter","nodes","yaml_metadata","yaml_1","yamlFrontMatter","presentation_1","getPresentationEditorLocation","navigateToPresentationEditorLocation","positionForPresentationEditorLocation","navigate","navigation_1","NavigationType","Pos","String","applyYamlFrontMatter","yaml","focus","blur","insertChunk","chunkPlaceholder","type","recordCurrent","animate","NavigateEvent","nav","resize","applyFixupsOnResize","ResizeEvent","initFn","getMenus","commands","commandKeys","map","command","keymap","isActive","isEnabled","plural","execute","keepFocus","applyTheme","theme","classList","toggle","darkMode","setMaxContentWidth","maxWidth","minPadding","minContentPadding","syncContentWidth","setKeybindings","keyBindings","reconfigure","createPlugins","getEditorFormat","getPandocFormat","getPandocFormatConfig","isRmd","pandocFormatConfigFromDoc","lastTrSelectionOnly","selectionSet","docChanged","apply","StateChangeEvent","storedMarksSet","getMeta","transaction_1","kFixupTransaction","outline_2","previousOutline","OutlineChangeEvent","DispatchEvent","eventType","detail","emit","pandocExtensions","navigation","registerCompletionExtension","register","omniInsertExtension","omniInserters","markFilter","registerRealtimeSpelling","registerPlugins","realtimeSpellingPlugin","baseKeysPlugin","baseKeys","appendTransactionsPlugin","appendTransactions","hooks","Plugin","inputRulesPlugin","input_rule_1","markInputRuleFilter","plugin","inputRules","rules","handleTextInput","props","to","domEventsPlugin","key","handleDOMEvents","FocusEvent","keydown","prefs","tabKeyMoveFocus","pluginKeys","forEach","keys","ctrlKeyCodes","keyCombo","match","keyCode","toUpperCase","prosemirrorKeydownHandler","keydownHandler","keybindingsPlugin","keyEvent","ctrlKey","keyCommand","defaultKeys","clientWidth","applyPadding","LayoutEvent","fixups","fixup","nodeFromJSON","content","__awaiter","outlineNode","getOutlineNodes","reverse","find","node","_super","DOMParser","fromSchema","parse","preserveWhitespace","parseSlice","doi_1","pinyin_1","transliteration_1","kInvalidCiteKeyChars","existingIds","baseId","char","charCodeAt","fromCharCode","isHanzi","asciiOnlyBaseId","includes","proposedId","count","safeBaseId","suggestCiteId","csl","citeIdLeading","author","family","literal","shortTitle","substr","Math","min","issued","yearIssued","datePart","formatForPreview","pairs","name","undefined","dateParts","formatIssuedDate","containerTitle","volume","page","cslAny","charAt","slice","createUniqueCiteId","URL","DOI","urlForDOI","formatAuthors","authors","maxLength","_b","_c","_d","previous","endsWith","index","current","substring","array","addAuthorOrEtAl","previousAuthorStr","newAuthorStr","authorStr","etAlStr","lastSpace","lastIndexOf","etAl","date","singleDatePart","citeProps","suggestedId","previewFields","kCrossrefMatches","findDOI","token","regex","hasDOI","doi","asPandocClass","clz","asHtmlId","startsWith","asHtmlClass","kAlertTypeInfo","kAlertTypeWarning","keyvalue","classes","split","style","pandoc_attr_1","pandocAttrKeyvalueFromText","kv","join","extension_1","kPandocAttrClasses","kPandocAttrKeyvalue","separator","convertedText","inQuotes","ch","trim","line","parts","kWidthAttrib","kAlignAttrib","kFigAltAttrib","kFigAlignAttrib","kFigEnvAttrib","kCodeBlockAttr","kCodeBlockText","pandocAttrAvailable","pandocAttrFrom","pandocAttr","pandocAttrRemoveClass","isArray","_i","predicate","foundClass","pandocAttrGetKeyvalue","keyval","entry","keyvalue_1","pandocAttrRemoveKeyvalue","filter","pandocAttrInSpec","spec","tok","c","kPandocAttrId","pandocAttrToDomAttr","marker","domAttr","el","forceAttrs","excludedNames","includedNames","hasAttribute","getAttribute","val","resolveCurrent","remainder","partitioned","partition","base","extensionIfEnabled","extension","kPandocAttrExtensions","extensionEnabled","getPandocCapabilities","getCapabilities","version","api_version","output_formats","pandoc_1","parsePandocListOutput","highlight_languages","PandocTokenType","quote_1","math_1","code_1","link_1","tokens","hasOwnProperty","mapValue","mapToken","mappedTok","tokenHasChildren","imageAttributesAvailable","link_attributes","raw_html","output","kRawBlockFormat","kRawBlockContent","kWriteSpaces","stringifyTokens","unemoji","elem","Str","Space","SoftBreak","LineBreak","kLinkChildren","Span","kSpanChildren","Quoted","kQuoteType","stringifyMath","Code","kCodeText","forEachToken","mapTokens","tokenTextEscaped","marksByPriority","markWriters","aPriority","priority","QuoteType","DoubleQuote","kSingleQuoteRegEx","RegExp","kSingleQuotes","begin","end","kDoubleQuotes","quotesForType","kDoubleQuoteRegEx","MathType","Inline","kMathType","kMathContent","kMathId","editorMath","delimter","delimiterForType","mathTypeIsActive","text_1","$pos","start","link","mark","offset","startIndex","startPos","child","nodeSize","endIndex","childCount","isInSet","endPos","markIsActive","storedMarks","range","nodesBetween","markItem","getMarkRange","markType","$head","removeInvalidatedMarks","re","findChildrenByMark","markedNode","removeStoredMark","validLength","removeMark","nd","markRange","trimmedText","trimStart","countSpace","mergedTextNodes","_node","_pos","parentNode","allowsMarkType","textNode","exec","refText","rangeHasMark","anchor","lastIndex","nodeIndex","textNodes","str1","str2","sensitivity","clipboardTextParser","$context","codeViews","codeViewType","codeView","createFromPastePattern","test","codeNode","nodeType","createAndFill","Slice","Fragment","n","p","canInsertNode","canInsertNodeAtPos","asSelection","d","depth","canReplaceWith","findTopLevelBodyNodes","findNodeOfTypeInSelection","foundNode","lastNode","last","nodeIsActive","findSelectedNodeOfType","findParentNode","kLinkTarget","LinkType","ids","headings","findChildren","findChildrenByType","heading","level","textContent","escapeHTMLAttribute","div","appendChild","innerHTML","kHTMLCommentRegEx","isHTMLComment","html","noEmptyAttribs","tag","attribs","selfClosing","DOMSerializer","serializeNode","generateHTML","firstYamlBlock","mdExtensions","object_1","findValue","yamlMarkdownOptions","yamlFormatConfig","readPandocFormatConfig","formatConfig","pandocFormatConfigFromCommentInCode","keyValueRegEx","matchPandocFormatComment","field","fields","keyValueMatch","variables_1","source","obj","toString","mode","asString","rmd_extensions","doctype","str","references","references_location","references_prefix","prefix","toLowerCase","asBoolean","parseExtensions","enabled","splitPandocFormatString","optionsPos","indexOf","commonmarkExtensions","rawHTML","includeTexMathDollars","format_1","kHugoDocType","kMarkdownGithubFormat","yamlMetadataNodes","foundFirstRawInline","config","pandocFormatConfigFromYamlInCode","warnings","baseName","formatOptions","variant","validOptionNames","fullName","invalidFormat","invalidOptions","pandocMode","kMarkdownMmdFormat","kMarkdownStrictFormat","kGfmFormat","kCommonmarkFormat","kCommonmarkXFormat","kMarkdownVariants","listExtensions","option","pandocFormatWith","hasFencedCodeBlocks","backtick_code_blocks","fenced_code_blocks","kBookdownDocType","kPresentationDocType","node_1","isYamlMetadataNode","titleMatch","kYamlMetadataTitleRegex","firstYaml","firstYamlNode","stripYamlDelimeters","yamlText","updatedYaml","replaceRangeWith","updatedYamlNode","insert","yamlNodes_1","titleFromYamlMetadataNode","yamlMetadataNameValueRegex","valueMatch","parseYaml","kFirstYamlBlockRegex","yamlCode","js_yaml_1","load","onWarning","log_1","logException","yamlParsed","dump","object","some","ignoreKey","homeKey","editingNode","head","coordsAtPos","beginDocPos","isOnPreviousLine","endKey","editingRootNode","endDocPos","top","bottom","arrowBodyNodeBoundary","dir","endOfTextblock","selection_1","selectionIsBodyTopLevel","side","nextPos","Selection","near","after","before","currentRootNode","nextRootNode","endTopLevelBodyNodeBoundary","scrollIntoView","BaseKey","Enter","prosemirror_commands_1","splitBlock","liftEmptyBlock","createParagraphNear","Backspace","selectNodeBackward","joinBackward","deleteSelection","Tab","ShiftTab","Delete","selectNodeForward","joinForward","platform_1","kPlatformMac","Home","End","ArrowLeft","ArrowUp","ArrowDown","ModArrowDown","undoInputRule","x","commandMap","baseKey","unshift","values","_e","isTextblock","cursorOffset","parentOffset","nodeText","prosemirror_gapcursor_1","selectionIsWithinRange","selectionIsWithin","nodeWithPos","selectionHasRange","selectionIsImageNode","NodeSelection","figure","selectionIsEmptyParagraph","paragraph","selectionWithinLastBodyParagraph","editingRoot","lastChild","slice_1","kPasteTransaction","kSetMarkdownTransaction","kNavigationTransaction","kInsertSymbolTransaction","kInsertCompletionTransaction","MarkTransaction","addMark","insertText","transactionsDocChanged","transactions","transaction","transactionsChangeSet","oldState","newState","transactions_1","changeSet","addSteps","mapping","maps","complete","oldSize","old","curSize","cur","outer","scan","sameMarkup","size","step","sliceContentLength","handlers","handlers_1","nodeAt","nodeFilter","haveChange","changes","change","fromA","toA","checkForChange","append","_loop_1","handlers_2","trTransform","prosemirror_transform_1","Transform","transactionsAreTypingChange","hasNode","descendants","navigator","platform","rmd_chunk","bullet_list","outlineNodes","bodyNode","childNode","kYamlMetadataOutlineItemType","itemsWithPos","getDocumentOutline","item","active","position","chunk","rmd_1","rmdChunkEngineAndLabel","kHeadingOutlineItemType","isOutlineNode","canInsertRmdChunk","within","findParentNodeOfType","table","list_item","blockquote","activeRmdChunk","rmdNode","rmdChunk","rmdChunkNodes_1","rmdChunkNode","chunks","lines","trimLeft","meta","matchLang","isContainerChunk","lang","delimiter","reduce","ticks","idx","insertRmdChunk","GapCursor","toggleBlockType","list_1","precedingListItemInsertPos","rmdText","util_1","uuidv4","prevListItemPos","precedingListItemInsert","previousRmdChunks","localeCompare","kEvalFalseRegEx","table_cell","table_header","cell","markedRange","mark_1","textBetween","ListType","extendStatics","__extends","b","setPrototypeOf","__proto__","__","constructor","assign","prosemirror_schema_list_1","ui_1","trailing_p_1","ProsemirrorCommand","omniInsert","MarkCommand","toggleMarkType","NodeCommand","BlockCommand","blockType","toggleType","WrapCommand","wrapType","toggleWrap","InsertCharacterCommand","codeRange","defaultToggleMark","toggletype","setBlockType","$anchor","lift","wrapIn","listType","itemType","blockRange","$to","isList","parentList","tight","setNodeMarkup","listSpacing","kListSpacingTight","replaceSelectionWith","selectAfter","requiresTrailingP","insertTrailingP","sameParent","allowKey","endCaptionPos","above","indexAfter","contentMatchAt","defaultType","abs","paragraph_1","insertTrailingPTransform","dom_1","outlineItemSimillarToNode","outlineItem","docOutlneNode","nodeA","nodeB","scrollTop","docOutlineLocationNode","items","documentOutline","docOutlineNode","locationIsBetweenDocOutlineNodes","restoreSelection","scroll_1","scrollToPos","cs","getComputedStyle","asNumber","parseFloat","paddingX","paddingLeft","paddingRight","paddingY","paddingTop","paddingBottom","borderY","borderTopWidth","borderBottomWidth","width","offsetWidth","borderX","height","offsetHeight","onElementRemoved","container","onRemoved","mutationsList","mutation","removedNodes","center","ordered_list","parentDiv","findParentNodeOfTypeClosestToPos","resultPos","resultNode","nodeDOM","scroller","zenscroll_1","createScroller","containerEl","duration","onDone","intoView","HTMLElement","xref_1","navigateToId","navigateToHref","href","editorFormat","xref","xrefPosition","xrefType","xrefPos","prevPos","max","dest","parentElement","navigateToPos","Id","Href","navigateToHeading","XRef","navigateToXRef","locators","colonPos","xrefInfo","id_1","locator_1","markType_1","hasXRef","nodeTypes","suffix","dashPos","xrefPositionLocate","quartoXrefPositionLocators","bookdownXrefPositionLocators","captions","prosemirror_utils_2","table_caption","mathType","math","prevNodeMath","thm","quartoDivLocator","lem","h2","headingLocator","h3","h4","h5","h6","fig","rmdChunkHasXRef","tab","raw_1","kTexFormat","cnj","thereomLocator","def","engine","pattern","pandocAsciify","newch","chars","len","asciify","gfmAutoIdentifier","editRawBlockCommand","raw_block","action","rawBlock","raw","prevSel","createRawNode","asyncEditRawBlock","containerWidth","kPixelUnit","ImageType","isValidImageSizeUnit","unit","kValidUnits","imageSizePropWithUnit","prop","isNaturalAspectRatio","dims","defaultValue","naturalWidth","naturalHeight","pixels","round","attrib","_match","p1","p2","removeStyleAttrib","extractSizeStyles","keyvalues","newKeyvalues","getValue","pair","kHeightAttrib","kStyleAttrib","_attrib","setProperty","replaceClassWithStyle","contains","remove","removeAttribute","children_1","children","EditorChangeType","diff_match_patch_1","timeout","dmp","diff_match_patch","Diff_Timeout","diff","diff_main","diff_cleanupSemantic","DIFF_INSERT","Insert","DIFF_DELETE","Error","regexp","getAttrs","InputRule","textIndex","delimStart","delete","Function","markStart","markInputRule","delimiterMarkInputRule","prefixMask","delim","contentPattern","textStart","textEnd","maskOffset","disabledMarks","marksWithNoInputRules","marksInRange_1","maskedMarkTypes","maskedMarkTypes_1","wrappingRule","wrappingInputRule","joinPredicate","paraContent","isText","sentence","hardBreak","hardBreakPos","init","_config","titleFromState","titleLine","foundTitle","updatedMetadata","updatedNode","yamlNode","hasOutlineIdsTransaction","usedIds","Set","outlineId","setMeta","GoToNextSection","goToOutlineCommand","GoToPreviousChunk","editorOutline","transactionsHaveChange","transactionsAffectOutline","targetType","outline","target","sequence","Map","rootOutlineItem","defaultLevel","typename","sequenceLast","getState","FindPlugin","instance","DecorationSet","updating","update","prevState","clearResultObserver","isResultSelected","scrollToSelectedResult","decorations","resultElement","resultObserverTimer","term","escape","updateResults","selectResult","afterSelection","matchesTerm","selectedText","wrap","searchTo","decorationSet","withResultUpdates","searchFrom","decoration","lastDecoration","nextDecoration","tr_3","tr_4","selectionMarks","marksAcross","replaceAll","replaced","hasTerm","tr_5","clear","kAddToHistoryTransaction","resultDecorations","search","findRegEx","Decoration","inline","class","setSelection","watchForSelectedResult","MutationObserver","records","observer","ele","isResultNode","observe","childList","window","setTimeout","resultObserver","disconnect","clearTimeout","querySelector","scrollElement","nextParent","offsetParent","caseSensitive","findPlugin","inclusive","parseDOM","toDOM","readers","writer","writeInlines","OmniInsertCommand","inputRuleFilter","completionHandlers","omni_insert_completion_1","omniInsertCompletionHandler","OmniInsert","completion_1","selectionAllowsCompletions","kCompletionDefaultMaxVisible","prevHandler","scope","Node","replacement","omniInsertCompletions","inserter","keywords","keyword","sort","thenby_1","firstBy","omniInsertGroupCompare","thenBy","omniInsertPriorityCompare","direction","completion","deleteRange","selectionOffset","removeCommandText","component","OmniInserterView","kOmniInsertRegex","query","placeholder_1","placeholderDecoration","translateText","completions","OmniInsertGroup","placeholder","pluginKey","set","emptyNode","textBefore","completionTextBeforeCursor","prevToken","isPaste","scrollUnsubscribe","removeEventListener","clearCompletions","pluginState","handled","horizontal","completionsActive","kbEvent","insertCompletion","selectedIndex","renderCompletions","forwardKey","completionPageSize","preventDefault","stopPropagation","promise_1","PromiseQueue","resetSelection","setAllCompletions","updatedCompletions","requestVersion_1","setDisplayedCompletions","displayedCompletions","updateCompletions","completionStream_1","stream","filteredCompletions","allCompletions","requestAllCompletions_1","hideNoResults","completionPopup","completion_popup_1","createCompletionPopup","renderCompletionPopup","performCompletionReplacement","CompletionPlugin","__importStar","document","createElement","zIndex","popup","completionPopupSize","positionStyles","selectionCoords","left","innerHeight","innerWidth","cursorCoords","completionPopupPositionStyles","applyStyles","render","react_1","CompletionPopup","destroyCompletionPopup","unmountComponentAtNode","concat","popup_1","Popup","CompletionList","kCompletionDefaultItemHeight","useRef","containerRef","scrollToRow","getElementsByClassName","ref","completionCount","header","completionHeader","headerProps","message","lineHeight","colSpan","completionsHeader","itemHeight","kNoResultsHeight","noResults","completionsNoResults","verticalCompletions","itemEventHandler","completionItemCell","onClick","onMouseMove","onHover","cellWidths","maxVisible","kCompletionDefaultWidth","headerHeight","horizontalCellWidths","total","contentEditable","queue","catch","err","running","reject","dequeue","spelling_1","excludedMarks","onCheckBegin","getWords","excluded","spellingDocPlugin","createAnchor","getText","wordRange","fromCoords","toCoords","spellingDocKey","get","SpellingDocPlugin","checking","anchors","setPosition","getPosition","SpellingAnchor","onCheckEnd","isBlock","classifier","findBeginWord","findEndWord","beginPos","classifyCharacter","currentPos","advanceToWord","endWordPos","excludeWord","words","shift","spellcheckerWord","kCharClassWord","kCharClassBoundary","kCharClassNonWord","spelling_2","hasFocus","realtimeEnabled","hasBeenFocused","word_1","wordDecos","decos","prosemirror_changeset_1","ChangeSet","steps","AddMarkStep","RemoveMarkStep","markStep","markRanges","removeRanges_1","fromPos","toPos","fromB","toB","addRanges_1","spellingDecorations","cursorDecos","realtimeSpellingKey","contextmenu","spellingSuggestionContextMenuHandler","focusUnsubscribe","updateSpelling","v_1","isConnected","excludeCursor","ranges","rangeMap","wordText","incorrectWords_1","checkWords","wordsToCheck","incorrectWord","ranges_1","cursor","menuItems","showContextMenu","clientX","clientY","schema_1","posAtDOM","deco","from_1","to_1","word_2","suggestionList","suggestions","suggestion","menuAction","ignoreWord","pandocPreprocessors","pandocTokensFilters","pandocBlockReaders","pandocInlineHTMLReaders","pandocBlockCapsuleFilters","pandocMarkWriters","autoIds","preprocessor","blockCapsuleFilters","pandoc_capsule_1","pandocMarkdownWithBlockCapsules","original","pandoc_to_prosemirror_1","pandocToProsemirror","ast","tokensFilters","blockReaders","inlineHTMLReaders","postprocessor","fromProsemirror","pandocOptions","referenceLocation","isParagraphNode","firstChild","paraNode","hard_break","disabledTableTypes","disabledFormatOptions","atxHeaders","dpi","column","parseInt","wrapOptions","astToMarkdown","adjustedFormat","disabled","newFormat","ext","kBlockCapsuleSentinel","handleText","encodedBlockCapsuleRegex","flags","envelopeLen","base64_1","base64Decode","record","fieldValue","blockCapsuleSourceWithoutPrefix","capsuleFilter","p3","p4","originalPos","positions","discard","extract","defaultExtractor","capsule","base64Encode","enclose","encodedRecord","decodeBlockCapsuleText","filters","blockCapsuleTextHandler","textFilter","stripPrefix","CodeBlock","RawBlock","parsePandocBlockCapsule","blockCapsuleParagraphTokenHandler","tokenRegex","Para","codeUnits","Uint16Array","Uint8Array","buffer","bytes","binary","Parser","createHandlers","ParserState","openNode","addNode","closeMark","writeText","hasInlineHTMLWriter","parser","writeInlineHTML","logUnrecognized","logExampleList","isNodeOpen","blocks","resolvePandocBlockCapsuleText","Null","prevTok","lineBreaks","columnBreaks","sentenceBreaks","gfm_auto_identifiers","heading_ids","hasShortcutHeadingLinks","equalsIgnoreCase","autoIdentifier","ascii_identifiers","headingIds","has","toLocaleLowerCase","Link","heading_1","kHeadingLevel","kHeadingAttr","kHeadingChildren","astBlocks","writeTokens","targetAst","lineWrapping","targetTokens","writeToken","blockCapsule","writeNode","reader","getChildren","this_1","block","blockReaders_1","blockReader","nodeType_2","closeNode","code_block","pandocAttrReadAST","readers_1","stack","Mark","none","notes","topNodeType","hasExampleLists","exampleLists","merged","info","isInline","openMark","addToSet","removeFromSet","openNoteNode","note","footnoteNumber","unrecognizedTokens","maybeMerge","sameSet","pandocFromProsemirror","apiVersion","nodeWriters","notesNode","PandocWriter","writeNodes","initEscapeCharacters","write","writeSpaces","spaceAfter","output_1","spaceBefore","outputText","trimRight","writeArray","writeAttr","preventEscapeCharacters","kPreventBracketEscape","flushTextRun","textRun_1","smart","manualEscapeCharacters","writeNote","Note","noteBody","fragment","nextNode","childIndex","currentChild","nodeMarks","next","markedNodes","activeMarks","md","fragment_1","fragmentText","escapeSymbols","escaped","escapeCharacters","RawInline","withOption","fill","tex_math_single_backslash","allEscapeCharacters","emjojiMark","emoji","emojihint","blockquote_1","code_block_1","figure_1","hr_1","hard_break_1","null_1","em_1","strong_1","history_1","select_all_1","cursor_1","clear_formatting_1","smarty_1","attr_duplicate_id_1","empty_mark_1","escape_mark_1","code_block_input_1","paste_text_1","footnote_1","manager","ExtensionManager","slides_1","bottom_padding_1","insert_symbol_plugin_symbol_1","insert_special_characters_1","nbsp_1","remove_section_1","yaml_metadata_1","rmd_chunk_1","table_1","definition_list_1","raw_block_1","shortcode_block_1","html_preserve_1","superscript_1","code_2","codeViewClipboardPlugin","collect","pandocNodes","collectFrom","pandocPostprocessors","pandocReaders","flatMap","tokensFilter","inlineHTMLReader","blockCapsuleFilter","pandocNodeWriters","code_view","views","attrEditors","appendMarkTransactions","appendMarkTransaction","collector","results","visitor","quote","Plain","InsertParagraphCommand","HeadingCommand","headingCommandFn","heading1","heading1_dark","heading2OmniInsert","heading2","heading2_dark","headingOmniInsert","heading4OmniInsert","heading4","heading4_dark","description","group","Headings","headingName","pandocAttrSupported","pandocAttrParseDom","header_attributes","mmd_header_identifiers","headingAttrs","headingAttr","data-link","preferHidden","partMatch","cut","writeBookdownH1","Heading1","heading1OmniInsert","Heading5","Heading6","textblockTypeInputRule","kHeadingLevels","pandocAttrParseText","emptyHeadingPlaceholderPlugin","CodeBlockFormat","codeBlockFormatCommandFn","languages","code_block_dark","fenced_code_attributes","potentialLang","codeBlockProps","dialogs","editCodeBlock","applyProps","propsWithLangClass","codeBlock","tags","right","editFn","codeNodeSpec","hasAttr","pandocAttrSpec","codeBlockLang","attrEditFn","codeBlockAttrEdit","CodeBlockFormatCommand","exitCode","ListNumberStyle","listAttrEdit","capabilities","list_commands_1","editListPropertiesCommandFn","task_lists","fancy_lists","startnum","tasks","checked","list_pandoc_1","readPandocList","number_delim","ListNumberDelim","DefaultDelim","order","number_style","typeToNumberStyle","numberDelim","fancy","DefaultStyle","Decimal","UpperAlpha","LowerRoman","UpperRoman","Example","OrderedList","writePandocOrderedList","nodeViews","ListCommand","BulletList","bulletListOmniInsert","orderedListOmniInsert","ListItemSink","sinkListItem","ListItemLift","liftListItem","ListItemSplit","splitListItem","list_checked_1","CheckedListItemCommand","CheckedListItemToggleCommand","basekeys_1","isNotInHeading","conditionalWrappingInputRule","tightFn","div_1","listItemType","autoJoin","toggleList","TightListCommand","editList","EditListPropertiesCommand","incrementalDiv","divAttrs","$endPos","wrapping","incremental","Ordered","liftTarget","nodeRange","targetLiftDepth","isFullDivSelection","pandocAttrHasClass","editDiv","createDiv","removeDiv","defining","data-div","divCommand","Div","canApplyDivInputRule","attribMatch","cmds","DivCommand","Common","div_dark","appendTransaction","_transactions","_oldState","createCalloutDiv","Content","generic","calloutType","calloutAppearance","calloutIcon","calloutCaption","resultAttr","_l","callout","pandocAttrSetKeyvalue","appearance","icon","caption","_h","Tabset","insertTabsetCommandFn","tabset_dark","tabset","CheckedListItemNodeView","getPos","editable","ev","contentDOM","checkedListItemCommandFn","itemNode","setItemChecked","checkedListItemToggleCommandFn","check","baseInputRule","fragmentWithCheck","raw_inline","mappedTokens","lastWasChecked","writeListItemInlines","example","readNumberStyle","childAttrs","childWithChecked","listNodeOptions","writePandocListItem","writePandocBulletList","imageAttributes","src","decodeURI","readPandocTitle","requireHTML","writeRawMarkdown","linkTo","writeFigure","writeLink","imageInlineHTMLReader","isImage","image_util_1","inlineHTMLIsImage","imageAttrsFromHTML","imageDOMOutputSpec","imageDOMAttributes","alt","parseFromString","imageCommand","editorUI","img","imgDimensions","pandocImageHandler","imagePandocOutputWriter","imageNodeAttrsSpec","imageAttr","imageAttrsFromDOM","Image","attr_edit","noDecorator","_schema","imageTextSelectionPlugin","imageEventsPlugin","imagePropsWithSizes","linkMark","Figure","kQuartoDocType","align","env","editImage","units","isNaturalHeight","newImage","imageProps","insertAndSelectNode","partitionedKeyvalue","sizeWithUnit","ensureContainerWidth","imagePos","findParentNodeClosestToPos","domAtPos","resizeContainer","elementInnerDimensions","resizeEl","definition_list","convertImagesToFigure","imagesToFiguresTransform","linkAttrs","getMarkAttrs","mappedImagePos","writerHasProhibitedFigureParent","contentElement","isParaWrappingFigure","html_1","isSingleLineHTML","isHTMLImageBlock","fixupContext","figureKeys","image_view_1","imageNodeViewPlugins","ImageNodeView","editorEvents","unregisterWatchImg","implicitFigures","implicit_figures","resizeUI","selectOnClick","imgBroken","onerror","onclick","ondblclick","image_dialog_1","imageDialog","imageDimensionsFromImg","updateImg","figcaption","noPropagateClick","manageFigcaption","ondragstart","initResizeContainer","updateImageSize","destroy","clearSizeOnVisibleTimer","detachResizeUI","selectNode","draggable","image_resize_1","isResizeUICompatible","detach","attachResizeUI","ignoreMutation","mapResourceToURL","updateImageViewSize","isFigure","sizeOnVisibleTimer","setInterval","clearInterval","imageContainerWidth","noImplicitFigures","emptyFigcaption","selectionInFigcaption","hide","display","minHeight","margin","widthWithUnit","heightWithUnit","setMarginsForAlignment","marginWidth","marginRight","marginLeft","overflow","incompatibleWidth","incompatibleHeight","imageNode","imgContainerWidth","updateImageNodeFromShelf","hasPercentWidth","updateImageNodeSize","shelf","onInit","onWidthChanged","onHeightChanged","onUnitsChanged","onEditImage","uiImages","widgets_1","createPopup","editorContainer","updatePosition","editorBox","getBoundingClientRect","imageBox","editingScrollContainerEl","editingRootScrollContainerElement","positionTimer","panel","createHorizontalPanel","addToPanel","widget","addHorizontalPanelCell","paddingSpan","createInputLabel","wLabel","createTextInput","inputClasses","hLabel","hInput","onchange","hAutoLabel","unitsSelect","checkboxWrapper","lockCheckbox","lockLabel","createImageButton","properties","onload","manageUnitsUI","percentSizing","isNaN","getDim","wInput","shelfSizeFromImage","setWidth","setHeight","lock","resizeShelf","sync","lockRatio","prevUnits","widthPixels","widthInUnits","handle","onSizing","onSizingComplete","onPointerDown","startWidth","pageX","pageY","movedX","startX","movedY","startHeight","onPointerUp","havePointerEvents","releasePointerCapture","pointerId","onPointerMove","setPointerCapture","resizeHandle","cssFloat","liftStyle","liftImgStyle","widthProp","heightProp","verticalAlign","onDestroyed","observer_1","subtree","button","imageEl","optionEl","widthChars","atEnd","selectFigureCaption","selectFigure","verticalArrowCanAdvanceWithinTextBlock","exitNode","isWithinEmptyCaption","parentIndex","previousNode","parentTextBlock","figureSelection","nodePos","arrowHandler","ArrowRight","clipboardEvent","clipboardData","types","clipboardUris","then","uris","handleImageUris","getData","dragEvent","dataTransfer","coordinates","posAtCoords","uriList","droppedUris","imageUris","uri","drop","imageDrop","handlePaste","imagePaste","horizontal_rule_dark","horizontal_rule","HorizontalRule","insertNode","hrOmniInsert","selectable","ModEnter","ShiftEnter","atom","Emph","_mark","writeMark","Em","em","Strong","strong","inline_code_attributes","codeAttrs","autolink_bare_uris","citations","linkAttr","data-heading","extraAttr","kLinkTargetUrl","kLinkTargetTitle","linkCommand","onEditLink","result_1","Heading","asyncEditLink","link_dark","remainStart","linkEnd","matchText","copy","fromArray","linkText_1","attrs_1","matchedHeading_1","headingLink","headingText","headingPos","linkPos","clipboard_1","tooltip_1","button_1","linkCmd","removeLinkCmd","kMaxLinkWidth","React","LinkPopup","maxLinkWidth","openURL","clipboard","linkText","isSupported","LinkButton","showCopyButton","ImageButton","on","grav","show","onKeyDown","forwardRef","tabIndex","specKey","dismissOnEdit","makeLinksAccessible","onCmdClick","kRestoreLocationTransaction","target_1","decorationPosition_1","decoration_1","textRangePopupDecorationPosition","editorView","ignoreSelection","stopEvent","textPopupDecorator","decorationEl","visibility","reactRenderForEditorView","links","getElementsByTagName","onkeydown","click","ReactDOM","element","editingBox","editingEl","editingBoxStyle","topPadding","popupStyle","rangeCoords","rightPos","prosemirror_history_1","history","SelectAll","selectAll","findBlockNodes","childBlocksSelection","gapArrowHandler","prosemirror_dropcursor_1","dropCursor","gapClickHandler","createGapCursor","$divPos","nodeBefore","mouseEvent","clickPos","inside","divNode","blockRequiresGap","$clickPos_1","nodeAfter","kFormattingMarks","markName","setStoredMarks","definition_list_term","definition_list_description","clearFormatting","enDash","ellipsis","emDash","fancyQuotesToSimple","hasAttrId","attrNode","mk","markRange_1","scannedRanges","extensionIfPandocAttrEnabled","fencedAttributes","langAttrib","codeBlockInputRuleEnter","canApplyCodeBlockInputRule","paragraphNode","paragraphRect","editorRect","bodyEl","bodyElement","insert_symbol_plugin_1","symbol_dark","symbol","filterPlaceholderHint","symbolGroups","symbols_1","insertSymbolTransaction","symbolCharacter","searchTerm","UnicodeSymbolDataProvider","symbolGroupNames","symbolGroup","flat","codepoint","groupName","symbols","unicode_1","parseCodepoint","filterText","filteredSymbols","fromCodePoint","Symbol","performInsertSymbol","symbolOmniInsert","InsertSymbolPlugin","isValidCodepoint","hexOnlyText","hexValue","Number","valueOf","showPopup","closePopup","focusChanged","panelPositionStylesForCurrentSelection","react_dom_1","insertSymbolPopup","maximumTopPosition","minimumTopPosition","popupTopPosition","maximumLeftPosition","minimumLeftPosition","searchImage","searchPlaceholder","dataProvider","insert_symbol_grid_preview_1","InsertSymbolPopup","popupHeight","popupWidth","useState","setFilterText","selectedSymbolGroup","setSelectedSymbolGroup","selectedSymbolIndex","setSelectedSymbolIndex","preferenceChanged","setPreferenceChanged","symbolDataProvider","getSymbols","useMemo","filterSymbols","useEffect","focusElement","textRef","handleSelectedSymbolCommitted","onInsertSymbol","preferencesProps","onPreferencesChanged","preferenceRef","lastElement","onClose","shiftKey","focus_1","isElementFocused","gridRef","altKey","newIndex","insert_symbol_grid_1","newIndexForKeyboardEvent","gridWidth","TextInput","iconAdornment","onChange","selectRef","selectedOptions","selectedGroupName","symbolIndex","activeElement","SelectInput","characterWidth","onKeyUp","onKeyPress","onFocus","onPaste","SymbolCharacterGrid","columnWidth","floor","numberOfColumns","characterCellData","onSelectionChanged","selectedItemClassName","scrollToItem","rowIndex","symbolCharacters","react_window_1","FixedSizeGrid","columnCount","rowCount","ceil","rowHeight","itemData","SymbolCharacterCell","numberOfCells","prevRow","currentIndex","nextRow","nextPage","prevPage","itemIndex","characterGridCellItemData","onSelectionCommitted","symbolPreviewStyle","fontSize","insert_symbol_emoji_skintone_1","SymbolEmojiPreferencesPanel","bestAlias","aliases","alias","emoji_2","nodeForEmoji","kCategoryAll","emoji_1","emojiCategories","EmojiSymbolDataProvider","skinTone","emojiSkinTone","symbolForEmoji","hasMarkdownRepresentation","Emoji","emojiOmniInsert","emojis_all_1","emojis","emojiWithSkinTone","supportsSkinTone","emojiRaw","category","characterForSkinTone","SkinTone","Default","None","hasSkinTone","kEmojiAttr","kEmojiContent","catgegory","categories","emojiString","emojiWithSkinTonePreference","emojiFromChar","emojiAlias","kEmojis_1","emojiForAllSkinTones","Light","MediumLight","Medium","MediumDark","Dark","hint","prompt","emojiMark","emojiChar","emojiFromAlias","emojiName","emojiCompletionHandler","emojiSkintonePreferenceCompletionHandler","charLoc","skinToneEmoji","Save","markTr","markFrom","EmojiView","kEmojiCompletionRegEx","prefix_1","completions_1","setEmojiSkinTone","EmojiSkintonePreferenceHeaderView","kHeaderHeight","pref","kCellWidth","emojiText","selectedSkinTone","setSelectedSkinTone","previewEmoji","setSelectSkinTone","getCurrentSkinToneIndex","previewEmojiWithSkinTones","findIndex","nextSkinTone","selectSkinTone","commitSkinTonePreference","skinToneSelectedClass","handleButtonClick","EmDash","pastePluginKey","transformPastedHTML","highlightNode","forChangedNodes","highlightPluginKey","ReplaceStep","isRemoval","isSectionRemoval","fullySelectedDiv","divSelFrom","divSelTo","fullySelectedDivSection","insertSlideColumns","columnsContent","columnAttrs","insertSlidePause","InsertSlidePause","slide_pause_dark","slide_pause","InsertSlideNotes","insertSlideNotes","slide_notes_dark","slide_notes","InsertSlideColumns","slide_columns_dark","slide_columns","Strikeout","strikeout","Superscript","superscript","Subscript","subscript","SmallCaps","Smallcaps","smallcaps","RawInlineInsertCommand","defaultFormat","outputFormats","editRawInline","raw_inline_dark","RawInlineCommand","kRawInlineFormat","kRawInlineContent","raw_attribute","rawTexMark","raw_tex","texText","texMatchLength","tex_1","texLength","addStoredMark","setTexSelectionAfterInsert","InsertInlineLatexCommand","TexInline","latexHighlightingPlugin","mark_highlight_1","markHighlightPlugin","_attrs","markHighlightDecorations","noInputRules","splitInvalidatedMarks","texInputRule","braces","highlighter","decorationsForDoc","removeDecorations","addDecorations","markDecorations","rehighlightParent_1","isLetter","inBraces","braceLevel","inBrackets","bracketLevel","rawhtmlMark","endLoc","startLoc","isHTMLTag","close","void","isVoidTag","endTag","tagStartLoc","inSingleQuote","inDoubleQuote","rawHtmlInputRule","raw_inline_1","isRawHTMLFormat","writeInlneHTML","isSingleTag","data-type","spellcheck","kInlineMathRegex","mathText","Display","beginMatch","endMatch","splice","pendingTokens","filteredTokens","tokens_1","mathToken","flushPendingTokens","inlineMathNav","math_keys_1","displayMathNewline","mathLength","startMath","math_commands_1","InsertInlineMathCommand","InsertDisplayMathCommand","singleLineDisplayMath","math_transaction_1","mathAppendMarkTransaction","math_inline_dark","math_inline","allowNewline","DisplayMath","insertMathCommand","math_display_dark","math_display","displayMathOmniInsert","insertMath","mathMark","mathRange","mathAttrs","editMath","maths_1","mathAttr","MathPopupPlugin","lodash_debounce_1","updatePopup","updatePopupTimer","resizeUnsubscribe","mousemove","lastRenderedMath","$mousePos","equationPreview","rangeStartCoords","rangeEndCoords","editingRootNodeClosestToPos","editingElStyle","styles","inlineMath","typeset","error","autoscollPopup","popupBox","mathBottom","editorEl","toY","mathText_1","mathjaxDiv","isActiveTab","editMathAttributesEnabled","attr_edit_decoration_1","attrEditDecorationWidget","editMathAttributes","prevMathRange","delta","verticalArrowHandler","mathPos","kEditAttrShortcut","rightPaddingOffset","attrsNode","attrsEl","offsetParentStyle","AttrEditDecoration","cssProps","noSelectOnClick","attrEdit","buttonTitle","lodash_uniqby_1","kCiteIdBasePattern","bibManager","_event","cite_id","parsedDOI","cite_doi_1","doiFromSlice","doiText","findDoiInLocalBibliography","allowsWrites","citeIdInputRule","citeIdLen","citeIdLength","citeStart","citeEnd","readPandocCite","citeMark","cite","writeCitation","citationPrefix","suppress","citationMode","CitationMode","SuppressAuthor","citeIdMark","citationId","inTextSuffix","AuthorInText","citationSuffix","kNoteCiteRegex","kInTextCiteRegex","kInTextCiteWithSuffixRegEx","kCiteId","kFindInTextCiteWithSuffixRegex","applyCiteMarks","provider","performCiteCompletionReplacement","existingEntry","bibliographyFiles","writableBibliographyFiles","writableFile","insertCite","writableBiblios","thisWritableBiblio","writable","displayPath","bibliographyFile","fullPath","writableBiblioPath","isProject","project","providerKey","ensureSourcesInBibliography","idText","sources","providersWithWarnings","zoteroUseBetterBibtex","isBibTexBibliography","all","withWarning","warning","warningForProvider","yesNoMessage","every","idMark","kCitationIdRegex","citeText","bibliography_1","BibliographyManager","zotero","Cite","closeCite","openCite","cite_2","parentText","beginBracketPos","prefixMatch","cite_commands_1","InsertCitationCommand","bibliographyManager","trans","citeLength","cite_completion_doi_1","citationDoiCompletionHandler","citationCompletionHandler","cite_popup_xref_1","citeXrefPopupPlugin","cite_popup_1","citePopupPlugin","bibliography_provider_local_1","bibliographyFileForPath","path","bibliographyTypes","defaultBiblioType","bibliographyDefaultType","displayName","kFields","weight","zoteroServer","BibliographyDataProviderZotero","refreshCollectionData","parsedYamlNodes","docPath","providersNeedUpdate","providersEntries","idSort","parseYamlNodes","providers","getDefaultResourceDir","prev","curr","isWritable","hasSources","allSources","kLocalBibliographyProviderKey","sourcesForProvider","sourcesForProviderCollection","collectionKey","localSources","bibFile","localProviders","providerName","prov","dataProviderBibTeX","generateBibTeX","bibDB_1","toBibTeX","warningMessage","warningProvider","findIdInLocalBibliography","searchProviderCollection","searchProvider","searchSources","limit","searchIndex","kSearchOptions","$and","q","prime","resourcePath","yamlBlocks","parsedYamls","refBlockParsedYamls","parsedYaml","lastReferenceParsedYaml","referenceBlockFromYaml","getBibliography","bibliographiesAbsolute","refBlock","etag","bibliography","updateIndex","collections","collectionKeys","itemsForCollection","project_biblios","kPermissableFileExtensions","projectBiblio","path_1","getExtension","bibliographyFilesFromDocument","BibliographyDataProviderLocal","bibliographyFilesFromDoc","bibliographyValues","valueFromYamlText","bibliographiesRelative","biblioNode","createBiblographyYamlNode","yamlWithBib","addBibliographyToYamlNode","firstBlock","joinPaths","root","expandPaths","rootPath","isAbsolute","isWindows","isWinPathSeparator","CHAR_COLON","CHAR_FORWARD_SLASH","fileName","lastDot","biblatex_csl_converter_1","BibTypes","bibTypeKey","cslType","bibType","misc","keySortOrder","publisher","enumerableCSL","aOrder","bOrder","cslKey","biblatex","BibFieldTypes","bibFieldKey","bibField","cslFieldName","bibFieldDatas","bibFieldData","nodeValue_1","cslDate","edtfDate","csl_1","cslDateToEDTFDate","options_1","optionKey","options_2","rangeArray","bibDBFieldName","required","optional","eitheror","shouldIncludeField","bibObject","pmNode","csl_text_1","cslTextToProsemirrorNode","nodes_1","BibLatexExporter","bibDB","traditionalNames","cslToBibDB","bibtex_1","bibDbToBibTeX","ensureValidCSLType","cslTypes","crossref_1","crossRefTypeToCSLType","sanitizeForCiteproc","sanitizeProperties","property","license","contributor","abstract","cslFromDoc","cslParsedYamls","part","partStr","_f","_g","_j","_k","_m","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","article","articleJournal","articleMagazine","articleNewspaper","review","reviewBook","article_dark","bill","legislation","legalCase","treaty","legal","legal_dark","book","manuscript","thesis","book_dark","broadcast","broadcast_dark","dataset","data","data_dark","entryDictionary","entryEncylopedia","entry_dark","image_dark","map_dark","motionPicture","movie","movie_dark","musicalScore","song","song_dark","post","postWeblog","webpage","web","web_dark","paperConference","interview","pamphlet","personalCommunication","report","speech","other","other_dark","chapter","graphic","patent","kCrossrefItemsPerPage","imageForCrossrefType","crossRefTypes","monograph","journalArticle","journalVolume","journal","journalIssue","proceedingsArticle","dissertation","reportSeries","editedBook","bookChapter","bookSet","bookTrack","referenceBook","referenceEntry","postedContent","standard","standardSeries","peerReview","proceedingsSeries","proceedings","prettyType","bookSection","bookPart","bookSeries","kCslDOMParser","cslDOMParser","tagSpec","sup","sub","spanSpec","nocase","keysToExport","entryObject","csl_type","types_1","typeMapping","bibtex","bib_type","bibTexType","entry_key","fieldsForExport","fieldKey","fields_1","FieldMap","fieldType","typeReader","bibtexKey_1","outputFields","bibtexValue","year","month","formatText","formatRange","formatKey","escapeNonAscii","bibtexEntry","bibtexEntries","toBibtex","entries","bibTexStr","sortedKeys","rawValue","booktitle","howpublished","pages","edition","issue","url","codePointAt","characters_1","thisNodeMarks","closing","closeTags","lastNodeMarks","closeTag","formatting_1","FormattingTags","open","opening","formattedText","verbatim","doNotEscape","formatNames","names","formattedNames","given","protect","bookauthor","language_1","lanagugeMappings","series","swedish","thai","BibTextTypes","inbook","phdthesis","unpublished","inproceedings","bibtexType","manual","incollection","conference","mastersthesis","techreport","fieldsRequired","fieldsOptional","booklet","fieldsEitherOr","character","latex","decimal","731","ungrouped","780","__rest","kZoteroProviderKey","_ui","_resourcePath","useCache_1","newCollections","specResult","zoteroConfig","getCollections","collectionSpecs","status","collection","existingCollection","allCollections","col","allCollectionSpecs","toBibliographyCollection","hasUpdates","zoteroSpec","parentKey","bibliographyPaths","bibTeX","betterBibtexExport","zotero_1","kZoteroBibTeXTranslator","libraryID","orderedByType","completionProviders","citeSearch","_state","currentEntries_1","loadedEntries_1","providerCount_1","promises","currentEntries","streamEntries","sortEntries","updatedEntries","_events","cite_completion_bibliography_1","bibliographyCiteCompletionProvider","cite_completion_search_1","completionIndex","completionId","filterCitations","CiteCompletionItemView","CompletionItemView","kCiteCompletionWidth","imageAdornment","primaryText","secondaryText","detailText","htmlTitle","imageForType","forceLightMode","bibliography_provider_zotero_1","zoteroOverlay","cslName","referenceEntryForSource","kQuartoXRefTypes","kCiteCompletionTypeXref","getDocumentPath","referenceEntryForXref","loadedEntries","FuseIndex","xrefCompletions","xrefKey","xrefView","xrefs","fuse","createIndex","typeQuery","colonLoc","isCaseSensitive","shouldSort","withSavedDocument","refs","kXRefTypes","subTitle","kTableType","table_dark","h1","kEqType","exr","kGenericType","kTheoremType","theorem_dark","theorem","equation_dark","equation","defaultEntries","includeMatches","threshold","completion_detailed_1","cslEntry","CompletionItemDetailedView","kCompletionWidth","bibMgr","isXRef","source_1","previewHtml","finalHtml","citationHTML","JSON","stringify","rootDiv","classNames","ensureSafeLinkIsPresent","urlForCitation","CitePopup","Citation","alreadyInCite","includeWrapper","wrapperText","preCiteIdRange","endOfWrapper","initialSelectionKey","selectionKey","setCitationDefaultInText","intextCitationStyle","bibliographySources","bibliographySources_1","citeIdText","performInsertCitations","initiallySelectedNodeKey","containerHeight","confirm","cancel","showProgress","hideProgress","windowHeight","crossrefSourcePanel","crossref","dataciteSourcePanel","datacite","packageSourcePanel","environment","bibliographySourcePanel","InsertCitationPanel","onOk","requiresProgress","bibliographySourceProviders","sourceProvider","isSlowGeneratingBibliographySource","toBibliographySource","onCancel","configuration","insertCitationConfiguration","setInsertCitationConfiguration","treeSourceData","statusMessage","selectedPanelProvider","placeHolderMessage","existingBibliographyFile","createBibliographyFile","changeExtension","citationDefaultInText","setInsertCitationPanelState","insertCitationPanelState","updatedState","citationsToAdd","displayedCitations","mergeCitations","selectedCitation","mergedCitationsToAdd","typeAheadSearch","selectedNode","panelRef","streamTimerId","panelProvider","panelForNode","setSelectedPanelProvider","refreshSearchCallback","insert_citation_source_panel_1","CitationSourceListStatus","useCallback","existingState","panelHeight","memoizedTypeaheadSearch","onExecuteSearch","searchCanceled","inProgress","progressMessage","existingCitationIds","searchResult","onConfirm","deleteCitation","selCite","filteredCitations","totalCitationCount","panelToDisplay","citationProps","navigation_tree_1","NavigationTree","suggestedPanel","tag_input_1","TagInput","displayText","isEditable","isIdEditable","targetSource","currentlySelectedCitation","onTagValidate","insert_citation_bibliography_picker_1","CitationBibliographyPicker","onCreateBibliographyFileNameChanged","biblographyFile","dialog_buttons_1","DialogButtons","nodeForKey","selected","toAdd","Tag","onTagDeleted","onTagChanged","editing","setEditing","editingText","setEditingText","setDisplayText","restoreFocusAfterCancel","useLayoutEffect","editTextInput","onEditClick","validationMessage","alert","kAlertTypeError","showingValidationError","commitTagEdit","pathToNode","expanded","visibleNodes","vizNodes","fixedList","stepNode","onSelectedNodeChanged","FixedSizeList","itemSize","showSelection","preventFocus","NavigationTreeItem","indentLevel","selectedClassName","nodeList","allNodes","increment","containsChild","existingSource","finalId","rootImageForProvider","zotero_root","bibligraphy","toTree","containers","folderImage","treeMap","currentNode","hasParent","rootNodes","zotero_collection","bibligraphy_folder","folderImageForProvider","BibligraphySourcePanel","treeNode","local_sources","providerNodes","onResults","useBetterBibTex","toCitationListEntries","insert_citation_source_panel_typeahead_search_1","CitationSourceTypeheadSearchPanel","onSearchTermChanged","onSelectedIndexChanged","onAddCitation","listContainer","searchBoxRef","focusSearch","insert_citation_source_panel_list_1","CitationSourceList","focusPrevious","insert_citation_source_panel_list_item_1","CitationSourcePanelListItem","currentCitation","handleListKeyDown","handleIncrementIndex","itemsPerPage","onBlur","itemCount","onRemoveCitation","showSeparator","itemProvider","search_progress","citationListData","citationEntry","maxIdLength","alreadyAdded","_selectedNode","e_1","matchExistingSourceCitationListEntry","toCitationListEntry","errorForStatus","insert_citation_source_panel_list_item_detailed_1","pasted","performSearch","lastSearch","initialFocusSet","CitationSourcePanelListItemDetailed","doiServer","dedupeCitationIds_1","citationEntries","works","work","coercedCSL","crossrefWork","crossrefWorkTitle","pubmed","pubMedResult","docs","pubmed_1","pubTypes","doiResult","sanitizedCSL","noResultsMessage","sortFirstAuthor","pubDate","creators","creator","fetchCSL","dataciteResult","familyName","publicationYear","packageInfo","citeInfos","packageCitationToCSL","citeInfo","people","bibtextTypeToCSLType","person","date-parts","suggestPackageCiteId","incrementName","retryCount","pkgIndex","getRPackageState","pkg","pkgInfos","sorted","fuse_js_1","searchFields","searchField","PackageSourcePanel","packages","getPackageIndex","packageInfos","parsed","quartoXrefForId","xrefs_1","span","getSelectionMarkRange","asyncEditSpan","native_spans","data-span","all_symbols_escapable","stripRefBackslashTransform","potentialXRef","bookdownXRefUI","CrossReference","References","cross_reference_dark","cross_reference","insert_xref_1","insertXref","xref_2","xrefForId","select_1","xref_completion_1","insert_xref_index_1","lastSelectedStyleIndex","kXRefStyles","fn","xRefTypes","kTheoremTypes","type_table","type_equation","type_listing","htmlDialog","_showProgress","_hideProgress","windowWidth","InsertXrefPanel","styleIndex","onInsertXref","loadXRefs","quartoIndexForFile","setXrefs","selectedXRefIndex","setSelectedXRefIndex","selectedTypeIndex","setSelectedTypeIndex","selectedStyleIndex","setSelectedStyleIndex","styleSelectRef","prefixRef","typeOrder","unique","filteredXrefs","filtered","xrefIndex","filterXrefs","typeNodes","insertItem","currentStyle","currentPrefix","memoizedTextFilter","txt","handleKeyboardEvent","incrementIndex","acceptSelected","ondoubleclick","thisXref","onDoubleClick","InsertHTMLCommentCommand","HTMLComment","raw_html_comment","comment_dark","comment","data-format","isComment","kHTMLCommentMarkRegEx","detectAndApplyMarks","commentMarkAttribs","detectAndCreateShortcodes","shortcode_1","kShortcodeRegEx","shortcode","noSpelling","excludes","markTr_1","kShortcodePattern","writePandocNote","noteNode","footnote","number","footnoteOmniInsert","footnote_dark","selectedFootnote","findNoteNode","data-ref","data-content","footnote_editor_1","footnoteEditorActivationPlugin","footnoteEditorNodeViews","filterTransaction","footnote_transaction_1","footnoteFilterTransaction","footnoteSelectNoteAppendTransaction","Footnote","canInsertFootnote","edit","selectedNote","footnoteNode","ref_1","matching","ref_2","nodeDecoration","findFootnoteNode","NoteEditorView","footnoteEditorKeyDownHandler","firstNode","lastTextBlock","selectFootnote","findNotesContainer","noteWithPos","footnotes","findAllFootnotes","notesContainer","findAllNotes","toJSON","newNote","fromJSON","allNotes","footnoteFixupTransform","activeNote","tex","isLatexBeginOrEnd","RawBlockCommand","rawAttribute","textTrimmed","isSingleChildParagraph","isParagraphWrappingLatexBeginOrEnd","isParagraphWrappingRawLatexBeginOrEnd","matches","embeddedTickRegEx","matchRev","FormatRawBlockCommand","HTMLBlock","kHTMLFormat","Blocks","html_block_dark","html_block","TexBlock","YamlMetadata","yaml_block_dark","yaml_block","yaml_metadata_capsule_1","yamlMetadataBlockCapsuleFilter","YamlMetadataCommand","yaml_metadata_title_1","yamlMetadataTitlePlugin","RmdChunkCommand","Chunks","RChunkCommand","r_chunk_dark","r_chunk","PythonChunkCommand","python_chunk","BashChunkCommand","bash_chunk_dark","bash_chunk","rcpp_chunk_dark","rcpp_chunk","RcppChunkCommand","SQLChunkCommand","SQLCodeChunk","D3ChunkCommand","D3CodeChunk","d3_chunk","ExpandAllChunksCommand","ExpandAllChunks","ChunkExpansionCommand","CollapseAllChunksCommand","CollapseAllChunks","md_index","firstLineMeta","lineNumbers","lineNumberFormatter","lineNumber","lineCount","bookdownTheorems","StanChunkCommand","rmd_chunk_image_1","RmdChunkImagePreviewPlugin","uiContext","imagePreviewDecorations","isRmdChunkNode","widthMatch","firstLine","width_1","stripQuotes","imagePath_1","unsubscribe","watchResource","alignCenter_1","kBlockCapsuleType","capsuleText","LineBlock","line_block","tableTabKey","grid_tables","pipe_tables","simple_tables","multiline_tables","table_captions","table_nodes_1","tableCaptionNode","tableCellNode","tableHeaderNode","tableRowNode","Table","table_commands_1","insertTable","insertTableOmniInsert","TableInsertTable","TablePreviousCell","prosemirror_tables_1","goToNextCell","TableColumnCommand","TableAddColumnAfter","addColumns","TableAddColumnBefore","TableRowCommand","TableAddRowAfter","addRows","TableAddRowBefore","TableDeleteRow","deleteRow","TableColumnAlignmentCommand","TableAlignColumnRight","CssAlignment","Right","TableAlignColumnCenter","Center","TableAlignColumnDefault","TableToggleCaptionCommand","headerOptional","columnResizing","handleWidth","table_paste_1","tablePaste","table_contextmenu_1","TableContextMenuPlugin","tableShiftTabKey","multiline","table_columns_1","fixupTableWidths","tableRepairTransform","table_container","numRows","rows","cells","cellType","tableCaption","tableContainer","selectionPos","cols","inactive","Lists","deleteTable","columns","rect","selectedRect","addRow","alignments_1","rowNode","rowOffset","cellPos","cellOffset","cellNode","colIndex","TableToggleHeaderCommand","TableToggleHeader","toggleHeader","isInTable","TableToggleCaption","tr_2","left_1","right_1","selectionCell","tableStart","TableMap","CellSelection","rectBetween","$anchorCell","$headCell","tableGroup","getFromDOM","textAlign","kDefaultCellClasses","table_pandoc_1","readPandocTable","writePandocTableContainer","table_capsule_1","tableBlockCapsuleFilter","colgroup","childElementCount","colpercents","firstRow","colWidth","colWidths","tableColumnWidths","writePandocTable","writePandocTableCaption","table_row","writePandocTableNodes","writePandocTableHeaderNodes","alignments","AlignLeft","Left","AlignRight","AlignCenter","AlignDefault","tableToken","ColWidth","columnPercents","parseRow","row","captionBlock","widths","ColWidthDefault","headerCut","tableColumnAlignments","colwidth","availableWidth","colsWithWidth","totalWidth","pct","extraPercent_1","totalPercent","colWidths_1","tables_1","kTableBlockCapsuleType","DefinitionList","definition","unparsedTable_1","TableDeleteColumn","subMenu","TableAlignColumnLeft","menuVisible","sliceHasNode","currentColumn","columnAlignments","headerPos","childPos","definition_lists","definition_list_pandoc_1","writePandocDefinitionListDescription","readPandocDefinitionList","writePandocDefinitionList","definition_list_inputrule_1","definitionInputRule","definition_list_insert_1","insertDefinitionListAppendTransaction","emptyNodePlaceholderPlugin","termText","insertTermText","insertDefinitionList","createDefinitionDescription","definition_list_dark","InsertDefinitionList","InsertDefinitionListItemCommand","createFn","dlTypes","insertPos","InsertDefinitionTerm","InsertDefinitionDescription","lists_1","listPos","list","listParent","listIndex","definitionList","prevCursor","definitionListEnter","parentTerm","selectionNode","isParagraph","isEmpty","position_1","isLastChild","descriptionNode","endOfDescriptionEnter","isOnlyChild","emptyTermBackspace","emptyDescriptionBackspace","advancePos","definitionListShiftTab","backwardPos","prevNode","listNode","depthOffset","isParagraphAfterParagraph","prevPara","writeCurrent","writePandocDefinitionListTerm","kShortcodeBlockCapsuleType","_p3","shortcode_block","borderColorClass","isParaWrappingShortcode","Shortcode","shortcodeNode","htmlPreserveBlockCapsuleFilter","kHtmlPreserveBlockCapsuleType","handleToken","html_preserve","aceExtension","aceRenderQueue","ace_render_queue_1","AceRenderQueue","ace_node_views_1","AceNodeViews","AceNodeView","aceNodeViews","activeView","handleClick","ExpandChunk","activeAceNodeViewCommand","nodeView","setExpanded","CollapseChunk","editorOptions","gapCursorPending","selectionMarker","queuedSelection","subscriptions","renderedWidth","scrollRow","mouseDown","preview","ace_placeholder_1","AcePlaceholder","getElement","updateMode","onEditorDispatch","initEditor","renderQueue","unsub","_decos","editSession","AceRange","require","Range","getDocument","computeChange","fromPoints","indexToPosition","findMarkers","removeMarker","findPluginState","markerTo","markerFrom","markerId","addMarker","escaping","aceEditor","setSelectionRange","QueuedSelection","setGapCursorPending","pending","getExpanded","_mutation","forwardSelection","asProseMirrorSelection","session","getRange","positionToIndex","highlightSelectionAcross","valueChanged","getContents","replaceWith","scrollParent","offsetTop","viewTop","viewBottom","createChunkEditor","scrollCursorIntoView","getSession","cursorDirty","addCommand","arrowMaybeEscape","readOnly","bindKey","backspaceMaybeDeleteNode","undo","redo","win","insertParagraph","mac","getCursorPosition","executeSelection","renderer","metrics","$fontMetrics","$observer","setContainer","debounceResize","evt","resizeTimer","setMode","execCommand","getLength","innerText","getCursor","containerRect","cursorRect","down","up","oldEnd","oldVal","newEnd","newVal","cursorPos","prevNodePos","nextNodePos","nextNodeTextBlock","nextNodeCode","targetPos","renderCompleted","updateTimer","needsSort","bypass","visible","onUpdate","IntersectionObserver","entries_1","processRenderQueue","isIntersecting","cancelTimer","onScroll","scheduleRender","isRenderCompleted","renderTimer","delayMs","activeNodeView","prevNodePos_1","nv","state_1","editors","pandocAttrEnabled","attr_edit_command_1","AttrEditCommand","AttrEditDecorationPlugin","noKeyvalueTags","editorNode","attrTags","attrEditNodeCommandFn","ed","decoratorsForDoc","preferHiddenDecorators_1","dec","parentWithAttrs","decorator","editMarkAttrs","editAttr","idHint","gutterBackgroundColor","gutterTextColor","textColor","surfaceWidgetTextColor","lightTextColor","linkTextColor","invisibleTextColor","markupTextColor","findTextBackgroundColor","findTextBorderColor","blockBorderColor","focusOutlineColor","paneBorderColor","fixedWidthFont","fixedWidthFontSizePt","proportionalFont","proportionalFontSizePt","atomColor","tagColor","attributeColor","hrColor","linkColor","errorColor","setStyleElement","css","styleEl","getElementById","defaults","backgroundColor","borderBackgroundColor","placeholderTextColor","selectionColor","cursorColor","metadataBackgroundColor","chunkBackgroundColor","spanBackgroundColor","divBackgroundColor","commentColor","commentBackgroundColor","nodeSelectionColor","padding","copy_png_1","properties_png_1","properties_deco_png_1","properties_deco_dark_png_1","removelink_png_1","runchunk_png_1","runprevchunks_png_1","search_png_1","search_progress_gif_1","generic_png_1","heading1_png_1","heading1_dark_png_1","heading2_png_1","heading2_dark_png_1","heading3_png_1","heading3_dark_png_1","heading4_png_1","heading4_dark_png_1","bullet_list_png_1","bullet_list_dark_png_1","ordered_list_png_1","ordered_list_dark_png_1","blockquote_png_1","blockquote_dark_png_1","math_inline_png_1","math_inline_dark_png_1","math_display_png_1","math_display_dark_png_1","html_block_png_1","html_block_dark_png_1","line_block_png_1","line_block_dark_png_1","emoji_png_1","emoji_dark_png_1","comment_png_1","comment_dark_png_1","div_png_1","div_dark_png_1","code_block_png_1","code_block_dark_png_1","footnote_png_1","footnote_dark_png_1","citation_png_1","citation_dark_png_1","cross_reference_png_1","cross_reference_dark_png_1","symbol_png_1","symbol_dark_png_1","table_png_1","table_dark_png_1","definition_list_png_1","definition_list_dark_png_1","horizontal_rule_png_1","horizontal_rule_dark_png_1","image_png_1","image_dark_png_1","link_png_1","link_dark_png_1","paragraph_png_1","paragraph_dark_png_1","raw_block_png_1","raw_block_dark_png_1","raw_inline_png_1","raw_inline_dark_png_1","tex_block_png_1","tex_block_dark_png_1","yaml_block_png_1","yaml_block_dark_png_1","python_chunk_png_1","sql_chunk_png_1","d3_chunk_png_1","stan_chunk_png_1","bash_chunk_png_1","bash_chunk_dark_png_1","r_chunk_png_1","r_chunk_dark_png_1","rcpp_chunk_png_1","rcpp_chunk_dark_png_1","tabset_png_1","tabset_dark_png_1","slide_columns_png_1","slide_columns_dark_png_1","slide_pause_png_1","slide_pause_dark_png_1","slide_notes_png_1","slide_notes_dark_png_1","article_png_1","article_dark_png_1","book_png_1","book_dark_png_1","broadcast_png_1","broadcast_dark_png_1","data_png_1","data_dark_png_1","entry_png_1","entry_dark_png_1","image_png_2","image_dark_png_2","legal_png_1","legal_dark_png_1","map_png_1","map_dark_png_1","movie_png_1","movie_dark_png_1","other_png_1","other_dark_png_1","heading3","heading3_dark","bullet_list_dark","ordered_list_dark","blockquote_dark","line_block_dark","emoji_dark","citation_dark","paragraph_dark","raw_block_dark","tex_block","tex_block_dark","sql_chunk","stan_chunk","song_png_1","song_dark_png_1","local_sources_png_1","formatMenu","Underline","ListItemCheck","ListItemCheckToggle","EditListProperties","Blockquote","haveAnyOf","HTMLInline","ClearFormatting","AttrEdit","RCodeChunk","PythonCodeChunk","BashCodeChunk","StanCodeChunk","InlineMath","DefinitionDescription","EnDash","NonBreakingSpace","commands_1","editorMenus","TableDeleteTable","excludeInCode","kPresentationEditorLocationTitle","foundCursor","bodyNodes_1","bodyNodes","autoSlideLevel","kPresentationEditorLocationHeading"],"mappings":"YAeA,IAAAA,EAAA,CACAC,EAAA,KAGE,MACAC,EAAA,SAAAC,kECXFC,EAASJ,EAAAK,EAAAF,GAAQ,IACXG,QAAE,KACJD,EAAA,CAAOC,QAAAF,EAAeE,gBACpBF,EAAGE,QAAAF,EAAAC,EAAAD,EAAAE,mBAEOF,EAAAC,EAAAC,8FCThBC,OAAAC,SAAAC,GAASA,EAAAC,QAAAD,sGDoBT,SAAAE,EAAAL,kJEnBAI,cACEE,EAAWZ,EAAAE,EAAO,KAA4BW,OAAOD,EAAAC,SAErDC,QAASF,EAAYE,2BACqCR,wDACxDS,GAAUA,EAAAC,WAASD,EAAY,CAAAL,QAAAK,0BAExBT,EAAA,aAAA,CAAAW,OAAA,oBAGTC,EAAOC,EAAcnB,EAAAE,EAAA,yBAVvBkB,EAAAV,23ECSA,MAEA,GAAAW,GAAAC,EAAAC,MAAAF,EAAA,GAAA,CACAC,EAAAC,MAAAF,EAAA,GACAC,EAAAE,IAAAC,KAAAC,GACA,MAIAL,EAAA,IAIAC,EAAAE,IAAAG,MAWAL,EAAAM,KAAAD,MACA,SAEAD,EAAAG,EAAAC,KAAAC,EAAAT,GAYA,MAAAU,GAOAN,EAAA,CACA,EAOAM,GAEAC,EAAA,EACA,QACAhC,EAAAoB,EAAA,EAGA,GAAA,EAAAK,EAAA,GACA,MAAAA,EAAA,GACA,MAAA,CAEAT,MAAAS,EAAA,GAAAA,EAAA,QAAA,EAEAQ,MAAA,cAMAC,EAAAC,MAAAA,KAA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AAA,GACH,OACA4a,EAAA3Y,EAAAkT,WAAAnV,GAEF,OAAK4a,GACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,UACH,KACAspB,EAAA,IAEF,WACE,UACA,KAEF,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,IACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,UACH,KACAA,EAAA,IAEF,WACE,KACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,KAEFA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,UACH,UACA,KAEF,KAAK,KACLA,EAAK,IACL,WACE,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,KAEF,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,SACH,SACA,IAEF,KAAK,KACL,KAAK,UACH,KACAA,EAAA,IAEF,MACA,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,WACE,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,SACH,SACA,IAEF,KAAK,KACL,KAAK,UACH,UACA,KAEFA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,UACH,UACA,KAEF,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,UACH,KACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,UACH,KACAA,EAAA,IAEF,WACE,UACA,KAEF,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,IACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACH,WACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,KACLA,EAAK,IACH,WACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,KACAA,EAAA,IAEF,MACA,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,UACH,UACA,KAEF,KAAK,KACLA,EAAK,IACL,WACE,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,KAEF,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,SACH,SACA,KAEF,KAAK,KACL,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAAK,KACL,KAAK,KACL,KAAK,KACL,KAAK,KACLA,EAAK,IACL,MACA,KAAK,SACH,SACA,IAEF,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,IACL,KAAK,SACH,SACA,IAEF,KAA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ACZja,EAAO1C,OAASiH,MAASyT,wBACnB1T,OAAU/J,EAAAi5B,eAAAgoD,EAAAjhF,CAAAyF,IAAAkV,EAAAlV,EAAAgb,EAAAf,GAAA,OAChBja,EAAOoE,UAAA+X,MAAAlgB,EAAAoC,EAAApC,OAAA4uB,EAAAxsB,EAAAwsB,wBAgCT9vB,EAAA0gF,oBAIO,MAAA,IACU,MAAnB1gF,EAAIiV,OAAA0rE,EAAe,UACjB,WAEA3gF,EAAAiW,UAAgB0qE,EAAAD,EAAA,yCAKd,YA+CN56D,SACA,CACA,IACA,UACA,QACA,OAGA,KACA,UACA,MACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,SACA,SACA,KACA,OACA,SACA,MACA,IACA,UACA,OACA,UACA,OACA,WACA,OACA,OACA,QACA,QACA,SACA,WACA,WACA,OACA,QACA,SACA,QACA,SACA,QACA,WACA,SAGA,SACA,WACA,OACA,UACA,UACA,IACA,MACA,MAGA,MACA,aACA,SACA,OACA,OACA,MACA,MACA,KACA,OACA,IAGA,MACA,MAGA,OACA,SACA,MACA,WACA,IACA,KACA,KACA,OACA,IACA,OACA,QACA,SACA,SACA,MACA,MACA,KACA,IACA,MACA,WAGJ,MACE,KACE,KACA,KACA,KACA,OACA,KACA,UACA,MACA,WACA,QACA,QACA,KACA,QACA,QACA,KACA,KACA,SACA,oBAGJ,0HC1WA,SAEA,OAGA,SACAxS,SAAAwS,EAAAiC,eDkMU64D,CAAAnsE,UAGSA,KAAW3D,EAAA,GACrB+vE,MAAA/vE,EAAA,GAAA5S,OAAA,EAEL4iF,KAAAC,EAAAtsE,GACAwL,MAAA0gE,EACAzhE,IAAAwhE,EAAA,WAKA,MAzDMx/E,EAAKmkB,kCAUT,GALG7e,EAAA6qB,WAAA,0CAGA7qB,EAAA4qB,QAA0BnR,EAAAf,EAAc,EAAAuhE,EAAAx+E,UAC3CuE,EAAAib,iBAAgBg/D,IAChB36D,EAAgB+6D,QAAA/6D,EAAAg7D,KAAA,CAChB,IAA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,EAAAusH,EAAAhoI,OAAAyb,IAAA,aAIZssH,GAAA91G,EAAAzpB,IAAAgxH,IAAEuO,GAAK,EAAExqG,EAAAv+B,KAAA,kDAlFlBwJ,IAAAypB,EAAAzpB,OA2FoB,IAAA0L,EAAA+d,EAAc/d,kCAG1B,IAAAgT,EAAYhT,EAASjL,MAAMie,OAAA,IACvBA,EAAKghH,IAKoB,UAK3Bl7H,KAAAnP,EAAAsqI,2CApBV3/H,IAAAypB,EAAAzpB,+MAxCIs/H,iCAA+B,6CACK,0CAEN,yCACF","sourcesContent":["/*\n * index.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport polyfillIsConnected from './isconnected';\nimport polyfillCustomEvent from './custom-event';\n\nfunction polyfill() {\n polyfillIsConnected();\n polyfillCustomEvent();\n}\n\nexport default polyfill;\n","/*\n * Node.isConnected polyfill for IE and EdgeHTML\n * 2020-02-04\n *\n * By Eli Grey, https://eligrey.com\n * Public domain.\n * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.\n */\n\nfunction polyfill() {\n if (!('isConnected' in Node.prototype)) {\n Object.defineProperty(Node.prototype, 'isConnected', {\n get() {\n return (\n !this.ownerDocument ||\n !(\n // tslint:disable-next-line: no-bitwise\n (this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED)\n )\n );\n },\n });\n }\n}\n\nexport default polyfill;\n","// apply polyfills\nimport polyfill from './polyfill/index';\npolyfill();\n\n// objects instantiated by the IDE\nexport { Editor, UITools } from './editor/editor';\n","/**\n * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent\n *\n * From https://developer.mozilla.org/en-US/docs/MDN/About:\n * \"Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/\"\n */\nexport default function() {\n if (typeof window.CustomEvent === 'function') return false;\n\n function CustomEvent(event: any, params: any) {\n params = params || { bubbles: false, cancelable: false, detail: null };\n var evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n }\n\n window.CustomEvent = CustomEvent as any;\n}\n","/*\n * editor.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { inputRules } from 'prosemirror-inputrules';\nimport { keydownHandler } from 'prosemirror-keymap';\nimport { Node as ProsemirrorNode, Schema, DOMParser, ParseOptions } from 'prosemirror-model';\nimport { EditorState, Plugin, PluginKey, TextSelection, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport 'prosemirror-view/style/prosemirror.css';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { citeUI } from '../api/cite';\nimport { EditorOptions } from '../api/options';\nimport { ProsemirrorCommand, CommandFn, EditorCommand } from '../api/command';\nimport { EditorUI } from '../api/ui';\nimport {\n attrPropsToInput,\n attrInputToProps,\n AttrProps,\n AttrEditInput,\n InsertCiteProps,\n InsertCiteUI,\n} from '../api/ui-dialogs';\n\nimport { Extension } from '../api/extension';\nimport { PandocWriterOptions } from '../api/pandoc';\nimport { PandocCapabilities, getPandocCapabilities } from '../api/pandoc_capabilities';\nimport { fragmentToHTML } from '../api/html';\nimport { DOMEditorEvents, EventType, EventHandler } from '../api/events';\nimport {\n ScrollEvent,\n UpdateEvent,\n OutlineChangeEvent,\n StateChangeEvent,\n ResizeEvent,\n LayoutEvent,\n FocusEvent,\n DispatchEvent,\n NavigateEvent,\n BlurEvent,\n} from '../api/event-types';\nimport {\n PandocFormat,\n resolvePandocFormat,\n PandocFormatConfig,\n pandocFormatConfigFromCode,\n pandocFormatConfigFromDoc,\n} from '../api/pandoc_format';\nimport { baseKeysPlugin } from '../api/basekeys';\nimport {\n appendTransactionsPlugin,\n appendMarkTransactionsPlugin,\n kFixupTransaction,\n kAddToHistoryTransaction,\n kSetMarkdownTransaction,\n} from '../api/transaction';\nimport { EditorOutline, getOutlineNodes, EditingOutlineLocation, getEditingOutlineLocation } from '../api/outline';\nimport { EditingLocation, getEditingLocation, setEditingLocation } from '../api/location';\nimport { navigateTo, NavigationType } from '../api/navigation';\nimport { FixupContext } from '../api/fixup';\nimport { unitToPixels, pixelsToUnit, roundUnit, kValidUnits } from '../api/image';\nimport { kPercentUnit } from '../api/css';\nimport { EditorFormat } from '../api/format';\nimport { diffChars, EditorChange } from '../api/change';\nimport { markInputRuleFilter } from '../api/input_rule';\nimport { editorMath } from '../api/math';\nimport { EditorEvents } from '../api/events';\nimport { insertRmdChunk } from '../api/rmd';\nimport { EditorServer } from '../api/server';\nimport { pandocAutoIdentifier } from '../api/pandoc_id';\nimport { wrapSentences } from '../api/wrap';\nimport { yamlFrontMatter, applyYamlFrontMatter } from '../api/yaml';\nimport { EditorSpellingDoc } from '../api/spelling';\n\nimport { getTitle, setTitle } from '../nodes/yaml_metadata/yaml_metadata-title';\nimport { getOutline } from '../behaviors/outline';\nimport {\n FindOptions,\n find,\n matchCount,\n selectFirst,\n selectNext,\n selectPrevious,\n replace,\n replaceAll,\n clear,\n selectCurrent,\n} from '../behaviors/find';\n\nimport { omniInsertExtension } from '../behaviors/omni_insert/omni_insert';\nimport { completionExtension } from '../behaviors/completion/completion';\n\nimport { getSpellingDoc } from '../behaviors/spelling/spelling-interactive';\nimport { realtimeSpellingPlugin, invalidateAllWords, invalidateWord } from '../behaviors/spelling/spelling-realtime';\n\nimport { PandocConverter, PandocLineWrapping } from '../pandoc/pandoc_converter';\n\nimport { ExtensionManager, initExtensions } from './editor-extensions';\nimport { defaultTheme, EditorTheme, applyTheme, applyPadding } from './editor-theme';\nimport { defaultEditorUIImages } from './editor-images';\nimport { editorMenus, EditorMenus } from './editor-menus';\nimport { editorSchema } from './editor-schema';\n\n// import styles before extensions so they can be overriden by extensions\nimport './styles/frame.css';\nimport './styles/styles.css';\nimport { getPresentationEditorLocation, PresentationEditorLocation, positionForPresentationEditorLocation } from '../api/presentation';\n\nexport interface EditorCode {\n code: string;\n selection_only: boolean;\n location: EditingOutlineLocation;\n}\n\nexport interface EditorSetMarkdownResult {\n // editor view of markdown (as it will be persisted)\n canonical: string;\n\n // line wrapping\n line_wrapping: PandocLineWrapping;\n\n // unrecoginized pandoc tokens\n unrecognized: string[];\n\n // example lists?\n example_lists: boolean;\n\n // unparsed meta\n unparsed_meta: { [key: string]: any };\n\n // updated outline \n location: EditingOutlineLocation;\n}\n\nexport interface EditorContext {\n readonly server: EditorServer;\n readonly ui: EditorUI;\n readonly hooks?: EditorHooks;\n readonly extensions?: readonly Extension[];\n}\n\nexport interface EditorHooks {\n isEditable?: () => boolean;\n}\n\nexport interface EditorKeybindings {\n [id: string]: string[];\n}\n\nexport interface EditorSelection {\n from: number;\n to: number;\n navigation_id: string | null;\n}\n\nexport interface EditorFindReplace {\n find: (term: string, options: FindOptions) => boolean;\n matches: () => number;\n selectFirst: () => boolean;\n selectCurrent: () => boolean;\n selectNext: () => boolean;\n selectPrevious: () => boolean;\n replace: (text: string) => boolean;\n replaceAll: (text: string) => number;\n clear: () => boolean;\n}\n\nexport { EditorCommandId as EditorCommands } from '../api/command';\n\nexport interface UIToolsAttr {\n propsToInput(attr: AttrProps): AttrEditInput;\n inputToProps(input: AttrEditInput): AttrProps;\n pandocAutoIdentifier(text: string): string;\n}\n\nexport interface UIToolsImage {\n validUnits(): string[];\n percentUnit(): string;\n unitToPixels(value: number, unit: string, containerWidth: number): number;\n pixelsToUnit(pixels: number, unit: string, containerWidth: number): number;\n roundUnit(value: number, unit: string): string;\n}\n\nexport interface UIToolsFormat {\n parseFormatConfig(markdown: string, isRmd: boolean): PandocFormatConfig;\n}\n\nexport interface UIToolsSource {\n diffChars(from: string, to: string, timeout: number): EditorChange[];\n}\n\nexport interface UIToolsCitation {\n citeUI(citeProps: InsertCiteProps): InsertCiteUI;\n}\n\nexport class UITools {\n public readonly attr: UIToolsAttr;\n public readonly image: UIToolsImage;\n public readonly format: UIToolsFormat;\n public readonly source: UIToolsSource;\n public readonly citation: UIToolsCitation;\n\n constructor() {\n this.attr = {\n propsToInput: attrPropsToInput,\n inputToProps: attrInputToProps,\n pandocAutoIdentifier: (text: string) => pandocAutoIdentifier(text, false),\n };\n\n this.image = {\n validUnits: () => kValidUnits,\n percentUnit: () => kPercentUnit,\n unitToPixels,\n pixelsToUnit,\n roundUnit,\n };\n\n this.format = {\n parseFormatConfig: pandocFormatConfigFromCode,\n };\n\n this.source = {\n diffChars,\n };\n\n this.citation = {\n citeUI,\n };\n }\n}\n\nconst keybindingsPlugin = new PluginKey('keybindings');\n\nexport class Editor {\n // core context passed from client\n private readonly parent: HTMLElement;\n private readonly context: EditorContext;\n private readonly events: EditorEvents;\n\n // options (derived from defaults + config)\n private readonly options: EditorOptions;\n\n // format (pandocFormat includes additional diagnostics based on the validity of\n // provided mode + extensions)\n private readonly format: EditorFormat;\n private readonly pandocFormat: PandocFormat;\n\n // pandoc capabilities\n private pandocCapabilities: PandocCapabilities;\n\n // core prosemirror state/behaviors\n private readonly extensions: ExtensionManager;\n private readonly schema: Schema;\n private state: EditorState;\n private readonly view: EditorView;\n private readonly pandocConverter: PandocConverter;\n\n // setting via setKeybindings forces reconfiguration of EditorState\n // with plugins recreated\n private keybindings: EditorKeybindings;\n\n // content width constraints (if unset uses default editor CSS)\n private maxContentWidth = 0;\n private minContentPadding = 0;\n\n // keep track of whether the last transaction was selection-only\n private lastTrSelectionOnly = false;\n\n // create the editor -- note that the markdown argument does not substitute for calling\n // setMarkdown, rather it's used to read the format comment to determine how to\n // initialize the various editor features\n public static async create(\n parent: HTMLElement,\n context: EditorContext,\n format: EditorFormat,\n options: EditorOptions,\n ): Promise {\n // provide option defaults\n options = {\n autoFocus: false,\n spellCheck: false,\n codeEditor: 'codemirror',\n rmdImagePreview: false,\n hideFormatComment: false,\n className: '',\n ...options,\n };\n\n // provide format defaults\n format = {\n pandocMode: format.pandocMode || 'markdown',\n pandocExtensions: format.pandocExtensions || '',\n rmdExtensions: {\n codeChunks: false,\n bookdownXRef: false,\n bookdownXRefUI: false,\n bookdownPart: false,\n blogdownMathInCode: false,\n ...format.rmdExtensions,\n },\n hugoExtensions: {\n shortcodes: false,\n ...format.hugoExtensions,\n },\n docTypes: format.docTypes || [],\n };\n\n // provide context defaults\n const defaultImages = defaultEditorUIImages();\n context = {\n ...context,\n ui: {\n ...context.ui,\n images: {\n ...defaultImages,\n ...context.ui.images,\n omni_insert: {\n ...defaultImages.omni_insert,\n ...context.ui.images,\n },\n citations: {\n ...defaultImages.citations,\n ...context.ui.images,\n },\n },\n },\n };\n\n // resolve the format\n const pandocFmt = await resolvePandocFormat(context.server.pandoc, format);\n\n // get pandoc capabilities\n const pandocCapabilities = await getPandocCapabilities(context.server.pandoc);\n\n // create editor\n const editor = new Editor(parent, context, options, format, pandocFmt, pandocCapabilities);\n\n // return editor\n return Promise.resolve(editor);\n }\n\n private constructor(\n parent: HTMLElement,\n context: EditorContext,\n options: EditorOptions,\n format: EditorFormat,\n pandocFormat: PandocFormat,\n pandocCapabilities: PandocCapabilities,\n ) {\n // initialize references\n this.parent = parent;\n this.events = new DOMEditorEvents(parent);\n this.context = context;\n this.options = options;\n this.format = format;\n this.keybindings = {};\n this.pandocFormat = pandocFormat;\n this.pandocCapabilities = pandocCapabilities;\n\n // create core extensions\n this.extensions = this.initExtensions();\n\n // create schema\n this.schema = editorSchema(this.extensions);\n\n // register completion handlers (done in a separate step b/c omni insert\n // completion handlers require access to the initializezd commands that\n // carry omni insert info)\n this.registerCompletionExtension();\n\n // register realtime spellchecking (done in a separate step b/c it\n // requires access to PandocMark definitions to determine which\n // marks to exclude from spellchecking)\n this.registerRealtimeSpelling();\n\n // create state\n this.state = EditorState.create({\n schema: this.schema,\n doc: this.initialDoc(),\n plugins: this.createPlugins(),\n });\n\n // additional dom attributes for editor node\n const attributes: { [name: string]: string } = {};\n if (options.className) {\n attributes.class = options.className;\n }\n\n // create view\n this.view = new EditorView(this.parent, {\n state: this.state,\n dispatchTransaction: this.dispatchTransaction.bind(this),\n domParser: new EditorDOMParser(this.schema),\n attributes,\n });\n\n // add custom restoreFocus handler to the view -- this provides a custom\n // handler for RStudio's FocusContext, necessary because the default\n // ProseMirror dom mutation handler picks up the focus and changes the\n // selection.\n Object.defineProperty(this.view.dom, 'restoreFocus', {\n value: () => {\n this.focus();\n },\n });\n\n // add proportinal font class to parent\n this.parent.classList.add('pm-proportional-font');\n\n // apply default theme\n this.applyTheme(defaultTheme());\n\n // create pandoc translator\n this.pandocConverter = new PandocConverter(\n this.schema,\n this.extensions,\n context.server.pandoc,\n this.pandocCapabilities,\n );\n\n // focus editor immediately if requested\n if (this.options.autoFocus) {\n setTimeout(() => {\n this.focus();\n }, 10);\n }\n\n // disale spellcheck if requested\n if (!this.options.spellCheck) {\n this.parent.setAttribute('spellcheck', 'false');\n }\n\n {\n // scroll event optimization, as recommended by\n // https://developer.mozilla.org/en-US/docs/Web/API/Document/scroll_event\n let ticking = false;\n this.parent.addEventListener(\n 'scroll',\n () => {\n if (!ticking) {\n window.requestAnimationFrame(() => {\n this.emitEvent(ScrollEvent);\n ticking = false;\n });\n ticking = true;\n }\n },\n { capture: true },\n );\n }\n }\n\n public destroy() {\n this.view.destroy();\n }\n\n public subscribe(event: EventType | string, handler: EventHandler): VoidFunction {\n if (typeof event === 'string') {\n return this.events.subscribe({ eventName: event }, handler);\n } else {\n return this.events.subscribe(event, handler);\n }\n }\n\n public setTitle(title: string) {\n const tr = setTitle(this.state, title);\n if (tr) {\n this.view.dispatch(tr);\n }\n }\n\n public async setMarkdown(\n markdown: string,\n options: PandocWriterOptions,\n emitUpdate: boolean,\n ): Promise {\n // get the result\n const result = await this.pandocConverter.toProsemirror(markdown, this.pandocFormat);\n const { doc, line_wrapping, unrecognized, example_lists, unparsed_meta } = result;\n\n // if we are preserving history but the existing doc is empty then create a new state\n // (resets the undo stack so that the initial setting of the document can't be undone)\n if (this.isInitialDoc()) {\n this.state = EditorState.create({\n schema: this.state.schema,\n doc,\n plugins: this.state.plugins,\n });\n this.view.updateState(this.state);\n } else {\n // note current editing location\n const loc = this.getEditingLocation();\n\n // replace the top level nodes in the doc\n const tr = this.state.tr;\n tr.setMeta(kSetMarkdownTransaction, true);\n let i = 0;\n tr.doc.descendants((node, pos) => {\n const mappedPos = tr.mapping.map(pos);\n tr.replaceRangeWith(mappedPos, mappedPos + node.nodeSize, doc.child(i));\n i++;\n return false;\n });\n // set selection to previous location if it's still valid\n if (loc.pos < tr.doc.nodeSize) {\n // eat exceptions that might result from an invalid position\n try {\n setTextSelection(loc.pos)(tr);\n } catch (e) {\n // do-nothing, this error can happen and shouldn't result in \n // a failure to setMarkdown\n }\n }\n // dispatch\n this.view.dispatch(tr);\n }\n\n // apply fixups\n this.applyFixups(FixupContext.Load);\n\n // notify listeners if requested\n if (emitUpdate) {\n this.emitEvent(UpdateEvent);\n this.emitEvent(OutlineChangeEvent);\n this.emitEvent(StateChangeEvent);\n }\n\n // return our current markdown representation (so the caller know what our\n // current 'view' of the doc as markdown looks like\n const getMarkdownTr = this.state.tr;\n const canonical = await this.getMarkdownCode(getMarkdownTr, options);\n const location = getEditingOutlineLocation(this.state);\n\n // return\n return {\n canonical,\n line_wrapping,\n unrecognized,\n example_lists,\n unparsed_meta,\n location\n };\n }\n\n // flag indicating whether we've ever had setMarkdown (currently we need this\n // because getMarkdown can only be called after setMarkdown b/c it needs\n // the API version retreived in setMarkdown -- we should remedy this)\n public isInitialDoc() {\n return this.state.doc.attrs.initial;\n }\n\n public async getMarkdown(options: PandocWriterOptions): Promise {\n // get the code\n const tr = this.state.tr;\n const code = await this.getMarkdownCode(tr, options);\n\n // return code + perhaps outline location\n return {\n code,\n selection_only: this.lastTrSelectionOnly,\n location: getEditingOutlineLocation(this.state),\n };\n }\n\n public getEditingOutlineLocation(): EditingOutlineLocation {\n return getEditingOutlineLocation(this.state);\n }\n\n public getHTML(): string {\n return fragmentToHTML(this.state.schema, this.state.doc.content);\n }\n\n public getTitle() {\n return getTitle(this.state);\n }\n\n public getSelection(): EditorSelection {\n const { from, to } = this.state.selection;\n return {\n from,\n to,\n navigation_id: navigationIdForSelection(this.state),\n };\n }\n\n public getEditingLocation(): EditingLocation {\n return getEditingLocation(this.view);\n }\n\n public setEditingLocation(outlineLocation?: EditingOutlineLocation, previousLocation?: EditingLocation) {\n setEditingLocation(this.view, outlineLocation, previousLocation);\n }\n\n public getOutline(): EditorOutline {\n return getOutline(this.state) || [];\n }\n\n public getFindReplace(): EditorFindReplace {\n return {\n find: (term: string, options: FindOptions) => find(this.view, term, options),\n matches: () => matchCount(this.view),\n selectCurrent: () => selectCurrent(this.view),\n selectFirst: () => selectFirst(this.view),\n selectNext: () => selectNext(this.view),\n selectPrevious: () => selectPrevious(this.view),\n replace: (text: string) => replace(this.view, text),\n replaceAll: (text: string) => replaceAll(this.view, text),\n clear: () => clear(this.view),\n };\n }\n\n public getSpellingDoc(): EditorSpellingDoc {\n return getSpellingDoc(this.view, this.extensions.pandocMarks(), this.context.ui.spelling);\n }\n\n public spellingInvalidateAllWords() {\n invalidateAllWords(this.view);\n }\n\n public spellingInvalidateWord(word: string) {\n invalidateWord(this.view, word);\n }\n\n // get a canonical version of the passed markdown. this method doesn't mutate the\n // visual editor's state/view (it's provided as a performance optimiation for when\n // source mode is configured to save a canonical version of markdown)\n public async getCanonical(markdown: string, options: PandocWriterOptions): Promise {\n // convert to prosemirror doc\n const result = await this.pandocConverter.toProsemirror(markdown, this.pandocFormat);\n\n // create a state for this doc\n const state = EditorState.create({\n schema: this.schema,\n doc: result.doc,\n plugins: this.state.plugins,\n });\n\n // apply load fixups (eumlating what a full round trip will do)\n const tr = state.tr;\n this.extensionFixups(tr, FixupContext.Load);\n\n // return markdown (will apply save fixups)\n return this.getMarkdownCode(tr, options);\n }\n\n public getSelectedText(): string {\n return this.state.doc.textBetween(this.state.selection.from, this.state.selection.to);\n }\n\n public replaceSelection(value: string): void {\n // retrieve properties we need from selection\n const { from, empty } = this.view.state.selection;\n\n // retrieve selection marks\n const marks = this.view.state.selection.$from.marks();\n\n // insert text\n const tr = this.view.state.tr.replaceSelectionWith(this.view.state.schema.text(value, marks), false);\n this.view.dispatch(tr);\n\n // update selection if necessary\n if (!empty) {\n const sel = TextSelection.create(this.view.state.doc, from, from + value.length);\n const trSetSel = this.view.state.tr.setSelection(sel);\n this.view.dispatch(trSetSel);\n }\n }\n\n public getYamlFrontMatter() {\n if (this.schema.nodes.yaml_metadata) {\n return yamlFrontMatter(this.view.state.doc);\n } else {\n return '';\n }\n }\n\n public getPresentationEditorLocation() {\n return getPresentationEditorLocation(this.state);\n }\n\n public navigateToPresentationEditorLocation(location: PresentationEditorLocation) {\n const pos = positionForPresentationEditorLocation(this.state, location);\n if (pos !== -1) {\n this.navigate(NavigationType.Pos, String(pos));\n }\n }\n\n public applyYamlFrontMatter(yaml: string) {\n if (this.schema.nodes.yaml_metadata) {\n applyYamlFrontMatter(this.view, yaml);\n }\n }\n\n public focus() {\n this.view.focus();\n }\n\n public blur() {\n (this.view.dom as HTMLElement).blur();\n }\n\n public insertChunk(chunkPlaceholder: string) {\n const insertCmd = insertRmdChunk(chunkPlaceholder);\n insertCmd(this.view.state, this.view.dispatch, this.view);\n this.focus();\n }\n\n public navigate(type: NavigationType, location: string, recordCurrent = true, animate = false) {\n // perform navigation\n const nav = navigateTo(this.view, this.format, type, location, animate);\n\n // emit event\n if (nav !== null) {\n if (!recordCurrent) {\n nav.prevPos = -1;\n }\n this.emitEvent(NavigateEvent, nav);\n }\n }\n\n public resize() {\n this.syncContentWidth();\n this.applyFixupsOnResize();\n this.emitEvent(ResizeEvent);\n }\n\n public enableDevTools(initFn: (view: EditorView, stateClass: any) => void) {\n initFn(this.view, { EditorState });\n }\n\n public getMenus(): EditorMenus {\n return editorMenus(this.context.ui, this.commands());\n }\n\n public commands(): EditorCommand[] {\n // get keybindings (merge user + default)\n const commandKeys = this.commandKeys();\n\n return this.extensions.commands(this.schema).map((command: ProsemirrorCommand) => {\n return {\n id: command.id,\n keymap: commandKeys[command.id],\n isActive: () => command.isActive(this.state),\n isEnabled: () => command.isEnabled(this.state),\n plural: () => command.plural(this.state),\n execute: () => {\n command.execute(this.state, this.view.dispatch, this.view);\n if (command.keepFocus) {\n this.focus();\n }\n },\n };\n });\n }\n\n public applyTheme(theme: EditorTheme) {\n // set global mode classes\n this.parent.classList.toggle('pm-dark-mode', !!theme.darkMode);\n this.parent.classList.toggle('pm-solarized-mode', !!theme.solarizedMode);\n // apply the rest of the theme\n applyTheme(theme);\n }\n\n public setMaxContentWidth(maxWidth: number, minPadding = 10) {\n this.maxContentWidth = maxWidth;\n this.minContentPadding = minPadding;\n this.syncContentWidth();\n }\n\n public setKeybindings(keyBindings: EditorKeybindings) {\n // validate that all of these keys can be rebound\n\n this.keybindings = keyBindings;\n this.state = this.state.reconfigure({\n schema: this.state.schema,\n plugins: this.createPlugins(),\n });\n }\n\n public getEditorFormat() {\n return this.format;\n }\n\n public getPandocFormat() {\n return this.pandocFormat;\n }\n\n public getPandocFormatConfig(isRmd: boolean): PandocFormatConfig {\n return pandocFormatConfigFromDoc(this.state.doc, isRmd);\n }\n\n private dispatchTransaction(tr: Transaction) {\n // track previous outline\n const previousOutline = getOutline(this.state);\n\n // track whether this was a selection-only transaction\n this.lastTrSelectionOnly = tr.selectionSet && !tr.docChanged;\n\n // apply the transaction\n this.state = this.state.apply(tr);\n this.view.updateState(this.state);\n\n // notify listeners of state change\n this.emitEvent(StateChangeEvent);\n\n // notify listeners of updates\n if (tr.docChanged || tr.storedMarksSet) {\n // fire updated (unless this was a fixup)\n if (!tr.getMeta(kFixupTransaction)) {\n this.emitEvent(UpdateEvent);\n }\n\n // fire outline changed if necessary\n if (getOutline(this.state) !== previousOutline) {\n this.emitEvent(OutlineChangeEvent);\n }\n }\n\n this.emitEvent(DispatchEvent, tr);\n\n this.emitEvent(LayoutEvent);\n }\n\n private emitEvent(eventType: EventType, detail?: TDetail) {\n this.events.emit(eventType, detail);\n }\n\n private initExtensions() {\n return initExtensions(\n {\n format: this.format,\n options: this.options,\n ui: this.context.ui,\n math: this.context.ui.math.typeset ? editorMath(this.context.ui) : undefined,\n events: {\n subscribe: this.subscribe.bind(this),\n emit: this.emitEvent.bind(this),\n },\n pandocExtensions: this.pandocFormat.extensions,\n pandocCapabilities: this.pandocCapabilities,\n server: this.context.server,\n navigation: {\n navigate: this.navigate.bind(this),\n },\n },\n this.context.extensions,\n );\n }\n\n private registerCompletionExtension() {\n // mark filter used to screen completions from noInputRules marks\n const markFilter = markInputRuleFilter(this.schema, this.extensions.pandocMarks());\n\n // register omni insert extension\n this.extensions.register([\n omniInsertExtension(this.extensions.omniInserters(this.schema), markFilter, this.context.ui),\n ]);\n\n // register completion extension\n this.extensions.register([\n completionExtension(this.extensions.completionHandlers(), markFilter, this.context.ui, this.events),\n ]);\n }\n\n private registerRealtimeSpelling() {\n this.extensions.registerPlugins(\n [realtimeSpellingPlugin(this.schema, this.extensions.pandocMarks(), this.context.ui, this.events)],\n true,\n );\n }\n\n private createPlugins(): Plugin[] {\n return [\n baseKeysPlugin(this.extensions.baseKeys(this.schema)),\n this.keybindingsPlugin(),\n appendTransactionsPlugin(this.extensions.appendTransactions(this.schema)),\n appendMarkTransactionsPlugin(this.extensions.appendMarkTransactions(this.schema)),\n ...this.extensions.plugins(this.schema),\n this.inputRulesPlugin(),\n this.editablePlugin(),\n this.domEventsPlugin(),\n ];\n }\n\n private editablePlugin() {\n const hooks = this.context.hooks || {};\n return new Plugin({\n key: new PluginKey('editable'),\n props: {\n editable: hooks.isEditable || (() => true),\n },\n });\n }\n\n private inputRulesPlugin() {\n // filter for disabling input rules for selected marks\n const markFilter = markInputRuleFilter(this.schema, this.extensions.pandocMarks());\n\n // create the defautl inputRules plugin\n const plugin = inputRules({ rules: this.extensions.inputRules(this.schema) });\n const handleTextInput = plugin.props.handleTextInput!;\n\n // override to disable input rules as requested\n // https://github.com/ProseMirror/prosemirror-inputrules/commit/b4bf67623aa4c4c1e096c20aa649c0e63751f337\n plugin.props.handleTextInput = (view: EditorView, from: number, to: number, text: string) => {\n if (!markFilter(view.state)) {\n return false;\n }\n return handleTextInput(view, from, to, text);\n };\n return plugin;\n }\n\n private domEventsPlugin(): Plugin {\n return new Plugin({\n key: new PluginKey('domevents'),\n props: {\n handleDOMEvents: {\n blur: (view: EditorView, event: Event) => {\n this.emitEvent(BlurEvent);\n return false;\n },\n focus: (view: EditorView, event: Event) => {\n this.emitEvent(FocusEvent, view.state.doc);\n return false;\n },\n keydown: (view: EditorView, event: Event) => {\n const kbEvent = event as KeyboardEvent;\n if (kbEvent.key === 'Tab' && this.context.ui.prefs.tabKeyMoveFocus()) {\n return true;\n } else {\n return false;\n }\n },\n },\n },\n });\n }\n\n private keybindingsPlugin(): Plugin {\n // get keybindings (merge user + default)\n const commandKeys = this.commandKeys();\n\n // command keys from extensions\n const pluginKeys: { [key: string]: CommandFn } = {};\n const commands = this.extensions.commands(this.schema);\n commands.forEach((command: ProsemirrorCommand) => {\n const keys = commandKeys[command.id];\n if (keys) {\n keys.forEach((key: string) => {\n pluginKeys[key] = command.execute;\n });\n }\n });\n\n // for windows desktop, build a list of control key handlers b/c qtwebengine\n // ends up corrupting ctrl+ keys so they don't hit the ace keybinding\n // (see: https://github.com/rstudio/rstudio/issues/7142)\n const ctrlKeyCodes: { [key: string]: CommandFn } = {};\n Object.keys(pluginKeys).forEach(keyCombo => {\n const match = keyCombo.match(/^Mod-([a-z\\\\])$/);\n if (match) {\n const key = match[1];\n const keyCode = key === '\\\\' ? 'Backslash' : `Key${key.toUpperCase()}`;\n ctrlKeyCodes[keyCode] = pluginKeys[keyCombo];\n }\n });\n\n // create default prosemirror handler\n const prosemirrorKeydownHandler = keydownHandler(pluginKeys);\n\n // return plugin\n return new Plugin({\n key: keybindingsPlugin,\n props: {\n handleKeyDown: (view: EditorView, event: KeyboardEvent) => {\n // workaround for Ctrl+ keys on windows desktop\n if (this.context.ui.context.isWindowsDesktop()) {\n const keyEvent = event as KeyboardEvent;\n if (keyEvent.ctrlKey) {\n const keyCommand = ctrlKeyCodes[keyEvent.code];\n if (keyCommand && keyCommand(this.view.state)) {\n keyCommand(this.view.state, this.view.dispatch, this.view);\n return true;\n }\n }\n }\n // default handling\n return prosemirrorKeydownHandler(view, event);\n },\n },\n });\n }\n\n private commandKeys(): { [key: string]: readonly string[] } {\n // start with keys provided within command definitions\n const commands = this.extensions.commands(this.schema);\n const defaultKeys = commands.reduce((keys: { [key: string]: readonly string[] }, command: ProsemirrorCommand) => {\n keys[command.id] = command.keymap;\n return keys;\n }, {});\n\n // merge with user keybindings\n return {\n ...defaultKeys,\n ...this.keybindings,\n };\n }\n\n // update parent padding based on content width settings (if specified)\n private syncContentWidth() {\n if (this.maxContentWidth && this.parent.clientWidth) {\n const minContentPadding = this.minContentPadding || 10;\n const parentWidth = this.parent.clientWidth;\n if (parentWidth > this.maxContentWidth + 2 * minContentPadding) {\n applyPadding(`calc((100% - ${this.maxContentWidth}px)/2)`);\n } else {\n applyPadding(this.minContentPadding + 'px');\n }\n }\n }\n\n private applyFixupsOnResize() {\n const docChanged = this.applyFixups(FixupContext.Resize);\n if (!docChanged) {\n // If applyFixupsOnResize returns true, then layout has already\n // been fired; if it hasn't, we must do so now\n this.emitEvent(LayoutEvent);\n }\n }\n\n private applyFixups(context: FixupContext) {\n let tr = this.state.tr;\n tr = this.extensionFixups(tr, context);\n if (tr.docChanged) {\n tr.setMeta(kAddToHistoryTransaction, false);\n tr.setMeta(kFixupTransaction, true);\n this.view.dispatch(tr);\n return true;\n }\n return false;\n }\n\n private extensionFixups(tr: Transaction, context: FixupContext) {\n this.extensions.fixups(this.schema, this.view).forEach(fixup => {\n tr = fixup(tr, context);\n });\n return tr;\n }\n\n private initialDoc(): ProsemirrorNode {\n return this.schema.nodeFromJSON({\n type: 'doc',\n attrs: {\n initial: true,\n },\n content: [\n { type: 'body', content: [{ type: 'paragraph' }] },\n { type: 'notes', content: [] },\n ],\n });\n }\n\n private async getMarkdownCode(tr: Transaction, options: PandocWriterOptions) {\n // apply save fixups\n this.extensionFixups(tr, FixupContext.Save);\n\n // apply sentence wrapping if requested\n if (options.wrap === 'sentence') {\n wrapSentences(tr);\n }\n\n // get code\n return this.pandocConverter.fromProsemirror(tr.doc, this.pandocFormat, options);\n }\n}\n\nfunction navigationIdForSelection(state: EditorState): string | null {\n const outline = getOutlineNodes(state.doc);\n const outlineNode = outline.reverse().find(node => node.pos < state.selection.from);\n if (outlineNode) {\n return outlineNode.node.attrs.navigation_id;\n } else {\n return null;\n }\n}\n\n// custom DOMParser that preserves all whitespace (required by display math marks)\nclass EditorDOMParser extends DOMParser {\n constructor(schema: Schema) {\n super(schema, DOMParser.fromSchema(schema).rules);\n }\n public parse(dom: Node, options?: ParseOptions) {\n return super.parse(dom, { ...options, preserveWhitespace: 'full' });\n }\n\n public parseSlice(dom: Node, options?: ParseOptions) {\n return super.parseSlice(dom, { ...options, preserveWhitespace: 'full' });\n }\n}\n","/*\n * cite.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { CSLName, CSLDate, CSL } from './csl';\nimport { InsertCiteProps, InsertCiteUI } from './ui-dialogs';\nimport { urlForDOI } from './doi';\n\nimport pinyin from 'pinyin';\nimport { transliterate } from 'transliteration';\n\nexport const kInvalidCiteKeyChars = /[\\]\\[\\s@',\\\\\\#}{~%&\\$\\^_]/g;\nconst kCiteIdLeadingLength = 8;\n\nexport function createUniqueCiteId(existingIds: string[], baseId: string): string {\n let count = 0;\n\n // Remove any non-8bit ascii characters, if possible\n // convert Hanzi characters to ascii\n let asciiOnlyBaseId = '';\n\n const isHanzi = (char: number) => {\n return char >= 13312 && char <= 40895;\n };\n\n for (let i = 0; i < baseId.length; i++) {\n const char = baseId.charCodeAt(i);\n if (char <= 255) {\n asciiOnlyBaseId = asciiOnlyBaseId + String.fromCharCode(char);\n } else if (isHanzi(char)) {\n asciiOnlyBaseId = asciiOnlyBaseId + pinyin(String.fromCharCode(char));\n } else {\n // Transliterate other non ascii characters to the citekey\n asciiOnlyBaseId = asciiOnlyBaseId + transliterate(String.fromCharCode(char));\n }\n }\n\n // If there are no characters left, just used a placeholder\n if (asciiOnlyBaseId.length === 0) {\n asciiOnlyBaseId = 'cite';\n }\n\n // The base ID but with invalid characters replaced\n let safeBaseId = asciiOnlyBaseId.replace(kInvalidCiteKeyChars, '');\n\n // Ensure that this is a valid citation, stripping any invalid characters\n let proposedId = safeBaseId;\n\n // If there is a conflict with an existing id, we will append\n // the following character and try again. If the conflict continues with\n // the postfix character added, we'll increment and keep going through the\n // alphabet\n const disambiguationStartCharacter = 97; // a\n\n while (existingIds.includes(proposedId)) {\n // If we've wrapped around to a and we haven't found a unique entry\n // Add an 'a' to the end and try again. Will ultimately create an entry like\n // Teague2012aaaf\n if (count !== 0 && count % 26 === 0) {\n safeBaseId = safeBaseId + String.fromCharCode(disambiguationStartCharacter);\n }\n\n const postfix = String.fromCharCode(disambiguationStartCharacter + (count % 26));\n proposedId = safeBaseId + postfix;\n count++;\n }\n return proposedId;\n}\n\n// Suggests a bibliographic identifier based upon the source\nexport function suggestCiteId(existingIds: string[], csl: CSL) {\n const author = csl.author;\n const issued = csl.issued;\n\n // Try to get the last name\n let citeIdLeading = '';\n if (author && author.length > 0) {\n if (author[0].family) {\n citeIdLeading = author[0].family;\n } else if (author[0].literal) {\n citeIdLeading = author[0].literal;\n }\n }\n\n // If we can't use author information, try using short title,\n // the title, or perhaps the type to construct a leading part of the\n // citeId.\n if (citeIdLeading.length === 0) {\n const shortTitle = csl['short-title'];\n if (shortTitle && shortTitle?.length > 0) {\n citeIdLeading = shortTitle.substr(0, Math.min(kCiteIdLeadingLength, shortTitle.length));\n } else if (csl.title) {\n citeIdLeading = csl.title.substr(0, Math.min(kCiteIdLeadingLength, csl.title.length));\n } else {\n citeIdLeading = csl.type;\n }\n }\n\n // Try to get the publication year\n let datePart = '';\n if (issued && issued['date-parts'] && issued['date-parts'].length > 0) {\n const yearIssued = issued['date-parts'][0][0];\n // Sometimes, data arrives with a null value, ignore null\n if (yearIssued) {\n datePart = yearIssued + '';\n }\n }\n\n // Create a deduplicated string against the existing entries\n let baseId = `${citeIdLeading.toLowerCase()}${datePart}`;\n if (baseId.length === 0) {\n baseId = 'untitled';\n }\n\n return createUniqueCiteId(existingIds, baseId);\n}\n\nexport interface CiteField {\n name: string;\n value: string;\n}\n\nexport function urlForCitation(csl: CSL): string | undefined {\n if (csl.URL) {\n return csl.URL;\n } else if (csl.DOI) {\n return urlForDOI(csl.DOI);\n }\n}\n\nexport function formatForPreview(csl: CSL): CiteField[] {\n const pairs = new Array();\n if (csl.title) {\n pairs.push({ name: 'Title', value: csl.title });\n }\n pairs.push({ name: 'Authors', value: formatAuthors(csl.author, 255) });\n if (csl.issued && isValidDate(csl.issued)) {\n pairs.push({ name: 'Issue Date', value: formatIssuedDate(csl.issued) });\n }\n\n const containerTitle = csl['container-title'];\n if (containerTitle) {\n pairs.push({ name: 'Publication', value: containerTitle });\n }\n\n const volume = csl.volume;\n if (volume) {\n pairs.push({ name: 'Volume', value: volume });\n }\n\n const page = csl.page;\n if (page) {\n pairs.push({ name: 'Page(s)', value: page });\n }\n\n const cslAny = csl as { [key: string]: any };\n Object.keys(csl).forEach(key => {\n if (!kFilteredFields.includes(key)) {\n const value = cslAny[key];\n // Don't display complex fields or fields that aren't strings\n if (typeof value === 'string') {\n // Capitalize preview names\n const name = key.charAt(0).toUpperCase() + key.slice(1);\n pairs.push({ name, value });\n }\n }\n });\n\n return pairs;\n}\n\nconst kFilteredFields = [\n 'id',\n 'title',\n 'author',\n 'issued',\n 'container-title',\n 'volume',\n 'page',\n 'abstract',\n 'provider',\n];\n\n// Sometimes, data arrives with a null value\n// This function will validate that the year (required) doesn't\n// contain null\nfunction isValidDate(date: CSLDate): boolean {\n const dateParts = date['date-parts'];\n if (dateParts) {\n const invalidElement = dateParts.find(datePart => datePart[0] === null);\n return invalidElement === undefined;\n }\n return true;\n}\n\n// TODO: Needs to support localization of the templated strings\nconst kEtAl = 'et al.';\nexport function formatAuthors(authors?: CSLName[], maxLength?: number): string {\n // No author(s) specified\n if (!authors || authors.length === 0) {\n return '';\n }\n\n return authors\n .map(author => {\n if (author.literal?.length) {\n return author.literal;\n } else if (author.given?.length && author.family?.length) {\n // Family and Given name\n return `${author.family}, ${author.given.substring(0, 1)}`;\n } else if (author.family?.length) {\n // Family name only\n return `${author.family}`;\n } else {\n return '';\n }\n })\n .reduce((previous, current, index, array) => {\n // Ignore any additional authors if the string\n // exceeds the maximum length\n if ((maxLength && previous.length >= maxLength) || previous.endsWith(kEtAl)) {\n return previous;\n }\n\n if (index === 0) {\n // Too long, truncate\n if (maxLength && current.length > maxLength) {\n return `${current.substring(0, maxLength - 1)}…`;\n }\n // The first author\n return current;\n } else if (index > 0 && index === array.length - 1) {\n // The last author\n return addAuthorOrEtAl(previous, `${previous}, and ${current}`, maxLength);\n } else {\n // Middle authors\n return addAuthorOrEtAl(previous, `${previous}, ${current}`, maxLength);\n }\n });\n}\n\nfunction addAuthorOrEtAl(previousAuthorStr: string, newAuthorStr: string, maxLength?: number) {\n // if adding the string would make it too long, truncate\n if (maxLength && newAuthorStr.length > maxLength) {\n return etAl(previousAuthorStr, maxLength);\n }\n return newAuthorStr;\n}\n\nfunction etAl(authorStr: string, maxLength: number) {\n // First try just using et al., then shorten existing\n // author to accomodate\n const etAlStr = `${authorStr} ${kEtAl}`;\n if (maxLength && etAlStr.length > maxLength) {\n // First try to truncate to a space\n const lastSpace = authorStr.lastIndexOf(' ');\n if (lastSpace) {\n return `${authorStr.substr(0, lastSpace)} ${kEtAl}`;\n } else {\n // As a last resort, truncate with ellipsis\n const excessLength = etAlStr.length - maxLength - 1;\n return `${authorStr.substr(0, authorStr.length - excessLength)}… ${kEtAl}`;\n }\n }\n return etAlStr;\n}\n\n// TODO: Needs to support localization of the templated strings\nexport function formatIssuedDate(date: CSLDate | undefined): string {\n // No issue date for this\n if (!date) {\n return '';\n }\n\n const dateParts = date['date-parts'];\n if (dateParts) {\n switch (dateParts.length) {\n // There is a date range\n case 2:\n return `${dateParts[0][0]}-${dateParts[1][0]}`;\n // Only a single date\n case 1:\n // Note that it is possible to receive an entry with a single null entry\n // For examples:\n // 10.1163/1874-6772_seg_a44_588\n const singleDatePart = dateParts[0][0];\n return `${singleDatePart ? singleDatePart : ''}`;\n\n // Seems like a malformed date :(\n case 0:\n default:\n return '';\n }\n }\n return '';\n}\n\nexport function citeUI(citeProps: InsertCiteProps): InsertCiteUI {\n if (citeProps.csl) {\n const suggestedId = suggestCiteId(citeProps.existingIds, citeProps.csl);\n const previewFields = formatForPreview(citeProps.csl);\n return {\n suggestedId,\n previewFields,\n };\n } else {\n // This should never happen - this function should always be called with a work\n return {\n suggestedId: '',\n previewFields: [],\n };\n }\n}\n","/*\n * doi.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport interface DOIResult {\n status: 'ok' | 'notfound' | 'nohost' | 'error';\n message: any | null;\n error: string;\n}\n\nexport interface DOIServer {\n fetchCSL: (doi: string, progressDelay: number) => Promise;\n}\n\n// ^10.\\d{4,9}/[-._;()/:A-Z0-9]+$\n// Core regexes come from https://www.crossref.org/blog/dois-and-matching-regular-expressions/\nconst kModernCrossrefDOIRegex = /10.\\d{4,9}\\/[-._;()/:A-Z0-9]+$/i;\nconst kEarlyWileyCrossrefDOIRegex = /10.1002\\/[^\\s]+$/i;\nconst kOtherCrossrefDOIRegex1 = /10.\\\\d{4}\\/\\d+-\\d+X?(\\d+)\\d+<[\\d\\w]+:[\\d\\w]*>\\d+.\\d+.\\w+;\\d$/i;\nconst kOtherCrossrefDOIRegex2 = /10.1021\\/\\w\\w\\d+$/i;\nconst kOtherCrossrefDOIRegex3 = /10.1207\\/[\\w\\d]+\\&\\d+_\\d+$/i;\n\nconst kCrossrefMatches = [\n kModernCrossrefDOIRegex,\n kEarlyWileyCrossrefDOIRegex,\n kOtherCrossrefDOIRegex1,\n kOtherCrossrefDOIRegex2,\n kOtherCrossrefDOIRegex3,\n];\n\n// Determines whether a a given string may be a DOI\n// Note that this will validate the form of the string, but not\n// whether it is actually a registered DOI\nexport function hasDOI(token: string): boolean {\n return findDOI(token) !== undefined;\n}\n\nexport function findDOI(token: string): string | undefined {\n let match = null;\n kCrossrefMatches.find(regex => {\n match = token.match(regex);\n return match && match[0].length > 0;\n });\n\n if (match === null) {\n return undefined;\n } else {\n return match[0];\n }\n}\n\nexport function urlForDOI(doi: string): string {\n return `https://doi.org/${doi}`;\n}\n","/*\n * ui-dialogs.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { LinkTargets, LinkCapabilities, LinkType } from './link';\nimport { ImageDimensions } from './image';\nimport { ListCapabilities, ListType } from './list';\nimport { TableCapabilities } from './table';\nimport { CSL } from './csl';\nimport { CiteField } from './cite';\nimport { kStyleAttrib, attrPartitionKeyvalue, pandocAttrKeyvalueFromText } from './pandoc_attr';\n\nexport interface EditorDialogs {\n alert: AlertFn;\n yesNoMessage: YesNoMessageFn;\n editLink: LinkEditorFn;\n editImage: ImageEditorFn;\n editCodeBlock: CodeBlockEditorFn;\n editList: ListEditorFn;\n editAttr: AttrEditorFn;\n editSpan: AttrEditorFn;\n editDiv: DivAttrEditorFn;\n editCallout: CalloutEditorFn;\n editRawInline: RawFormatEditorFn;\n editRawBlock: RawFormatEditorFn;\n editMath: MathEditorFn;\n insertTable: InsertTableFn;\n insertTabset: InsertTabsetFn;\n insertCite: InsertCiteFn;\n htmlDialog: EditorHTMLDialogFn;\n}\n\nexport type EditorHTMLDialogFn = (\n title: string,\n okText: string | null,\n create: EditorHTMLDialogCreateFn,\n focus: VoidFunction,\n validate: EditorHTMLDialogValidateFn,\n) => Promise;\n\nexport type EditorHTMLDialogCreateFn = (\n containerWidth: number,\n containerHeight: number,\n confirm: VoidFunction,\n cancel: VoidFunction,\n showProgress: (message: string) => void,\n hideProgress: VoidFunction,\n) => HTMLElement;\n\nexport type EditorHTMLDialogValidateFn = () => string | null;\n\nexport const kAlertTypeInfo = 1;\nexport const kAlertTypeWarning = 2;\nexport const kAlertTypeError = 3;\n\nexport type AlertFn = (message: string, title: string, type: number) => Promise;\n\nexport type YesNoMessageFn = (\n message: string,\n title: string,\n type: number,\n yesLabel: string,\n noLabel: string,\n) => Promise;\n\nexport type AttrEditorFn = (attr: AttrProps, idHint?: string) => Promise;\n\nexport type DivAttrEditorFn = (attr: AttrProps, removeEnabled: boolean) => Promise;\n\nexport type CalloutEditorFn = (props: CalloutEditProps, removeEnabled: boolean) => Promise;\n\nexport type LinkEditorFn = (\n link: LinkProps,\n targets: LinkTargets,\n capabilities: LinkCapabilities,\n) => Promise;\n\nexport type ImageEditorFn = (\n image: ImageProps,\n dims: ImageDimensions | null,\n figure: boolean,\n editAttributes: boolean,\n) => Promise;\n\nexport type CodeBlockEditorFn = (\n codeBlock: CodeBlockProps,\n attributes: boolean,\n languages: string[],\n) => Promise;\n\nexport type ListEditorFn = (list: ListProps, capabilities: ListCapabilities) => Promise;\n\nexport type MathEditorFn = (id: string) => Promise;\n\nexport type RawFormatEditorFn = (raw: RawFormatProps, outputFormats: string[]) => Promise;\n\nexport type InsertTableFn = (capabilities: TableCapabilities) => Promise;\n\nexport type InsertCiteFn = (props: InsertCiteProps) => Promise;\n\nexport type InsertTabsetFn = () => Promise;\n\nexport interface AttrProps {\n readonly id?: string;\n readonly classes?: string[];\n readonly keyvalue?: Array<[string, string]>;\n}\n\nexport interface AttrEditResult {\n readonly action: 'edit' | 'remove';\n readonly attr: AttrProps;\n}\n\nexport interface CalloutEditProps {\n attr: AttrProps;\n callout: CalloutProps;\n}\n\nexport interface CalloutEditResult extends CalloutEditProps {\n readonly action: \"edit\" | \"remove\";\n}\n\nexport interface CalloutProps {\n type: string;\n appearance: string;\n icon: boolean;\n caption: string;\n}\n\nexport interface LinkProps extends AttrProps {\n readonly type: LinkType;\n readonly text: string;\n readonly href: string;\n readonly heading?: string;\n readonly title?: string;\n}\n\nexport interface LinkEditResult {\n readonly action: 'edit' | 'remove';\n readonly link: LinkProps;\n}\n\nexport interface ImageProps extends AttrProps {\n src: string | null;\n title?: string;\n caption?: string;\n alt?: string;\n align?: string;\n env?: string;\n linkTo?: string;\n width?: number;\n height?: number;\n units?: string;\n lockRatio?: boolean;\n}\n\nexport type ImageEditResult = ImageProps;\n\nexport interface CodeBlockProps extends AttrProps {\n lang: string;\n}\n\nexport type CodeBlockEditResult = CodeBlockProps;\n\nexport interface ListProps {\n type: ListType;\n tight: boolean;\n order: number;\n number_style: string;\n number_delim: string;\n incremental: \"default\" | \"incremental\" | \"nonincremental\";\n}\n\nexport type ListEditResult = ListProps;\n\nexport interface InsertTableResult {\n rows: number;\n cols: number;\n header: boolean;\n caption?: string;\n}\n\nexport interface InsertTabsetResult {\n tabs: string[];\n attr: AttrProps;\n}\n\nexport interface InsertCiteProps {\n doi: string;\n existingIds: string[];\n bibliographyFiles: string[];\n provider?: string;\n csl?: CSL;\n citeUI?: InsertCiteUI;\n}\n\nexport interface InsertCiteUI {\n suggestedId: string;\n previewFields: CiteField[];\n}\n\nexport interface InsertCiteResult {\n id: string;\n bibliographyFile: string;\n csl: CSL;\n}\n\nexport interface RawFormatProps {\n content: string;\n format: string;\n}\n\nexport interface RawFormatResult {\n readonly action: 'edit' | 'remove';\n readonly raw: RawFormatProps;\n}\n\nexport interface AttrEditInput {\n id?: string;\n classes?: string;\n style?: string;\n keyvalue?: string;\n}\n\nexport function attrInputToProps(attr: AttrEditInput): AttrProps {\n const classes = attr.classes ? attr.classes.split(/\\s+/) : [];\n let keyvalue: Array<[string, string]> | undefined;\n if (attr.keyvalue || attr.style) {\n let text = attr.keyvalue || '';\n if (attr.style) {\n text += `\\nstyle=${attr.style}\\n`;\n }\n keyvalue = pandocAttrKeyvalueFromText(text, '\\n');\n }\n return {\n id: asPandocId(attr.id || ''),\n classes: classes.map(asPandocClass),\n keyvalue,\n };\n}\n\nfunction asPandocId(id: string) {\n return id.replace(/^#/, '');\n}\n\nfunction asPandocClass(clz: string) {\n return clz.replace(/^\\./, '');\n}\n\nexport function attrPropsToInput(attr: AttrProps): AttrEditInput {\n let style: string | undefined;\n let keyvalue: string | undefined;\n if (attr.keyvalue) {\n const partitionedKeyvalue = attrPartitionKeyvalue([kStyleAttrib], attr.keyvalue);\n if (partitionedKeyvalue.partitioned.length > 0) {\n style = partitionedKeyvalue.partitioned[0][1];\n }\n keyvalue = attrTextFromKeyvalue(partitionedKeyvalue.base);\n }\n\n return {\n id: asHtmlId(attr.id) || undefined,\n classes: attr.classes ? attr.classes.map(asHtmlClass).join(' ') : undefined,\n style,\n keyvalue,\n };\n}\n\nfunction attrTextFromKeyvalue(keyvalue: Array<[string, string]>) {\n return keyvalue.map(kv => `${kv[0]}=${kv[1]}`).join('\\n');\n}\n\nfunction asHtmlId(id: string | undefined) {\n if (id) {\n if (id.startsWith('#')) {\n return id;\n } else {\n return '#' + id;\n }\n } else {\n return id;\n }\n}\n\nfunction asHtmlClass(clz: string | undefined) {\n if (clz) {\n if (clz.startsWith('.')) {\n return clz;\n } else {\n return '.' + clz;\n }\n } else {\n return clz;\n }\n}\n","/*\n * pandoc_attr.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { NodeSpec, MarkSpec } from 'prosemirror-model';\n\nimport { PandocToken, PandocExtensions } from './pandoc';\nimport { extensionEnabled, extensionIfEnabled, Extension } from './extension';\n\nexport const kPandocAttrId = 0;\nexport const kPandocAttrClasses = 1;\nexport const kPandocAttrKeyvalue = 2;\n\nconst kDataPmPandocAttr = 'data-pm-pandoc-attr';\n\nexport const kWidthAttrib = 'width';\nexport const kHeightAttrib = 'height';\nexport const kStyleAttrib = 'style';\nexport const kAlignAttrib = 'align';\nexport const kFigAltAttrib = 'fig-alt';\nexport const kFigAlignAttrib = 'fig-align';\nexport const kFigEnvAttrib = 'fig-env';\n\nexport const kCodeBlockAttr = 0;\nexport const kCodeBlockText = 1;\n\nexport const kSpanAttr = 0;\nexport const kSpanChildren = 1;\n\nexport interface PandocAttr {\n id: string;\n classes: string[];\n keyvalue: Array<[string, string]>;\n}\n\nexport const pandocAttrSpec = {\n id: { default: null },\n classes: { default: [] },\n keyvalue: { default: [] },\n};\n\nexport function pandocAttrAvailable(attrs: any, keyvalue = true) {\n return !!attrs.id || \n (attrs.classes && attrs.classes.length > 0) || \n (keyvalue && attrs.keyvalue && attrs.keyvalue.length > 0);\n}\n\nexport function pandocAttrFrom(attrs: any) {\n const pandocAttr: any = {};\n if (attrs.id) {\n pandocAttr.id = attrs.id;\n }\n if (attrs.classes) {\n pandocAttr.classes = attrs.classes;\n }\n if (attrs.keyvalue) {\n pandocAttr.keyvalue = attrs.keyvalue;\n }\n\n return pandocAttr;\n}\n\nexport function pandocAttrEnsureClass(attr: any, name: string) {\n attr.classes = [name].concat((attr.classes || []).filter((clz: string) => clz !== name));\n}\n\nexport function pandocAttrRemoveClass(attr: any, predicate: (str: string) => boolean) : string | undefined {\n let foundClass: string | undefined;\n if (Array.isArray(attr.classes)) {\n const classes: string[] = [];\n for (const clz of attr.classes) {\n if (predicate(clz)) {\n foundClass = clz;\n } else {\n classes.push(clz);\n }\n }\n attr.classes = classes;\n return foundClass;\n \n } else {\n return undefined;\n }\n}\n\nexport function pandocAttrHasClass(attrs: any, predicate: (str: string) => boolean) {\n if (Array.isArray(attrs.classes)) {\n const classes = attrs.classes as string[];\n return classes.some(clz => predicate(clz));\n } else {\n return false;\n }\n}\n\nexport function pandocAttrGetKeyvalue(attr: any, key: string) {\n if (attr.keyvalue) {\n const entry = attr.keyvalue.find((keyval: string[]) => keyval[0] === key);\n if (entry) {\n return entry[1];\n } else {\n return undefined;\n }\n } else {\n return undefined;\n }\n}\n\nexport function pandocAttrSetKeyvalue(attr: any, key: string, value: string) {\n const keyvalue = [...(attr.keyvalue || [])] as string[][];\n let add = true;\n for (const entry of keyvalue) {\n if (entry[0] === key) {\n entry[1] = value;\n add = false;\n break;\n }\n }\n if (add) {\n keyvalue.push([key, value]);\n }\n attr.keyvalue = keyvalue;\n}\n\nexport function pandocAttrRemoveKeyvalue(attr: any, key: string) {\n if (attr.keyvalue) {\n attr.keyvalue = attr.keyvalue.filter((entry: string[]) => entry[0] !== key);\n }\n}\n\nexport function pandocAttrInSpec(spec: NodeSpec | MarkSpec) {\n const keys = Object.keys((spec.attrs as object) || {});\n return keys.includes('id') && keys.includes('classes') && keys.includes('keyvalue');\n}\n\nexport function pandocAttrReadAST(tok: PandocToken, index: number) {\n const pandocAttr = tok.c[index];\n return {\n id: pandocAttr[kPandocAttrId] || undefined,\n classes: pandocAttr[kPandocAttrClasses],\n keyvalue: pandocAttr[kPandocAttrKeyvalue],\n };\n}\n\nexport function pandocAttrToDomAttr(attrs: any, marker = true) {\n // id and class\n const domAttr: any = {};\n if (attrs.id) {\n domAttr.id = attrs.id;\n }\n if (attrs.classes && attrs.classes.length > 0) {\n domAttr.class = attrs.classes.join(' ');\n }\n\n // keyvalue pairs\n attrs.keyvalue.forEach((keyvalue: [string, string]) => {\n domAttr[keyvalue[0]] = keyvalue[1];\n });\n\n // marker\n if (marker) {\n domAttr[kDataPmPandocAttr] = '1';\n }\n\n return domAttr;\n}\n\nexport function pandocAttrParseDom(el: Element, attrs: { [key: string]: string | null }, forceAttrs = false) {\n // exclude any keys passed to us\n const excludedNames = Object.keys(attrs);\n\n // if this isn't from a prosemirror pandoc node then include only src and alt\n const includedNames: string[] = [];\n if (!forceAttrs && !el.hasAttribute(kDataPmPandocAttr)) {\n includedNames.push('src', 'alt');\n }\n\n // read attributes\n const attr: any = {};\n attr.classes = [];\n attr.keyvalue = [];\n el.getAttributeNames().forEach(name => {\n const value: string = el.getAttribute(name) as string;\n // exclude attributes already parsed and prosemirror internal attributes\n if (excludedNames.indexOf(name) === -1 && !name.startsWith('data-pm')) {\n // if we have an include filter then use it\n if (!includedNames.length || includedNames.includes(name)) {\n if (name === 'id') {\n attr.id = value;\n } else if (name === 'class') {\n attr.classes = value\n .split(/\\s+/)\n .filter(val => !!val.length)\n .filter(val => !val.startsWith('pm-'));\n } else {\n attr.keyvalue.push([name, value]);\n }\n }\n }\n });\n return attr;\n}\n\nexport function pandocAttrParseText(attr: string): PandocAttr | null {\n attr = attr.trim();\n\n let id = '';\n const classes: string[] = [];\n let remainder = '';\n\n let current = '';\n const resolveCurrent = () => {\n const resolve = current;\n current = '';\n\n if (resolve.length === 0) {\n return true;\n } else if (resolve.startsWith('#')) {\n if (id.length === 0 && resolve.length > 1) {\n id = resolve.substr(1);\n return true;\n } else {\n return false;\n }\n } else if (resolve.startsWith('.')) {\n if (resolve.length > 1) {\n classes.push(resolve.substr(1));\n return true;\n } else {\n return false;\n }\n } else {\n remainder = resolve;\n return true;\n }\n };\n\n for (let i = 0; i < attr.length; i++) {\n let inQuotes = false;\n const ch = attr[i];\n inQuotes = ch === '\"' ? !inQuotes : inQuotes;\n if (ch !== ' ' && !inQuotes) {\n current += ch;\n } else if (resolveCurrent()) {\n // if we have a remainder then the rest of the string is the remainder\n if (remainder.length > 0) {\n remainder = remainder + attr.substr(i);\n break;\n }\n } else {\n return null;\n }\n }\n\n if (resolveCurrent()) {\n if (id.length === 0 && classes.length === 0) {\n remainder = attr;\n }\n return {\n id,\n classes,\n keyvalue: remainder.length > 0 ? pandocAttrKeyvalueFromText(remainder, ' ') : [],\n };\n } else {\n return null;\n }\n}\n\nexport function pandocAttrKeyvalueFromText(text: string, separator: ' ' | '\\n'): Array<[string, string]> {\n // if the separator is a space then convert unquoted spaces to newline\n if (separator === ' ') {\n let convertedText = '';\n let inQuotes = false;\n for (let i = 0; i < text.length; i++) {\n let ch = text.charAt(i);\n if (ch === '\"') {\n inQuotes = !inQuotes;\n } else if (ch === ' ' && !inQuotes) {\n ch = '\\n';\n }\n convertedText += ch;\n }\n text = convertedText;\n }\n\n const lines = text.trim().split('\\n');\n return lines.map(line => {\n const parts = line.trim().split('=');\n return [parts[0], (parts[1] || '').replace(/^\"/, '').replace(/\"$/, '')];\n });\n}\n\nexport interface AttrKeyvaluePartitioned {\n base: Array<[string, string]>;\n partitioned: Array<[string, string]>;\n}\n\nexport function attrPartitionKeyvalue(partition: string[], keyvalue: Array<[string, string]>): AttrKeyvaluePartitioned {\n const base = new Array<[string, string]>();\n const partitioned = new Array<[string, string]>();\n\n keyvalue.forEach(kv => {\n if (partition.includes(kv[0])) {\n partitioned.push(kv);\n } else {\n base.push(kv);\n }\n });\n\n return {\n base,\n partitioned,\n };\n}\n\nexport function extensionIfPandocAttrEnabled(extension: Extension) {\n return extensionIfEnabled(extension, kPandocAttrExtensions);\n}\n\nexport function pandocAttrEnabled(pandocExtensions: PandocExtensions) {\n return extensionEnabled(pandocExtensions, kPandocAttrExtensions);\n}\n\nconst kPandocAttrExtensions = [\n 'link_attributes',\n 'mmd_link_attributes',\n 'mmd_header_identifiers',\n 'header_attributes',\n 'fenced_code_attributes',\n 'inline_code_attributes',\n 'bracketed_spans',\n 'native_spans',\n 'fenced_divs',\n 'native_divs',\n];\n","/*\n * extension.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { InputRule } from 'prosemirror-inputrules';\nimport { Schema } from 'prosemirror-model';\nimport { Plugin } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { ProsemirrorCommand } from './command';\nimport { PandocMark } from './mark';\nimport { PandocNode } from './node';\nimport { EditorUI } from './ui';\nimport { BaseKeyBinding } from './basekeys';\nimport { AppendTransactionHandler, AppendMarkTransactionHandler } from './transaction';\nimport { EditorOptions } from './options';\nimport { PandocExtensions } from './pandoc';\nimport { FixupFn } from './fixup';\nimport { EditorEvents } from './events';\nimport { PandocCapabilities } from './pandoc_capabilities';\nimport { EditorFormat } from './format';\nimport { MarkInputRuleFilter } from './input_rule';\nimport { CompletionHandler } from './completion';\nimport { EditorNavigation } from './navigation';\nimport { EditorMath } from './math';\nimport { EditorServer } from './server';\n\nexport interface Extension {\n marks?: PandocMark[];\n nodes?: PandocNode[];\n baseKeys?: (schema: Schema) => readonly BaseKeyBinding[];\n inputRules?: (schema: Schema, markFilter: MarkInputRuleFilter) => readonly InputRule[];\n commands?: (schema: Schema) => readonly ProsemirrorCommand[];\n plugins?: (schema: Schema) => readonly Plugin[];\n appendTransaction?: (schema: Schema) => readonly AppendTransactionHandler[];\n appendMarkTransaction?: (schema: Schema) => readonly AppendMarkTransactionHandler[];\n fixups?: (schema: Schema, view: EditorView) => Readonly;\n completionHandlers?: () => readonly CompletionHandler[];\n}\n\nexport interface ExtensionContext {\n pandocExtensions: PandocExtensions;\n pandocCapabilities: PandocCapabilities;\n server: EditorServer;\n ui: EditorUI;\n math?: EditorMath;\n format: EditorFormat;\n options: EditorOptions;\n events: EditorEvents;\n navigation: EditorNavigation;\n}\n\nexport type ExtensionFn = (context: ExtensionContext) => Extension | null;\n\n// create an ExtensionFn for a given extension and format option that must be enabled\nexport function extensionIfEnabled(extension: Extension, name: string | string[]) {\n return (context: ExtensionContext) => {\n if (extensionEnabled(context.pandocExtensions, name)) {\n return extension;\n } else {\n return null;\n }\n };\n}\n\nexport function extensionEnabled(pandocExtensions: PandocExtensions, name: string | string[]) {\n // match single extension name\n if (typeof name === 'string') {\n if (pandocExtensions[name]) {\n return true;\n }\n\n // match any one of several names\n } else if (Array.isArray(name)) {\n for (const nm of name) {\n if (pandocExtensions[nm]) {\n return true;\n }\n }\n }\n\n return false;\n}\n","/*\n * pandoc_capabilities.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { PandocServer, parsePandocListOutput, PandocApiVersion } from './pandoc';\n\nexport interface PandocCapabilitiesResult {\n version: string;\n api_version: PandocApiVersion;\n output_formats: string;\n highlight_languages: string;\n}\n\nexport interface PandocCapabilities {\n version: string;\n api_version: PandocApiVersion;\n output_formats: string[];\n highlight_languages: string[];\n}\n\nexport async function getPandocCapabilities(server: PandocServer) {\n const result = await server.getCapabilities();\n return {\n version: result.version,\n api_version: result.api_version,\n output_formats: parsePandocListOutput(result.output_formats),\n highlight_languages: parsePandocListOutput(result.highlight_languages),\n };\n}\n","/*\n * pandoc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment, Mark, Node as ProsemirrorNode, Schema, NodeType } from 'prosemirror-model';\n\nimport { PandocAttr, pandocAttrReadAST, kSpanChildren, kSpanAttr } from './pandoc_attr';\nimport { PandocCapabilitiesResult } from './pandoc_capabilities';\nimport { kQuoteType, kQuoteChildren, QuoteType } from './quote';\nimport { BibliographyResult } from './bibliography/bibliography-provider_local';\n\nimport { stringifyMath } from './math';\nimport { kCodeText } from './code';\nimport { kLinkChildren } from './link';\n\nexport interface PandocServer {\n getCapabilities(): Promise;\n markdownToAst(markdown: string, format: string, options: string[]): Promise;\n astToMarkdown(ast: PandocAst, format: string, options: string[]): Promise;\n listExtensions(format: string): Promise;\n getBibliography(\n file: string | null,\n bibliography: string[],\n refBlock: string | null,\n etag: string | null,\n ): Promise;\n addToBibliography(\n bibliography: string,\n project: boolean,\n id: string,\n sourceAsJson: string,\n sourceAsBibTeX: string,\n ): Promise;\n citationHTML(file: string | null, sourceAsJson: string, csl: string | null): Promise;\n}\n\nexport interface PandocWriterReferencesOptions {\n location?: string; // block | section | document\n prefix?: string;\n}\n\nexport interface PandocWriterOptions {\n atxHeaders?: boolean;\n references?: PandocWriterReferencesOptions;\n wrap?: string;\n dpi?: number;\n}\n\nexport interface PandocExtensions {\n abbreviations: boolean;\n all_symbols_escapable: boolean;\n amuse: boolean;\n angle_brackets_escapable: boolean;\n ascii_identifiers: boolean;\n auto_identifiers: boolean;\n autolink_bare_uris: boolean;\n backtick_code_blocks: boolean;\n blank_before_blockquote: boolean;\n blank_before_header: boolean;\n bracketed_spans: boolean;\n citations: boolean;\n compact_definition_lists: boolean;\n definition_lists: boolean;\n east_asian_line_breaks: boolean;\n emoji: boolean;\n empty_paragraphs: boolean;\n epub_html_exts: boolean;\n escaped_line_breaks: boolean;\n example_lists: boolean;\n fancy_lists: boolean;\n fenced_code_attributes: boolean;\n fenced_code_blocks: boolean;\n fenced_divs: boolean;\n footnotes: boolean;\n four_space_rule: boolean;\n gfm_auto_identifiers: boolean;\n grid_tables: boolean;\n hard_line_breaks: boolean;\n header_attributes: boolean;\n ignore_line_breaks: boolean;\n implicit_figures: boolean;\n implicit_header_references: boolean;\n inline_code_attributes: boolean;\n inline_notes: boolean;\n intraword_underscores: boolean;\n latex_macros: boolean;\n line_blocks: boolean;\n link_attributes: boolean;\n lists_without_preceding_blankline: boolean;\n literate_haskell: boolean;\n markdown_attribute: boolean;\n markdown_in_html_blocks: boolean;\n mmd_header_identifiers: boolean;\n mmd_link_attributes: boolean;\n mmd_title_block: boolean;\n multiline_tables: boolean;\n native_divs: boolean;\n native_spans: boolean;\n native_numbering: boolean;\n ntb: boolean;\n old_dashes: boolean;\n pandoc_title_block: boolean;\n pipe_tables: boolean;\n raw_attribute: boolean;\n raw_html: boolean;\n raw_tex: boolean;\n shortcut_reference_links: boolean;\n simple_tables: boolean;\n smart: boolean;\n space_in_atx_header: boolean;\n spaced_reference_links: boolean;\n startnum: boolean;\n strikeout: boolean;\n subscript: boolean;\n superscript: boolean;\n styles: boolean;\n task_lists: boolean;\n table_captions: boolean;\n tex_math_dollars: boolean;\n tex_math_double_backslash: boolean;\n tex_math_single_backslash: boolean;\n yaml_metadata_block: boolean;\n gutenberg: boolean;\n // attributes: boolean; (not yet)\n [key: string]: boolean;\n}\n\nexport function imageAttributesAvailable(pandocExtensions: PandocExtensions) {\n return pandocExtensions.link_attributes || pandocExtensions.raw_html;\n}\n\nexport function parsePandocListOutput(output: string) {\n return output.split(/\\r?\\n/).filter(entry => entry.length);\n}\n\nexport interface PandocAst {\n blocks: PandocToken[];\n 'pandoc-api-version': PandocApiVersion;\n meta: any;\n heading_ids?: string[]; // used only for reading not writing\n}\n\nexport type PandocApiVersion = number[];\n\nexport interface PandocToken {\n t: string;\n c?: any;\n}\n\n// https://github.com/jgm/pandoc-types/blob/master/Text/Pandoc/Definition.hs\nexport enum PandocTokenType {\n Str = 'Str',\n Space = 'Space',\n Strong = 'Strong',\n Emph = 'Emph',\n Code = 'Code',\n Superscript = 'Superscript',\n Subscript = 'Subscript',\n Strikeout = 'Strikeout',\n SmallCaps = 'SmallCaps',\n Underline = 'Underline',\n Quoted = 'Quoted',\n RawInline = 'RawInline',\n RawBlock = 'RawBlock',\n LineBlock = 'LineBlock',\n Para = 'Para',\n Plain = 'Plain',\n Header = 'Header',\n CodeBlock = 'CodeBlock',\n BlockQuote = 'BlockQuote',\n BulletList = 'BulletList',\n OrderedList = 'OrderedList',\n DefinitionList = 'DefinitionList',\n Image = 'Image',\n Link = 'Link',\n Note = 'Note',\n Cite = 'Cite',\n Table = 'Table',\n AlignRight = 'AlignRight',\n AlignLeft = 'AlignLeft',\n AlignDefault = 'AlignDefault',\n AlignCenter = 'AlignCenter',\n ColWidth = 'ColWidth',\n ColWidthDefault = 'ColWidthDefault',\n HorizontalRule = 'HorizontalRule',\n LineBreak = 'LineBreak',\n SoftBreak = 'SoftBreak',\n Math = 'Math',\n InlineMath = 'InlineMath',\n DisplayMath = 'DisplayMath',\n Div = 'Div',\n Span = 'Span',\n Null = 'Null',\n}\n\nexport interface PandocTokenReader {\n // pandoc token name (e.g. \"Str\", \"Emph\", etc.)\n readonly token: PandocTokenType;\n\n // If present, gives a chance for the reader to decide whether it actually\n // wants to handle the token, based on factors other than the PandocTokenType\n readonly match?: (tok: PandocToken) => boolean;\n\n // one and only one of these values must also be set\n readonly text?: boolean;\n readonly node?: string;\n readonly block?: string;\n readonly mark?: string;\n readonly code_block?: boolean;\n\n // functions for getting attributes and children\n getAttrs?: (tok: PandocToken) => any;\n getChildren?: (tok: PandocToken) => any[];\n getText?: (tok: PandocToken) => string;\n\n // lower-level handler function that overrides the above handler attributes\n // (they are ignored when handler is specified)\n handler?: (schema: Schema) => (writer: ProsemirrorWriter, tok: PandocToken) => void;\n\n // post-processor for performing fixups that rely on seeing the entire\n // document (e.g. recognizing implicit header references)\n postprocessor?: PandocPostprocessorFn;\n}\n\n// constants used to read the contents of raw blocks\nexport const kRawBlockFormat = 0;\nexport const kRawBlockContent = 1;\n\n// filter sequences of tokens (e.g. for reducing some adjacent tokens to a single token)\nexport type PandocTokensFilterFn = (tokens: PandocToken[], writer: ProsemirrorWriter) => PandocToken[];\n\n// special reader that gets a first shot at blocks (i.e. to convert a para w/ a single image into a figure)\nexport type PandocBlockReaderFn = (schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) => boolean;\n\n// reader that gets a first shot at inline html (e.g. image node parsing an tag)\nexport type PandocInlineHTMLReaderFn = (schema: Schema, html: string, writer?: ProsemirrorWriter) => boolean;\n\nexport interface ProsemirrorWriter {\n // open (then close) a node container\n openNode(type: NodeType, attrs: {}): void;\n closeNode(): ProsemirrorNode;\n\n // special open call for note node containers\n openNoteNode(ref: string): void;\n\n // add a node to the current container\n addNode(type: NodeType, attrs: {}, content: ProsemirrorNode[]): ProsemirrorNode | null;\n\n // open and close marks\n openMark(mark: Mark): void;\n closeMark(mark: Mark): void;\n\n // add text to the current node using the current mark set\n writeText(text: string): void;\n\n // write tokens into the current node\n writeTokens(tokens: PandocToken[]): void;\n\n // see if any inline HTML readers want to handle this html\n hasInlineHTMLWriter(html: string): boolean;\n writeInlineHTML(html: string): void;\n\n // log an unrecoginzed token type\n logUnrecognized(token: string): void;\n\n // log the presence of example lists\n logExampleList(): void;\n\n // query whether a given node type is open\n // (useful for e.g. conditional behavior when in a list or table)\n isNodeOpen(type: NodeType): boolean;\n}\n\nexport interface PandocNodeWriter {\n readonly name: string;\n readonly write: PandocNodeWriterFn;\n}\n\nexport type PandocNodeWriterFn = (output: PandocOutput, node: ProsemirrorNode) => void;\n\nexport type PandocPreprocessorFn = (markdown: string) => string;\n\nexport type PandocPostprocessorFn = (doc: ProsemirrorNode) => ProsemirrorNode;\n\nexport interface PandocMarkWriter {\n // pandoc mark name\n readonly name: string;\n\n // The 'priority' property allows us to dicate the order of nesting\n // for marks (this is required b/c Prosemirror uses a flat structure\n // whereby multiple marks are attached to text nodes). This allows us\n // to e.g. ensure that strong and em always occur outside code.\n readonly priority: number;\n\n // writer function\n readonly write: PandocMarkWriterFn;\n}\n\nexport type PandocMarkWriterFn = (output: PandocOutput, mark: Mark, parent: Fragment) => void;\n\nexport const kWriteSpaces = 'writeSpaces';\nexport const kPreventBracketEscape = 'preventBracketEscape';\n\nexport type PandocOutputOption = typeof kWriteSpaces | typeof kPreventBracketEscape;\n\n\n\nexport interface PandocOutput {\n extensions: PandocExtensions;\n write(value: any): void;\n writeToken(type: PandocTokenType, content?: (() => void) | any): void;\n writeMark(type: PandocTokenType, parent: Fragment, expelEnclosingWhitespace?: boolean): void;\n writeArray(content: () => void): void;\n writeAttr(id?: string, classes?: string[], keyvalue?: [[string, string]]): void;\n writeText(text: string | null): void;\n writeLink(href: string, title: string, attr: PandocAttr | null, f: () => void): void;\n writeNode(node: ProsemirrorNode): void;\n writeNodes(parent: ProsemirrorNode): void;\n writeNote(note: ProsemirrorNode): void;\n writeInlines(fragment: Fragment): void;\n writeRawMarkdown(markdown: Fragment | string, escapeSymbols?: boolean): void;\n withOption(option: PandocOutputOption, value: boolean, f: () => void): void;\n}\n\n// collect the text from a collection of pandoc ast\n// elements (ignores marks, useful for ast elements\n// that support marks but whose prosemirror equivalent\n// does not, e.g. image alt text)\n// https://github.com/jgm/pandoc/blob/83880b0dbc318703babfbb6905b1046fa48f1216/src/Text/Pandoc/Shared.hs#L439\nexport function stringifyTokens(c: PandocToken[], unemoji = false): string {\n return c\n .map(elem => {\n if (elem.t === PandocTokenType.Str) {\n return elem.c;\n } else if (\n elem.t === PandocTokenType.Space ||\n elem.t === PandocTokenType.SoftBreak ||\n elem.t === PandocTokenType.LineBreak\n ) {\n return ' ';\n } else if (elem.t === PandocTokenType.Link) {\n return stringifyTokens(elem.c[kLinkChildren]);\n } else if (elem.t === PandocTokenType.Span) {\n const attr = pandocAttrReadAST(elem, kSpanAttr);\n if (unemoji && attr.classes && attr.classes[0] === 'emoji') {\n return attr.keyvalue[0][1];\n } else {\n return stringifyTokens(elem.c[kSpanChildren]);\n }\n } else if (elem.t === PandocTokenType.Quoted) {\n const type = elem.c[kQuoteType].t;\n const quote = type === QuoteType.SingleQuote ? \"'\" : '\"';\n return quote + stringifyTokens(elem.c[kQuoteChildren]) + quote;\n } else if (elem.t === PandocTokenType.Math) {\n return stringifyMath(elem);\n } else if (elem.t === PandocTokenType.Code) {\n return elem.c[kCodeText];\n } else if (elem.c) {\n return stringifyTokens(elem.c);\n } else {\n return '';\n }\n })\n .join('');\n}\n\nexport function forEachToken(tokens: PandocToken[], f: (tok: PandocToken) => void) {\n mapTokens(tokens, (tok: PandocToken) => {\n f(tok);\n return tok;\n });\n}\n\nexport function mapTokens(tokens: PandocToken[], f: (tok: PandocToken) => PandocToken) {\n function isToken(val: any) {\n if (val !== null && typeof val === 'object') {\n return val.hasOwnProperty('t');\n } else {\n return false;\n }\n }\n\n function tokenHasChildren(tok: PandocToken) {\n return tok !== null && typeof tok === 'object' && Array.isArray(tok.c);\n }\n\n function mapValue(val: any): any {\n if (isToken(val)) {\n return mapToken(val);\n } else if (Array.isArray(val)) {\n return val.map(mapValue);\n } else {\n return val;\n }\n }\n\n function mapToken(tok: PandocToken): PandocToken {\n const mappedTok = f(tok);\n if (tokenHasChildren(mappedTok)) {\n mappedTok.c = mappedTok.c.map(mapValue);\n }\n return mappedTok;\n }\n\n return tokens.map(mapToken);\n}\n\nexport function tokenTextEscaped(t: PandocToken) {\n return t.c.replace(/\\\\/g, `\\\\\\\\`);\n}\n\n// sort marks by priority (in descending order)\nexport function marksByPriority(marks: Mark[], markWriters: { [key: string]: PandocMarkWriter }) {\n return marks.sort((a: Mark, b: Mark) => {\n const aPriority = markWriters[a.type.name].priority;\n const bPriority = markWriters[b.type.name].priority;\n if (aPriority < bPriority) {\n return 1;\n } else if (bPriority < aPriority) {\n return -1;\n } else {\n return 0;\n }\n });\n}\n","/*\n * quote.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport const kQuoteType = 0;\nexport const kQuoteChildren = 1;\n\nexport enum QuoteType {\n SingleQuote = 'SingleQuote',\n DoubleQuote = 'DoubleQuote',\n}\n\nexport function quotesForType(type: QuoteType) {\n const dblQuote = type === QuoteType.DoubleQuote;\n return {\n begin: dblQuote ? '“' : '‘',\n end: dblQuote ? '”' : '’',\n };\n}\n\n// create regexs for removing quotes\nconst kSingleQuotes = quotesForType(QuoteType.SingleQuote);\nconst kSingleQuoteRegEx = new RegExp(`[${kSingleQuotes.begin}${kSingleQuotes.end}]`, 'g');\nconst kDoubleQuotes = quotesForType(QuoteType.DoubleQuote);\nconst kDoubleQuoteRegEx = new RegExp(`[${kDoubleQuotes.begin}${kDoubleQuotes.end}]`, 'g');\n\nexport function fancyQuotesToSimple(text: string) {\n return text.replace(kSingleQuoteRegEx, \"'\").replace(kDoubleQuoteRegEx, '\"');\n}\n","/*\n * math.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState } from 'prosemirror-state';\n\nimport { EditorUI } from './ui';\nimport { PandocToken } from './pandoc';\nimport { markIsActive, getMarkAttrs } from './mark';\n\nexport const kMathType = 0;\nexport const kMathContent = 1;\n\n// additional field we stick into the AST for quarto crossref ids\nexport const kMathId = 2;\n\nexport enum MathType {\n Inline = 'InlineMath',\n Display = 'DisplayMath',\n}\n\nexport interface EditorMath {\n typeset: (el: HTMLElement, math: string, priority: boolean) => Promise;\n}\n\nexport function editorMath(ui: EditorUI): EditorMath {\n // return a promise that will typeset this node's math (including retrying as long as is\n // required if the element is not yet connected to the DOM)\n return {\n typeset: (el: HTMLElement, math: string, priority: boolean): Promise => {\n return new Promise(resolve => {\n // regular typeset if we are already connected\n if (el.isConnected) {\n ui.math.typeset!(el, math, priority).then(resolve);\n } else {\n // otherwise wait 100ms then retry\n const timerId = setInterval(() => {\n if (el.isConnected) {\n clearInterval(timerId);\n ui.math.typeset!(el, math, priority).then(resolve);\n }\n }, 100);\n }\n });\n },\n };\n}\n\nexport function delimiterForType(type: string) {\n if (type === MathType.Inline) {\n return '$';\n } else {\n return '$$';\n }\n}\n\nexport function stringifyMath(tok: PandocToken) {\n const delimter = delimiterForType(tok.c[kMathType].t);\n return delimter + tok.c[kMathContent] + delimter;\n}\n\nexport function mathTypeIsActive(state: EditorState, type: MathType) {\n const schema = state.schema;\n return (\n markIsActive(state, schema.marks.math) &&\n getMarkAttrs(state.doc, state.selection, schema.marks.math).type === type\n );\n}\n\n","/*\n * mark.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Mark, MarkSpec, MarkType, ResolvedPos, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState, Selection, Transaction } from 'prosemirror-state';\n\nimport { PandocTokenReader, PandocMarkWriterFn, PandocInlineHTMLReaderFn, PandocTokensFilterFn } from './pandoc';\nimport { mergedTextNodes } from './text';\nimport { findChildrenByMark } from 'prosemirror-utils';\nimport { MarkTransaction } from './transaction';\n\nexport interface PandocMark {\n readonly name: string;\n readonly spec: MarkSpec;\n readonly noInputRules?: boolean;\n readonly noSpelling?: boolean;\n readonly pandoc: {\n readonly readers: readonly PandocTokenReader[];\n readonly inlineHTMLReader?: PandocInlineHTMLReaderFn;\n readonly tokensFilter?: PandocTokensFilterFn;\n readonly writer: {\n priority: number;\n write: PandocMarkWriterFn;\n };\n };\n}\n\nexport function markIsActive(context: EditorState | Transaction, type: MarkType) {\n const { from, $from, to, empty } = context.selection;\n\n if (empty) {\n return type && !!type.isInSet(context.storedMarks || $from.marks());\n }\n\n return !!context.doc.rangeHasMark(from, to, type);\n}\n\nexport function getMarkAttrs(doc: ProsemirrorNode, range: { from: number; to: number }, type: MarkType) {\n const { from, to } = range;\n let marks: Mark[] = [];\n\n doc.nodesBetween(from, to, node => {\n marks = [...marks, ...node.marks];\n });\n\n const mark = marks.find(markItem => markItem.type.name === type.name);\n\n if (mark) {\n return mark.attrs;\n }\n\n return {};\n}\n\nexport function getMarkRange($pos?: ResolvedPos, type?: MarkType) {\n if (!$pos || !type) {\n return false;\n }\n\n const start = $pos.parent.childAfter($pos.parentOffset);\n\n if (!start.node) {\n return false;\n }\n\n const link = start.node.marks.find((mark: Mark) => mark.type === type);\n if (!link) {\n return false;\n }\n\n let startIndex = $pos.index();\n let startPos = $pos.start() + start.offset;\n let endIndex = startIndex + 1;\n let endPos = startPos + start.node.nodeSize;\n\n while (startIndex > 0 && link.isInSet($pos.parent.child(startIndex - 1).marks)) {\n startIndex -= 1;\n startPos -= $pos.parent.child(startIndex).nodeSize;\n }\n\n while (endIndex < $pos.parent.childCount && link.isInSet($pos.parent.child(endIndex).marks)) {\n endPos += $pos.parent.child(endIndex).nodeSize;\n endIndex += 1;\n }\n\n return { from: startPos, to: endPos };\n}\n\nexport function getSelectionMarkRange(selection: Selection, markType: MarkType): { from: number; to: number } {\n let range: { from: number; to: number };\n if (selection.empty) {\n range = getMarkRange(selection.$head, markType) as { from: number; to: number };\n } else {\n range = { from: selection.from, to: selection.to };\n }\n return range;\n}\n\nexport function removeInvalidatedMarks(\n tr: MarkTransaction,\n node: ProsemirrorNode,\n pos: number,\n re: RegExp,\n markType: MarkType,\n) {\n re.lastIndex = 0;\n const markedNodes = findChildrenByMark(node, markType, true);\n markedNodes.forEach(markedNode => {\n const from = pos + 1 + markedNode.pos;\n const markedRange = getMarkRange(tr.doc.resolve(from), markType);\n if (markedRange) {\n const text = tr.doc.textBetween(markedRange.from, markedRange.to);\n if (!text.match(re)) {\n tr.removeMark(markedRange.from, markedRange.to, markType);\n tr.removeStoredMark(markType);\n }\n }\n });\n re.lastIndex = 0;\n}\n\nexport function splitInvalidatedMarks(\n tr: MarkTransaction,\n node: ProsemirrorNode,\n pos: number,\n validLength: (text: string) => number,\n markType: MarkType,\n removeMark?: (from: number, to: number) => void,\n) {\n const hasMarkType = (nd: ProsemirrorNode) => markType.isInSet(nd.marks);\n const markedNodes = findChildrenByMark(node, markType, true);\n\n const remove = (from: number, to: number, type: MarkType) => {\n if (removeMark) {\n removeMark(from, to);\n } else {\n tr.removeMark(from, to, type);\n }\n };\n\n markedNodes.forEach(markedNode => {\n const mark = hasMarkType(markedNode.node);\n if (mark) {\n const from = pos + 1 + markedNode.pos;\n const markRange = getMarkRange(tr.doc.resolve(from), markType);\n if (markRange) {\n const text = tr.doc.textBetween(markRange.from, markRange.to);\n\n // Trim any leading space and count how much we trimmed\n const trimmedText = text.trimStart();\n const countSpace = text.length - trimmedText.length;\n\n // Remove the mark from any trimmed space at the start\n if (countSpace > 0) {\n remove(markRange.from, markRange.from + countSpace, markType);\n }\n\n // find the valid length of the text and remove the mark from \n // anything after the end of the valid length\n const length = validLength(trimmedText);\n if (length > -1 && length !== text.length) {\n remove(markRange.from + length + countSpace, markRange.to, markType);\n }\n }\n }\n });\n}\n\nexport function detectAndApplyMarks(\n tr: MarkTransaction,\n node: ProsemirrorNode,\n pos: number,\n re: RegExp,\n markType: MarkType,\n attrs: (match: RegExpMatchArray) => {},\n filter?: (from: number, to: number) => boolean,\n text?: (match: RegExpMatchArray) => string,\n) {\n re.lastIndex = 0;\n const textNodes = mergedTextNodes(node, (_node: ProsemirrorNode, _pos: number, parentNode: ProsemirrorNode) =>\n parentNode.type.allowsMarkType(markType),\n );\n textNodes.forEach(textNode => {\n re.lastIndex = 0;\n let match = re.exec(textNode.text);\n while (match !== null) {\n const refText = text ? text(match) : match[0];\n const from = pos + 1 + textNode.pos + match.index + (match[0].length - refText.length);\n const to = from + refText.length;\n const range = getMarkRange(tr.doc.resolve(to), markType);\n if (\n (!range || range.from !== from || range.to !== to) &&\n !tr.doc.rangeHasMark(from, to, markType.schema.marks.code)\n ) {\n if (!filter || filter(from, to)) {\n const mark = markType.create(attrs instanceof Function ? attrs(match) : attrs);\n tr.addMark(from, to, mark);\n if (tr.selection.anchor === to) {\n tr.removeStoredMark(mark.type);\n }\n }\n }\n match = re.lastIndex !== 0 ? re.exec(textNode.text) : null;\n }\n });\n re.lastIndex = 0;\n}\n","/*\n * text.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nexport interface TextWithPos {\n readonly text: string;\n readonly pos: number;\n}\n\nexport function mergedTextNodes(\n doc: ProsemirrorNode,\n filter?: (node: ProsemirrorNode, pos: number, parentNode: ProsemirrorNode) => boolean,\n): TextWithPos[] {\n const textNodes: TextWithPos[] = [];\n let nodeIndex = 0;\n doc.descendants((node, pos, parentNode) => {\n if (node.isText) {\n // apply filter\n if (filter && !filter(node, pos, parentNode)) {\n return false;\n }\n\n // join existing contiguous range of text nodes or create a new one\n if (textNodes[nodeIndex]) {\n textNodes[nodeIndex] = {\n text: textNodes[nodeIndex].text + node.text,\n pos: textNodes[nodeIndex].pos,\n };\n } else {\n textNodes[nodeIndex] = {\n text: node.text || '',\n pos,\n };\n }\n } else {\n nodeIndex += 1;\n }\n });\n return textNodes;\n}\n\nexport function stripQuotes(text: string) {\n return text.replace(/[\"']/g, '');\n}\n\nexport function equalsIgnoreCase(str1: string, str2: string) {\n if (!str1 && !!str2) {\n return false;\n } else if (!!str1 && !str2) {\n return false;\n } else if (str1 === str2) {\n return true;\n } else {\n return str1.localeCompare(str2, undefined, { sensitivity: 'accent' }) === 0;\n }\n}\n","/*\n * code.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey } from 'prosemirror-state';\n\nimport { CodeViewOptions, canInsertNodeAtPos } from './node';\nimport { ResolvedPos, Slice, Fragment } from 'prosemirror-model';\n\nexport const kCodeAttr = 0;\nexport const kCodeText = 1;\n\nexport function codeNodeSpec() {\n return {\n content: 'text*',\n group: 'block',\n marks: '',\n code: true,\n defining: true,\n isolating: true,\n };\n}\n\nexport function codeViewClipboardPlugin(codeViews: { [key: string]: CodeViewOptions }) {\n return new Plugin({\n key: new PluginKey('code-view-clipboard'),\n props: {\n clipboardTextParser: (text: string, $context: ResolvedPos): any => {\n // see if any of the code views want to handle this text\n for (const codeViewType of Object.keys(codeViews)) {\n const codeView = codeViews[codeViewType];\n if (codeView.createFromPastePattern && codeView.createFromPastePattern.test(text)) {\n const schema = $context.node().type.schema;\n const nodeType = schema.nodes[codeViewType];\n if (canInsertNodeAtPos($context, nodeType)) {\n const textNode = schema.text(text);\n const codeNode = nodeType.createAndFill({}, textNode);\n return new Slice(Fragment.from(codeNode), 0, 0);\n }\n }\n }\n return null;\n },\n },\n });\n}\n","/*\n * node.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeSpec, NodeType, ResolvedPos } from 'prosemirror-model';\nimport { EditorState, Selection, NodeSelection } from 'prosemirror-state';\nimport {\n findParentNode,\n findSelectedNodeOfType,\n ContentNodeWithPos,\n NodeWithPos,\n findParentNodeOfType,\n findChildrenByType,\n findChildren,\n findParentNodeOfTypeClosestToPos,\n} from 'prosemirror-utils';\n\nimport { EditorView } from 'prosemirror-view';\n\nimport {\n PandocTokenReader,\n PandocNodeWriterFn,\n PandocPreprocessorFn,\n PandocBlockReaderFn,\n PandocInlineHTMLReaderFn,\n PandocTokensFilterFn,\n} from './pandoc';\nimport { PandocBlockCapsuleFilter } from './pandoc_capsule';\n\nimport { AttrEditOptions } from './attr_edit';\nimport { CommandFn } from './command';\n\nexport interface PandocNode {\n readonly name: string;\n readonly spec: NodeSpec;\n readonly code_view?: CodeViewOptions;\n readonly attr_edit?: () => AttrEditOptions | null;\n readonly pandoc: {\n readonly readers?: readonly PandocTokenReader[];\n readonly writer?: PandocNodeWriterFn;\n readonly preprocessor?: PandocPreprocessorFn;\n readonly tokensFilter?: PandocTokensFilterFn;\n readonly blockReader?: PandocBlockReaderFn;\n readonly inlineHTMLReader?: PandocInlineHTMLReaderFn;\n readonly blockCapsuleFilter?: PandocBlockCapsuleFilter;\n };\n}\n\nexport interface CodeViewOptions {\n lang: (node: ProsemirrorNode, content: string) => string | null;\n attrEditFn?: CommandFn;\n createFromPastePattern?: RegExp;\n classes?: string[];\n borderColorClass?: string;\n firstLineMeta?: boolean;\n lineNumbers?: boolean;\n bookdownTheorems?: boolean;\n lineNumberFormatter?: (lineNumber: number, lineCount?: number, line?: string) => string;\n}\n\nexport type NodeTraversalFn = (\n node: Node,\n pos: number,\n parent: Node,\n index: number,\n) => boolean | void | null | undefined;\n\nexport function findTopLevelBodyNodes(doc: ProsemirrorNode, predicate: (node: ProsemirrorNode) => boolean) {\n const body = findChildrenByType(doc, doc.type.schema.nodes.body, false)[0];\n const offset = body.pos + 1;\n const nodes = findChildren(body.node, predicate, false);\n return nodes.map(value => ({ ...value, pos: value.pos + offset }));\n}\n\nexport function findNodeOfTypeInSelection(selection: Selection, type: NodeType): ContentNodeWithPos | undefined {\n return findSelectedNodeOfType(type)(selection) || findParentNode((n: ProsemirrorNode) => n.type === type)(selection);\n}\n\nexport function firstNode(parent: NodeWithPos, predicate: (node: ProsemirrorNode) => boolean) {\n let foundNode: NodeWithPos | undefined;\n parent.node.descendants((node, pos) => {\n if (!foundNode) {\n if (predicate(node)) {\n foundNode = {\n node,\n pos: parent.pos + 1 + pos,\n };\n return false;\n }\n } else {\n return false;\n }\n });\n return foundNode;\n}\n\nexport function lastNode(parent: NodeWithPos, predicate: (node: ProsemirrorNode) => boolean) {\n let last: NodeWithPos | undefined;\n parent.node.descendants((node, pos) => {\n if (predicate(node)) {\n last = {\n node,\n pos: parent.pos + 1 + pos,\n };\n }\n });\n return last;\n}\n\nexport function nodeIsActive(state: EditorState, type: NodeType, attrs = {}) {\n const predicate = (n: ProsemirrorNode) => n.type === type;\n const node = findSelectedNodeOfType(type)(state.selection) || findParentNode(predicate)(state.selection);\n\n if (!Object.keys(attrs).length || !node) {\n return !!node;\n }\n\n return node.node.hasMarkup(type, attrs);\n}\n\nexport function canInsertNode(context: EditorState | Selection, nodeType: NodeType) {\n const selection = asSelection(context);\n const $from = selection.$from;\n return canInsertNodeAtPos($from, nodeType);\n}\n\nexport function canInsertNodeAtPos($pos: ResolvedPos, nodeType: NodeType) {\n for (let d = $pos.depth; d >= 0; d--) {\n const index = $pos.index(d);\n if ($pos.node(d).canReplaceWith(index, index, nodeType)) {\n return true;\n }\n }\n return false;\n}\n\nexport function canInsertTextNode(context: EditorState | Selection) {\n const selection = asSelection(context);\n return canInsertNode(selection, selection.$head.parent.type.schema.nodes.text);\n}\n\nexport function insertAndSelectNode(view: EditorView, node: ProsemirrorNode) {\n // create new transaction\n const tr = view.state.tr;\n\n // insert the node over the existing selection\n tr.ensureMarks(node.marks);\n tr.replaceSelectionWith(node);\n\n // set selection to inserted node (or don't if our selection calculate was off,\n // as can happen when we insert into a list bullet)\n const selectionPos = tr.doc.resolve(tr.mapping.map(view.state.selection.from, -1));\n const selectionNode = tr.doc.nodeAt(selectionPos.pos);\n if (selectionNode && selectionNode.type === node.type) {\n tr.setSelection(new NodeSelection(selectionPos));\n }\n\n // dispatch transaction\n view.dispatch(tr);\n}\n\nexport function editingRootNode(selection: Selection) {\n const schema = selection.$head.node().type.schema;\n return findParentNodeOfType(schema.nodes.body)(selection) || findParentNodeOfType(schema.nodes.note)(selection);\n}\n\nexport function editingRootNodeClosestToPos($pos: ResolvedPos) {\n const schema = $pos.node().type.schema;\n return (\n findParentNodeOfTypeClosestToPos($pos, schema.nodes.body) ||\n findParentNodeOfTypeClosestToPos($pos, schema.nodes.note)\n );\n}\n\nexport function editingRootScrollContainerElement(view: EditorView) {\n const editingNode = editingRootNode(view.state.selection);\n if (editingNode) {\n const editingEl = view.domAtPos(editingNode.pos + 1).node;\n return editingEl.parentElement;\n } else {\n return undefined;\n }\n}\n\nfunction asSelection(context: EditorState | Selection) {\n return context instanceof EditorState ? context.selection : context;\n}\n","/*\n * link.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { findChildren, findChildrenByType } from 'prosemirror-utils';\n\nexport const kLinkTargetUrl = 0;\nexport const kLinkTargetTitle = 1;\n\nexport const kLinkAttr = 0;\nexport const kLinkChildren = 1;\nexport const kLinkTarget = 2;\n\nexport enum LinkType {\n URL = 0,\n Heading = 1,\n ID = 2,\n}\n\nexport interface LinkCapabilities {\n headings: boolean;\n attributes: boolean;\n text: boolean;\n}\n\nexport interface LinkTargets {\n readonly ids: string[];\n readonly headings: LinkHeadingTarget[];\n}\n\nexport interface LinkHeadingTarget {\n readonly level: number;\n readonly text: string;\n}\n\nexport async function linkTargets(doc: ProsemirrorNode) {\n const ids = findChildren(doc, node => !!node.attrs.id).map(value => value.node.attrs.id);\n\n const headings = findChildrenByType(doc, doc.type.schema.nodes.heading).map(heading => ({\n level: heading.node.attrs.level,\n text: heading.node.textContent,\n }));\n\n return {\n ids,\n headings,\n };\n}\n","/*\n * html.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, DOMSerializer, Fragment } from 'prosemirror-model';\n\nexport const kHTMLCommentRegEx = /(?:^|[^`])()/;\n\nexport function isHTMLComment(html: string) {\n return !!html.match(kHTMLCommentRegEx);\n}\n\nexport function isSingleLineHTML(html: string) {\n return html.trimRight().split('\\n').length === 1;\n}\n\nexport function asHTMLTag(\n tag: string,\n attribs: { [key: string]: string },\n selfClosing = false,\n noEmptyAttribs = false,\n) {\n const attribsHTML = Object.keys(attribs)\n .filter(name => !noEmptyAttribs || attribs[name])\n .map(name => `${name}=\"${escapeHTMLAttribute(attribs[name])}\"`)\n .join(' ');\n return `<${tag} ${attribsHTML}${selfClosing ? '/' : ''}>`;\n}\n\nexport function escapeHTMLAttribute(value: string) {\n return value\n .replace(/&/g, '&') // must be first replacement\n .replace(/'/g, ''')\n .replace(/\"/g, '"')\n .replace(//g, '>');\n}\n\nexport function nodeToHTML(schema: Schema, node: ProsemirrorNode) {\n return generateHTML(() => DOMSerializer.fromSchema(schema).serializeNode(node));\n}\n\nexport function fragmentToHTML(schema: Schema, fragment: Fragment) {\n return generateHTML(() => DOMSerializer.fromSchema(schema).serializeFragment(fragment));\n}\n\nfunction generateHTML(generator: () => Node | DocumentFragment) {\n const div = document.createElement('div');\n const output = generator();\n div.appendChild(output);\n return div.innerHTML;\n}\n","/*\n * events.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n/**\n * Represents an event type; only a single instance of this should exist per\n * event type (akin to PluginKey) and it should be visible to everyone who wants\n * to subscribe to or emit events of that type. Do not create one of these\n * directly, instead use makeEventType().\n */\nexport interface EventType {\n readonly eventName: string;\n // This field is needed only to prevent TDetail from being ignored by the type\n // checker; if TDetail isn't used, tsc acts as if EventType isn't generic.\n readonly dummy?: TDetail;\n}\n\n/**\n * Type signature of event-handler functions; the TDetail must match with the\n * EventType being subscribed to.\n *\n * (Note that the detail is always optional. I couldn't figure out how to make\n * it mandatory for some event types, forbidden for others, and optional for\n * still others, so it's just optional for everyone.)\n */\nexport type EventHandler = (detail?: TDetail) => void;\n\n/**\n * Generic interface for objects that support eventing.\n *\n * TODO: I don't see a reason why this interface should support both\n * subscription *and* emitting, the latter seems like something private.\n */\nexport interface EditorEvents {\n subscribe(event: EventType, handler: EventHandler): VoidFunction;\n emit(event: EventType, detail?: TDetail): void;\n}\n\n/**\n * Creates a new type of event. Use the TDetail type parameter to indicate the\n * type of data, if any, that event handlers can expect.\n */\nexport function makeEventType(eventName: string) {\n return { eventName: `panmirror${eventName}` } as EventType;\n}\n\n/**\n * An implementation of EditorEvents, using the DOM event system.\n */\nexport class DOMEditorEvents implements EditorEvents {\n private readonly el: HTMLElement;\n\n constructor(el: HTMLElement) {\n this.el = el;\n }\n\n public emit(eventType: EventType, detail?: TDetail) {\n // Note: CustomEvent requires polyfill for IE, see\n // https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent\n const event = new CustomEvent(eventType.eventName, { detail });\n return this.el.dispatchEvent(event);\n }\n\n public subscribe(eventType: EventType, handler: EventHandler) {\n const listener = function(this: any, evt: Event) {\n const detail: TDetail | undefined = (evt as CustomEvent).detail;\n handler.call(this, detail);\n };\n this.el.addEventListener(eventType.eventName, listener);\n return () => {\n this.el.removeEventListener(eventType.eventName, listener);\n };\n }\n}\n","/*\n * event-types.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction } from 'prosemirror-state';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { makeEventType } from './events';\nimport { Navigation } from './navigation';\n\nexport const UpdateEvent = makeEventType('Update');\nexport const OutlineChangeEvent = makeEventType('OutlineChange');\nexport const StateChangeEvent = makeEventType('StateChange');\nexport const ResizeEvent = makeEventType('Resize');\nexport const LayoutEvent = makeEventType('Layout');\nexport const ScrollEvent = makeEventType('Scroll');\nexport const BlurEvent = makeEventType('Blur');\nexport const FocusEvent = makeEventType('Focus');\nexport const DispatchEvent = makeEventType('Dispatch');\nexport const NavigateEvent = makeEventType('Navigate');\n","/*\n * pandoc_format.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { PandocServer, PandocExtensions } from './pandoc';\nimport { EditorFormat, kHugoDocType } from './format';\nimport { firstYamlBlock, yamlMetadataNodes } from './yaml';\nimport { findValue } from './object';\n\nexport const kMarkdownFormat = 'markdown';\nexport const kMarkdownPhpextraFormat = 'markdown_phpextra';\nexport const kMarkdownGithubFormat = 'markdown_github';\nexport const kMarkdownMmdFormat = 'markdown_mmd';\nexport const kMarkdownStrictFormat = 'markdown_strict';\nexport const kGfmFormat = 'gfm';\nexport const kCommonmarkFormat = 'commonmark';\nexport const kCommonmarkXFormat = 'commonmark_x';\n\nexport interface PandocFormat {\n mode: string;\n baseName: string;\n fullName: string;\n extensions: PandocExtensions;\n warnings: PandocFormatWarnings;\n}\n\nexport interface PandocFormatWarnings {\n invalidFormat: string;\n invalidOptions: string[];\n}\n\nexport interface PandocFormatConfig {\n mode?: string;\n extensions?: string;\n rmdExtensions?: string;\n wrap?: string;\n doctypes?: string[];\n references_location?: string;\n references_prefix?: string;\n canonical?: boolean;\n}\n\nexport function matchPandocFormatComment(code: string) {\n const magicCommentRegEx = /^\\s*$/m;\n return code.match(magicCommentRegEx);\n}\n\nexport function pandocFormatConfigFromDoc(doc: ProsemirrorNode, isRmd: boolean) {\n return pandocFormatConfigFromYamlInDoc(doc, isRmd) || pandocFormatConfigFromCommentInDoc(doc) || {};\n}\n\nexport function pandocFormatConfigFromCode(code: string, isRmd: boolean): PandocFormatConfig {\n return pandocFormatConfigFromYamlInCode(code, isRmd) || pandocFormatConfigFromCommentInCode(code) || {};\n}\n\nfunction pandocFormatConfigFromYamlInCode(code: string, isRmd: boolean): PandocFormatConfig | null {\n // get the first yaml block in the file\n const yaml = firstYamlBlock(code);\n\n // did we find yaml?\n if (yaml) {\n // see if we have any md_extensions defined\n let mdExtensions : string | undefined = isRmd ? findValue('md_extensions', yaml?.output) : undefined;\n if (!mdExtensions) {\n // look for quarto 'from'\n const from = findValue('from', yaml);\n if (from) {\n const fromStr = String(from);\n const extensions = fromStr.match(/^\\w+([+-][\\w+-]+)$/);\n if (extensions) {\n mdExtensions = extensions[1];\n }\n }\n }\n\n // see if we have any markdown options defined\n let yamlFormatConfig: PandocFormatConfig | undefined;\n const yamlMarkdownOptions = yaml?.editor_options?.markdown;\n if (yamlMarkdownOptions instanceof Object) {\n yamlFormatConfig = readPandocFormatConfig(yamlMarkdownOptions);\n }\n\n // combine and return\n if (mdExtensions || yamlFormatConfig) {\n const formatConfig: PandocFormatConfig = yamlFormatConfig ? yamlFormatConfig : {};\n if (mdExtensions) {\n formatConfig.extensions = mdExtensions + (formatConfig.extensions || '');\n }\n return formatConfig;\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\nfunction pandocFormatConfigFromYamlInDoc(doc: ProsemirrorNode, isRmd: boolean): PandocFormatConfig | null {\n const yamlNodes = yamlMetadataNodes(doc);\n if (yamlNodes.length > 0) {\n return pandocFormatConfigFromYamlInCode(yamlNodes[0].node.textContent, isRmd);\n } else {\n return null;\n }\n}\n\nfunction pandocFormatConfigFromCommentInCode(code: string): PandocFormatConfig | null {\n const keyValueRegEx = /^([^:]+):\\s*(.*)$/;\n const match = matchPandocFormatComment(code);\n if (match) {\n const comment = match[1];\n // split into semicolons\n const fields = comment.split(/\\s*;\\s/).map(field => field.trim());\n const variables: { [key: string]: string } = {};\n fields.forEach(field => {\n const keyValueMatch = field.match(keyValueRegEx);\n if (keyValueMatch) {\n variables[keyValueMatch[1].trim()] = keyValueMatch[2].trim();\n }\n });\n return readPandocFormatConfig(variables);\n } else {\n return null;\n }\n}\n\nfunction pandocFormatConfigFromCommentInDoc(doc: ProsemirrorNode): PandocFormatConfig | null {\n let config: PandocFormatConfig | null = null;\n let foundFirstRawInline = false;\n doc.descendants((node, pos) => {\n // don't search once we've found our target\n if (foundFirstRawInline) {\n return false;\n }\n\n // if it's a text node with a raw-html then scan it for the format comment\n const schema = doc.type.schema;\n if (\n node.isText &&\n schema.marks.raw_html_comment &&\n schema.marks.raw_html_comment.isInSet(node.marks) &&\n node.attrs.format\n ) {\n foundFirstRawInline = true;\n config = pandocFormatConfigFromCommentInCode(node.textContent);\n return false;\n } else {\n return true;\n }\n });\n return config;\n}\n\nfunction readPandocFormatConfig(source: { [key: string]: any }) {\n const asString = (obj: any): string => {\n if (typeof obj === 'string') {\n return obj;\n } else if (obj) {\n return obj.toString();\n } else {\n return '';\n }\n };\n\n const asBoolean = (obj: any) => {\n if (typeof obj === 'boolean') {\n return obj;\n } else {\n const str = asString(obj).toLowerCase();\n return str === 'true' || str === '1';\n }\n };\n\n const readWrap = () => {\n const wrap = source.wrap || source.wrap_column || source['fill-column'];\n if (wrap) {\n return asString(wrap);\n } else {\n return undefined;\n }\n };\n\n const formatConfig: PandocFormatConfig = {};\n if (source.mode) {\n formatConfig.mode = asString(source.mode);\n }\n if (source.extensions) {\n formatConfig.extensions = asString(source.extensions);\n }\n if (source.rmd_extensions) {\n formatConfig.rmdExtensions = asString(source.rmd_extensions);\n }\n formatConfig.wrap = readWrap();\n if (source.doctype) {\n formatConfig.doctypes = asString(source.doctype)\n .split(',')\n .map(str => str.trim());\n }\n if (source.references) {\n if (typeof source.references === 'string') {\n formatConfig.references_location = source.references;\n } else {\n formatConfig.references_location = source.references.location;\n formatConfig.references_prefix = source.references.prefix;\n }\n }\n if (source.canonical) {\n formatConfig.canonical = asBoolean(source.canonical);\n }\n return formatConfig;\n}\n\nexport async function resolvePandocFormat(pandoc: PandocServer, format: EditorFormat): Promise {\n // additional markdown variants we support\n const kMarkdownVariants: { [key: string]: string[] } = {\n [kCommonmarkFormat]: commonmarkExtensions(),\n [kCommonmarkXFormat]: commonmarkXExtensions(),\n [kGfmFormat]: gfmExtensions(),\n goldmark: goldmarkExtensions(format),\n blackfriday: blackfridayExtensions(format),\n };\n\n // setup warnings\n const warnings: PandocFormatWarnings = { invalidFormat: '', invalidOptions: [] };\n\n // alias options and basename\n let options = format.pandocExtensions;\n let baseName = format.pandocMode;\n\n // validate the base format (fall back to markdown if it's not known)\n if (\n ![\n kMarkdownFormat,\n kMarkdownPhpextraFormat,\n kMarkdownGithubFormat,\n kMarkdownMmdFormat,\n kMarkdownStrictFormat,\n kGfmFormat,\n kCommonmarkFormat,\n kCommonmarkXFormat\n ]\n .concat(Object.keys(kMarkdownVariants))\n .includes(baseName)\n ) {\n warnings.invalidFormat = baseName;\n baseName = 'markdown';\n }\n\n // format options we will be building\n let formatOptions: string;\n\n // if we are using a variant then get it's base options and merge with user options\n if (kMarkdownVariants[baseName]) {\n const variant = kMarkdownVariants[baseName];\n options = variant.map(option => `${option}`).join('') + options;\n baseName = 'markdown_strict';\n }\n\n // query for format options\n formatOptions = await pandoc.listExtensions(baseName);\n\n // active pandoc extensions\n const pandocExtensions: { [key: string]: boolean } = {};\n\n // first parse extensions for format\n parseExtensions(formatOptions).forEach(option => {\n pandocExtensions[option.name] = option.enabled;\n });\n\n // now parse extensions for user options (validate and build format name)\n const validOptionNames = parseExtensions(formatOptions).map(option => option.name);\n\n let fullName = baseName;\n parseExtensions(options).forEach(option => {\n // validate that the option is valid\n if (validOptionNames.includes(option.name)) {\n // add option\n fullName += (option.enabled ? '+' : '-') + option.name;\n pandocExtensions[option.name] = option.enabled;\n } else {\n warnings.invalidOptions.push(option.name);\n }\n });\n\n // return format name, enabled extensiosn, and warnings\n return {\n mode: format.pandocMode,\n baseName,\n fullName,\n extensions: (pandocExtensions as unknown) as PandocExtensions,\n warnings,\n };\n}\n\nfunction parseExtensions(options: string) {\n // remove any linebreaks\n options = options.split('\\n').join();\n\n // parse into separate entries\n const extensions: Array<{ name: string; enabled: boolean }> = [];\n const re = /([+-])([a-z_]+)/g;\n let match = re.exec(options);\n while (match) {\n extensions.push({ name: match[2], enabled: match[1] === '+' });\n match = re.exec(options);\n }\n\n return extensions;\n}\n\nexport function pandocFormatWith(format: string, prepend: string, append: string) {\n const split = splitPandocFormatString(format);\n return `${split.format}${prepend}${split.options}${append}`;\n}\n\nexport function splitPandocFormatString(format: string) {\n // split out base format from options\n let optionsPos = format.indexOf('-');\n if (optionsPos === -1) {\n optionsPos = format.indexOf('+');\n }\n const base = optionsPos === -1 ? format : format.substr(0, optionsPos);\n const options = optionsPos === -1 ? '' : format.substr(optionsPos);\n return {\n format: base,\n options,\n };\n}\n\nexport function hasFencedCodeBlocks(pandocExtensions: PandocExtensions) {\n return pandocExtensions.backtick_code_blocks || pandocExtensions.fenced_code_blocks;\n}\n\n// e.g. [My Heading] to link to ## My Heading\nexport function hasShortcutHeadingLinks(pandocExtensions: PandocExtensions) {\n return pandocExtensions.implicit_header_references && pandocExtensions.shortcut_reference_links;\n}\n\nfunction commonmarkExtensions(rawHTML = true) {\n const extensions = [\n rawHTML ? '+raw_html' : '-raw_html',\n '+all_symbols_escapable',\n '+backtick_code_blocks',\n '+fenced_code_blocks',\n '+space_in_atx_header',\n '+intraword_underscores',\n '+lists_without_preceding_blankline',\n '+shortcut_reference_links',\n ];\n return extensions;\n}\n\n// https://github.com/jgm/pandoc/commit/0aed9dd589189a9bbe5cae99e0e024e2d4a92c36\nfunction commonmarkXExtensions() {\n const extensions = [\n '+pipe_tables',\n '+raw_html',\n '+auto_identifiers',\n '+strikeout',\n '+task_lists',\n '+emoji',\n '+raw_tex',\n '+smart',\n '+tex_math_dollars',\n '+superscript',\n '+subscript',\n '+definition_lists',\n '+footnotes',\n '+fancy_lists',\n '+fenced_divs',\n '+bracketed_spans',\n '+raw_attribute',\n '+implicit_header_references',\n // '+attributes' (not yet)\n ];\n return extensions;\n}\n\nfunction gfmExtensions() {\n const extensions = [\n ...commonmarkExtensions(),\n '+auto_identifiers',\n '+autolink_bare_uris',\n '+emoji',\n '+gfm_auto_identifiers',\n '+pipe_tables',\n '+strikeout',\n '+task_lists',\n '+tex_math_dollars',\n '+footnotes'\n ];\n return extensions;\n}\n\n// https://gohugo.io/getting-started/configuration-markup/#goldmark\n// https://github.com/yuin/goldmark/#html-renderer-options\nfunction goldmarkExtensions(format: EditorFormat) {\n const extensions = [\n // start with commonmark\n ...commonmarkExtensions(false),\n\n // adds most of gfm\n '+pipe_tables',\n '+strikeout',\n '+autolink_bare_uris',\n '+task_lists',\n '+backtick_code_blocks',\n\n // plus some extras\n '+definition_lists',\n '+footnotes',\n '+smart',\n\n // hugo preprocessor supports yaml metadata\n '+yaml_metadata_block',\n ];\n\n if (includeTexMathDollars(format)) {\n extensions.push('+tex_math_dollars');\n }\n\n return extensions;\n}\n\n// https://github.com/russross/blackfriday/tree/v2#extensions\nfunction blackfridayExtensions(format: EditorFormat) {\n const extensions = [\n '+intraword_underscores',\n '+pipe_tables',\n '+backtick_code_blocks',\n '+definition_lists',\n '+footnotes',\n '+autolink_bare_uris',\n '+strikeout',\n '+smart',\n '+yaml_metadata_block',\n ];\n\n if (includeTexMathDollars(format)) {\n extensions.push('+tex_math_dollars');\n }\n\n return extensions;\n}\n\nfunction includeTexMathDollars(format: EditorFormat) {\n // hugo users often sort out some way to include math so we enable it for hugo\n return format.docTypes.includes(kHugoDocType) || format.rmdExtensions.blogdownMathInCode;\n}\n","/*\n * yaml.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { NodeWithPos } from 'prosemirror-utils';\nimport { EditorView } from 'prosemirror-view';\nimport { EditorState } from 'prosemirror-state';\n\nimport yaml from 'js-yaml';\n\nimport { findTopLevelBodyNodes } from './node';\nimport { logException } from './log';\n\nexport const kYamlMetadataTitleRegex = /\\ntitle:(.*)\\n/;\n\n// return yaml front matter (w/o enclosing --)\nexport function yamlFrontMatter(doc: ProsemirrorNode) {\n const firstYaml = firstYamlNode(doc);\n if (firstYaml) {\n return stripYamlDelimeters(firstYaml.node.textContent);\n } else {\n return '';\n }\n}\n\n// set yaml front matter (w/o enclosing ---)\nexport function applyYamlFrontMatter(view: EditorView, yamlText: string) {\n const schema = view.state.schema;\n const updatedYaml = `---\\n${yamlText}---`;\n const updatedYamlNode = schema.nodes.yaml_metadata.createAndFill({}, schema.text(updatedYaml));\n const tr = view.state.tr;\n const firstYaml = firstYamlNode(view.state.doc);\n if (firstYaml) {\n tr.replaceRangeWith(firstYaml.pos, firstYaml.pos + firstYaml.node.nodeSize, updatedYamlNode);\n } else {\n tr.insert(1, updatedYamlNode);\n }\n view.dispatch(tr);\n}\n\nexport function yamlMetadataNodes(doc: ProsemirrorNode) {\n return findTopLevelBodyNodes(doc, isYamlMetadataNode);\n}\n\nexport function isYamlMetadataNode(node: ProsemirrorNode) {\n return node.type === node.type.schema.nodes.yaml_metadata;\n}\n\nexport function titleFromState(state: EditorState) {\n const yamlNodes = yamlMetadataNodes(state.doc);\n for (const yamlNode of yamlNodes) {\n const title = titleFromYamlMetadataNode(yamlNode.node);\n if (title) {\n return title;\n }\n }\n return '';\n}\n\nexport function titleFromYamlMetadataNode(node: ProsemirrorNode) {\n const titleMatch = node.textContent.match(kYamlMetadataTitleRegex);\n if (titleMatch) {\n let title = titleMatch[1].trim();\n title = title.replace(/^[\"']|[\"']$/g, '');\n title = title.replace(/\\\\\"/g, '\"');\n title = title.replace(/''/g, \"'\");\n return title;\n } else {\n return null;\n }\n}\n\nexport function valueFromYamlText(name: string, yamlText: string) {\n // Must start and end with either a new line or the start/end of line\n const yamlMetadataNameValueRegex = new RegExp(`(?:\\\\n|^)${name}:(.*)(?:\\\\n|$)`);\n\n // Find the name and value\n const valueMatch = yamlText.match(yamlMetadataNameValueRegex);\n if (valueMatch) {\n // Read the matched value\n const valueStr = valueMatch[1].trim();\n\n // Parse the value (could be string, array, etc...)\n const value = parseYaml(valueStr);\n return value;\n } else {\n return null;\n }\n}\n\nconst kFirstYamlBlockRegex = /\\s*---[ \\t]*\\n(?![ \\t]*\\n)([\\W\\w]*?)\\n[\\t >]*(?:---|\\.\\.\\.)[ \\t]*/m;\n\nexport function firstYamlBlock(code: string): { [key: string]: any } | null {\n const match = code.match(kFirstYamlBlockRegex);\n if (match && match.index === 0) {\n const yamlCode = match[1];\n const yamlParsed = parseYaml(yamlCode);\n if (typeof yamlParsed === 'object') {\n return yamlParsed;\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\nexport function parseYaml(yamlCode: string) : unknown {\n try {\n \n const yamlParsed = yaml.load(yamlCode, {\n onWarning: logException,\n });\n return yamlParsed;\n } catch (e) {\n logException(e);\n return null;\n }\n}\n\nexport function toYamlCode(obj: any): string | null {\n try {\n const yamlCode = yaml.dump(obj);\n return yamlCode;\n } catch (e) {\n logException(e);\n return null;\n }\n}\n\nexport function stripYamlDelimeters(yamlCode: string) {\n return yamlCode.replace(/^[ \\t-]+\\n/, '').replace(/\\n[ \\t-\\.]+$/, '');\n}\n\nexport interface ParsedYaml {\n yamlCode: string;\n yaml: any;\n node: NodeWithPos;\n}\n\nexport function parseYamlNodes(doc: ProsemirrorNode): ParsedYaml[] {\n const yamlNodes = yamlMetadataNodes(doc);\n\n const parsedYamlNodes = yamlNodes.map(node => {\n const yamlText = node.node.textContent;\n const yamlCode = stripYamlDelimeters(yamlText);\n return { yamlCode, yaml: parseYaml(yamlCode), node };\n });\n return parsedYamlNodes;\n}\n\nfunction firstYamlNode(doc: ProsemirrorNode) {\n const yamlNodes = yamlMetadataNodes(doc);\n if (yamlNodes && yamlNodes.length > 0) {\n return yamlNodes[0];\n } else {\n return '';\n }\n}\n","/*\n * format.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport interface EditorFormat {\n readonly pandocMode: string;\n readonly pandocExtensions: string;\n readonly rmdExtensions: EditorRmdExtensions;\n readonly hugoExtensions: EditorHugoExtensions;\n readonly docTypes: EditorExtendedDocType[];\n}\n\nexport interface EditorRmdExtensions {\n readonly codeChunks?: boolean;\n readonly bookdownXRef?: boolean;\n readonly bookdownXRefUI?: boolean;\n readonly bookdownPart?: boolean;\n readonly blogdownMathInCode?: boolean;\n}\n\nexport interface EditorHugoExtensions {\n readonly shortcodes?: boolean;\n}\n\nexport const kBookdownDocType = 'bookdown';\nexport const kHugoDocType = 'hugo';\nexport const kQuartoDocType = 'quarto';\nexport const kPresentationDocType = 'presentation';\n\nexport type EditorExtendedDocType = 'bookdown' | 'hugo' | 'quarto' | 'presentation';\n","/*\n * object.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport function findValue(key: string, object?: { [key: string]: any }) {\n if (!object) {\n return undefined;\n }\n\n let value;\n\n Object.keys(object).some(k => {\n if (k === key) {\n value = object[k];\n return true;\n }\n if (object[k] && typeof object[k] === 'object') {\n value = findValue(key, object[k]);\n return value !== undefined;\n }\n return false;\n });\n\n return value;\n}\n","/*\n * log.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport function logException(e: Error) {\n // TODO: log exceptions (we don't want to use console.log in production code, so this would\n // utilize some sort of external logging facility)\n // console.log(e);\n}\n","/*\n * basekeys.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport {\n splitBlock,\n liftEmptyBlock,\n createParagraphNear,\n selectNodeBackward,\n joinBackward,\n deleteSelection,\n selectNodeForward,\n joinForward,\n chainCommands,\n} from 'prosemirror-commands';\nimport { undoInputRule } from 'prosemirror-inputrules';\nimport { keymap } from 'prosemirror-keymap';\nimport { EditorState, Transaction, Plugin, Selection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { CommandFn } from './command';\nimport { editingRootNodeClosestToPos, editingRootNode } from './node';\nimport { selectionIsBodyTopLevel } from './selection';\nimport { kPlatformMac } from './platform';\n\nexport enum BaseKey {\n Home = 'Home',\n End = 'End',\n Enter = 'Enter',\n ModEnter = 'Mod-Enter',\n ShiftEnter = 'Shift-Enter',\n Backspace = 'Backspace',\n Delete = 'Delete|Mod-Delete', // Use pipes to register multiple commands\n Tab = 'Tab',\n ShiftTab = 'Shift-Tab',\n ArrowUp = 'Up|ArrowUp',\n ArrowDown = 'Down|ArrowDown',\n ArrowLeft = 'Left|ArrowLeft',\n ArrowRight = 'Right|ArrowRight',\n ModArrowUp = 'Mod-Up|Mod-ArrowUp',\n ModArrowDown = 'Mod-Down|Mod-ArrowDown',\n CtrlHome = 'Ctrl-Home',\n CtrlEnd = 'Ctrl-End',\n ShiftArrowLeft = 'Shift-Left|Shift-ArrowLeft',\n ShiftArrowRight = 'Shift-Right|Shift-ArrowRight',\n AltArrowLeft = 'Alt-Left|Alt-ArrowLeft',\n AltArrowRight = 'Alt-Right|Alt-ArrowRight',\n CtrlArrowLeft = 'Ctrl-Left|Ctrl-ArrowLeft',\n CtrlArrowRight = 'Ctrl-Right|Ctrl-ArrowRight',\n CtrlShiftArrowLeft = 'Ctrl-Shift-Left|Ctrl-Shift-ArrowLeft',\n CtrlShiftArrowRight = 'Ctrl-Shift-Right|Ctrl-Shift-ArrowRight',\n}\n\nexport interface BaseKeyBinding {\n key: BaseKey;\n command: CommandFn;\n}\n\nexport function baseKeysPlugin(keys: readonly BaseKeyBinding[]): Plugin {\n // collect all keys\n const pluginKeys = [\n // base enter key behaviors\n { key: BaseKey.Enter, command: splitBlock },\n { key: BaseKey.Enter, command: liftEmptyBlock },\n { key: BaseKey.Enter, command: createParagraphNear },\n\n // base backspace key behaviors\n { key: BaseKey.Backspace, command: selectNodeBackward },\n { key: BaseKey.Backspace, command: joinBackward },\n { key: BaseKey.Backspace, command: deleteSelection },\n\n // base tab key behavior (ignore)\n { key: BaseKey.Tab, command: ignoreKey },\n { key: BaseKey.ShiftTab, command: ignoreKey },\n\n // base delete key behaviors\n { key: BaseKey.Delete, command: selectNodeForward },\n { key: BaseKey.Delete, command: joinForward },\n { key: BaseKey.Delete, command: deleteSelection },\n\n // base home/end key behaviors (Mac desktop default behavior advances to beginning/end of\n // document, so we provide our own implementation rather than relying on contentEditable)\n kPlatformMac ? { key: BaseKey.Home, command: homeKey } : null,\n kPlatformMac ? { key: BaseKey.End, command: endKey } : null,\n\n // base arrow key behavior (prevent traversing top-level body notes)\n { key: BaseKey.ArrowLeft, command: arrowBodyNodeBoundary('left') },\n { key: BaseKey.ArrowUp, command: arrowBodyNodeBoundary('up') },\n { key: BaseKey.ArrowRight, command: arrowBodyNodeBoundary('right') },\n { key: BaseKey.ArrowDown, command: arrowBodyNodeBoundary('down') },\n { key: BaseKey.ModArrowDown, command: endTopLevelBodyNodeBoundary() },\n { key: BaseKey.CtrlEnd, command: endTopLevelBodyNodeBoundary() },\n\n // merge keys provided by extensions\n ...keys,\n\n // undoInputRule is always the highest priority backspace key\n { key: BaseKey.Backspace, command: undoInputRule },\n ].filter(x => !!x);\n\n // build arrays for each BaseKey type\n const commandMap: { [key: string]: CommandFn[] } = {};\n for (const baseKey of Object.values(BaseKey)) {\n commandMap[baseKey] = [];\n }\n pluginKeys.forEach(key => {\n if (key) {\n commandMap[key.key].unshift(key.command);\n }\n });\n\n const bindings: { [key: string]: CommandFn } = {};\n for (const baseKey of Object.values(BaseKey)) {\n const commands = commandMap[baseKey];\n // baseKey may contain multiple keys, separated by |\n for (const subkey of baseKey.split(/\\|/)) {\n bindings[subkey] = chainCommands(...commands);\n }\n }\n\n // return keymap\n return keymap(bindings);\n}\n\nexport function verticalArrowCanAdvanceWithinTextBlock(selection: Selection, dir: 'up' | 'down') {\n const $head = selection.$head;\n const node = $head.node();\n if (node.isTextblock) {\n const cursorOffset = $head.parentOffset;\n const nodeText = node.textContent;\n if (dir === 'down' && nodeText.substr(cursorOffset).includes('\\n')) {\n return true;\n }\n if (dir === 'up' && nodeText.substr(0, cursorOffset).includes('\\n')) {\n return true;\n }\n }\n return false;\n}\n\ninterface Coords {\n left: number;\n right: number;\n top: number;\n bottom: number;\n}\n\nfunction ignoreKey(state: EditorState, dispatch?: (tr: Transaction) => void) {\n return true;\n}\n\nfunction homeKey(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) {\n const selection = state.selection;\n const editingNode = editingRootNode(selection);\n if (editingNode && dispatch && view) {\n const head = view.coordsAtPos(selection.head);\n const beginDocPos = editingNode.start;\n for (let pos = selection.from - 1; pos >= beginDocPos; pos--) {\n const coords = view.coordsAtPos(pos);\n if (isOnPreviousLine(head, coords) || pos === beginDocPos) {\n const tr = state.tr;\n setTextSelection(pos + 1)(tr);\n dispatch(tr);\n break;\n }\n }\n }\n return true;\n}\n\nfunction endKey(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) {\n const selection = state.selection;\n const editingNode = editingRootNode(selection);\n if (editingNode && dispatch && view) {\n const head = view.coordsAtPos(selection.head);\n const endDocPos = editingNode.start + editingNode.node.nodeSize;\n for (let pos = selection.from + 1; pos < endDocPos; pos++) {\n const coords = view.coordsAtPos(pos);\n if (isOnNextLine(head, coords) || pos === endDocPos) {\n const tr = state.tr;\n setTextSelection(pos - 1)(tr);\n dispatch(tr);\n break;\n }\n }\n }\n return true;\n}\n\n// helpers to check for a y coordinate on a diffent line that the selection\n\n// y coorinates are sometimes off by 1 or 2 due to margin/padding (e.g. for\n// inline code spans or spelling marks) so the comparision only succeeds if\n// the vertical extents of the two coords don't overlap. If this proves to\n// still have false positives, we could lookahead to the next a few dozen\n// positions to check if we ever \"return to\" the head's baseline--only a\n// permanent change would indicate that the line has truly changed.\n\nfunction isOnNextLine(head: Coords, pos: Coords) {\n return head.bottom < pos.top;\n}\n\nfunction isOnPreviousLine(head: Coords, pos: Coords) {\n return head.top > pos.bottom;\n}\n\nfunction arrowBodyNodeBoundary(dir: 'up' | 'down' | 'left' | 'right') {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (view && view.endOfTextblock(dir) && selectionIsBodyTopLevel(state.selection)) {\n const side = dir === 'left' || dir === 'up' ? -1 : 1;\n const $head = state.selection.$head;\n const nextPos = Selection.near(state.doc.resolve(side > 0 ? $head.after() : $head.before()), side);\n const currentRootNode = editingRootNodeClosestToPos($head);\n const nextRootNode = editingRootNodeClosestToPos(nextPos.$head);\n return currentRootNode?.node?.type !== nextRootNode?.node?.type;\n } else {\n return false;\n }\n };\n}\n\nfunction endTopLevelBodyNodeBoundary() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const editingNode = editingRootNode(state.selection);\n if (editingNode && selectionIsBodyTopLevel(state.selection)) {\n if (dispatch) {\n const tr = state.tr;\n setTextSelection(editingNode.pos + editingNode.node.nodeSize - 2)(tr).scrollIntoView();\n dispatch(tr);\n }\n return true;\n } else {\n return false;\n }\n };\n}\n","/*\n * selection.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Selection, NodeSelection } from 'prosemirror-state';\nimport { Schema } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\nimport { GapCursor } from 'prosemirror-gapcursor';\n\nimport { NodeWithPos, setTextSelection } from 'prosemirror-utils';\n\nimport { kAddToHistoryTransaction, kRestoreLocationTransaction } from './transaction';\nimport { editingRootNode } from './node';\n\nexport function selectionIsWithin(selection: Selection, nodeWithPos: NodeWithPos) {\n const from = nodeWithPos.pos + 1;\n const to = from + nodeWithPos.node.nodeSize;\n return selectionIsWithinRange(selection, { from, to });\n}\n\nexport function selectionHasRange(selection: Selection, range: { from: number; to: number }) {\n return selection.from === range.from && selection.to === range.to;\n}\n\nexport function selectionIsWithinRange(selection: Selection, range: { from: number; to: number }) {\n return selection.anchor >= range.from && selection.anchor <= range.to;\n}\n\nexport function selectionIsBodyTopLevel(selection: Selection) {\n const { $head } = selection;\n const parentNode = $head.node($head.depth - 1);\n return parentNode && \n (parentNode.type === parentNode.type.schema.nodes.body ||\n (selection instanceof GapCursor && parentNode.type === parentNode.type.schema.nodes.doc));\n}\n\nexport function selectionIsImageNode(schema: Schema, selection: Selection) {\n return selection instanceof NodeSelection && [schema.nodes.image, schema.nodes.figure].includes(selection.node.type);\n}\n\nexport function selectionIsEmptyParagraph(schema: Schema, selection: Selection) {\n const { $head } = selection;\n return $head.parent.type === schema.nodes.paragraph && $head.parent.childCount === 0;\n}\n\nexport function selectionWithinLastBodyParagraph(selection: Selection) {\n if (selectionIsBodyTopLevel(selection)) {\n const editingRoot = editingRootNode(selection);\n if (editingRoot) {\n const node = selection.$head.node();\n return node === editingRoot.node.lastChild && node.type === node.type.schema.nodes.paragraph;\n }\n }\n return false;\n}\n\nexport function restoreSelection(view: EditorView, pos: number) {\n const tr = view.state.tr;\n if (pos < view.state.doc.nodeSize) {\n setTextSelection(pos)(tr);\n tr.setMeta(kAddToHistoryTransaction, false);\n tr.setMeta(kRestoreLocationTransaction, true);\n view.dispatch(tr);\n }\n}\n","/*\n * transaction.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction, EditorState, Plugin, PluginKey, Selection } from 'prosemirror-state';\nimport { Node as ProsemirrorNode, Mark, MarkType, Slice } from 'prosemirror-model';\nimport { ChangeSet } from 'prosemirror-changeset';\nimport { ReplaceStep, Step, Transform } from 'prosemirror-transform';\n\nimport { sliceContentLength } from './slice';\n\nexport const kPasteTransaction = 'paste';\nexport const kSetMarkdownTransaction = 'setMarkdown';\nexport const kAddToHistoryTransaction = 'addToHistory';\nexport const kFixupTransaction = 'docFixup';\nexport const kRestoreLocationTransaction = 'restoreLocation';\nexport const kNavigationTransaction = 'navigationTransaction';\nexport const kInsertSymbolTransaction = 'insertSymbol';\nexport const kInsertCompletionTransaction = 'insertCompletion';\n\nexport type TransactionsFilter = (transactions: Transaction[], oldState: EditorState, newState: EditorState) => boolean;\n\nexport type TransactionNodeFilter = (\n node: ProsemirrorNode,\n pos: number,\n parent: ProsemirrorNode,\n index: number,\n) => boolean;\n\nexport interface AppendTransactionHandler {\n name: string;\n filter?: TransactionsFilter;\n nodeFilter?: TransactionNodeFilter;\n append: (tr: Transaction, transactions: Transaction[], oldState: EditorState, newState: EditorState) => void;\n}\n\n// wrapper for transaction that is guaranteed not to modify the position of any\n// nodes in the document (useful for grouping many disparate handlers that arne't\n// aware of each other's actions onto the same trasaction)\nexport class MarkTransaction {\n private tr: Transaction;\n\n constructor(tr: Transaction) {\n this.tr = tr;\n }\n get doc(): ProsemirrorNode {\n return this.tr.doc;\n }\n get selection(): Selection {\n return this.tr.selection;\n }\n public addMark(from: number, to: number, mark: Mark): this {\n this.tr.addMark(from, to, mark);\n return this;\n }\n public removeMark(from: number, to: number, mark?: Mark | MarkType): this {\n this.tr.removeMark(from, to, mark);\n return this;\n }\n public removeStoredMark(mark: Mark | MarkType): this {\n this.tr.removeStoredMark(mark);\n return this;\n }\n public insertText(text: string, from: number): this {\n this.tr.insertText(text, from, from + text.length);\n return this;\n }\n}\n\nexport interface AppendMarkTransactionHandler {\n name: string;\n filter: (node: ProsemirrorNode, transactions: Transaction[]) => boolean;\n append: (tr: MarkTransaction, node: ProsemirrorNode, pos: number, state: EditorState) => void;\n}\n\nexport function appendMarkTransactionsPlugin(handlers: readonly AppendMarkTransactionHandler[]): Plugin {\n return new Plugin({\n key: new PluginKey('appendMarkTransactions'),\n\n appendTransaction: (transactions: Transaction[], oldState: EditorState, newState: EditorState) => {\n // skip for selection-only changes\n if (!transactionsDocChanged(transactions)) {\n return;\n }\n\n // create transaction\n const tr = newState.tr;\n\n // create markTransaction wrapper\n const markTr = new MarkTransaction(tr);\n\n forChangedNodes(\n oldState,\n newState,\n node => true,\n (node: ProsemirrorNode, pos: number) => {\n for (const handler of handlers) {\n // get a fresh view of the node\n node = tr.doc.nodeAt(pos)!;\n\n // call the handler\n if (handler.filter(node, transactions)) {\n handler.append(markTr, node, pos, newState);\n }\n }\n },\n );\n\n // return transaction\n if (tr.docChanged || tr.selectionSet || tr.storedMarksSet) {\n return tr;\n }\n },\n });\n}\n\nexport function appendTransactionsPlugin(handlers: readonly AppendTransactionHandler[]): Plugin {\n return new Plugin({\n key: new PluginKey('appendTransactions'),\n\n appendTransaction: (transactions: Transaction[], oldState: EditorState, newState: EditorState) => {\n // skip for selection-only changes\n if (!transactionsDocChanged(transactions)) {\n return;\n }\n\n // create transaction\n const tr = newState.tr;\n\n // compute the changeSet\n if (transactionsAreTypingChange(transactions)) {\n const changeSet = transactionsChangeSet(transactions, oldState, newState);\n\n // call each handler\n for (const handler of handlers) {\n // track whether there is a change\n let haveChange = false;\n\n // call filters if we have them\n if (handler.filter || handler.nodeFilter) {\n // first the low-level transaction filter\n if (handler.filter) {\n haveChange = handler.filter(transactions, oldState, newState);\n }\n\n // if that doesn't detect a change then try the nodeFilter if we have one\n if (!haveChange && handler.nodeFilter) {\n const checkForChange = (\n node: ProsemirrorNode,\n pos: number,\n parent: ProsemirrorNode,\n index: number,\n ) => {\n if (handler.nodeFilter!(node, pos, parent, index)) {\n haveChange = true;\n return false;\n }\n };\n\n for (const change of changeSet.changes) {\n oldState.doc.nodesBetween(change.fromA, change.toA, checkForChange);\n newState.doc.nodesBetween(change.fromB, change.toB, checkForChange);\n }\n }\n\n // no filters means we should always run (force haveChange to true)\n } else {\n haveChange = true;\n }\n\n // run the handler if applicable\n if (haveChange) {\n handler.append(tr, transactions, oldState, newState);\n }\n }\n\n // run them all if this is a larger change\n } else {\n handlers.forEach(handler => handler.append(tr, transactions, oldState, newState));\n }\n\n // return transaction\n if (tr.docChanged || tr.selectionSet || tr.storedMarksSet) {\n return tr;\n }\n },\n });\n}\n\nexport function transactionsDocChanged(transactions: Transaction[]) {\n return transactions.some(transaction => transaction.docChanged);\n}\n\nexport function transactionsChangeSet(transactions: Transaction[], oldState: EditorState, newState: EditorState) {\n let changeSet = ChangeSet.create(oldState.doc);\n for (const transaction of transactions) {\n changeSet = changeSet.addSteps(newState.doc, transaction.mapping.maps);\n }\n return changeSet;\n}\n\nexport function trTransform(tr: Transaction, f: (transform: Transform) => void): Transaction {\n // create a new transform so we can do position mapping relative\n // to the actions taken here (b/c the transaction might already\n // have other steps so we can't do tr.mapping.map)\n const newActions = new Transform(tr.doc);\n\n // call the function (passing it a mapping function that uses our newActions)\n f(newActions);\n\n // copy the contents of newActions to the actual transaction\n for (const step of newActions.steps) {\n tr.step(step);\n }\n\n // return the transaction for chaining\n return tr;\n}\n\nexport function transactionsHaveChange(\n transactions: Transaction[],\n oldState: EditorState,\n newState: EditorState,\n predicate: (node: ProsemirrorNode, pos: number, parent: ProsemirrorNode, index: number) => boolean,\n) {\n // screen out transactions with no doc changes\n if (!transactionsDocChanged(transactions)) {\n return false;\n }\n\n // function to check for whether we have a change and set a flag if we do\n let haveChange = false;\n const checkForChange = (node: ProsemirrorNode, pos: number, parent: ProsemirrorNode, index: number) => {\n if (predicate(node, pos, parent, index)) {\n haveChange = true;\n return false;\n }\n };\n\n // for each change in each transaction, check for a node that matches the predicate in either the old or new doc\n const changeSet = transactionsChangeSet(transactions, oldState, newState);\n\n for (const change of changeSet.changes) {\n oldState.doc.nodesBetween(change.fromA, change.toA, checkForChange);\n newState.doc.nodesBetween(change.fromB, change.toB, checkForChange);\n if (haveChange) {\n break;\n }\n }\n\n return haveChange;\n}\n\nexport function forChangedNodes(\n oldState: EditorState | null,\n newState: EditorState,\n predicate: (node: ProsemirrorNode) => boolean,\n f: (node: ProsemirrorNode, pos: number) => boolean | void,\n) {\n let complete = false;\n const handler = (node: ProsemirrorNode, pos: number) => {\n if (complete) {\n return;\n }\n\n if (!predicate || predicate(node)) {\n if (f(node, pos) === false) {\n complete = true;\n }\n }\n };\n\n if (!oldState) {\n newState.doc.descendants(handler);\n } else if (oldState.doc !== newState.doc) {\n changedDescendants(oldState.doc, newState.doc, 0, handler);\n }\n}\n\n// Helper for iterating through the nodes in a document that changed\n// compared to the given previous document. Useful for avoiding\n// duplicate work on each transaction.\n// from: https://github.com/ProseMirror/prosemirror-tables/blob/master/src/fixtables.js\nfunction changedDescendants(\n old: ProsemirrorNode,\n cur: ProsemirrorNode,\n offset: number,\n f: (node: ProsemirrorNode, pos: number) => void,\n) {\n const oldSize = old.childCount;\n const curSize = cur.childCount;\n outer: for (let i = 0, j = 0; i < curSize; i++) {\n const child = cur.child(i);\n for (let scan = j, e = Math.min(oldSize, i + 3); scan < e; scan++) {\n if (old.child(scan) === child) {\n j = scan + 1;\n offset += child.nodeSize;\n continue outer;\n }\n }\n f(child, offset);\n if (j < oldSize && old.child(j).sameMarkup(child)) {\n changedDescendants(old.child(j), child, offset + 1, f);\n } else {\n child.nodesBetween(0, child.content.size, f, offset + 1);\n }\n offset += child.nodeSize;\n }\n}\n\nexport function transactionsAreTypingChange(transactions: Transaction[]) {\n if (\n transactions.length === 1 &&\n transactions[0].steps.length === 1 &&\n transactions[0].steps[0] instanceof ReplaceStep\n ) {\n // step to examine\n const step: any = transactions[0].steps[0];\n\n // insert single chraracter or new empty slice (e.g. from enter after a paragraph)\n if (step.from === step.to && sliceContentLength(step.slice) <= 1) {\n return true;\n }\n\n // remove single character\n if (Math.abs(step.from - step.to) === 1 && step.slice.content.size === 0) {\n return true;\n }\n }\n\n return false;\n}\n\nexport interface RangeStep extends Step {\n from: number;\n to: number;\n}\n\nexport interface SliceStep extends RangeStep {\n slice: Slice;\n}\n","/*\n * slice.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Slice, Node as ProsemirrorNode } from 'prosemirror-model';\n\nexport function sliceContentLength(slice: Slice) {\n let length = 0;\n for (let i = 0; i < slice.content.childCount; i++) {\n length += slice.content.child(i).textContent.length;\n }\n return length;\n}\n\nexport function sliceHasNode(slice: Slice, predicate: (node: ProsemirrorNode) => boolean) {\n let hasNode = false;\n slice.content.descendants(node => {\n if (predicate(node)) {\n hasNode = true;\n return false;\n }\n });\n return hasNode;\n}\n","/*\n * platform.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport const kPlatformMac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;\n","/*\n * outline.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState } from 'prosemirror-state';\n\nimport { NodeWithPos, findChildrenByType, findChildren } from 'prosemirror-utils';\n\nimport { findTopLevelBodyNodes } from './node';\nimport { titleFromYamlMetadataNode } from './yaml';\nimport { rmdChunkEngineAndLabel } from './rmd';\n\nexport interface EditorOutlineItem {\n navigation_id: string;\n type: EditorOutlineItemType;\n level: number;\n sequence: number;\n title: string;\n children: EditorOutlineItem[];\n}\n\nexport const kHeadingOutlineItemType = 'heading';\nexport const kRmdchunkOutlineItemType = 'rmd_chunk';\nexport const kYamlMetadataOutlineItemType = 'yaml_metadata';\n\nexport type EditorOutlineItemType = 'heading' | 'rmd_chunk' | 'yaml_metadata';\n\nexport type EditorOutline = EditorOutlineItem[];\n\nexport interface EditingOutlineLocationItem {\n type: EditorOutlineItemType;\n level: number;\n title: string;\n active: boolean;\n position: number;\n}\n\nexport interface EditingOutlineLocation {\n items: EditingOutlineLocationItem[];\n}\n\nexport function getEditingOutlineLocation(state: EditorState): EditingOutlineLocation {\n // traverse document outline to get base location info\n const itemsWithPos = getDocumentOutline(state).map(nodeWithPos => {\n const schema = state.schema;\n const node = nodeWithPos.node;\n const item: EditingOutlineLocationItem = {\n type: kYamlMetadataOutlineItemType,\n level: 0,\n title: '',\n active: false,\n position: nodeWithPos.pos,\n };\n if (node.type === schema.nodes.yaml_metadata) {\n item.type = kYamlMetadataOutlineItemType;\n item.title = titleFromYamlMetadataNode(node) || '';\n } else if (node.type === schema.nodes.rmd_chunk) {\n item.type = kRmdchunkOutlineItemType;\n const chunk = rmdChunkEngineAndLabel(node.textContent);\n if (chunk) {\n item.title = chunk.label;\n }\n } else if (node.type === schema.nodes.heading) {\n item.type = kHeadingOutlineItemType;\n item.level = node.attrs.level;\n item.title = node.textContent;\n }\n return {\n item,\n pos: nodeWithPos.pos,\n };\n });\n\n // return the location, set the active item by scanning backwards until\n // we find an item with a position before the cursor\n let foundActive = false;\n const items: EditingOutlineLocationItem[] = [];\n for (let i = itemsWithPos.length - 1; i >= 0; i--) {\n const item = itemsWithPos[i].item;\n if (!foundActive && itemsWithPos[i].pos < state.selection.from) {\n item.active = true;\n foundActive = true;\n }\n items.unshift(item);\n }\n\n // return the outline\n return { items };\n}\n\n// get a document outline that matches the scheme provided in EditingOutlineLocation:\n// - yaml metadata blocks\n// - top-level headings\n// - rmd chunks at the top level or within a top-level list or div,\nexport function getDocumentOutline(state: EditorState): NodeWithPos[] {\n // get top level body nodes\n const schema = state.schema;\n const bodyNodes = findTopLevelBodyNodes(state.doc, node => {\n return [\n schema.nodes.yaml_metadata,\n schema.nodes.rmd_chunk,\n schema.nodes.heading,\n schema.nodes.bullet_list,\n schema.nodes.ordered_list,\n schema.nodes.div\n ].includes(node.type);\n });\n\n // reduce (explode lists into contained rmd chunks)\n const outlineNodes: NodeWithPos[] = [];\n bodyNodes.forEach(bodyNode => {\n // explode lists\n if ([schema.nodes.bullet_list, schema.nodes.ordered_list].includes(bodyNode.node.type)) {\n // look for rmd chunks within list items (non-recursive, only want top level)\n findChildrenByType(bodyNode.node, schema.nodes.list_item, false).forEach(listItemNode => {\n findChildrenByType(listItemNode.node, schema.nodes.rmd_chunk, false).forEach(rmdChunkNode => {\n outlineNodes.push({\n node: rmdChunkNode.node,\n pos: bodyNode.pos + 1 + listItemNode.pos + 1 + rmdChunkNode.pos,\n });\n });\n });\n\n // find headings and rmd chunks within divs\n } else if (schema.nodes.div === bodyNode.node.type) {\n findChildren(bodyNode.node, \n node => [schema.nodes.rmd_chunk, schema.nodes.heading].includes(node.type),\n true)\n .forEach(childNode => {\n outlineNodes.push({\n node: childNode.node,\n pos: bodyNode.pos + 1 + childNode.pos\n });\n }\n );\n \n // other nodes go straight through\n } else {\n outlineNodes.push(bodyNode);\n }\n });\n\n // return outline nodes\n return outlineNodes;\n}\n\nexport function getOutlineNodes(doc: ProsemirrorNode) {\n return findTopLevelBodyNodes(doc, isOutlineNode);\n}\n\nexport function isOutlineNode(node: ProsemirrorNode) {\n if (node.type.spec.attrs) {\n return node.type.spec.attrs.hasOwnProperty('navigation_id');\n } else {\n return false;\n }\n}\n","/*\n * rmd.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeType } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { GapCursor } from 'prosemirror-gapcursor';\n\nimport {\n findParentNodeOfType,\n findChildrenByType,\n findChildren,\n findChildrenByMark,\n setTextSelection,\n} from 'prosemirror-utils';\n\nimport { getMarkRange } from './mark';\nimport { precedingListItemInsertPos, precedingListItemInsert } from './list';\nimport { toggleBlockType } from './command';\nimport { selectionIsBodyTopLevel } from './selection';\nimport { uuidv4 } from './util';\n\nexport interface EditorRmdChunk {\n lang: string;\n meta: string;\n code: string;\n delimiter: string;\n}\n\nexport type ExecuteRmdChunkFn = (chunk: EditorRmdChunk) => void;\n\nexport function canInsertRmdChunk(state: EditorState) {\n // must either be at the body top level, within a list item, within a div, or within a\n // blockquote (and never within a table)\n const schema = state.schema;\n const within = (nodeType: NodeType) => !!findParentNodeOfType(nodeType)(state.selection);\n if (within(schema.nodes.table)) {\n return false;\n }\n if (\n !selectionIsBodyTopLevel(state.selection) &&\n !within(schema.nodes.list_item) &&\n !within(schema.nodes.blockquote) &&\n schema.nodes.div && !within(schema.nodes.div)\n ) {\n return false;\n }\n\n return true;\n}\n\nexport function insertRmdChunk(chunkPlaceholder: string) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (\n !(state.selection instanceof GapCursor) &&\n !toggleBlockType(schema.nodes.rmd_chunk, schema.nodes.paragraph)(state) &&\n !precedingListItemInsertPos(state.doc, state.selection)\n ) {\n return false;\n }\n\n // must either be at the body top level, within a list item, within a div, or within a\n // blockquote (and never within a table)\n if (!canInsertRmdChunk(state)) {\n return false;\n }\n\n if (dispatch) {\n // perform insert\n const tr = state.tr;\n const rmdText = schema.text(chunkPlaceholder);\n const rmdNode = schema.nodes.rmd_chunk.create({ navigation_id: uuidv4() }, rmdText);\n const prevListItemPos = precedingListItemInsertPos(tr.doc, tr.selection);\n if (prevListItemPos) {\n precedingListItemInsert(tr, prevListItemPos, rmdNode);\n } else {\n tr.replaceSelectionWith(rmdNode);\n setTextSelection(tr.selection.from - 2)(tr);\n }\n\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function activeRmdChunk(state: EditorState): EditorRmdChunk | null {\n if (state.schema.nodes.rmd_chunk) {\n const rmdNode = findParentNodeOfType(state.schema.nodes.rmd_chunk)(state.selection);\n if (rmdNode) {\n return rmdChunk(rmdNode.node.textContent);\n }\n }\n return null;\n}\n\nexport function previousExecutableRmdChunks(state: EditorState, pos = state.selection.from): EditorRmdChunk[] {\n const activeChunk = activeRmdChunk(state);\n const lang = activeChunk ? activeChunk.lang : 'r';\n const kEvalFalseRegEx = /eval\\s*=\\s*F(?:ALSE)?/;\n return previousRmdChunks(state, pos, chunk => {\n return (\n chunk.lang.localeCompare(lang, undefined, { sensitivity: 'accent' }) === 0 && !kEvalFalseRegEx.test(chunk.meta)\n );\n });\n}\n\nexport function previousRmdChunks(state: EditorState, pos: number, filter?: (chunk: EditorRmdChunk) => boolean) {\n // chunks to return\n const chunks: EditorRmdChunk[] = [];\n\n // find all chunks in the document and return ones before the position that pass the specified filter\n const schema = state.schema;\n const rmdChunkNodes = findChildrenByType(state.doc, schema.nodes.rmd_chunk);\n for (const rmdChunkNode of rmdChunkNodes) {\n if (rmdChunkNode.pos + rmdChunkNode.node.nodeSize > pos) {\n break;\n }\n const chunk = rmdChunk(rmdChunkNode.node.textContent);\n if (chunk && (!filter || filter(chunk))) {\n chunks.push(chunk);\n }\n }\n\n // return chunks\n return chunks;\n}\n\nexport function rmdChunk(code: string): EditorRmdChunk | null {\n let lines = code.trimLeft().split('\\n');\n if (lines.length > 0) {\n const meta = lines[0].replace(/^[\\s`\\{]*(.*?)\\}?\\s*$/, '$1');\n const matchLang = meta.match(/\\w+/);\n const lang = matchLang ? matchLang[0] : '';\n\n const isContainerChunk = [\"verbatim\", \"asis\", \"comment\"].includes(lang);\n\n // for container chunks, delimiter is one backtick greater than the most \n // ticks we've found starting a line (otherwise is ```)\n const delimiter = isContainerChunk ? lines.reduce((ticks: string, line: string) => {\n const match = line.match(/^```+/);\n if (match && (match[0].length >= ticks.length)) {\n ticks = match[0] + \"`\";\n }\n return ticks;\n }, \"```\") : \"```\";\n\n // filter out stray ``` if this isn't a container chunk\n if (!isContainerChunk) {\n // remove lines, other than the first, which are chunk delimiters (start\n // with ```). these are generally unintended but can be accidentally\n // introduced by e.g., pasting a chunk with its delimiters into visual mode,\n // where delimiters are implicit. if these lines aren't removed, they create\n // nested chunks that break parsing and can corrupt the document (see case\n // 8452)\n lines = lines.filter((line, idx) => {\n if (idx === 0) {\n return true;\n }\n return !line.startsWith(\"```\");\n });\n }\n \n\n // a completely empty chunk (no second line) should be returned\n // as such. if it's not completely empty then append a newline\n // to the result of split (so that the chunk ends w/ a newline)\n const chunkCode = lines.length > 1 ? lines.slice(1).join('\\n') + '\\n' : '';\n\n return {\n lang,\n meta,\n code: chunkCode,\n delimiter\n };\n } else {\n return null;\n }\n}\n\nexport function mergeRmdChunks(chunks: EditorRmdChunk[]) {\n if (chunks.length) {\n const merged = {\n lang: chunks[0].lang,\n meta: '',\n code: '',\n };\n chunks.forEach(chunk => (merged.code += chunk.code + '\\n'));\n return merged;\n } else {\n return null;\n }\n}\n\n/**\n * Attempts to extract the engine name and label from a chunk header.\n * \n * @param text The chunk header, e.g. {r foo}\n * @returns An object with `engine` and `label` properties, or null.\n */\nexport function rmdChunkEngineAndLabel(text: string) {\n // Match the engine and label with a regex\n const match = text.match(/^\\{([a-zA-Z0-9_]+)[\\s,]+([a-zA-Z0-9/._='\"-]+)/);\n if (match) {\n // The second capturing group in the regex matches the first string after\n // the engine. This might be a label (e.g., {r label}), but could also be\n // a chunk option (e.g., {r echo=FALSE}). If it has an =, presume that it's\n // an option.\n if (match[2].indexOf(\"=\") !== -1) {\n return null;\n }\n return {\n engine: match[1],\n label: match[2],\n };\n } else {\n return null;\n }\n}\n\nexport function haveTableCellsWithInlineRcode(doc: ProsemirrorNode) {\n const schema = doc.type.schema;\n const haveRCode = !!doc.type.schema.nodes.rmd_chunk;\n if (haveRCode) {\n const isTableCell = (node: ProsemirrorNode) =>\n node.type === schema.nodes.table_cell || node.type === schema.nodes.table_header;\n return findChildren(doc, isTableCell).some(cell => {\n if (doc.rangeHasMark(cell.pos, cell.pos + cell.node.nodeSize, schema.marks.code)) {\n const markedNodes = findChildrenByMark(cell.node, schema.marks.code, true);\n return markedNodes.some(markedNode => {\n const from = cell.pos + 1 + markedNode.pos;\n const markedRange = getMarkRange(doc.resolve(from), schema.marks.code);\n if (markedRange) {\n const text = doc.textBetween(markedRange.from, markedRange.to);\n return /^r[ #].+$/.test(text);\n } else {\n return false;\n }\n });\n } else {\n return false;\n }\n });\n } else {\n return false;\n }\n}\n","/*\n * list.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Transaction, Selection } from 'prosemirror-state';\n\nimport { findParentNodeOfType, setTextSelection } from 'prosemirror-utils';\n\nexport enum ListType {\n Ordered = 'OrderedList',\n Bullet = 'BulletList',\n}\n\nexport interface ListCapabilities {\n tasks: boolean;\n fancy: boolean;\n example: boolean;\n order: boolean;\n incremental: boolean;\n}\n\nexport function isList(node: ProsemirrorNode | null | undefined) {\n if (node) {\n const schema = node.type.schema;\n return node.type === schema.nodes.bullet_list || node.type === schema.nodes.ordered_list;\n } else {\n return false;\n }\n}\n\nexport function precedingListItemInsertPos(doc: ProsemirrorNode, selection: Selection) {\n // selection just be empty\n if (!selection.empty) {\n return null;\n }\n\n // check for insert position in preceding list item (only trigger when\n // the user is at the very beginning of a new bullet)\n const schema = doc.type.schema;\n const $head = selection.$head;\n const parentListItem = findParentNodeOfType(schema.nodes.list_item)(selection);\n if (parentListItem) {\n const $liPos = doc.resolve(parentListItem.pos);\n const listIndex = $liPos.index();\n const parentIndex = $head.index($head.depth - 1);\n const parentOffset = $head.parentOffset;\n if (listIndex > 0 && parentIndex === 0 && parentOffset === 0) {\n const pos = $liPos.pos - 1;\n return pos;\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\nexport function precedingListItemInsert(tr: Transaction, pos: number, node: ProsemirrorNode) {\n tr.deleteRange(tr.selection.from, tr.selection.from + 1);\n tr.insert(pos, node);\n setTextSelection(tr.mapping.map(pos), -1)(tr);\n return tr;\n}\n","/*\n * command.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { lift, setBlockType, toggleMark, wrapIn } from 'prosemirror-commands';\nimport { MarkType, Node as ProsemirrorNode, NodeType } from 'prosemirror-model';\nimport { wrapInList, liftListItem } from 'prosemirror-schema-list';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { findParentNode, findParentNodeOfType, setTextSelection } from 'prosemirror-utils';\nimport { EditorView } from 'prosemirror-view';\n\nimport { markIsActive, getMarkRange } from './mark';\nimport { canInsertNode, nodeIsActive } from './node';\nimport { pandocAttrInSpec, pandocAttrAvailable, pandocAttrFrom } from './pandoc_attr';\nimport { isList } from './list';\nimport { OmniInsert } from './omni_insert';\nimport { EditorUIPrefs, kListSpacingTight } from './ui';\nimport { selectionIsWithinRange, selectionHasRange } from './selection';\nimport { requiresTrailingP, insertTrailingP } from './trailing_p';\n\nexport enum EditorCommandId {\n // text editing\n Undo = '201CA961-829E-4708-8FBC-8896FDE85A10',\n Redo = 'B6272475-04E0-48C0-86E3-DAFA763BDF7B',\n SelectAll = 'E42BF0DA-8A02-4FCE-A202-7EA8A4833FC5',\n ClearFormatting = 'C22D8CC4-0A9F-41D5-B540-7DAAAB80F344',\n\n // formatting\n Strong = '83B04020-1195-4A65-8A8E-7C173C87F439',\n Em = '9E1B73E4-8140-43C3-92E4-A5E2583F40E6',\n Code = '32621150-F829-4B8F-B5BD-627FABBBCF53',\n Strikeout = 'D5F0225B-EC73-4600-A1F3-01F418EE8CB4',\n Superscript = '0200D2FC-B5AF-423B-8B7A-4A7FC3DAA6AF',\n Subscript = '3150428F-E468-4E6E-BF53-A2713E59B4A0',\n Smallcaps = '41D8030F-5E8B-48F2-B1EE-6BC40FD502E4',\n Underline = '7F0E6AE2-08F4-4594-9BA2-E6B8B27FA8F7',\n Paragraph = '20EC2695-75CE-4DCD-A644-266E9F5F5913',\n Heading1 = '5B77642B-923D-4440-B85D-1A27C9CF9D77',\n Heading2 = '42985A4B-6BF2-4EEF-AA30-3E84A8B9111C',\n Heading3 = '3F84D9DF-5EF6-484C-8615-BAAE2AC9ECE2',\n Heading4 = 'DA76731D-1D84-4DBA-9BEF-A6F73536F0B9',\n Heading5 = '59E24247-A140-466A-BC96-3C8ADABB57A5',\n Heading6 = 'DB495DF5-8501-43C7-AE07-59CE9D9C373D',\n CodeBlock = '3BA12A49-3E29-4ABC-9A49-436A3B49B880',\n CodeBlockFormat = '07A6F2AA-01DC-41D7-9F01-AA91EAD856EE',\n Blockquote = 'AF0717E7-E4BA-4909-9F10-17EB757CDD0F',\n LineBlock = 'F401687C-B995-49AF-B2B0-59C158174FD5',\n AttrEdit = '0F8A254D-9272-46BF-904D-3A9D68B91032',\n Span = '852CF3E3-8A2B-420D-BD95-F79C54118E7E',\n Div = '15EDB8F1-6015-4DA9-AE50-5987B24C1D96',\n InsertDiv = 'ACA1521B-8875-4113-9D43-B47F0038B19F',\n\n // lists\n BulletList = 'D897FD2B-D6A4-44A7-A404-57B5251FBF64',\n OrderedList = '3B8B82D5-7B6C-4480-B7DD-CF79C6817980',\n TightList = 'A32B668F-74F3-43D7-8759-6576DDE1D603',\n ListItemSink = '7B503FA6-6576-4397-89EF-37887A1B2EED',\n ListItemLift = '53F89F57-22E2-4FCC-AF71-3E382EC10FC8',\n ListItemSplit = '19BBD87F-96D6-4276-B7B8-470652CF4106',\n ListItemCheck = '2F6DA9D8-EE57-418C-9459-50B6FD84137F',\n ListItemCheckToggle = '34D30F3D-8441-44AD-B75A-415DA8AC740B',\n EditListProperties = 'E006A68C-EA39-4954-91B9-DDB07D1CBDA2',\n\n // tables\n TableInsertTable = 'FBE39613-2DAA-445D-9E92-E1EABFB33E2C',\n TableToggleHeader = 'A5EDA226-A3CA-4C1B-8D4D-C2675EF51AFF',\n TableToggleCaption = 'C598D85C-E15C-4E10-9850-95882AEC7E60',\n TableNextCell = '14299819-3E19-4A27-8D0B-8035315CF0B4',\n TablePreviousCell = '0F041FB5-0203-4FF1-9D13-B16606A80F3E',\n TableAddColumnBefore = '2447B81F-E07A-4C7D-8026-F2B148D5FF4A',\n TableAddColumnAfter = 'ED86CFAF-D0B3-4B1F-9BB8-89987A939C8C',\n TableDeleteColumn = 'B3D077BC-DD51-4E3A-8AD4-DE5DE686F7C4',\n TableAddRowBefore = 'E97FB318-4052-41E5-A2F5-55B64E9826A5',\n TableAddRowAfter = '3F28FA24-4BDD-4C13-84FF-9C5E1D4B04D6',\n TableDeleteRow = '5F3B4DCD-5006-43A5-A069-405A946CAC68',\n TableDeleteTable = '116D1E68-9315-4FEB-B6A0-AD25B3B9C881',\n TableAlignColumnLeft = '0CD6A2A4-06F9-435D-B8C9-070B22B19D8',\n TableAlignColumnRight = '86D90C12-BB12-4A9D-802F-D00EB7CEF2C5',\n TableAlignColumnCenter = '63333996-2F65-4586-8494-EA9CAB5A7751',\n TableAlignColumnDefault = '7860A9C1-60AF-40AD-9EB8-A10F6ADF25C5',\n\n // insert\n OmniInsert = '12F96C13-38C1-4266-A0A1-E871D8C709FB',\n Table = 'CBD3ACC6-B2A3-457D-885C-EDA600F6FC67',\n Link = '842FCB9A-CA61-4C5F-A0A0-43507B4B3FA9',\n RemoveLink = '072D2084-218D-4A34-AF1F-7E196AF684B2',\n Image = '808220A3-2B83-4CB6-BCC1-46565D54FA47',\n Footnote = '1D1A73C0-F0E1-4A0F-BEBC-08398DE14A4D',\n ParagraphInsert = '4E68830A-3E68-450A-B3F3-2591F4EB6B9A',\n HorizontalRule = 'EAA7115B-181C-49EC-BDB1-F0FF10369278',\n YamlMetadata = '431B5A45-1B25-4A55-9BAF-C0FE95D9B2B6',\n Shortcode = '0FDDA7E8-419D-4A5D-A1F5-74061466655D',\n InlineMath = 'A35C562A-0BD6-4B14-93D5-6FF3BE1A0C8A',\n DisplayMath = '3E36BA99-2AE9-47C3-8C85-7CC5314A88DF',\n Citation = 'EFFCFC81-F2E7-441E-B7FA-C693146B4185',\n CrossReference = '48CEED4F-1D18-4AF9-8686-9FEB5DF6BCC8',\n DefinitionList = 'CFAB8F4D-3350-4398-9754-8DE0FB95167B',\n DefinitionTerm = '204D1A8F-8EE6-424A-8E69-99768C85B39E',\n DefinitionDescription = 'F0738D83-8E11-4CB5-B958-390190A2D7DD',\n Symbol = '1419765F-6E4A-4A4C-8670-D9E8578EA996',\n Emoji = 'F73896A2-02CC-4E5D-A596-78444A1D2A37',\n EmDash = '5B0DD33B-6209-4713-B8BB-60B5CA0BC3B3',\n EnDash = 'C32AFE32-0E57-4A16-9C39-88EB1D82B8B4',\n NonBreakingSpace = 'CF6428AB-F36E-446C-8661-2781B2CD1169',\n HardLineBreak = '3606FF87-866C-4729-8F3F-D065388FC339',\n Tabset = '7327AF95-3EA7-42C8-8C42-D4CB0D15CAE4',\n Callout = 'DC86C28A-0140-4EB5-A745-2C1EFA55C94D',\n\n // raw\n TexInline = 'CFE8E9E5-93BA-4FFA-9A77-BA7EFC373864',\n TexBlock = 'BD11A6A7-E528-40A2-8139-3F8F5F556ED2',\n HTMLComment = 'F973CBA4-2882-4AC5-A642-47F4733EBDD4',\n HTMLInline = 'C682C6B5-E58D-498C-A38F-FB07BEC3A82D',\n HTMLBlock = '6F9F64AF-711F-4F91-8642-B51C41717F31',\n RawInline = '984167C8-8582-469C-97D8-42CB12773657',\n RawBlock = 'F5757992-4D33-45E6-86DC-F7D7B174B1EC',\n\n // chunk\n RCodeChunk = 'EBFD21FF-4A6E-4D88-A2E0-B38470B00BB9',\n BashCodeChunk = '5FBB7283-E8AB-450C-9359-A4658CBCD136',\n D3CodeChunk = 'C73CA46C-B56F-40B6-AEFA-DDBB30CA8C08',\n PythonCodeChunk = '42A7A138-421A-4DCF-8A88-FE2F8EC5B8F6',\n RcppCodeChunk = '6BD2810B-6B20-4358-8AA4-74BBFFC92AC3',\n SQLCodeChunk = '41D61FD2-B56B-48A7-99BC-2F60BC0D9F78',\n StanCodeChunk = '65D33344-CBE9-438C-B337-A538F8D7FCE5',\n ExecuteCurentRmdChunk = '31C799F3-EF18-4F3A-92E6-51F7A3193A1B',\n ExecuteCurrentPreviousRmdChunks = 'D3FDE96-0264-4364-ADFF-E87A75405B0B',\n ExpandChunk = '0226518C-559A-4BFC-A5BD-244BEE8175AA',\n CollapseChunk = '4AFBBC0C-A6DA-4019-B85F-374636E349C3',\n ExpandAllChunks = 'B217913B-67C9-457F-B766-7FCCB502F611',\n CollapseAllChunks = '9907A864-D707-4410-93A4-07871A8C43A6',\n\n // outline\n GoToNextSection = 'AE827BDA-96F8-4E84-8030-298D98386765',\n GoToPreviousSection = 'E6AA728C-2B75-4939-9123-0F082837ACDF',\n GoToNextChunk = '50DD6E51-13B5-4F1E-A46B-6A33EB1609D9',\n GoToPreviousChunk = '8D105D33-78FE-4A98-8195-6B71361424C5',\n\n // slides\n InsertSlidePause = 'FCA8BF2E-2668-4919-92FC-02083EB48246',\n InsertSlideNotes = '9C709915-02BE-4F4F-9CEB-50E17973C9BE',\n InsertSlideColumns = 'AE62D05F-1415-4E1F-84AE-753EE2393002'\n}\n\nexport interface EditorCommand {\n readonly id: EditorCommandId;\n readonly keymap: readonly string[];\n readonly isEnabled: () => boolean;\n readonly isActive: () => boolean;\n readonly plural: () => number;\n readonly execute: () => void;\n}\n\nexport class ProsemirrorCommand {\n public readonly id: EditorCommandId;\n public readonly keymap: readonly string[];\n public readonly execute: CommandFn;\n public readonly omniInsert?: OmniInsert;\n public readonly keepFocus: boolean;\n\n constructor(\n id: EditorCommandId,\n keymap: readonly string[],\n execute: CommandFn,\n omniInsert?: OmniInsert,\n keepFocus?: boolean,\n ) {\n this.id = id;\n this.keymap = keymap;\n this.execute = execute;\n this.omniInsert = omniInsert;\n this.keepFocus = !(keepFocus === false);\n }\n\n public isEnabled(state: EditorState): boolean {\n return this.execute(state);\n }\n\n public isActive(state: EditorState): boolean {\n return false;\n }\n\n public plural(state: EditorState): number {\n return 1;\n }\n}\n\nexport class MarkCommand extends ProsemirrorCommand {\n public readonly markType: MarkType;\n public readonly attrs: object;\n\n constructor(id: EditorCommandId, keymap: string[], markType: MarkType, attrs = {}) {\n super(id, keymap, toggleMarkType(markType, attrs) as CommandFn);\n this.markType = markType;\n this.attrs = attrs;\n }\n\n public isActive(state: EditorState) {\n return markIsActive(state, this.markType);\n }\n}\n\nexport class NodeCommand extends ProsemirrorCommand {\n public readonly nodeType: NodeType;\n public readonly attrs: object;\n\n constructor(\n id: EditorCommandId,\n keymap: string[],\n nodeType: NodeType,\n attrs: object,\n execute: CommandFn,\n omniInsert?: OmniInsert,\n ) {\n super(id, keymap, execute, omniInsert);\n this.nodeType = nodeType;\n this.attrs = attrs;\n }\n\n public isActive(state: EditorState) {\n return nodeIsActive(state, this.nodeType, this.attrs);\n }\n}\n\nexport class BlockCommand extends NodeCommand {\n constructor(\n id: EditorCommandId,\n keymap: string[],\n blockType: NodeType,\n toggleType: NodeType,\n attrs = {},\n omniInsert?: OmniInsert,\n ) {\n super(id, keymap, blockType, attrs, toggleBlockType(blockType, toggleType, attrs), omniInsert);\n }\n}\n\nexport class WrapCommand extends NodeCommand {\n constructor(id: EditorCommandId, keymap: string[], wrapType: NodeType, attrs = {}, omniInsert?: OmniInsert) {\n super(id, keymap, wrapType, attrs, toggleWrap(wrapType, attrs), omniInsert);\n }\n}\n\nexport class InsertCharacterCommand extends ProsemirrorCommand {\n constructor(id: EditorCommandId, ch: string, keymap: string[]) {\n super(id, keymap, (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // enable/disable command\n const schema = state.schema;\n if (!canInsertNode(state, schema.nodes.text)) {\n return false;\n }\n if (dispatch) {\n const tr = state.tr;\n tr.replaceSelectionWith(schema.text(ch), true).scrollIntoView();\n dispatch(tr);\n }\n\n return true;\n });\n }\n}\n\nexport type CommandFn = (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => boolean;\n\nexport function toggleMarkType(markType: MarkType, attrs?: { [key: string]: any }) {\n const defaultToggleMark = toggleMark(markType, attrs);\n\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // disallow non-code marks when the selection is contained within a code mark\n // (this is a pandoc constraint). note that we can allow them if the selection\n // contains the code mark range entirely (as in that case the code mark will\n // nest within the other mark)\n if (markType !== state.schema.marks.code) {\n if (markIsActive(state, state.schema.marks.code)) {\n const codeRange = getMarkRange(state.selection.$anchor, state.schema.marks.code);\n if (\n codeRange &&\n selectionIsWithinRange(state.selection, codeRange) &&\n !selectionHasRange(state.selection, codeRange)\n ) {\n return false;\n }\n }\n }\n\n // default implementation\n return defaultToggleMark(state, dispatch);\n };\n}\n\nexport function toggleList(listType: NodeType, itemType: NodeType, prefs: EditorUIPrefs): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const { selection } = state;\n const { $from, $to } = selection;\n const range = $from.blockRange($to);\n\n if (!range) {\n return false;\n }\n\n const parentList = findParentNode(isList)(selection);\n\n if (range.depth >= 1 && parentList && range.depth - parentList.depth <= 1) {\n if (isList(parentList.node) && listType.validContent(parentList.node.content)) {\n if (parentList.node.type !== listType) {\n if (dispatch) {\n const tr: Transaction = state.tr;\n const attrs: { [key: string]: any } = {};\n if (parentList.node.attrs.tight) {\n attrs.tight = true;\n }\n tr.setNodeMarkup(parentList.pos, listType, attrs);\n dispatch(tr);\n }\n return true;\n } else {\n return liftListItem(itemType)(state, dispatch);\n }\n }\n }\n\n // if we are in a heading then this isn't valid\n if (findParentNodeOfType(state.schema.nodes.heading)(state.selection)) {\n return false;\n }\n\n // reflect tight preference\n const tight = prefs.listSpacing() === kListSpacingTight;\n\n return wrapInList(listType, { tight })(state, dispatch);\n };\n}\n\nexport function toggleBlockType(type: NodeType, toggletype: NodeType, attrs = {}): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!dispatch) {\n return type === toggletype || setBlockType(type, { ...attrs })(state, dispatch);\n }\n\n // if the type has pandoc attrs then see if we can transfer from the existing node\n let pandocAttr: any = {};\n if (pandocAttrInSpec(type.spec)) {\n const parentNode = state.selection.$anchor.node();\n if (parentNode && pandocAttrAvailable(parentNode.attrs)) {\n pandocAttr = pandocAttrFrom(parentNode.attrs);\n }\n }\n\n return setBlockType(type, { ...attrs, ...pandocAttr })(state, dispatch);\n };\n}\n\nexport function toggleWrap(type: NodeType, attrs?: { [key: string]: any }): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const isActive = nodeIsActive(state, type, attrs);\n\n if (isActive) {\n return lift(state, dispatch);\n }\n\n return wrapIn(type, attrs)(state, dispatch);\n };\n}\n\nexport function insertNode(nodeType: NodeType, attrs = {}, selectAfter = false): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!canInsertNode(state, nodeType)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n tr.replaceSelectionWith(nodeType.create(attrs));\n if (selectAfter) {\n if (requiresTrailingP(tr.selection)) {\n insertTrailingP(tr);\n setTextSelection(tr.selection.to + 1, 1)(tr);\n }\n }\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function exitNode(\n nodeType: NodeType,\n depth: number,\n allowKey: boolean,\n filter = (_node: ProsemirrorNode) => true,\n) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // must be within the node type and pass the filter\n const { $head, $anchor } = state.selection;\n if ($head.parent.type !== nodeType || !filter($head.parent)) {\n return false;\n }\n\n // must be empty and entirely contained by the node\n if (!$head.sameParent($anchor) || !state.selection.empty) {\n return !allowKey;\n }\n\n // must be at the end of the node\n const node = findParentNodeOfType(nodeType)(state.selection)!;\n const endCaptionPos = node.pos + node.node.nodeSize - 1;\n if (state.selection.from !== endCaptionPos) {\n return !allowKey;\n }\n\n // insert must be valid in container above\n const above = $head.node(depth);\n const after = $head.indexAfter(depth);\n const type = above.contentMatchAt(after).defaultType!;\n if (!above.canReplaceWith(after, after, type)) {\n return !allowKey;\n }\n\n // perform insert\n if (dispatch) {\n const tr = state.tr;\n const pos = node.pos + node.node.nodeSize + (Math.abs(depth) - 1);\n tr.insert(pos, type.create());\n setTextSelection(pos, 1)(tr);\n dispatch(tr.scrollIntoView());\n }\n\n return true;\n };\n}\n","/*\n * ui.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { SkinTone } from './emoji';\nimport { XRef } from './xref';\n\nimport { EditorUIImages } from './ui-images';\nimport { EditorDialogs } from './ui-dialogs';\nimport { EditorUISpelling } from './spelling';\n\nexport interface EditorUI {\n dialogs: EditorDialogs;\n display: EditorDisplay;\n math: EditorUIMath;\n context: EditorUIContext;\n prefs: EditorUIPrefs;\n images: EditorUIImages;\n chunks: EditorUIChunks;\n spelling: EditorUISpelling;\n}\n\n/**\n * Callbacks supplied to the host to interact with a code chunk and its output.\n */\nexport interface EditorUIChunkCallbacks {\n getPos: () => number;\n scrollIntoView: (ele: HTMLElement) => void;\n scrollCursorIntoView: () => void;\n getTextContent: () => string;\n}\n\nexport interface EditorUIChunks {\n // create a code chunk editor\n createChunkEditor: (type: string, element: Element, index: number, classes: string[], callbacks: EditorUIChunkCallbacks) => ChunkEditor;\n\n // expand or collapse all chunk editors\n setChunksExpanded: (expanded: boolean) => void;\n}\n\nexport interface ChunkEditor {\n editor: unknown;\n setMode(mode: string): void;\n executeSelection(): void;\n element: HTMLElement;\n destroy(): void;\n setExpanded(expanded: boolean): void;\n getExpanded(): boolean;\n}\n\nexport interface EditorUIContext {\n // check if we are the active tab\n isActiveTab: () => boolean;\n\n // get the path to the current document\n getDocumentPath: () => string | null;\n\n // ensure the edited document is saved on the server before proceeding\n // (note this just means that the server has a copy of it for e.g.\n // indexing xrefs, from the user's standpoint the doc is still dirty)\n withSavedDocument: () => Promise;\n\n // get the default directory for resources (e.g. where relative links point to)\n getDefaultResourceDir: () => string;\n\n // map from a filesystem path to a resource reference\n mapPathToResource: (path: string) => string;\n\n // map from a resource reference (e.g. images/foo.png) to a URL we can use in the document\n mapResourceToURL: (path: string) => string;\n\n // watch a resource for changes (returns an unsubscribe function)\n watchResource: (path: string, notify: VoidFunction) => VoidFunction;\n\n // translate a string\n translateText: (text: string) => string;\n\n // are there dropped uris available?\n droppedUris: () => string[] | null;\n\n // uris from the clipboard\n clipboardUris: () => Promise;\n\n // image from the clipboard (returned as file path)\n clipboardImage: () => Promise;\n\n // resolve image uris (make relative, copy to doc local 'images' dir, etc)\n resolveImageUris: (uris: string[]) => Promise;\n\n // are we running in windows desktop mode?\n isWindowsDesktop: () => boolean;\n}\n\nexport interface EditorMenuItem {\n text?: string;\n exec?: VoidFunction;\n command?: string;\n separator?: boolean;\n subMenu?: {\n items: EditorMenuItem[];\n };\n}\n\nexport interface EditorUIMath {\n typeset?: (el: HTMLElement, text: string, priority: boolean) => Promise;\n}\n\nexport interface EditorDisplay {\n openURL: (url: string) => void;\n navigateToXRef: (file: string, xref: XRef) => void;\n showContextMenu?: (items: EditorMenuItem[], clientX: number, clientY: number) => Promise;\n}\n\nexport const kListSpacingTight = 'tight';\nexport const kListSpacingSpaced = 'spaced';\nexport type ListSpacing = 'tight' | 'spaced';\n\nexport interface EditorUIPrefs {\n darkMode: () => boolean;\n listSpacing: () => ListSpacing;\n equationPreview: () => boolean;\n packageListingEnabled: () => boolean;\n tabKeyMoveFocus: () => boolean;\n emojiSkinTone: () => SkinTone;\n setEmojiSkinTone: (skinTone: SkinTone) => void;\n zoteroUseBetterBibtex: () => boolean;\n setBibliographyDefaultType: (type: string) => void;\n bibliographyDefaultType: () => string;\n citationDefaultInText: () => boolean;\n setCitationDefaultInText: (value: boolean) => void;\n}\n","/*\n * trailing_p.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction, Selection } from 'prosemirror-state';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Transform } from 'prosemirror-transform';\nimport { ContentNodeWithPos } from 'prosemirror-utils';\n\nimport { editingRootNode } from '../api/node';\nimport { trTransform } from '../api/transaction';\nimport { isParagraphNode } from '../api/paragraph';\n\n\nexport function insertTrailingP(tr: Transaction) {\n const editingNode = editingRootNode(tr.selection);\n if (editingNode) {\n trTransform(tr, insertTrailingPTransform(editingNode));\n }\n}\n\n\nexport function requiresTrailingP(selection: Selection) {\n const editingRoot = editingRootNode(selection);\n if (editingRoot) {\n return !isParagraphNode(editingRoot.node.lastChild) || isDisplayMathNode(editingRoot.node.lastChild);\n } else {\n return false;\n }\n}\n\nfunction insertTrailingPTransform(editingNode: ContentNodeWithPos) {\n return (tr: Transform) => {\n const schema = editingNode.node.type.schema;\n tr.insert(editingNode.pos + editingNode.node.nodeSize - 1, schema.nodes.paragraph.create());\n };\n}\n\nfunction isDisplayMathNode(node: ProsemirrorNode | null | undefined) {\n if (node && node.firstChild) {\n return node.childCount === 1 && node.type.schema.marks.math?.isInSet(node.firstChild.marks);\n } else {\n return false;\n }\n}\n","/*\n * paragraph.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { canInsertNode } from './node';\n\nexport function insertParagraph(state: EditorState, dispatch?: (tr: Transaction) => void) {\n const schema = state.schema;\n\n if (!canInsertNode(state, schema.nodes.paragraph)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n tr.replaceSelectionWith(schema.nodes.paragraph.create());\n setTextSelection(state.selection.from + 1, 1)(tr);\n dispatch(tr);\n }\n\n return true;\n}\n\nexport function isParagraphNode(node: ProsemirrorNode | null | undefined) {\n if (node) {\n const schema = node.type.schema;\n return node.type === schema.nodes.paragraph;\n } else {\n return false;\n }\n}\n","/*\n * util.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n// tslint:disable:no-bitwise\nexport function uuidv4() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {\n const r = (Math.random() * 16) | 0;\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n","import { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\nimport { NodeWithPos } from 'prosemirror-utils';\n\nimport { bodyElement } from './dom';\nimport {\n kYamlMetadataOutlineItemType,\n kHeadingOutlineItemType,\n kRmdchunkOutlineItemType,\n EditingOutlineLocation,\n getDocumentOutline,\n EditingOutlineLocationItem,\n} from './outline';\nimport { restoreSelection } from './selection';\nimport { scrollToPos } from './scroll';\n\nexport interface EditingLocation {\n pos: number;\n scrollTop: number;\n}\n\nexport function getEditingLocation(view: EditorView): EditingLocation {\n const pos = view.state.selection.from;\n const bodyEl = bodyElement(view);\n const scrollTop = bodyEl.scrollTop;\n return { pos, scrollTop };\n}\n\nexport function setEditingLocation(\n view: EditorView,\n outlineLocation?: EditingOutlineLocation,\n previousLocation?: EditingLocation,\n) {\n // get the current document outline\n const documentOutline = getDocumentOutline(view.state);\n\n // if all of the types and levels match up to the active outline item,\n // then we have a candidate match\n let docOutlineLocationNode: NodeWithPos | undefined;\n\n if (outlineLocation) {\n for (let i = 0; i < outlineLocation.items.length && i < documentOutline.length; i++) {\n // get the item and it's peer\n const item = outlineLocation.items[i];\n const docOutlineNode = documentOutline[i];\n\n // if they don't match then bail (can't resolve different interpretations of the outline)\n if (!outlineItemSimillarToNode(item, docOutlineNode.node)) {\n break;\n }\n\n // if this is the active item\n if (item.active) {\n // see if the previous location is actually a better target (because it's between this location and\n // the next outline node). in that case we don't set the target node and we leave the restorePos\n // at the previous location\n if (!locationIsBetweenDocOutlineNodes(docOutlineNode, documentOutline[i + 1], previousLocation)) {\n // set the target\n docOutlineLocationNode = docOutlineNode;\n\n // if this is an rmd chunk then advance to the second line\n if (docOutlineNode.node.type === view.state.schema.nodes.rmd_chunk) {\n const chunkText = docOutlineNode.node.textContent;\n const newlineIdx = chunkText.indexOf('\\n');\n if (newlineIdx !== -1) {\n docOutlineLocationNode.pos += newlineIdx + 2;\n }\n }\n }\n\n break;\n }\n }\n }\n\n // do the restore\n if (docOutlineLocationNode) {\n restoreSelection(view, docOutlineLocationNode.pos);\n scrollToPos(view, docOutlineLocationNode.pos);\n } else if (previousLocation) {\n restoreSelection(view, previousLocation.pos);\n bodyElement(view).scrollTop = previousLocation.scrollTop;\n }\n}\n\nfunction outlineItemSimillarToNode(outlineItem: EditingOutlineLocationItem, docOutlneNode: ProsemirrorNode) {\n const schema = docOutlneNode.type.schema;\n if (outlineItem.type === kYamlMetadataOutlineItemType) {\n return docOutlneNode.type === schema.nodes.yaml_metadata;\n } else if (outlineItem.type === kRmdchunkOutlineItemType) {\n return docOutlneNode.type === schema.nodes.rmd_chunk;\n } else if (outlineItem.type === kHeadingOutlineItemType) {\n return docOutlneNode.type === schema.nodes.heading && docOutlneNode.attrs.level === outlineItem.level;\n } else {\n return false;\n }\n}\n\nfunction locationIsBetweenDocOutlineNodes(nodeA: NodeWithPos, nodeB?: NodeWithPos, location?: EditingLocation) {\n // bail if we don't have all the arguments\n if (!nodeB || !location) {\n return false;\n }\n return nodeA.pos < location.pos && nodeB.pos > location.pos;\n}\n","/*\n * dom.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nexport function bodyElement(view: EditorView): HTMLElement {\n return view.dom.firstChild as HTMLElement;\n}\n\nexport function isElementVisible(el: HTMLElement) {\n return !!(el.offsetWidth || el.offsetHeight || el.getClientRects().length);\n}\n\nexport function elementInnerDimensions(el: HTMLElement) {\n const cs = getComputedStyle(el);\n\n const asNumber = (x: string | null) => (x ? parseFloat(x) : 0);\n const paddingX = asNumber(cs.paddingLeft) + asNumber(cs.paddingRight);\n const paddingY = asNumber(cs.paddingTop) + asNumber(cs.paddingBottom);\n const borderX = asNumber(cs.borderLeftWidth) + asNumber(cs.borderRightWidth);\n const borderY = asNumber(cs.borderTopWidth) + asNumber(cs.borderBottomWidth);\n\n return {\n width: el.offsetWidth - paddingX - borderX,\n height: el.offsetHeight - paddingY - borderY,\n };\n}\n\nexport function onElementRemoved(container: Node, el: HTMLElement, onRemoved: VoidFunction) {\n const observer = new MutationObserver(mutationsList => {\n mutationsList.forEach(mutation => {\n mutation.removedNodes.forEach(node => {\n if (node === el) {\n onRemoved();\n }\n });\n });\n });\n observer.observe(container, { attributes: false, childList: true, subtree: true });\n}\n","/*\n * scroll.ts\n *\n * Copyright (C) 2019-20 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';\n\nimport zenscroll from 'zenscroll';\n\nimport { editingRootNodeClosestToPos, editingRootNode } from './node';\n\nexport function scrollIntoView(\n view: EditorView,\n pos: number,\n center = true,\n duration?: number,\n offset?: number,\n onDone?: VoidFunction,\n) {\n // resolve position and determine container\n const $pos = view.state.doc.resolve(pos);\n const container = editingRootNodeClosestToPos($pos);\n\n // if we have a container then do the scroll\n if (container) {\n const schema = view.state.schema;\n const containerEl = view.nodeDOM(container.pos) as HTMLElement;\n const parentList = findParentNodeOfTypeClosestToPos($pos, [schema.nodes.ordered_list, schema.nodes.bullet_list]);\n const parentDiv = schema.nodes.div ? findParentNodeOfTypeClosestToPos($pos, schema.nodes.div) : undefined;\n const resultPos = parentList || parentDiv ? $pos.before(2) : $pos.before();\n const resultNode = view.nodeDOM(resultPos) as HTMLElement;\n if (container && resultNode) {\n const scroller = zenscroll.createScroller(containerEl, duration, offset);\n if (center) {\n scroller.center(resultNode, duration, offset, onDone);\n } else {\n scroller.intoView(resultNode, duration, onDone);\n }\n }\n }\n}\n\nexport function scrollToPos(view: EditorView, pos: number, duration?: number, offset?: number, onDone?: VoidFunction) {\n const node = view.nodeDOM(pos);\n if (node instanceof HTMLElement) {\n const editingRoot = editingRootNode(view.state.selection)!;\n const container = view.nodeDOM(editingRoot.pos) as HTMLElement;\n const scroller = zenscroll.createScroller(container, duration, offset);\n if (duration) {\n scroller.to(node, duration, onDone);\n } else {\n scroller.to(node, 0, onDone);\n }\n }\n}\n","/*\n * navigation.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nimport { setTextSelection, Predicate, findChildren, findDomRefAtPos } from 'prosemirror-utils';\n\nimport zenscroll from 'zenscroll';\n\nimport { editingRootNode } from './node';\nimport { kNavigationTransaction } from './transaction';\nimport { xrefPosition } from './xref';\nimport { EditorFormat, kQuartoDocType } from './format';\n\nexport interface EditorNavigation {\n navigate: (type: NavigationType, location: string, animate?: boolean) => void;\n}\n\nexport enum NavigationType {\n Pos = 'pos',\n Id = 'id',\n Href = 'href',\n Heading = 'heading',\n XRef = 'xref',\n}\n\nexport interface Navigation {\n pos: number;\n prevPos: number;\n}\n\nexport function navigateTo(\n view: EditorView,\n format: EditorFormat,\n type: NavigationType,\n location: string,\n animate = true,\n): Navigation | null {\n switch (type) {\n case NavigationType.Pos:\n return navigateToPos(view, parseInt(location, 10), animate);\n case NavigationType.Id:\n return navigateToId(view, location, animate);\n case NavigationType.Href:\n return navigateToHref(view, location, animate);\n case NavigationType.Heading:\n return navigateToHeading(view, location, animate);\n case NavigationType.XRef:\n return navigateToXRef(view, format, location, animate);\n default:\n return null;\n }\n}\n\nexport function navigateToId(view: EditorView, id: string, animate = true): Navigation | null {\n return navigate(view, node => id === node.attrs.navigation_id, animate);\n}\n\nexport function navigateToHref(view: EditorView, href: string, animate = true): Navigation | null {\n return navigate(view, node => node.attrs.id === href, animate);\n}\n\nexport function navigateToHeading(view: EditorView, heading: string, animate = true): Navigation | null {\n return navigate(\n view,\n node => {\n return (\n node.type === view.state.schema.nodes.heading &&\n node.textContent.localeCompare(heading, undefined, { sensitivity: 'accent' }) === 0\n );\n },\n animate,\n );\n}\n\nexport function navigateToXRef(view: EditorView, editorFormat: EditorFormat, xref: string, animate = true): Navigation | null {\n const xrefType = editorFormat.docTypes.includes(kQuartoDocType) ? \"quarto\" : \"bookdown\";\n const xrefPos = xrefPosition(view.state.doc, xref, xrefType);\n if (xrefPos !== -1) {\n return navigateToPos(view, xrefPos, animate);\n } else {\n return null;\n }\n}\n\nexport function navigateToPos(view: EditorView, pos: number, animate = true): Navigation | null {\n // get previous position\n const prevPos = view.state.selection.from;\n\n // need to target at least the body\n pos = Math.max(pos, 2);\n\n // set selection\n const tr = view.state.tr;\n setTextSelection(pos)(tr);\n tr.setMeta(kNavigationTransaction, true);\n view.dispatch(tr);\n\n // find a targetable dom node at the position\n const node = findDomRefAtPos(pos, view.domAtPos.bind(view));\n if (node instanceof HTMLElement) {\n // auto-scroll to position (delay so we can grab the focus, as autoscrolling\n // doesn't seem to work unless you have the focus)\n setTimeout(() => {\n view.focus();\n const editingRoot = editingRootNode(view.state.selection)!;\n const container = view.nodeDOM(editingRoot.pos) as HTMLElement;\n const scroller = zenscroll.createScroller(container, 700, 20);\n // some nodes' DOM elements are grandchildren rather than direct children\n // of the scroll container; move up a level if this is the case\n let dest = node;\n if (node.parentElement &&\n node.parentElement.parentElement &&\n node.parentElement.parentElement.parentElement === container) {\n dest = node.parentElement;\n }\n if (animate) {\n scroller.to(dest);\n } else {\n scroller.to(dest, 0);\n }\n }, 200);\n\n return { pos, prevPos };\n } else {\n return null;\n }\n}\n\nfunction navigate(view: EditorView, predicate: Predicate, animate = true): Navigation | null {\n const result = findChildren(view.state.doc, predicate);\n if (result.length) {\n // pos points immediately before the node so add 1 to it\n const pos = result[0].pos + 1;\n return navigateToPos(view, pos, animate);\n } else {\n return null;\n }\n}\n","/*\n * xref.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, MarkType } from 'prosemirror-model';\n\nimport { findChildrenByMark } from 'prosemirror-utils';\n\nimport { pandocAutoIdentifier } from './pandoc_id';\nimport { rmdChunkEngineAndLabel } from './rmd';\nimport { kTexFormat } from './raw';\nimport { findChildrenByType } from 'prosemirror-utils';\n\nexport interface XRefServer {\n indexForFile: (file: string) => Promise;\n xrefForId: (file: string, id: string) => Promise;\n quartoIndexForFile: (file: string) => Promise;\n quartoXrefForId: (file: string, id: string) => Promise;\n}\n\nexport interface XRefs {\n baseDir: string;\n refs: XRef[];\n}\n\nexport interface XRef {\n file: string;\n type: string;\n id: string;\n suffix: string;\n title?: string;\n}\n\nexport type XRefType = \"quarto\" | \"bookdown\";\n\nexport function xrefKey(xref: XRef, xrefType?: XRefType) {\n if (xrefType === \"quarto\") {\n // Quarto keys are merely type-id\n if (xref.suffix) {\n return `${xref.type}-${xref.id}${xref.suffix}`;\n } else {\n return `${xref.type}-${xref.id}`;\n }\n } else {\n // headings don't include their type in the key\n const key = /^h\\d$/.test(xref.type)\n ? xref.id\n : // no colon if there is no type\n xref.type.length > 0\n ? `${xref.type}:${xref.id}`\n : xref.id;\n\n // return key with suffix\n return key + xref.suffix;\n }\n}\n\nexport function parseQuartoXRef(xref: string) {\n const dashPos = xref.indexOf('-');\n if (dashPos !== -1) {\n return {\n type: xref.substring(0, dashPos),\n id: xref.substring(dashPos + 1),\n };\n } else {\n return null;\n }\n}\n\nexport function xrefPosition(doc: ProsemirrorNode, xref: string, xrefType: XRefType): number {\n\n if (xrefType === 'quarto') {\n return xrefPositionLocate(doc, xref, quartoXrefPositionLocators);\n } else {\n return xrefPositionLocate(doc, xref, bookdownXrefPositionLocators);\n }\n}\n\nfunction xrefPositionLocate(doc: ProsemirrorNode, xref: string, locators: Record) {\n // -1 if not found\n let xrefPos = -1;\n\n // get type and id\n const xrefInfo = parseBookdownXRef(xref);\n if (xrefInfo) {\n const { type, id } = xrefInfo;\n const locator = locators[type];\n if (locator) {\n // if this locator finds by mark then look at doc for marks\n if (locator.markType) {\n const schema = doc.type.schema;\n const markType = schema.marks[locator.markType];\n const markedNodes = findChildrenByMark(doc, markType, true);\n markedNodes.forEach(markedNode => {\n // bail if we already found it\n if (xrefPos !== -1) {\n return false;\n }\n // see if we can locate the xref\n if (locator.hasXRef(markedNode.node, id, markType)) {\n xrefPos = markedNode.pos;\n }\n });\n }\n if (xrefPos === -1 && locator.nodeTypes) {\n // otherwise recursively examine nodes to find the xref\n doc.descendants((node, pos) => {\n // bail if we already found it\n if (xrefPos !== -1) {\n return false;\n }\n // see if we can locate the xref\n if (locator.nodeTypes!.includes(node.type.name) && locator.hasXRef(node, id)) {\n xrefPos = pos;\n return false;\n }\n });\n }\n }\n }\n\n // return the position\n return xrefPos;\n}\n\nfunction parseBookdownXRef(xref: string) {\n const colonPos = xref.indexOf(':');\n if (colonPos !== -1) {\n return {\n type: xref.substring(0, colonPos),\n id: xref.substring(colonPos + 1),\n };\n } else {\n return null;\n }\n}\n\ninterface XRefPositionLocator {\n markType?: string;\n nodeTypes?: string[];\n hasXRef: (node: ProsemirrorNode, id: string, markType?: MarkType) => boolean;\n}\n\nconst quartoXrefPositionLocators: { [key: string]: XRefPositionLocator } = {\n sec: quartoHeadingLocator(),\n fig: quartoFigureLocator(),\n tbl: quartoTableLocator(),\n eq: quartoMathLocator(),\n lst: quartoListingLocator(),\n thm: quartoDivLocator(\"thm\"),\n lem: quartoDivLocator(\"lem\"),\n cor: quartoDivLocator(\"cor\"),\n prp: quartoDivLocator(\"prp\"),\n cnj: quartoDivLocator(\"cnj\"),\n def: quartoDivLocator(\"def\"),\n exm: quartoDivLocator(\"exm\"),\n exr: quartoDivLocator(\"exr\"),\n};\n\n\nfunction quartoMathLocator() {\n return {\n nodeTypes: ['paragraph'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n const mathType = node.type.schema.marks.math;\n let prevNodeMath = false;\n for (let i = 0; i < node.childCount; i++) {\n const childNode = node.child(i);\n if (prevNodeMath) {\n const text = childNode.textContent;\n if (!!text.match(/^\\s*\\{\\#eq\\-.*\\}/)) {\n return true;\n }\n }\n prevNodeMath = !!childNode.marks.find(\n mark => mark.type === mathType && mark.attrs.type === \"DisplayMath\"\n );\n }\n return false;\n },\n };\n}\n\nfunction quartoFigureLocator() {\n return {\n nodeTypes: ['figure'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n return node.attrs.id === `fig-${id}`;\n },\n };\n}\n\nfunction quartoHeadingLocator() {\n return {\n nodeTypes: ['heading'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n return node.attrs.id === `sec-${id}`;\n },\n };\n}\n\nfunction quartoTableLocator() {\n return {\n nodeTypes: ['table_container'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n // Look for a table which has a table caption that contains the id\n const captions = findChildrenByType(node, node.type.schema.nodes.table_caption);\n if (captions.length) {\n return !!captions[0].node.textContent.match(/\\{\\#tbl\\-.*\\}/);\n }\n return false;\n },\n };\n}\n\nfunction quartoDivLocator(type: string) {\n return {\n nodeTypes: ['div'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n return node.attrs.id === `${type}-${id}`;\n },\n };\n}\n\nfunction quartoListingLocator() {\n return {\n nodeTypes: ['code_block'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n const attrs = node.attrs;\n return attrs.id === `lst-${id}`;\n },\n };\n}\n\nconst bookdownXrefPositionLocators: { [key: string]: XRefPositionLocator } = {\n h1: headingLocator(),\n h2: headingLocator(),\n h3: headingLocator(),\n h4: headingLocator(),\n h5: headingLocator(),\n h6: headingLocator(),\n fig: {\n nodeTypes: ['rmd_chunk'],\n hasXRef: (node: ProsemirrorNode, id: string) => rmdChunkHasXRef(node, 'r', id, /^\\{.*[ ,].*fig\\.cap\\s*=.*\\}\\s*\\n/m),\n },\n tab: {\n nodeTypes: ['rmd_chunk', 'table_container'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n if (node.type.name === 'rmd_chunk') {\n return rmdChunkHasXRef(node, 'r', id, /kable\\s*\\([\\s\\S]*caption/);\n } else if (node.type.name === 'table_container') {\n const caption = node.child(1);\n const match = caption.textContent.match(/^\\s*\\(#tab\\:([a-zA-Z0-9\\/-]+)\\)\\s*(.*)$/);\n return !!match && match[1].localeCompare(id, undefined, { sensitivity: 'accent' }) === 0;\n } else {\n return false;\n }\n },\n },\n eq: {\n nodeTypes: ['raw_block'],\n markType: 'math',\n hasXRef: (node: ProsemirrorNode, id: string, markType?: MarkType) => {\n // if it's not a mark then ensure it is tex format before proceeding\n if (!markType && (node.attrs.format !== kTexFormat)) {\n return false;\n }\n const match = node.textContent.match(/^.*\\(\\\\#eq:([a-zA-Z0-9\\/-]+)\\).*$/m);\n return !!match && match[1].localeCompare(id, undefined, { sensitivity: 'accent' }) === 0;\n },\n },\n thm: thereomLocator('theorem'),\n lem: thereomLocator('lemma'),\n cor: thereomLocator('corollary'),\n prp: thereomLocator('proposition'),\n cnj: thereomLocator('conjecture'),\n def: thereomLocator('definition'),\n exr: thereomLocator('exercise'),\n};\n\nfunction rmdChunkHasXRef(node: ProsemirrorNode, engine: string, label: string, pattern?: RegExp) {\n const chunk = rmdChunkEngineAndLabel(node.textContent);\n const match = node.textContent.match(/^\\{([a-zA-Z0-9_]+)[\\s,]+([a-zA-Z0-9/-]+)/);\n if (chunk) {\n return (\n chunk.engine.localeCompare(engine, undefined, { sensitivity: 'accent' }) === 0 &&\n chunk.label === label &&\n (!pattern || !!node.textContent.match(pattern))\n );\n } else {\n return false;\n }\n}\n\nfunction headingLocator() {\n return {\n nodeTypes: ['heading'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n // note we use default pandoc auto id semantics here no matter what the documnet\n // happens to use b/c our xref indexing code also does this (so only ids generated\n // using the 'standard' rules will be in the index)\n return node.attrs.id === id || pandocAutoIdentifier(node.textContent, false) === id;\n },\n };\n}\n\nfunction thereomLocator(engine: string) {\n return {\n nodeTypes: ['rmd_chunk'],\n hasXRef: (node: ProsemirrorNode, id: string) => {\n // look for conventional engine/label\n if (rmdChunkHasXRef(node, engine, id)) {\n return true;\n } else {\n // look for explicit label= syntax\n const match = node.textContent.match(/^\\{([a-zA-Z0-9_]+)[\\s,]+label\\s*=\\s*['\"]([^\"']+)['\"].*\\}/);\n return !!match && match[1].localeCompare(engine, undefined, { sensitivity: 'accent' }) === 0 && match[2] === id;\n }\n },\n };\n}\n","/*\n * pandoc_id.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n// emulate pandoc behavior (https://pandoc.org/MANUAL.html#headings-and-sections)\nexport function pandocAutoIdentifier(text: string, asciify: boolean) {\n if (asciify) {\n text = pandocAsciify(text);\n }\n\n return (\n text\n // Remove all non-alphanumeric characters, except underscores, hyphens, and periods.\n .replace(/[!\"#$%&')*+,\\/:;<=>?@\\[\\\\\\]^`{|}~]/g, '') // filterPunct\n\n // Replace all spaces with hyphens\n .replace(/\\s/g, '-')\n\n // Convert all alphabetic characters to lowercase\n .toLowerCase()\n\n // Remove everything up to the first letter\n .replace(/^[^A-Za-z]+/, '')\n );\n}\n\n// emulate github behavior (note that unemoji should be done prior to calling this)\n// https://pandoc.org/MANUAL.html#extension-gfm_auto_identifiers\n// https://github.com/jgm/pandoc/blob/83880b0dbc318703babfbb6905b1046fa48f1216/src/Text/Pandoc/Shared.hs#L539\nexport function gfmAutoIdentifier(text: string, asciify: boolean) {\n if (asciify) {\n text = pandocAsciify(text);\n }\n\n return text\n .replace(/[!\"#$%&')*+,\\.\\/:;<=>?@\\[\\\\\\]^`{|}~]/g, '') // filterPunct (all but underscore and hyphen)\n .replace(/\\s/g, '-') // spaceToDash\n .toLowerCase(); // toLower\n}\n\n// https://github.com/jgm/pandoc/blob/a5fa55969f1b4afc0ca3e38be50b69c65d43a460/src/Text/Pandoc/Asciify.hs\nexport function pandocAsciify(text: string) {\n const chars: number[] = [];\n const len = text.length;\n let newch;\n for (let i = 0; i < len; i++) {\n newch = '';\n const ch = text.charCodeAt(i);\n switch (ch) {\n case 192:\n case 193:\n case 194:\n case 195:\n case 196:\n case 197:\n case 256:\n case 258:\n case 260:\n case 461:\n case 512:\n case 514:\n case 550:\n case 7680:\n case 7840:\n case 7842:\n newch = 'A';\n break;\n\n case 7682:\n case 7684:\n case 7686:\n newch = 'B';\n break;\n\n case 199:\n case 262:\n case 264:\n case 266:\n case 268:\n newch = 'C';\n break;\n\n case 270:\n case 7690:\n case 7692:\n case 7694:\n case 7696:\n case 7698:\n newch = 'D';\n break;\n\n case 200:\n case 201:\n case 203:\n case 274:\n case 276:\n case 278:\n case 280:\n case 282:\n case 516:\n case 518:\n case 552:\n case 7704:\n case 7706:\n case 7864:\n case 7866:\n case 7868:\n newch = 'E';\n break;\n\n case 7710:\n newch = 'F';\n break;\n\n case 284:\n case 286:\n case 288:\n case 290:\n case 486:\n case 500:\n case 7712:\n newch = 'G';\n break;\n\n case 292:\n case 542:\n case 7714:\n case 7716:\n case 7718:\n case 7720:\n case 7722:\n newch = 'H';\n break;\n\n case 204:\n case 205:\n case 206:\n case 207:\n case 296:\n case 298:\n case 300:\n case 302:\n case 304:\n case 463:\n case 520:\n case 522:\n case 7724:\n case 7880:\n case 7882:\n newch = 'I';\n break;\n\n case 308:\n newch = 'J';\n break;\n\n case 310:\n case 488:\n case 7728:\n case 7730:\n case 7732:\n case 8490:\n newch = 'K';\n break;\n\n case 313:\n case 315:\n case 317:\n case 7734:\n case 7738:\n case 7740:\n newch = 'L';\n break;\n\n case 7742:\n case 7744:\n case 7746:\n newch = 'M';\n break;\n\n case 209:\n case 323:\n case 325:\n case 327:\n case 504:\n case 7748:\n case 7750:\n case 7752:\n case 7754:\n newch = 'N';\n break;\n\n case 210:\n case 211:\n case 212:\n case 213:\n case 214:\n case 332:\n case 334:\n case 336:\n case 416:\n case 465:\n case 490:\n case 524:\n case 526:\n case 558:\n case 7884:\n case 7886:\n newch = 'O';\n break;\n\n case 7764:\n case 7766:\n newch = 'P';\n break;\n\n case 340:\n case 342:\n case 344:\n case 528:\n case 530:\n case 7768:\n case 7770:\n case 7774:\n newch = 'R';\n break;\n\n case 346:\n case 348:\n case 350:\n case 352:\n case 536:\n case 7776:\n case 7778:\n newch = 'S';\n break;\n\n case 354:\n case 356:\n case 538:\n case 7786:\n case 7788:\n case 7790:\n case 7792:\n newch = 'T';\n break;\n\n case 217:\n case 218:\n case 219:\n case 220:\n case 360:\n case 362:\n case 364:\n case 366:\n case 368:\n case 370:\n case 431:\n case 467:\n case 532:\n case 534:\n case 7794:\n case 7796:\n case 7798:\n case 7908:\n case 7910:\n newch = 'U';\n break;\n\n case 7804:\n case 7806:\n newch = 'V';\n break;\n\n case 372:\n case 7808:\n case 7810:\n case 7812:\n case 7814:\n case 7816:\n newch = 'W';\n break;\n\n case 7818:\n case 7820:\n newch = 'X';\n break;\n\n case 221:\n case 374:\n case 376:\n case 562:\n case 7822:\n case 7922:\n case 7924:\n case 7926:\n case 7928:\n newch = 'Y';\n break;\n\n case 377:\n case 379:\n case 381:\n case 7824:\n case 7826:\n case 7828:\n newch = 'Z';\n break;\n\n case 224:\n case 225:\n case 226:\n case 227:\n case 228:\n case 229:\n case 257:\n case 259:\n case 261:\n case 462:\n case 513:\n case 515:\n case 551:\n case 553:\n case 7681:\n case 7841:\n case 7843:\n newch = 'a';\n break;\n\n case 7683:\n case 7685:\n case 7687:\n newch = 'b';\n break;\n\n case 231:\n case 263:\n case 265:\n case 267:\n case 269:\n newch = 'c';\n break;\n\n case 271:\n case 7691:\n case 7693:\n case 7695:\n case 7697:\n case 7699:\n newch = 'd';\n break;\n\n case 232:\n case 233:\n case 234:\n case 235:\n case 275:\n case 277:\n case 279:\n case 281:\n case 283:\n case 517:\n case 519:\n case 7705:\n case 7707:\n case 7865:\n case 7867:\n case 7869:\n newch = 'e';\n break;\n\n case 7711:\n newch = 'f';\n break;\n\n case 285:\n case 287:\n case 289:\n case 291:\n case 487:\n case 501:\n case 7713:\n newch = 'g';\n break;\n\n case 293:\n case 543:\n case 7715:\n case 7717:\n case 7719:\n case 7721:\n case 7723:\n case 7830:\n newch = 'h';\n break;\n\n case 236:\n case 237:\n case 238:\n case 239:\n case 297:\n case 299:\n case 301:\n case 303:\n case 305:\n case 464:\n case 521:\n case 523:\n case 7725:\n case 7881:\n case 7883:\n newch = 'i';\n break;\n\n case 309:\n case 496:\n newch = 'j';\n break;\n\n case 311:\n case 489:\n case 7729:\n case 7731:\n case 7733:\n newch = 'k';\n break;\n\n case 314:\n case 316:\n case 318:\n case 7735:\n case 7739:\n case 7741:\n newch = 'l';\n break;\n\n case 7743:\n case 7745:\n case 7747:\n newch = 'm';\n break;\n\n case 241:\n case 324:\n case 326:\n case 328:\n case 505:\n case 7749:\n case 7751:\n case 7753:\n case 7755:\n newch = 'n';\n break;\n\n case 242:\n case 243:\n case 244:\n case 245:\n case 246:\n case 333:\n case 335:\n case 337:\n case 417:\n case 432:\n case 466:\n case 491:\n case 525:\n case 527:\n case 559:\n case 7885:\n case 7887:\n newch = 'o';\n break;\n\n case 7765:\n case 7767:\n newch = 'p';\n break;\n\n case 341:\n case 343:\n case 345:\n case 529:\n case 531:\n case 7769:\n case 7771:\n case 7775:\n newch = 'r';\n break;\n\n case 347:\n case 349:\n case 351:\n case 353:\n case 537:\n case 7777:\n case 7779:\n newch = 's';\n break;\n\n case 355:\n case 357:\n case 539:\n case 7787:\n case 7789:\n case 7791:\n case 7793:\n case 7831:\n newch = 't';\n break;\n\n case 249:\n case 250:\n case 251:\n case 252:\n case 361:\n case 363:\n case 365:\n case 367:\n case 369:\n case 371:\n case 468:\n case 533:\n case 535:\n case 7795:\n case 7797:\n case 7799:\n case 7909:\n case 7911:\n newch = 'u';\n break;\n\n case 7805:\n case 7807:\n newch = 'v';\n break;\n\n case 373:\n case 7809:\n case 7811:\n case 7813:\n case 7815:\n case 7817:\n case 7832:\n newch = 'w';\n break;\n\n case 7819:\n case 7821:\n newch = 'x';\n break;\n\n case 253:\n case 255:\n case 375:\n case 563:\n case 7833:\n case 7923:\n case 7925:\n case 7927:\n case 7929:\n newch = 'y';\n break;\n\n case 378:\n case 380:\n case 382:\n case 7825:\n case 7827:\n case 7829:\n newch = 'z';\n break;\n\n case 894:\n newch = ';';\n break;\n\n case 8175:\n newch = '`';\n break;\n\n case 8800:\n newch = '=';\n break;\n\n case 8814:\n newch = '<';\n break;\n\n case 8815:\n newch = '>';\n break;\n }\n if (newch) {\n chars.push(newch.charCodeAt(0));\n } else if (ch < 128) {\n chars.push(ch);\n }\n }\n\n // return string\n return String.fromCharCode(...chars);\n}\n","/*\n * raw.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { Schema } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { findParentNodeOfType, setTextSelection } from 'prosemirror-utils';\n\nimport { EditorUI } from './ui';\nimport { setBlockType } from 'prosemirror-commands';\n\nexport const kTexFormat = 'tex';\nexport const kHTMLFormat = 'html';\nexport const kHTML4Format = 'html4';\nexport const kHTML5Format = 'html5';\n\nexport function isRawHTMLFormat(format: string) {\n return [kHTMLFormat, kHTML4Format, kHTML5Format].includes(format);\n}\n\nexport function editRawBlockCommand(ui: EditorUI, outputFormats: string[]) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n // enable if we are either inside a raw block or we can insert a raw block\n const rawBlock = findParentNodeOfType(schema.nodes.raw_block)(state.selection);\n\n if (!rawBlock && !setBlockType(schema.nodes.raw_block, { format: 'html' })(state)) {\n return false;\n }\n\n async function asyncEditRawBlock() {\n if (dispatch) {\n // get existing attributes (if any)\n const raw = {\n format: '',\n content: '',\n };\n if (rawBlock) {\n raw.format = rawBlock.node.attrs.format;\n }\n\n // show dialog\n const result = await ui.dialogs.editRawBlock(raw, outputFormats);\n if (result) {\n const tr = state.tr;\n\n // remove means convert the block to text\n if (rawBlock) {\n const range = { from: rawBlock.pos, to: rawBlock.pos + rawBlock.node.nodeSize };\n if (result.action === 'remove') {\n tr.setBlockType(range.from, range.to, schema.nodes.paragraph);\n } else if (result.action === 'edit') {\n tr.setNodeMarkup(range.from, rawBlock.node.type, { format: result.raw.format });\n setTextSelection(tr.selection.from - 1, -1)(tr);\n }\n } else {\n insertRawNode(tr, result.raw.format);\n }\n\n dispatch(tr);\n }\n }\n\n if (view) {\n view.focus();\n }\n }\n asyncEditRawBlock();\n\n return true;\n };\n}\n\n// function to create a raw node\nfunction createRawNode(schema: Schema, format: string) {\n return schema.nodes.raw_block.create({ format })!;\n}\n\n// function to create and insert a raw node, then set selection inside of it\nfunction insertRawNode(tr: Transaction, format: string) {\n const schema = tr.doc.type.schema;\n const prevSel = tr.selection;\n tr.replaceSelectionWith(createRawNode(schema, format), false);\n setTextSelection(tr.mapping.map(prevSel.from), -1)(tr);\n}\n","/*\n * image.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { kPixelUnit, kPercentUnit } from './css';\n\nconst kDpi = 96;\n\n// https://github.com/jgm/pandoc/blob/master/src/Text/Pandoc/ImageSize.hs\nexport const kValidUnits = [kPixelUnit, 'in', 'cm', 'mm', kPercentUnit];\n\nexport enum ImageType {\n Image,\n Figure,\n}\n\nexport interface ImageDimensions {\n naturalWidth: number | null;\n naturalHeight: number | null;\n containerWidth: number;\n}\n\nexport function isValidImageSizeUnit(unit: string) {\n return kValidUnits.includes(unit);\n}\n\nexport function imageSizePropWithUnit(prop: string | null) {\n if (prop) {\n const match = prop.match(/(^\\d*\\.?\\d*)(.*)$/);\n if (match) {\n return {\n size: parseFloat(match[1]),\n unit: match[2],\n };\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\nexport function isNaturalAspectRatio(width: number, height: number, dims: ImageDimensions, defaultValue: boolean) {\n if (dims.naturalWidth && dims.naturalHeight) {\n const diff = Math.abs(width / height - dims.naturalWidth / dims.naturalHeight);\n return diff <= 0.01 * (width / height);\n } else {\n // no naturalWidth or naturalHeight, return default\n return defaultValue;\n }\n}\n\nexport function unitToPixels(value: number, unit: string, containerWidth: number) {\n let pixels;\n switch (unit) {\n case 'in':\n pixels = value * kDpi;\n break;\n case 'mm':\n pixels = value * (kDpi / 25.4);\n break;\n case 'cm':\n pixels = value * (kDpi / 2.54);\n break;\n case kPercentUnit:\n pixels = (value / 100) * ensureContainerWidth(containerWidth);\n break;\n case kPixelUnit:\n default:\n pixels = value;\n break;\n }\n return Math.round(pixels);\n}\n\nexport function pixelsToUnit(pixels: number, unit: string, containerWidth: number) {\n switch (unit) {\n case 'in':\n return pixels / kDpi;\n case 'mm':\n return (pixels / kDpi) * 25.4;\n case 'cm':\n return (pixels / kDpi) * 2.54;\n case kPercentUnit:\n return (pixels / ensureContainerWidth(containerWidth)) * 100;\n case kPixelUnit:\n default:\n return pixels;\n }\n}\n\nexport function roundUnit(value: number, unit: string) {\n switch (unit) {\n case 'in':\n return value.toFixed(2);\n case 'cm':\n return value.toFixed(1);\n default:\n return Math.round(value).toString();\n }\n}\n\n// sometime when we are called before the DOM renders the containerWidth\n// is 0, in this case provide a default of 1000\nexport function ensureContainerWidth(containerWidth: number) {\n return containerWidth || 1000;\n}\n","/*\n * extension.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction } from 'prosemirror-state';\n\nexport enum FixupContext {\n Load,\n Save,\n Resize,\n}\n\nexport type FixupFn = (tr: Transaction, fixupContext: FixupContext) => Transaction;\n","/*\n * css.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { kWidthAttrib, kHeightAttrib, kStyleAttrib } from './pandoc_attr';\n\nexport const kPercentUnit = '%';\nexport const kPixelUnit = 'px';\nexport function removeStyleAttrib(style: string, attrib: string, handler?: (attrib: string, value: string) => void) {\n const pattern = '(' + attrib + ')\\\\:\\\\s*([^;]+);?';\n const regex = new RegExp(pattern, 'g');\n return style.replace(regex, (_match, p1, p2) => {\n if (handler) {\n handler(p1, p2);\n }\n return '';\n });\n}\n\nexport function extractSizeStyles(keyvalues: Array<[string, string]> | undefined) {\n if (!keyvalues) {\n return keyvalues;\n }\n\n let newKeyvalues = keyvalues;\n\n const getValue = (key: string) => {\n const pair = newKeyvalues.find(keyvalue => keyvalue[0] === key);\n return pair ? pair[1] : null;\n };\n\n const setValue = (key: string, value: string | null) => {\n newKeyvalues = newKeyvalues.filter(keyvalue => keyvalue[0] !== key);\n if (value) {\n newKeyvalues.push([key, value]);\n }\n };\n\n let width = getValue(kWidthAttrib);\n let height = getValue(kHeightAttrib);\n let style = getValue(kStyleAttrib);\n\n if (style) {\n style = removeStyleAttrib(style, kWidthAttrib, (_attrib, value) => {\n if (!width) {\n width = value;\n }\n });\n style = removeStyleAttrib(style, kHeightAttrib, (_attrib, value) => {\n if (!height) {\n height = value;\n }\n });\n\n // remove leading ; from style\n style = style.replace(/^\\s*;+\\s*/, '').trimLeft();\n }\n\n setValue(kWidthAttrib, width);\n setValue(kHeightAttrib, height);\n setValue(kStyleAttrib, style);\n\n return newKeyvalues;\n}\n\nexport function applyStyles(el: HTMLElement, classes?: string[], style?: { [key: string]: string }) {\n if (classes) {\n if (classes) {\n classes.forEach(clz => el.classList.add(clz));\n }\n }\n if (style) {\n Object.keys(style).forEach(name => {\n el.style.setProperty(name, style[name]);\n });\n }\n}\n\nexport function replaceClassWithStyle(el: HTMLElement, className: string, style: { [key: string]: string }) {\n if (el.classList.contains(className)) {\n el.classList.remove(className);\n if (el.classList.length === 0) {\n el.removeAttribute('class');\n }\n\n Object.keys(style).forEach(name => {\n el.style.setProperty(name, style[name]);\n });\n }\n const children: any = el.children;\n for (const child of children) {\n replaceClassWithStyle(child, className, style);\n }\n}\n","/*\n * diff.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { diff_match_patch, DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT } from 'diff-match-patch';\n\nexport enum EditorChangeType {\n Insert = 1,\n Equal = 0,\n Delete = -1,\n}\n\nexport interface EditorChange {\n type: EditorChangeType;\n value: string;\n}\n\nexport function diffChars(from: string, to: string, timeout: number): EditorChange[] {\n const dmp = new diff_match_patch();\n dmp.Diff_Timeout = timeout;\n const diff = dmp.diff_main(from, to);\n dmp.diff_cleanupSemantic(diff);\n return diff.map(d => {\n let type: EditorChangeType;\n switch (d[0]) {\n case DIFF_INSERT:\n type = EditorChangeType.Insert;\n break;\n case DIFF_EQUAL:\n type = EditorChangeType.Equal;\n break;\n case DIFF_DELETE:\n type = EditorChangeType.Delete;\n break;\n default:\n throw new Error('Unexpected diff type: ' + d[0]);\n }\n return {\n type,\n value: d[1],\n };\n });\n}\n","/*\n * input_rule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { Schema, MarkType, NodeType, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { InputRule, wrappingInputRule } from 'prosemirror-inputrules';\n\nimport { PandocMark, markIsActive } from './mark';\n\nexport function markInputRule(\n regexp: RegExp,\n markType: MarkType,\n filter: MarkInputRuleFilter,\n getAttrs?: ((match: string[]) => object) | object,\n) {\n return new InputRule(regexp, (state: EditorState, match: string[], start: number, end: number) => {\n if (!filter(state, start, end)) {\n return null;\n }\n\n // remove any leading delimter (modulo spaces)\n const textIndex = match[0].indexOf(match[1]);\n const prefix = match[0].substring(0, textIndex).replace(/^\\s/, \"\");\n const delimStart = start + textIndex - prefix.length;\n const tr = state.tr;\n tr.delete(delimStart, delimStart + prefix.length);\n\n // create mark\n const attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs;\n const mark = markType.create(attrs);\n\n // apply it to the matching core text\n const markStart = start + textIndex - prefix.length;\n tr.addMark(markStart, markStart + match[1].length, mark);\n tr.removeStoredMark(mark); // Do not continue with mark.\n return tr;\n });\n}\n\nexport function delimiterMarkInputRule(\n delim: string,\n markType: MarkType,\n filter: MarkInputRuleFilter,\n prefixMask?: string,\n noEnclosingWhitespace?: boolean,\n) {\n // create distinct patterns depending on whether we allow enclosing whitespace\n const contentPattern = noEnclosingWhitespace\n ? `[^\\\\s${delim}][^${delim}]+[^\\\\s${delim}]|[^\\\\s${delim}]{1,2}`\n : `[^${delim}]+`;\n\n // if there is no prefix mask then this is simple regex we can pass to markInputRule\n if (!prefixMask) {\n const regexp = `(?:${delim})(${contentPattern})(?:${delim})$`;\n return markInputRule(new RegExp(regexp), markType, filter);\n\n // otherwise we need custom logic to get mark placement/eliding right\n } else {\n // build regex\n const regexp = `(^|[^${prefixMask}])(?:${delim})(${contentPattern})(?:${delim})$`;\n\n // return rule\n return new InputRule(new RegExp(regexp), (state: EditorState, match: string[], start: number, end: number) => {\n if (!filter(state, start, end)) {\n return null;\n }\n\n // init transaction\n const tr = state.tr;\n\n // compute offset for mask (should be zero if this was the beginning of a line,\n // in all other cases it would be the length of the any mask found).\n const maskOffset = match[1].length;\n\n // position of text to be formatted\n const textStart = start + match[0].indexOf(match[2]);\n const textEnd = textStart + match[2].length;\n\n // remove trailing markdown\n tr.delete(textEnd, end);\n\n // update start/end to reflect the leading mask which we want to leave alone\n start = start + maskOffset;\n end = start + match[2].length;\n\n // remove leading markdown\n tr.delete(start, textStart);\n\n // add mark\n const mark = markType.create();\n tr.addMark(start, end, mark);\n\n // remove stored mark so typing continues w/o the mark\n tr.removeStoredMark(mark);\n\n // return transaction\n return tr;\n });\n }\n}\n\nexport type MarkInputRuleFilter = (context: EditorState | Transaction, from?: number, to?: number) => boolean;\n\nexport function markInputRuleFilter(schema: Schema, marks: readonly PandocMark[]): MarkInputRuleFilter {\n const maskedMarkTypes = marksWithNoInputRules(schema, marks);\n\n return (context: EditorState | Transaction, from?: number, to?: number) => {\n if (from !== undefined && to !== undefined && from !== to) {\n const marksInRange: MarkType[] = [];\n context.doc.nodesBetween(from, to, node => {\n node.marks.forEach(mark => marksInRange.push(mark.type));\n });\n return !marksInRange.some(markType => maskedMarkTypes.includes(markType));\n }\n if (from === undefined) {\n for (const markType of maskedMarkTypes) {\n if (markIsActive(context, markType)) {\n return false;\n }\n }\n }\n return true;\n };\n}\n\nexport function conditionalWrappingInputRule(\n regexp: RegExp,\n nodeType: NodeType,\n predicate: (state: EditorState) => boolean,\n getAttrs?: { [key: string]: any } | ((p: string[]) => { [key: string]: any } | null | undefined),\n joinPredicate?: (p1: string[], p2: ProsemirrorNode) => boolean,\n): InputRule {\n const wrappingRule: any = wrappingInputRule(regexp, nodeType, getAttrs, joinPredicate);\n return new InputRule(regexp, (state: EditorState, match: string[], start: number, end: number) => {\n if (!predicate(state)) {\n return null;\n }\n return wrappingRule.handler(state, match, start, end);\n });\n}\n\nfunction marksWithNoInputRules(schema: Schema, marks: readonly PandocMark[]): MarkType[] {\n const disabledMarks: MarkType[] = [];\n marks.forEach((mark: PandocMark) => {\n if (mark.noInputRules) {\n disabledMarks.push(schema.marks[mark.name]);\n }\n });\n return disabledMarks;\n}\n","/*\n * wrap.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Transaction } from 'prosemirror-state';\nimport { Transform } from 'prosemirror-transform';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\n\nimport { split } from 'sentence-splitter';\n\nimport { trTransform } from './transaction';\nimport { findChildrenByType, findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';\n\nexport function wrapSentences(tr: Transaction) {\n trTransform(tr, wrapSentencesTransform);\n}\n\nfunction wrapSentencesTransform(tr: Transform) {\n // find all paragraphs in doc\n const schema = tr.doc.type.schema;\n const paragraphs = findChildrenByType(tr.doc, schema.nodes.paragraph);\n\n // insert linebreaks in paragraphs (go backwards to preserve positions)\n paragraphs.reverse().forEach(paragraph => {\n // don't break sentences inside tight list items\n const $pos = tr.doc.resolve(paragraph.pos);\n const parent = $pos.node($pos.depth);\n if (parent.type === schema.nodes.list_item && $pos.node($pos.depth - 1).attrs.tight) {\n return;\n }\n\n // don't break sentences inside tables\n if (schema.nodes.table && findParentNodeOfTypeClosestToPos($pos, schema.nodes.table)) {\n return;\n }\n\n // extract text (use \\n for hard_break)\n // based on https://github.com/ProseMirror/prosemirror-model/blob/eef20c8c6dbf841b1d70859df5d59c21b5108a4f/src/fragment.js#L46\n // (but do no handling for leafs b/c we don't have any in our schema and nothing for blocks\n // b/c this is a paragraph so won't have nested blocks. We use our own implementation so that\n // we can correctly count node types that imply text but don't actually have any text\n // (e.g. hard_break)\n \n let textContent = \"\";\n const paraContent = paragraph.node.content;\n const from = 0;\n const to = paraContent.size;\n paraContent.nodesBetween(from, to, (node: ProsemirrorNode, pos: number) => {\n if (node.isText) {\n textContent += node.text!.slice(Math.max(from, pos) - pos, to - pos);\n } else if (node.type.name === \"hard_break\") {\n textContent += \"\\n\";\n }\n }, 0);\n\n // don't break bookdown text references\n if (/^\\(ref\\:[^\\s]+\\)\\s+[^\\s]/.test(textContent)) {\n return;\n }\n\n // break sentences in text\n const parts = split(textContent);\n parts\n .reverse()\n .filter(part => part.type === 'Sentence')\n .forEach(sentence => {\n // don't break sentence if at least one mark is active\n if (tr.doc.resolve(paragraph.pos + sentence.range[1] + 1).marks().length === 0) {\n const hardBreak = schema.text('\\n');\n const hardBreakPos = paragraph.pos + sentence.range[1] + 2;\n tr.insert(hardBreakPos, hardBreak);\n }\n });\n });\n}\n","/*\n * yaml_metadata-title.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey, Transaction, EditorState } from 'prosemirror-state';\n\nimport { transactionsAreTypingChange, transactionsHaveChange } from '../../api/transaction';\nimport {\n isYamlMetadataNode,\n yamlMetadataNodes,\n kYamlMetadataTitleRegex,\n titleFromState,\n} from '../../api/yaml';\n\nconst plugin = new PluginKey('yaml-metadata-title');\n\nexport function yamlMetadataTitlePlugin() {\n return new Plugin({\n key: plugin,\n state: {\n init(_config, state: EditorState) {\n return titleFromState(state);\n },\n\n apply(tr: Transaction, title: string, oldState: EditorState, newState: EditorState) {\n const transactions = [tr];\n\n // doc didn't change, return existing title\n if (!tr.docChanged) {\n return title;\n\n // non-typing change, do a full rescan\n } else if (!transactionsAreTypingChange(transactions)) {\n return titleFromState(newState);\n\n // change that affects a yaml metadata block, do a full rescan\n } else if (transactionsHaveChange(transactions, oldState, newState, isYamlMetadataNode)) {\n return titleFromState(newState);\n }\n\n // otherwise return the existing title\n else {\n return title;\n }\n },\n },\n });\n}\n\nexport function getTitle(state: EditorState) {\n return plugin.getState(state);\n}\n\nexport function setTitle(state: EditorState, title: string) {\n // alias schema\n const schema = state.schema;\n\n // no-op if yaml_metadata isn't available\n if (!schema.nodes.yaml_metadata) {\n return;\n }\n\n // create transaction\n const tr = state.tr;\n\n // escape quotes in title then build the title line\n const escapedTitle = title.replace(/\"/g, `\\\\\"`);\n const titleLine = `\\ntitle: \"${escapedTitle}\"\\n`;\n\n // attempt to update existing title\n const yamlNodes = yamlMetadataNodes(tr.doc);\n let foundTitle = false;\n for (const yaml of yamlNodes) {\n const titleMatch = yaml.node.textContent.match(kYamlMetadataTitleRegex);\n if (titleMatch) {\n const updatedMetadata = yaml.node.textContent.replace(kYamlMetadataTitleRegex, titleLine);\n const updatedNode = schema.nodes.yaml_metadata.createAndFill({}, schema.text(updatedMetadata));\n tr.replaceRangeWith(yaml.pos, yaml.pos + yaml.node.nodeSize, updatedNode);\n foundTitle = true;\n break;\n }\n }\n\n // if we didn't find a title then inject one at the top\n if (!foundTitle) {\n const yamlText = schema.text(`---${titleLine}---`);\n const yamlNode = schema.nodes.yaml_metadata.create({}, yamlText);\n tr.insert(1, yamlNode);\n }\n\n // return transaction\n return tr;\n}\n\n","/*\n * oultine.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey, EditorState, Transaction } from 'prosemirror-state';\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { NodeWithPos } from 'prosemirror-utils';\n\nimport { Extension } from '../api/extension';\nimport { transactionsHaveChange, kSetMarkdownTransaction } from '../api/transaction';\nimport { findTopLevelBodyNodes } from '../api/node';\nimport { uuidv4 } from '../api/util';\nimport {\n EditorOutlineItem,\n EditorOutlineItemType,\n EditorOutline,\n isOutlineNode,\n getEditingOutlineLocation,\n getDocumentOutline,\n} from '../api/outline';\nimport { navigateToPos } from '../api/navigation';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { rmdChunkEngineAndLabel } from '../api/rmd';\n\nconst kOutlineIdsTransaction = 'OutlineIds';\n\nconst plugin = new PluginKey('outline');\n\nconst extension: Extension = {\n appendTransaction: (schema: Schema) => {\n return [\n {\n name: 'outline',\n filter: hasOutlineIdsTransaction,\n nodeFilter: isOutlineNode,\n append: (tr: Transaction) => {\n const usedIds = new Set();\n const needsOutlineId = (node: ProsemirrorNode) => {\n if (isOutlineNode(node)) {\n if (node.attrs.navigation_id === null) {\n return true;\n } else if (usedIds.has(node.attrs.navigation_id)) {\n return true;\n } else {\n usedIds.add(node.attrs.navigation_id);\n return false;\n }\n } else {\n return false;\n }\n };\n const needsOutlineIdNodes = findTopLevelBodyNodes(tr.doc, needsOutlineId);\n needsOutlineIdNodes.forEach(outlineId => {\n tr.setNodeMarkup(outlineId.pos, outlineId.node.type, {\n ...outlineId.node.attrs,\n navigation_id: uuidv4(),\n });\n tr.setMeta(kOutlineIdsTransaction, true);\n });\n },\n },\n ];\n },\n\n commands: () => {\n return [\n new ProsemirrorCommand(EditorCommandId.GoToNextSection, ['Mod-PageDown'], goToOutlineCommand('next', 'section')),\n new ProsemirrorCommand(EditorCommandId.GoToPreviousSection, ['Mod-PageUp'], goToOutlineCommand('previous', 'section')),\n new ProsemirrorCommand(EditorCommandId.GoToNextChunk, [], goToOutlineCommand('next', 'chunk')),\n new ProsemirrorCommand(EditorCommandId.GoToPreviousChunk, [], goToOutlineCommand('previous', 'chunk')),\n ];\n },\n\n plugins: (schema: Schema) => {\n return [\n new Plugin({\n key: plugin,\n\n // track editor outline as state changes\n state: {\n init: (_config, state: EditorState) => {\n return editorOutline(state);\n },\n apply: (tr: Transaction, value: EditorOutline, oldState: EditorState, newState: EditorState) => {\n if (transactionsAffectOutline([tr], oldState, newState)) {\n return editorOutline(newState);\n } else {\n return value; // don't need to map b/c there are no positions in the data structure\n }\n },\n },\n }),\n ];\n },\n};\n\nexport function goToOutlineCommand(dir: 'next' | 'previous', targetType: 'chunk' | 'section') {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (dispatch && view) {\n let outline = getDocumentOutline(state);\n if (dir === 'previous') {\n outline = outline.reverse();\n }\n const target = outline.find(nodeWithPos => {\n // if we are only targeting chunks, do not navigate to other types, and vice versa\n const isChunk = nodeWithPos.node.type === state.schema.nodes.rmd_chunk;\n if (isChunk !== (targetType === 'chunk')) {\n return false;\n }\n\n if (dir === 'next') {\n return nodeWithPos.pos > state.selection.head;\n } else {\n return nodeWithPos.pos < state.selection.head - 1;\n }\n });\n if (target) {\n navigateToPos(view, target.pos, false);\n }\n }\n return true;\n };\n}\n\nfunction editorOutline(state: EditorState): EditorOutline {\n // get all of the headings (bail if there are none)\n const doc = state.doc;\n const outlineNodes = findTopLevelBodyNodes(doc, isOutlineNode);\n if (!outlineNodes.length) {\n return [];\n }\n\n // create mapping of node type names to their current sequence\n const sequence = new Map();\n\n // function to create an outline item from a node\n const editorOutlineItem = (nodeWithPos: NodeWithPos, defaultLevel: number) => {\n const typename = nodeWithPos.node.type.name;\n\n // build sequence (ordinal of entry within node type)\n let sequenceLast = sequence.get(typename);\n if (sequenceLast === undefined) {\n sequenceLast = 0;\n }\n const sequenceNext = sequenceLast + 1;\n sequence.set(typename, sequenceNext);\n\n const item = {\n navigation_id: nodeWithPos.node.attrs.navigation_id,\n type: nodeWithPos.node.type.name as EditorOutlineItemType,\n level: nodeWithPos.node.attrs.level || defaultLevel,\n title: nodeWithPos.node.type.spec.code ? nodeWithPos.node.type.name : nodeWithPos.node.textContent,\n sequence: sequenceNext,\n children: [],\n };\n \n // if this is an R Markdown chunk, extract the title from the chunk\n if (nodeWithPos.node.type.name === 'rmd_chunk') {\n const chunk = rmdChunkEngineAndLabel(nodeWithPos.node.textContent);\n if (chunk) {\n item.title = chunk.label;\n }\n }\n return item; \n };\n\n // extract the outline\n const rootOutlineItem: EditorOutlineItem = {\n navigation_id: '',\n type: '' as EditorOutlineItemType,\n level: 0,\n sequence: 0,\n title: '',\n children: [],\n };\n const containers: EditorOutlineItem[] = [];\n containers.push(rootOutlineItem);\n const top = () => containers[containers.length - 1];\n outlineNodes.forEach(nodeWithPos => {\n // get outline item from document node\n const outlineItem = editorOutlineItem(nodeWithPos, top().level + 1);\n\n // pop containers until we reach <= our level\n while (outlineItem.level <= top().level) {\n containers.pop();\n }\n\n // add the outline node\n top().children.push(outlineItem);\n\n // make it the the active container if it's a heading\n if (outlineItem.type === 'heading') {\n containers.push(outlineItem);\n }\n });\n\n // return children of root\n return rootOutlineItem.children;\n}\n\nfunction hasOutlineIdsTransaction(transactions: Transaction[]) {\n return transactions.some(tr => tr.getMeta(kOutlineIdsTransaction));\n}\n\nfunction transactionsAffectOutline(transactions: Transaction[], oldState: EditorState, newState: EditorState) {\n return (\n transactions.some(tr => tr.getMeta(kSetMarkdownTransaction)) ||\n hasOutlineIdsTransaction(transactions) ||\n transactionsHaveChange(transactions, oldState, newState, isOutlineNode)\n );\n}\n\nexport function getOutline(state: EditorState): EditorOutline {\n return plugin.getState(state)!;\n}\n\nexport default extension;\n","/*\n * find.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Extension } from '../api/extension';\nimport { Plugin, PluginKey, EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { DecorationSet, Decoration, EditorView } from 'prosemirror-view';\n\nimport { mergedTextNodes } from '../api/text';\nimport { kAddToHistoryTransaction } from '../api/transaction';\nimport { editingRootNode } from '../api/node';\nimport zenscroll from 'zenscroll';\n\nconst key = new PluginKey('find-plugin');\n\nclass FindPlugin extends Plugin {\n private term: string = '';\n private options: FindOptions = {};\n private updating: boolean = false;\n\n // The HTML element containing the last known selected search result\n private resultElement: HTMLElement|null = null;\n\n // A DOM mutation observer that watches for search results to be rendered\n private resultObserver: MutationObserver|null = null;\n\n // The ID for a timer that ensures the resultObserver completes quickly\n private resultObserverTimer: number = 0;\n\n constructor() {\n super({\n key,\n state: {\n init: (_config: { [key: string]: any }, instance: EditorState) => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, oldState: EditorState, newState: EditorState) => {\n if (this.updating) {\n return this.resultDecorations(tr);\n } else {\n return DecorationSet.empty;\n }\n },\n },\n view: () => ({\n update: (view: EditorView, prevState: EditorState) => {\n // Clear any previous search result observer\n this.clearResultObserver();\n\n // If there is a search result selected, navigate to it\n if (this.isResultSelected(view.state)) {\n this.scrollToSelectedResult(view, null);\n }\n },\n }),\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n },\n });\n }\n\n public find(term: string, options: FindOptions) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (dispatch) {\n this.term = !options.regex ? term.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, (escape: string) => {\n return '\\\\u' + ('0000' + escape.charCodeAt(0).toString(16)).slice(-4);\n }) : term;\n this.options = options;\n this.updateResults(state, dispatch);\n }\n return true;\n };\n }\n\n public matchCount(state: EditorState) {\n return key.getState(state)!.find().length;\n }\n\n public selectFirst() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n const decorations: Decoration[] = key.getState(state)!.find(0);\n if (decorations.length === 0) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n this.selectResult(tr, decorations[0]);\n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n\n return true;\n };\n }\n\n public selectCurrent() {\n return this.selectNext(false);\n }\n\n public selectNext(afterSelection = true) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n const selectedText = state.doc.textBetween(state.selection.from, state.selection.to);\n const searchFrom = afterSelection\n ? this.matchesTerm(selectedText)\n ? state.selection.to + 1\n : state.selection.to\n : state.selection.from;\n\n const decorationSet = key.getState(state)!;\n let decorations: Decoration[] = decorationSet.find(searchFrom);\n if (decorations.length === 0) {\n // check for wrapping\n if (this.options.wrap) {\n const searchTo = this.matchesTerm(selectedText) ? state.selection.from - 1 : state.selection.from;\n decorations = decorationSet.find(0, searchTo);\n if (decorations.length === 0) {\n return false;\n }\n // no wrapping\n } else {\n return false;\n }\n }\n\n if (dispatch) {\n const tr = state.tr;\n this.selectResult(tr, decorations[0]);\n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n return true;\n };\n }\n\n public selectPrevious() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // sort out where we are searching up to\n const selectedText = state.doc.textBetween(state.selection.from, state.selection.to);\n const searchTo = this.matchesTerm(selectedText) ? state.selection.from - 1 : state.selection.from;\n\n // get all decorations up to the current selection\n const decorationSet = key.getState(state)!;\n let decorations: Decoration[] = decorationSet.find(0, searchTo);\n if (decorations.length === 0) {\n // handle wrapping\n if (this.options.wrap) {\n const searchFrom = this.matchesTerm(selectedText) ? state.selection.to + 1 : state.selection.to;\n decorations = decorationSet.find(searchFrom);\n if (decorations.length === 0) {\n return false;\n }\n // no wrapping\n } else {\n return false;\n }\n }\n\n // find the one closest to the beginning of the current selection\n if (dispatch) {\n // now we need to find the decoration with the largest from value\n const decoration = decorations.reduce((lastDecoration, nextDecoration) => {\n if (nextDecoration.from > lastDecoration.from) {\n return nextDecoration;\n } else {\n return lastDecoration;\n }\n });\n\n const tr = state.tr;\n this.selectResult(tr, decoration);\n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n return true;\n };\n }\n\n public replace(text: string) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!this.isResultSelected(state)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n const selectionMarks = tr.selection.$from.marksAcross(tr.selection.$to);\n if (text.length > 0) {\n tr.replaceSelectionWith(state.schema.text(text, selectionMarks), false);\n } else {\n tr.deleteSelection();\n }\n \n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n\n return true;\n };\n }\n\n public replaceAll(text: string) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n \n let replaced = 0;\n\n if (!this.hasTerm()) {\n return replaced;\n }\n\n if (dispatch) {\n const tr = state.tr;\n\n const decorationSet = key.getState(state)!;\n\n const decorations: Decoration[] = decorationSet.find(0);\n decorations.forEach(decoration => {\n const from = tr.mapping.map(decoration.from);\n const to = tr.mapping.map(decoration.to);\n tr.insertText(text, from, to);\n replaced += 1;\n });\n this.withResultUpdates(() => {\n dispatch(tr);\n });\n }\n\n return replaced;\n };\n }\n\n public clear() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (dispatch) {\n this.term = '';\n this.options = {};\n this.updateResults(state, dispatch);\n }\n return true;\n };\n }\n\n private updateResults(state: EditorState, dispatch: (tr: Transaction) => void) {\n this.withResultUpdates(() => {\n const tr = state.tr;\n tr.setMeta(kAddToHistoryTransaction, false);\n dispatch(tr);\n });\n }\n\n private resultDecorations(tr: Transaction): DecorationSet {\n // bail if no search term\n if (!this.hasTerm()) {\n return DecorationSet.empty;\n }\n\n // decorations to return\n const decorations: Decoration[] = [];\n\n // merge text nodes\n const textNodes = mergedTextNodes(tr.doc);\n\n textNodes.forEach(textNode => {\n const search = this.findRegEx();\n if (!search) {\n return;\n }\n\n let m;\n // tslint:disable-next-line no-conditional-assignment\n while ((m = search.exec(textNode.text))) {\n if (m[0] === '') {\n break;\n }\n const from = textNode.pos + m.index;\n const to = textNode.pos + m.index + m[0].length;\n const classes = ['pm-find-text'];\n if (from === tr.selection.from && to === tr.selection.to) {\n classes.push('pm-selected-text');\n }\n decorations.push(Decoration.inline(from, to, { class: classes.join(' ') }));\n }\n });\n\n // return as decoration set\n return decorations.length ? DecorationSet.create(tr.doc, decorations) : DecorationSet.empty;\n }\n\n private withResultUpdates(f: () => void) {\n this.updating = true;\n f();\n this.updating = false;\n }\n\n private selectResult(tr: Transaction, decoration: Decoration) {\n const selection = new TextSelection(tr.doc.resolve(decoration.from), tr.doc.resolve(decoration.to));\n return tr.setSelection(selection).scrollIntoView();\n }\n\n private isResultSelected(state: EditorState) {\n if (this.hasTerm()) {\n const selectedText = state.doc.textBetween(state.selection.from, state.selection.to);\n return this.matchesTerm(selectedText);\n } else {\n return false;\n }\n }\n\n /**\n * Watch for a search result to appear in the DOM. When it does, scroll it\n * into view.\n * \n * @param view The current EditorView \n */\n private watchForSelectedResult(view: EditorView) {\n // Clear any previous result observer\n this.clearResultObserver();\n\n // Create a new result observer to watch for results to be rendered\n this.resultObserver = new MutationObserver((records: MutationRecord[], observer: MutationObserver) => {\n let resultElement:HTMLElement|null = null;\n\n // Predicate for testing a node to see if it looks like the active search result\n const isResultNode = (node: Node): boolean => {\n if (node.nodeType !== node.ELEMENT_NODE) {\n return false;\n }\n const ele = node as HTMLElement;\n return ele.classList.contains('pm-find-text') && \n ele.classList.contains('pm-selected-text');\n };\n\n // Examine each mutation record to see if it's the one we're looking for\n records.forEach((mutation) => {\n switch(mutation.type) {\n case 'childList':\n // Case 1: a new search result node was added to the DOM\n mutation.addedNodes.forEach((node) => {\n if (isResultNode(node)) {\n resultElement = node as HTMLElement;\n }\n });\n break;\n case 'attributes':\n // Case 2: an existing node gained a \"class\" attribute and is now an\n // active search result\n if (isResultNode(mutation.target)) {\n resultElement = mutation.target as HTMLElement;\n }\n break;\n }\n });\n\n // If we found a result element, scroll it into view and turn off the DOM\n // observer. (If we didn't find one, it may be an irrelevant DOM mutation,\n // so ignore it.)\n if (resultElement) {\n this.scrollToSelectedResult(view, resultElement);\n this.clearResultObserver();\n }\n });\n\n const editingRoot = editingRootNode(view.state.selection);\n if (editingRoot) {\n const container = view.nodeDOM(editingRoot.pos) as HTMLElement;\n\n // Begin observing the editing surface for DOM mutations\n this.resultObserver.observe(container, {\n subtree: true,\n childList: true,\n attributeFilter: ['class'] // Only interested in changes to the \"class\" attribute\n });\n\n // The search results should appear quickly (we're really just waiting for\n // a render loop). If the observer runs for longer than 1s, just cancel\n // it, as it consumes resources and anything observed is likely to be\n // spurious.\n this.resultObserverTimer = window.setTimeout(() => {\n this.clearResultObserver();\n }, 1000);\n }\n }\n\n /**\n * Cleans all state related to the search result DOM observer\n */\n private clearResultObserver() {\n // Disconnect the result observer if running\n if (this.resultObserver !== null) {\n this.resultObserver.disconnect();\n this.resultObserver = null;\n }\n\n // Remove the result observer timer if running\n if (this.resultObserverTimer !== 0) {\n window.clearTimeout(this.resultObserverTimer);\n this.resultObserverTimer = 0;\n }\n }\n\n /**\n * Scrolls the selected search result into view.\n * \n * @param view The EditorView on which to act\n * @param resultElement The HTML element containing the search result, if known\n */\n private scrollToSelectedResult(view: EditorView, resultElement: HTMLElement|null) {\n const editingRoot = editingRootNode(view.state.selection);\n if (editingRoot) {\n const container = view.nodeDOM(editingRoot.pos) as HTMLElement;\n\n if (resultElement === null) {\n // Attempt to find a result element to scroll to if we weren't given one\n resultElement = container.querySelector(\".pm-find-text.pm-selected-text\");\n }\n\n if (resultElement === null || resultElement === this.resultElement) {\n // If we didn't find a result element, or if we found a stale one\n // (hasn't changed), defer scrolling until it has been rendered. This is\n // most common when the search result is inside an Ace editor chunk,\n // which puts the result in the DOM on a deferred render loop.\n this.watchForSelectedResult(view);\n return;\n } \n\n this.resultElement = resultElement;\n\n // Starting offset for scroll position \n let offset = 100;\n\n // Zenscroll can only scroll to a direct child element of the scroll\n // container, but the element containing the search result may be deeply\n // nested in the container. Walk up the DOM tree, summing the offsets,\n // until we get to an element that's actually a child of the scroll\n // container. \n let scrollElement = resultElement;\n while (scrollElement.offsetParent?.parentElement !== container) {\n offset += scrollElement.offsetTop;\n const nextParent = scrollElement.offsetParent;\n if (nextParent === null) {\n break;\n } \n scrollElement = nextParent as HTMLElement;\n }\n\n // Perform the scroll to the element's container plus its offset inside\n // the container.\n const scroller = zenscroll.createScroller(container);\n scroller.center(scrollElement, 350, offset);\n }\n }\n\n private hasTerm() {\n return this.term.length > 0;\n }\n\n private matchesTerm(text: string) {\n if (this.hasTerm()) {\n const regex = this.findRegEx();\n if (regex) {\n return regex.test(text);\n } else {\n return false;\n }\n } else {\n return false;\n }\n }\n\n private findRegEx() {\n try {\n return new RegExp(this.term, !this.options.caseSensitive ? 'gui' : 'gu');\n } catch {\n return null;\n }\n }\n}\n\nconst extension: Extension = {\n plugins: () => {\n return [new FindPlugin()];\n },\n};\n\nexport interface FindOptions {\n regex?: boolean;\n caseSensitive?: boolean;\n wrap?: boolean;\n}\n\nexport function find(view: EditorView, term: string, options: FindOptions): boolean {\n return findPlugin(view).find(term, options)(view.state, view.dispatch);\n}\n\nexport function matchCount(view: EditorView): number {\n return findPlugin(view).matchCount(view.state);\n}\n\nexport function selectFirst(view: EditorView): boolean {\n return findPlugin(view).selectFirst()(view.state, view.dispatch);\n}\n\nexport function selectCurrent(view: EditorView): boolean {\n return findPlugin(view).selectCurrent()(view.state, view.dispatch);\n}\n\nexport function selectNext(view: EditorView): boolean {\n return findPlugin(view).selectNext()(view.state, view.dispatch);\n}\n\nexport function selectPrevious(view: EditorView): boolean {\n return findPlugin(view).selectPrevious()(view.state, view.dispatch);\n}\n\nexport function replace(view: EditorView, text: string): boolean {\n return findPlugin(view).replace(text)(view.state, view.dispatch);\n}\n\nexport function replaceAll(view: EditorView, text: string) {\n return findPlugin(view).replaceAll(text)(view.state, view.dispatch);\n}\n\nexport function clear(view: EditorView): boolean {\n return findPlugin(view).clear()(view.state, view.dispatch);\n}\n\nexport function findPluginState(state: EditorState): DecorationSet | null | undefined {\n return key.getState(state);\n}\n\nfunction findPlugin(view: EditorView): FindPlugin {\n return key.get(view.state) as FindPlugin;\n}\n\nexport default extension;\n","/*\n * omni_insert.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\nimport { DOMOutputSpecArray, Mark, Fragment } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { PandocOutput } from '../../api/pandoc';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { selectionAllowsCompletions } from '../../api/completion';\nimport { OmniInserter } from '../../api/omni_insert';\nimport { MarkInputRuleFilter } from '../../api/input_rule';\nimport { EditorUI } from '../../api/ui';\n\nimport { omniInsertCompletionHandler } from './omni_insert-completion';\nimport { Extension } from '../../api/extension';\nimport { markIsActive } from '../../api/mark';\n\nexport function markOmniInsert() {\n return {\n marks: [\n {\n name: 'omni_insert',\n spec: {\n inclusive: true,\n noInputRules: true,\n parseDOM: [{ tag: \"span[class*='omni_insert']\" }],\n toDOM(): DOMOutputSpecArray {\n return ['span', { class: 'omni_insert' }];\n },\n },\n pandoc: {\n readers: [],\n writer: {\n priority: 30,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeInlines(parent);\n },\n },\n },\n },\n ],\n };\n}\n\nexport function omniInsertExtension(\n omniInserters: OmniInserter[],\n inputRuleFilter: MarkInputRuleFilter,\n ui: EditorUI,\n): Extension {\n return {\n commands: () => [new OmniInsertCommand(inputRuleFilter)],\n completionHandlers: () => [omniInsertCompletionHandler(omniInserters, ui)],\n };\n}\n\nclass OmniInsertCommand extends ProsemirrorCommand {\n constructor(markFilter: MarkInputRuleFilter) {\n super(\n EditorCommandId.OmniInsert,\n ['Mod-/'],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // check whether selection allows completions\n if (!selectionAllowsCompletions(state.selection)) {\n return false;\n }\n\n // if the marks is already active then bail\n if (markIsActive(state, state.schema.marks.omni_insert)) {\n return false;\n }\n\n // check the mark filter\n if (!markFilter(state)) {\n return false;\n }\n\n if (dispatch) {\n const mark = state.schema.marks.omni_insert.create();\n const node = state.schema.text('/', [mark]);\n const tr = state.tr;\n tr.replaceSelectionWith(node, false);\n dispatch(tr);\n }\n\n return true;\n },\n );\n }\n}\n","/*\n * completion.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Selection, EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\nimport { EditorView, DecorationSet } from 'prosemirror-view';\n\nimport { canInsertNode } from './node';\nimport { EditorUI } from './ui';\nimport { kInsertCompletionTransaction } from './transaction';\n\nexport const kCompletionDefaultItemHeight = 22;\nexport const kCompletionDefaultMaxVisible = 10;\nexport const kCompletionDefaultWidth = 180;\n\nexport interface CompletionContext {\n isPaste: boolean;\n}\n\nexport interface CompletionsStream {\n items: T[];\n stream: () => T[] | null;\n}\n\nexport type Completions = T[] | CompletionsStream;\n\nexport interface CompletionResult {\n pos: number;\n offset?: number;\n token: string;\n completions: (state: EditorState, context: CompletionContext) => Promise;\n decorations?: DecorationSet;\n}\n\nexport interface CompletionHeaderProps {\n ui: EditorUI;\n message?: string;\n}\n\nexport interface CompletionHandler {\n // unique id\n id: string;\n\n // An optional scope for this completion handler. Completions\n // triggered by a transaction will filter completion handlers\n // that share a scope with the completion handler that originated\n // a transaction.\n scope?: string;\n\n // filter for determing whether we can call this handler from a given context (default is to\n // never offer completions if a mark with noInputRules is active). set to null to\n // allow completion anywhere\n enabled?: ((context: EditorState | Transaction) => boolean) | null;\n\n // return a set of completions for the given context. text is the text before\n // before the cursor in the current node (but no more than 500 characters)\n completions(text: string, context: EditorState | Transaction): CompletionResult | null;\n\n // filter a previously returned set of completions\n filter?: (completions: T[], state: EditorState, token: string, prevToken?: string) => T[] | null;\n\n // provide a completion replacement as a string or node (can be passed null if the popup was dismissed)\n replacement?(schema: Schema, completion: T | null): string | ProsemirrorNode | null;\n\n // lower level replacement handler (can be passed null if the popup was dismissed)\n replace?(view: EditorView, pos: number, completion: T | null): Promise;\n\n // completion view\n view: {\n // optional header component (will go inside a )\n header?: () =>\n | {\n component: React.FC | React.ComponentClass;\n height: number;\n message?: string;\n }\n | undefined;\n\n // react compontent type for viewing the item\n component: React.FC | React.ComponentClass;\n\n key: (completion: T) => any;\n\n // width of completion item (defaults to 180).\n width?: number;\n\n // height of completion item (defaults to 22px)\n height?: number;\n\n // use horizontal orientation (defaults to false)\n // (optionally provide a set of item widths)\n horizontal?: boolean;\n horizontalItemWidths?: number[];\n\n // maximum number of visible items (defaults to 10). note that\n // this only applies to completion poupups w/ vertical orientation\n // (scrolling is not supported for horizontal orientation)\n maxVisible?: number;\n\n // hide 'no results' (default false)\n hideNoResults?: boolean;\n };\n}\n\nexport function selectionAllowsCompletions(selection: Selection) {\n const schema = selection.$head.parent.type.schema;\n\n // non empty selections don't have completions\n if (!selection.empty) {\n return false;\n }\n\n // must be able to insert text\n if (!canInsertNode(selection, schema.nodes.text)) {\n return false;\n }\n\n // must not be in a code mark\n if (schema.marks.code && !!schema.marks.code.isInSet(selection.$from.marks())) {\n return false;\n }\n\n // must not be in a code node\n if (selection.$head.parent.type.spec.code) {\n return false;\n }\n\n return true;\n}\n\n// Determine whether two completionHandlers share the same scope. By default\n// completion handlers will share scope only if they share an id, but handlers\n// can provide a scope if they'd like to coordinate.\nexport function completionsShareScope(handler: CompletionHandler, prevHandler?: CompletionHandler) {\n // There is no previous handler, not shared\n if (!prevHandler) {\n return false;\n }\n\n // Previous handler with the same scope as the current handler\n if (prevHandler.scope && prevHandler.scope === handler.scope) {\n return true;\n } else {\n // Previous handler has the same id as the current handler\n return prevHandler.id === handler.id;\n }\n}\n\nexport function performCompletionReplacement(tr: Transaction, pos: number, replacement: ProsemirrorNode | string) {\n // set selection to area we will be replacing\n tr.setSelection(new TextSelection(tr.doc.resolve(pos), tr.selection.$head));\n\n // ensure we have a node\n if (replacement instanceof ProsemirrorNode) {\n // combine it's marks w/ whatever is active at the selection\n const marks = tr.selection.$head.marks();\n\n // set selection and replace it\n tr.replaceSelectionWith(replacement, false);\n\n // propapate marks\n marks.forEach(mark => tr.addMark(pos, tr.selection.to, mark));\n } else {\n tr.insertText(replacement);\n }\n\n // mark the transaction as an completion insertion\n tr.setMeta(kInsertCompletionTransaction, true);\n}\n","/*\n * omni_insert.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Selection, Transaction } from 'prosemirror-state';\nimport { EditorView, DecorationSet } from 'prosemirror-view';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport React from 'react';\nimport { firstBy } from 'thenby';\n\nimport { OmniInserter, omniInsertGroupCompare, omniInsertPriorityCompare } from '../../api/omni_insert';\nimport { CompletionHandler, CompletionResult } from '../../api/completion';\n\nimport { EditorUI } from '../../api/ui';\nimport { placeholderDecoration } from '../../api/placeholder';\nimport { kAddToHistoryTransaction } from '../../api/transaction';\n\nimport './omni_insert-completion.css';\n\nexport function omniInsertCompletionHandler(\n omniInserters: OmniInserter[],\n ui: EditorUI,\n): CompletionHandler {\n return {\n id: 'E305158D-20D6-474D-84E6-06607CA58578',\n\n completions: omniInsertCompletions(omniInserters, ui),\n\n filter: (completions: OmniInserter[], state: EditorState, token: string) => {\n // match contents of name or keywords (and verify the command is enabled)\n return completions\n .filter(inserter => {\n return (\n token.length === 0 ||\n inserter.name.toLowerCase().indexOf(token) !== -1 ||\n inserter.keywords?.some(keyword => keyword.indexOf(token) !== -1)\n );\n })\n .filter(inserter => {\n return inserter.command(state);\n })\n .sort(\n firstBy(omniInsertGroupCompare)\n .thenBy(omniInsertPriorityCompare, { direction: 'desc' })\n .thenBy('name'),\n );\n },\n\n replace(view: EditorView, pos: number, completion: OmniInserter | null) {\n // helper to remove command text\n const removeCommandText = () => {\n const tr = view.state.tr;\n tr.deleteRange(pos, view.state.selection.head);\n tr.setMeta(kAddToHistoryTransaction, false);\n view.dispatch(tr);\n };\n\n // execute command if provided\n if (completion) {\n // remove existing text\n removeCommandText();\n\n // execute the command\n completion.command(view.state, view.dispatch, view);\n\n // perform any requested selection offset\n if (completion.selectionOffset) {\n const tr = view.state.tr;\n setTextSelection(tr.selection.from + completion.selectionOffset)(tr);\n tr.setMeta(kAddToHistoryTransaction, false);\n view.dispatch(tr);\n }\n\n // the activation of omni_insert wasn't part of 'natural' typing\n // in the document so remove it\n } else {\n removeCommandText();\n }\n return Promise.resolve();\n },\n\n view: {\n component: OmniInserterView,\n key: command => command.id,\n width: 320,\n height: 46,\n maxVisible: 6,\n },\n };\n}\n\nconst kOmniInsertRegex = /\\/([\\w]*)$/;\n\nfunction omniInsertCompletions(omniInserters: OmniInserter[], ui: EditorUI) {\n return (text: string, context: EditorState | Transaction): CompletionResult | null => {\n const match = text.match(kOmniInsertRegex);\n if (match) {\n // we need to either be at the beginning of our parent, OR the omni_insert mark needs\n // to be active (that indicates that we entered omni insert mode via a user command)\n if (match.index !== 0 && !isOmniInsertCommandActive(context.selection)) {\n return null;\n }\n\n // capture query (note that no query returns all).\n const query = match[1].toLowerCase();\n\n // include a decoration if the query is empty\n const decorations =\n query.length === 0\n ? DecorationSet.create(context.doc, [\n placeholderDecoration(context.selection.head, ui.context.translateText(' type to search...')),\n ])\n : undefined;\n\n // return the completion result\n return {\n // match at the /\n pos: context.selection.head - match[0].length,\n\n // unique identifier for this request\n token: query,\n\n // return all omniInserters (will refine via filter)\n completions: (state: EditorState) => {\n return Promise.resolve(omniInserters);\n },\n\n // search placehodler decorator if there is no query\n decorations,\n };\n } else {\n return null;\n }\n };\n}\n\nconst OmniInserterView: React.FC = inserter => {\n return (\n \n \n \n \n \n \n \n
\n \"\"\n \n
{inserter.name}
\n
{inserter.description}
\n
\n );\n};\n\nfunction isOmniInsertCommandActive(selection: Selection) {\n const schema = selection.$head.parent.type.schema;\n return schema.marks.omni_insert.isInSet(selection.$head.marks());\n}\n","/*\n * omni_insert.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { CommandFn } from './command';\n\n// descriptive info for omni insert\nexport interface OmniInsert {\n name: string;\n keywords?: string[];\n description: string;\n group: OmniInsertGroup;\n priority?: number;\n selectionOffset?: number;\n image: () => string;\n}\n\n// descriptive info + ability to identify/execute\nexport interface OmniInserter extends OmniInsert {\n id: string;\n command: CommandFn;\n}\n\nexport enum OmniInsertGroup {\n Common = 'Common',\n Headings = 'Headings',\n Lists = 'Lists',\n Math = 'Math',\n References = 'References',\n Content = 'Content',\n Blocks = 'Blocks',\n Chunks = 'Chunks',\n}\n\nconst omniInsertGroupOrder = new Map(Object.keys(OmniInsertGroup).map((key, index) => [key, index]));\n\nexport function omniInsertGroupCompare(a: OmniInsert, b: OmniInsert) {\n return omniInsertGroupOrder.get(a.group)! - omniInsertGroupOrder.get(b.group)!;\n}\n\nexport function omniInsertPriorityCompare(a: OmniInsert, b: OmniInsert) {\n return (a.priority || 0) - (b.priority || 0);\n}\n","/*\n * placeholder.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeType } from 'prosemirror-model';\nimport { EditorState, Transaction, Plugin, PluginKey } from 'prosemirror-state';\nimport { DecorationSet, Decoration, EditorView } from 'prosemirror-view';\n\nimport { findParentNode } from 'prosemirror-utils';\n\nimport { EditorUI } from './ui';\n\nexport function emptyNodePlaceholderPlugin(nodeType: NodeType, placeholder: (node: ProsemirrorNode) => string, filter?: (tr: Transaction) => boolean) {\n const pluginKey = new PluginKey(nodeType.name + '-empty-placeholder');\n\n return new Plugin({\n key: pluginKey,\n state: {\n init(_config: { [key: string]: any }, instance: EditorState) {\n return DecorationSet.empty;\n },\n apply(tr: Transaction, set: DecorationSet, oldState: EditorState, newState: EditorState) {\n // check for empty parent of our type\n const emptyNode = findParentNode(node => node.type === nodeType && node.childCount === 0)(tr.selection);\n if (emptyNode && (!filter || filter(tr))) {\n const decoration = placeholderDecoration(emptyNode.pos + 1, placeholder(emptyNode.node));\n return DecorationSet.create(tr.doc, [decoration]);\n } else {\n return DecorationSet.empty;\n }\n },\n },\n props: {\n decorations(state: EditorState) {\n return pluginKey.getState(state);\n },\n },\n });\n}\n\nexport function placeholderDecoration(pos: number, text: string) {\n return Decoration.widget(pos, (_view: EditorView, _getPos: () => number) => {\n const placeholder = window.document.createElement('span');\n placeholder.classList.add('pm-placeholder-text-color');\n placeholder.innerText = text;\n return placeholder;\n });\n}\n\nexport function iconAndTextPlaceholderDecoration(pos: number, icon: string, text: string) {\n return Decoration.widget(pos, (_view: EditorView, _getPos: () => number) => {\n const container = window.document.createElement('span');\n\n const iconImg = window.document.createElement('img');\n iconImg.classList.add('pm-placeholder-icon');\n iconImg.setAttribute('src', icon);\n iconImg.setAttribute('draggable', 'false');\n\n const message = window.document.createElement('span');\n message.classList.add('pm-placeholder-text-color');\n message.classList.add('pm-placeholder-text');\n message.innerText = text;\n\n container.appendChild(iconImg);\n container.appendChild(message);\n return container;\n });\n}\n\nexport function searchPlaceholderDecoration(pos: number, ui: EditorUI, text?: string) {\n return iconAndTextPlaceholderDecoration(pos, ui.images.search!, text || '');\n}\n","/*\n * completion.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n// TODO: it may be that we need to not do full re-requests from the filter\n// when we have streamed results (as they can cause reset of the allCompletions)\n\nimport { Plugin, PluginKey, Transaction, Selection, EditorState } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport {\n CompletionHandler,\n selectionAllowsCompletions,\n kCompletionDefaultMaxVisible,\n completionsShareScope,\n performCompletionReplacement,\n CompletionResult,\n Completions,\n CompletionsStream,\n} from '../../api/completion';\nimport { EditorEvents } from '../../api/events';\nimport { ScrollEvent } from '../../api/event-types';\n\nimport { createCompletionPopup, renderCompletionPopup, destroyCompletionPopup } from './completion-popup';\nimport { EditorUI } from '../../api/ui';\nimport { PromiseQueue } from '../../api/promise';\nimport { MarkInputRuleFilter } from '../../api/input_rule';\nimport { kInsertCompletionTransaction, kPasteTransaction } from '../../api/transaction';\n\ninterface CompletionState {\n handler?: CompletionHandler;\n result?: CompletionResult;\n prevToken?: string;\n isPaste?: boolean;\n}\n\nexport function completionExtension(\n handlers: readonly CompletionHandler[],\n inputRuleFilter: MarkInputRuleFilter,\n ui: EditorUI,\n events: EditorEvents,\n) {\n return {\n plugins: () => [new CompletionPlugin(handlers, inputRuleFilter, ui, events)],\n };\n}\n\nconst key = new PluginKey('completion');\n\nclass CompletionPlugin extends Plugin {\n // editor ui\n private readonly ui: EditorUI;\n\n // editor view\n private view: EditorView | null = null;\n\n // popup elemeent\n private completionPopup: HTMLElement | null = null;\n\n // currently selected index and last set of completions are held as transient\n // state because they can't be derived from the document state (selectedIndex\n // is derived from out of band user keyboard gestures and completions may\n // have required fulfilling an external promise). also use a version counter\n // used to invalidate async completion requests that are fulfilled after\n // an update has occurred\n private version = 0;\n private allCompletions: any[] = [];\n private completions: any[] = [];\n private horizontal = false;\n private selectedIndex = 0;\n\n // serialize async completion requests\n private completionQueue = new PromiseQueue();\n\n // events we need to unsubscribe from\n private readonly scrollUnsubscribe: VoidFunction;\n\n constructor(\n handlers: readonly CompletionHandler[],\n inputRuleFilter: MarkInputRuleFilter,\n ui: EditorUI,\n events: EditorEvents,\n ) {\n super({\n key,\n state: {\n init: () => ({}),\n apply: (tr: Transaction, prevState: CompletionState) => {\n // if we don't have a view then bail\n if (!this.view) {\n return {};\n }\n\n // selection only changes dismiss any active completion\n if (!tr.docChanged && !tr.storedMarksSet && tr.selectionSet) {\n return {};\n }\n\n // check whether completions are valid here\n if (!selectionAllowsCompletions(tr.selection)) {\n return {};\n }\n\n // calcluate text before cursor\n const textBefore = completionTextBeforeCursor(tr.selection);\n\n // if there is no text then don't handle it\n if (textBefore.length === 0) {\n return {};\n }\n\n const isPaste = tr.getMeta(kPasteTransaction) === true;\n\n // check for a handler that can provide completions at the current selection\n for (const handler of handlers) {\n // first check if the handler is enabled (null means use inputRuleFilter)\n if (handler.enabled === null || (handler.enabled ? handler.enabled(tr) : inputRuleFilter(tr))) {\n const result = handler.completions(textBefore, tr);\n if (result) {\n // check if the previous state had a completion from the same handler\n let prevToken: string | undefined;\n\n // If this completion shares scope with the previous completion\n // and this is a completion transaction, skip\n if (tr.getMeta(kInsertCompletionTransaction) && completionsShareScope(handler, prevState.handler)) {\n continue;\n }\n\n if (handler.id === prevState.handler?.id) {\n // pass the prevToken on if the completion was for the same position\n if (result.pos === prevState.result?.pos) {\n prevToken = prevState.result.token;\n }\n }\n\n // return state\n return { handler, result, prevToken, isPaste };\n }\n }\n }\n\n // no handler found\n return {};\n },\n },\n\n view: () => ({\n update: (view: EditorView) => {\n // increment version\n this.version++;\n\n // set view\n this.view = view;\n\n // update completions\n this.updateCompletions(view, true);\n },\n\n destroy: () => {\n // unsubscribe from events\n this.scrollUnsubscribe();\n window.document.removeEventListener('focusin', this.clearCompletions);\n\n // tear down the popup\n this.clearCompletions();\n },\n }),\n\n props: {\n decorations: (state: EditorState) => {\n const pluginState = key.getState(state);\n return pluginState?.result?.decorations;\n },\n\n handleDOMEvents: {\n keydown: (view: EditorView, event: Event) => {\n const kbEvent = event as KeyboardEvent;\n\n let handled = false;\n\n // determine meaning of keys based on orientation\n const forwardKey = this.horizontal ? 'ArrowRight' : 'ArrowDown';\n const backwardKey = this.horizontal ? 'ArrowLeft' : 'ArrowUp';\n\n if (this.completionsActive()) {\n switch (kbEvent.key) {\n case 'Escape':\n this.dismissCompletions();\n handled = true;\n break;\n case 'Enter':\n case 'Tab':\n this.insertCompletion(view, this.selectedIndex);\n handled = true;\n break;\n case backwardKey:\n this.selectedIndex = Math.max(this.selectedIndex - 1, 0);\n this.renderCompletions(view);\n handled = true;\n break;\n case forwardKey:\n this.selectedIndex = Math.min(this.selectedIndex + 1, this.completions.length - 1);\n this.renderCompletions(view);\n handled = true;\n break;\n case 'PageUp':\n this.selectedIndex = Math.max(this.selectedIndex - this.completionPageSize(), 0);\n this.renderCompletions(view);\n handled = true;\n break;\n case 'PageDown':\n this.selectedIndex = Math.min(\n this.selectedIndex + this.completionPageSize(),\n this.completions.length - 1,\n );\n this.renderCompletions(view);\n handled = true;\n break;\n case 'End':\n this.selectedIndex = this.completions.length - 1;\n this.renderCompletions(view);\n handled = true;\n break;\n case 'Home':\n this.selectedIndex = 0;\n this.renderCompletions(view);\n handled = true;\n break;\n }\n }\n\n // supress event if we handled it\n if (handled) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n // return status\n return handled;\n },\n },\n },\n });\n\n // capture reference to ui\n this.ui = ui;\n\n // hide completions when we scroll or the focus changes\n this.clearCompletions = this.clearCompletions.bind(this);\n this.scrollUnsubscribe = events.subscribe(ScrollEvent, this.clearCompletions);\n window.document.addEventListener('focusin', this.clearCompletions);\n }\n\n private updateCompletions(view: EditorView, resetSelection: boolean) {\n const state = key.getState(view.state);\n\n if (state?.handler && state?.result) {\n // track the request version to invalidate the result if an\n // update happens after it goes into flight\n const requestVersion = this.version;\n\n // make an async request for the completions, update allCompletions,\n // and then apply any filter we have (allows the completer to just return\n // everything from the aysnc query and fall back to the filter for refinement)\n const requestAllCompletions = async () => {\n // fetch completions\n const completions = await state.result!.completions(view.state, { isPaste: state.isPaste === true });\n\n // if we don't have a handler or result then return\n if (!state.handler || !state.result) {\n return;\n }\n\n // function to update completions\n const updateCompletions = (updatedCompletions: any[]) => {\n // save completions\n this.setAllCompletions(updatedCompletions, !!state.handler?.view.horizontal, resetSelection);\n\n // display if the request still maps to the current state\n if (state.handler && state.result && this.version === requestVersion) {\n // if there is a filter then call it and update displayed completions\n const displayedCompletions = state.handler.filter\n ? state.handler.filter(this.allCompletions, view.state, state.result.token)\n : null;\n if (displayedCompletions) {\n this.setDisplayedCompletions(displayedCompletions, !!state.handler.view.horizontal, resetSelection);\n }\n\n this.renderCompletions(view);\n }\n };\n\n // if we got an array, just set it. if we got a stream then poll it for it's update\n if (Array.isArray(completions)) {\n updateCompletions(completions);\n } else {\n const completionStream = completions as CompletionsStream;\n updateCompletions(completionStream.items);\n const pollingInterval = setInterval(() => {\n // if the document has been updated then invalidate\n if (this.version !== requestVersion) {\n clearInterval(pollingInterval);\n } else {\n // otherwise check the stream\n const result = completionStream.stream();\n if (result) {\n clearInterval(pollingInterval);\n updateCompletions(result);\n }\n }\n }, 300);\n }\n };\n\n // first see if we can do this exclusively via filter\n if (state.prevToken && state.handler.filter) {\n this.completionQueue.enqueue(async () => {\n // display if the request still maps to the current state\n if (state.handler && state.result && this.version === requestVersion) {\n const filteredCompletions = state.handler.filter!(\n this.allCompletions,\n view.state,\n state.result.token,\n state.prevToken,\n );\n\n // got a hit from the filter!\n if (filteredCompletions) {\n this.setDisplayedCompletions(filteredCompletions, !!state.handler.view.horizontal, resetSelection);\n this.renderCompletions(view);\n\n // couldn't use the filter, do a full request for all completions (so long as we aren't\n // already waiting on a strea,)\n } else {\n await requestAllCompletions();\n }\n }\n });\n } else {\n // no prevToken or no filter for this handler, request everything\n this.completionQueue.enqueue(requestAllCompletions);\n }\n } else {\n // no handler/result for this document state\n this.clearCompletions();\n }\n }\n\n private renderCompletions(view: EditorView) {\n const state = key.getState(view.state);\n\n if (state && state.handler && (this.completions.length > 0 || !state.handler.view.hideNoResults)) {\n const props = {\n handler: state.handler!,\n pos: state.result!.pos + (state.result!.offset || 0),\n completions: this.completions,\n selectedIndex: this.selectedIndex,\n noResults: this.ui.context.translateText('No Results'),\n onClick: (index: number) => {\n this.insertCompletion(view, index);\n },\n onHover: (index: number) => {\n this.selectedIndex = index;\n this.renderCompletions(view);\n },\n ui: this.ui,\n };\n\n // create the completion popup if we need to\n if (this.completionPopup === null) {\n this.completionPopup = createCompletionPopup();\n window.document.body.appendChild(this.completionPopup);\n }\n\n // render\n renderCompletionPopup(view, props, this.completionPopup);\n } else {\n // hide\n this.hideCompletionPopup();\n }\n }\n\n private async insertCompletion(view: EditorView, index: number) {\n // default index if not specified\n index = index || this.selectedIndex;\n\n const state = key.getState(view.state);\n if (state && state.handler) {\n // perform replacement\n const result = state.result!;\n\n // check low level handler first\n if (state.handler.replace) {\n // execute replace\n await state.handler.replace(view, result.pos, this.completions[index]);\n\n // use higher level handler\n } else if (state.handler.replacement) {\n // get replacement from handler\n const replacement = state.handler.replacement(view.state.schema, this.completions[index]);\n if (replacement) {\n const tr = view.state.tr;\n performCompletionReplacement(tr, result.pos, replacement);\n view.dispatch(tr);\n }\n }\n // set focus\n view.focus();\n }\n this.clearCompletions();\n }\n\n // explicit user dismiss of completion (e.g. Esc key)\n private async dismissCompletions() {\n // call lower-level replace on any active handler (w/ null). this gives\n // them a chance to dismiss any artifacts that were explicitly inserted\n // to trigger the handler (e.g. a cmd+/ for omni-insert)\n if (this.view) {\n const state = key.getState(this.view.state);\n if (state?.result && state.handler) {\n if (state.handler.replace) {\n await state.handler.replace(this.view, state.result.pos, null);\n } else if (state.handler.replacement) {\n state.handler.replacement(this.view.state.schema, null);\n }\n }\n }\n\n this.clearCompletions();\n }\n\n private clearCompletions() {\n this.setAllCompletions([], false, true);\n this.hideCompletionPopup();\n }\n\n private hideCompletionPopup() {\n if (this.completionPopup) {\n destroyCompletionPopup(this.completionPopup);\n this.completionPopup = null;\n }\n }\n\n private completionsActive() {\n return !!this.completionPopup;\n }\n\n private setAllCompletions(completions: any[], horizontal: boolean, resetSelection: boolean) {\n this.allCompletions = completions;\n this.setDisplayedCompletions(completions, horizontal, resetSelection);\n }\n\n private setDisplayedCompletions(completions: any[], horizontal: boolean, resetSelection: boolean) {\n this.completions = completions;\n this.horizontal = !!horizontal;\n\n // reset selection if requested or if the current index exceeds the # of completions\n if (resetSelection || this.selectedIndex > this.completions.length - 1) {\n this.selectedIndex = 0;\n }\n }\n\n private completionPageSize() {\n if (this.view) {\n const state = key.getState(this.view.state);\n return state?.handler?.view.maxVisible || kCompletionDefaultMaxVisible;\n } else {\n return kCompletionDefaultMaxVisible;\n }\n }\n}\n\n// extract the text before the cursor, dealing with block separators and\n// non-text leaf chracters (this is based on code in prosemirror-inputrules)\nfunction completionTextBeforeCursor(selection: Selection, maxLength = 500) {\n const { $head } = selection;\n return $head.parent.textBetween(\n Math.max(0, $head.parentOffset - maxLength), // start\n $head.parentOffset, // end\n undefined, // block separator\n '\\ufffc', // leaf char\n );\n}\n","/*\n * completion-popup.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nimport React, { useEffect } from 'react';\nimport ReactDOM from 'react-dom';\n\nimport zenscroll from 'zenscroll';\n\nimport { applyStyles } from '../../api/css';\nimport {\n CompletionHandler,\n kCompletionDefaultItemHeight,\n kCompletionDefaultMaxVisible,\n kCompletionDefaultWidth,\n} from '../../api/completion';\nimport { Popup } from '../../api/widgets/popup';\n\nimport './completion-popup.css';\nimport { EditorUI } from '../../api/ui';\n\nconst kNoResultsHeight = 22;\n\nexport interface CompletionListProps {\n handler: CompletionHandler;\n pos: number;\n completions: any[];\n selectedIndex: number;\n noResults: string;\n onHover: (index: number) => void;\n onClick: (index: number) => void;\n ui: EditorUI;\n}\n\nexport function createCompletionPopup(): HTMLElement {\n const popup = window.document.createElement('div');\n popup.style.position = 'absolute';\n popup.style.zIndex = '900';\n return popup;\n}\n\nexport function renderCompletionPopup(view: EditorView, props: CompletionListProps, popup: HTMLElement) {\n // position popup\n const size = completionPopupSize(props);\n const positionStyles = completionPopupPositionStyles(view, props.pos, size.width, size.height);\n applyStyles(popup, [], positionStyles);\n\n // render popup\n ReactDOM.render(, popup);\n}\n\nexport function destroyCompletionPopup(popup: HTMLElement) {\n ReactDOM.unmountComponentAtNode(popup);\n popup.remove();\n}\n\nconst CompletionPopup: React.FC = props => {\n // main completion popup + class + dark mode if appropriate\n const classes = ['pm-completion-popup'].concat(props.ui.prefs.darkMode() ? ['pm-dark-mode'] : []);\n return (\n \n \n \n );\n};\n\nconst CompletionList: React.FC = props => {\n const size = completionPopupSize(props);\n const itemHeight = props.handler.view.height || kCompletionDefaultItemHeight;\n\n // keep selected index in view\n const containerRef = React.useRef(null);\n useEffect(() => {\n const containerEl = containerRef.current;\n if (containerEl) {\n const rows = containerEl.getElementsByClassName('pm-completion-list-item-row');\n const scrollToRow = rows.item(props.selectedIndex);\n if (scrollToRow) {\n const scroller = zenscroll.createScroller(containerEl);\n scroller.intoView(scrollToRow as HTMLElement);\n }\n }\n }, [props.selectedIndex]);\n\n // item event handler\n const itemEventHandler = (index: number, handler: (index: number) => void) => {\n return (event: React.MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n handler(index);\n };\n };\n\n // completion source based on orientation\n const completions = props.handler.view.horizontal ? horizontalCompletions : verticalCompletions;\n\n const classes = ['pm-completion-list'].concat(props.handler.view.horizontal ? ['pm-completion-list-horizontal'] : []);\n\n return (\n \n \n {completionsHeader(props.handler, props.completions.length, props)}\n \n {completions(props, itemHeight, itemEventHandler)}\n {props.completions.length === 0 ? completionsNoResults(props) : null}\n \n
\n \n );\n};\n\nfunction completionsHeader(handler: CompletionHandler, completionCount: number, props: CompletionListProps) {\n if (handler.view.header) {\n const completionHeader = handler.view.header ? handler.view.header() : undefined;\n const headerProps = { message: completionHeader?.message, ...props };\n\n if (completionHeader) {\n const header = React.createElement(completionHeader.component, headerProps);\n return (\n \n \n \n {header}\n \n \n \n );\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\ntype ItemEventHandler = (index: number, handler: (index: number) => void) => (event: React.MouseEvent) => void;\n\nfunction verticalCompletions(props: CompletionListProps, itemHeight: number, itemEventHandler: ItemEventHandler) {\n return props.completions.map((completion, index) => {\n const { key, cell } = completionItemCell(props, completion, index);\n return (\n \n {cell}\n \n );\n });\n}\n\nfunction horizontalCompletions(props: CompletionListProps, itemHeight: number, itemEventHandler: ItemEventHandler) {\n const cellWidths = horizontalCellWidths(props);\n return (\n \n {props.completions.map((completion, index) => {\n const { cell } = completionItemCell(props, completion, index, cellWidths[index], itemEventHandler);\n return cell;\n })}\n \n );\n}\n\nfunction completionItemCell(\n props: CompletionListProps,\n completion: any,\n index: number,\n width?: number,\n itemEventHandler?: ItemEventHandler,\n) {\n // need to provide key for both wrapper and item\n // https://stackoverflow.com/questions/28329382/understanding-unique-keys-for-array-children-in-react-js#answer-28329550\n const key = props.handler.view.key(completion);\n const item = React.createElement(props.handler.view.component, { ...completion, key });\n const className = 'pm-completion-list-item' + (index === props.selectedIndex ? ' pm-selected-list-item' : '');\n const cell = (\n \n {item}\n \n );\n return { key, cell };\n}\n\nfunction completionsNoResults(props: CompletionListProps) {\n return (\n \n {props.noResults}\n \n );\n}\n\nfunction completionPopupSize(props: CompletionListProps) {\n // kicker for list margins/border/etc\n const kCompletionsChrome = 8;\n\n // get view props (apply defaults)\n let { height: itemHeight = kCompletionDefaultItemHeight } = props.handler.view;\n const { maxVisible = kCompletionDefaultMaxVisible, width = kCompletionDefaultWidth } = props.handler.view;\n\n // add 2px for the border to item heights\n const kBorderPad = 2;\n itemHeight += kBorderPad;\n\n // compute header height\n let headerHeight = 0;\n if (props.handler.view.header) {\n const completionHeader = props.handler.view.header();\n if (completionHeader) {\n headerHeight = completionHeader.height + kBorderPad;\n }\n }\n\n // complete based on horizontal vs. vertical\n if (props.handler.view.horizontal) {\n // horizontal mode can provide explicit item widths\n const kTablePadding = 8;\n const kCellPadding = 8;\n const kCellBorders = 2;\n const totalWidth =\n horizontalCellWidths(props).reduce((total, current) => {\n return total + (current + kCellPadding + kCellBorders);\n }, 0) + kTablePadding;\n\n return {\n width: totalWidth,\n height: headerHeight + itemHeight + kCompletionsChrome,\n };\n } else {\n // compute height (subject it to a minimum require to display 'no results')\n const height =\n headerHeight +\n kCompletionsChrome +\n Math.max(itemHeight * Math.min(maxVisible, props.completions.length), kNoResultsHeight);\n\n // return\n return { width, height };\n }\n}\n\nfunction horizontalCellWidths(props: CompletionListProps) {\n const { width = kCompletionDefaultWidth } = props.handler.view;\n return props.completions.map((_completion, index) => {\n if (props.handler.view.horizontalItemWidths) {\n return props.handler.view.horizontalItemWidths[index] || width;\n } else {\n return width;\n }\n });\n}\n\nfunction completionPopupPositionStyles(view: EditorView, pos: number, width: number, height: number) {\n // some constants\n const kMinimumPaddingToEdge = 5;\n const kCompletionsVerticalPadding = 5;\n\n // default position\n const selectionCoords = view.coordsAtPos(pos);\n\n let top = selectionCoords.bottom + kCompletionsVerticalPadding;\n let left = selectionCoords.left;\n\n // see if we need to be above\n if (top + height + kMinimumPaddingToEdge >= window.innerHeight) {\n top = selectionCoords.top - height - kCompletionsVerticalPadding;\n }\n\n // see if we need to be to the left (use cursor as pos in this case)\n if (left + width + kMinimumPaddingToEdge >= window.innerWidth) {\n const cursorCoords = view.coordsAtPos(view.state.selection.head);\n left = cursorCoords.right - width;\n }\n\n return {\n left: left + 'px',\n top: top + 'px',\n };\n}\n","/*\n * popup.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport React from 'react';\n\nimport { WidgetProps } from './react';\n\nexport type PopupProps = WidgetProps;\n\nexport const Popup: React.FC = props => {\n const className = ['pm-popup', 'pm-text-color', 'pm-proportional-font', 'pm-pane-border-color', 'pm-background-color']\n .concat(props.classes || [])\n .join(' ');\n\n const style: React.CSSProperties = {\n ...props.style,\n position: 'absolute',\n zIndex: 10,\n };\n\n return (\n
\n {props.children}\n
\n );\n};\n","/*\n * promise.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\ninterface PendingPromise {\n promise: () => Promise;\n resolve: (result: T) => void;\n reject: (reason: any) => void;\n}\n\nexport class PromiseQueue {\n private queue = new Array>();\n private running = false;\n\n public enqueue(promise: () => Promise) {\n return new Promise((resolve, reject) => {\n this.queue.push({\n promise,\n resolve,\n reject,\n });\n this.dequeue();\n });\n }\n\n private dequeue() {\n if (this.running) {\n return false;\n }\n const item = this.queue.shift();\n if (!item) {\n return false;\n }\n try {\n this.running = true;\n item\n .promise()\n .then(value => {\n this.running = false;\n item.resolve(value);\n this.dequeue();\n })\n .catch(err => {\n this.running = false;\n item.reject(err);\n this.dequeue();\n });\n } catch (err) {\n this.running = false;\n item.reject(err);\n this.dequeue();\n }\n return true;\n }\n}\n","/*\n * spelling-doc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView, DecorationSet, Decoration } from 'prosemirror-view';\nimport { TextSelection, Plugin, PluginKey, EditorState, Transaction } from 'prosemirror-state';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { PandocMark } from '../../api/mark';\nimport {\n EditorWordRange,\n EditorSpellingDoc,\n EditorWordSource,\n EditorAnchor,\n EditorRect,\n EditorUISpelling,\n} from '../../api/spelling';\nimport { scrollIntoView } from '../../api/scroll';\n\nimport { excludedMarks, getWords, spellcheckerWord } from './spelling';\n\n// get the document interface required by interactive spellchecking\n\nexport function getSpellingDoc(\n view: EditorView,\n marks: readonly PandocMark[],\n spelling: EditorUISpelling,\n): EditorSpellingDoc {\n // alias schema\n const schema = view.state.schema;\n\n // intialize marks we don't want to check\n const excluded = excludedMarks(schema, marks);\n\n // check begin\n spellingDocPlugin(view.state).onCheckBegin();\n\n return {\n getWords: (start: number, end: number): EditorWordSource => {\n return getWords(view.state, start, end, spelling, excluded);\n },\n\n createAnchor: (pos: number): EditorAnchor => {\n return spellingDocPlugin(view.state).createAnchor(pos);\n },\n\n shouldCheck: (_wordRange: EditorWordRange): boolean => {\n return true;\n },\n\n setSelection: (wordRange: EditorWordRange) => {\n const tr = view.state.tr;\n tr.setSelection(TextSelection.create(tr.doc, wordRange.start, wordRange.end));\n view.dispatch(tr);\n },\n\n getText: (wordRange: EditorWordRange): string => {\n const word = view.state.doc.textBetween(wordRange.start, wordRange.end);\n return spellcheckerWord(word);\n },\n\n replaceSelection: (text: string) => {\n const tr = view.state.tr;\n const selectionMarks = tr.selection.$from.marks();\n tr.replaceSelectionWith(view.state.schema.text(text, selectionMarks), false);\n view.dispatch(tr);\n },\n\n getCursorPosition: (): number => {\n return view.state.selection.to;\n },\n\n getSelectionStart: (): number => {\n return view.state.selection.from;\n },\n\n getSelectionEnd: (): number => {\n return view.state.selection.to;\n },\n\n getCursorBounds: (): EditorRect => {\n const fromCoords = view.coordsAtPos(view.state.selection.from);\n const toCoords = view.coordsAtPos(view.state.selection.to);\n\n return {\n x: Math.min(fromCoords.left, toCoords.left),\n y: fromCoords.top,\n width: Math.abs(fromCoords.left - toCoords.left),\n height: toCoords.bottom - fromCoords.top,\n };\n },\n\n moveCursorNearTop: () => {\n scrollIntoView(view, view.state.selection.from, false, undefined, 100);\n },\n\n dispose: () => {\n spellingDocPlugin(view.state).onCheckEnd(view);\n },\n };\n}\n\n// companion plugin for SpellingDoc provided above (shows 'fake' selection during\n// interactive spell check dialog and maintains anchor position(s) across\n// transactions that occur while the dialog/doc is active)\n\nconst spellingDocKey = new PluginKey('spelling-doc-plugin');\n\nfunction spellingDocPlugin(state: EditorState) {\n return spellingDocKey.get(state) as SpellingDocPlugin;\n}\n\nexport class SpellingDocPlugin extends Plugin {\n private checking = false;\n private anchors: SpellingAnchor[] = [];\n\n constructor() {\n super({\n key: spellingDocKey,\n state: {\n init: () => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, oldState: EditorState, newState: EditorState) => {\n if (this.checking) {\n // map anchors\n this.anchors.forEach(anchor => {\n anchor.setPosition(tr.mapping.map(anchor.getPosition()));\n });\n\n // show selection\n if (!tr.selection.empty) {\n return DecorationSet.create(tr.doc, [\n Decoration.inline(tr.selection.from, tr.selection.to, { class: 'pm-selected-text' }),\n ]);\n }\n }\n\n return DecorationSet.empty;\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return spellingDocKey.getState(state);\n },\n },\n });\n }\n\n public createAnchor(pos: number) {\n const anchor = new SpellingAnchor(pos);\n this.anchors.push(anchor);\n return anchor;\n }\n\n public onCheckBegin() {\n this.checking = true;\n }\n\n public onCheckEnd(view: EditorView) {\n this.checking = false;\n this.anchors = [];\n\n if (!view.state.selection.empty) {\n const tr = view.state.tr;\n setTextSelection(tr.selection.to)(tr);\n view.dispatch(tr);\n }\n }\n}\n\nclass SpellingAnchor implements EditorAnchor {\n private pos = 0;\n constructor(pos: number) {\n this.pos = pos;\n }\n public getPosition() {\n return this.pos;\n }\n public setPosition(pos: number) {\n this.pos = pos;\n }\n}\n\nconst extension = () => {\n return {\n plugins: () => {\n return [new SpellingDocPlugin()];\n },\n };\n};\n\nexport default extension;\n","/*\n * spelling.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { MarkType, Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState } from 'prosemirror-state';\n\nimport { EditorWordSource, EditorWordRange, EditorUISpelling, kCharClassNonWord } from '../../api/spelling';\nimport { PandocMark, getMarkRange } from '../../api/mark';\n\nexport const beginDocPos = () => 1;\nexport const endDocPos = (doc: ProsemirrorNode) => doc.nodeSize - 2;\n\nexport function getWords(\n state: EditorState,\n start: number,\n end: number,\n spelling: EditorUISpelling,\n excluded: MarkType[],\n): EditorWordSource {\n // provide defaults\n if (start === -1) {\n start = beginDocPos();\n }\n if (end === -1) {\n end = endDocPos(state.doc);\n }\n\n // enlarge range to begin/end\n const beginPos = findBeginWord(state, start, spelling.classifyCharacter);\n const endPos = findEndWord(state, end, spelling.classifyCharacter);\n\n const words: EditorWordRange[] = [];\n let currentPos = beginPos;\n while (currentPos <= endPos) {\n // advance until we find a word\n currentPos = advanceToWord(state, currentPos, spelling.classifyCharacter);\n if (currentPos >= endPos) {\n break;\n }\n\n // find end of word\n const endWordPos = findEndWord(state, currentPos, spelling.classifyCharacter);\n if (endWordPos === currentPos) {\n break;\n }\n\n // add word if it doesn't have an excluded type\n if (!excludeWord(state.doc, currentPos, endWordPos, excluded)) {\n const wordText = state.doc.textBetween(currentPos, endWordPos);\n words.push(\n ...spelling.breakWords(wordText).map(wordRange => {\n return {\n start: currentPos + wordRange.start,\n end: currentPos + wordRange.end,\n };\n }),\n );\n }\n\n // next word\n currentPos = endWordPos;\n }\n\n // return iterator over word range\n return {\n hasNext: () => {\n return words.length > 0;\n },\n next: () => {\n if (words.length > 0) {\n return words.shift()!;\n } else {\n return null;\n }\n },\n };\n}\n\nfunction excludeWord(doc: ProsemirrorNode, from: number, to: number, excluded: MarkType[]) {\n // does it have one of our excluded mark types?\n if (excluded.some(markType => doc.rangeHasMark(from, to, markType))) {\n return true;\n }\n\n // is it in a code block\n const $from = doc.resolve(from);\n if ($from.parent.isBlock && $from.parent.type.spec.code) {\n return true;\n }\n\n // it is in a link mark where the link text is a url?\n const schema = doc.type.schema;\n if (schema.marks.link && doc.rangeHasMark(from, to, schema.marks.link)) {\n const range = getMarkRange(doc.resolve(from), schema.marks.link);\n if (range && /^[a-z]+:\\/\\/.*$/.test(doc.textBetween(range.from, range.to))) {\n return true;\n }\n }\n\n // don't exclude\n return false;\n}\n\nexport function advanceToWord(state: EditorState, pos: number, classifier: (ch: number) => number) {\n while (pos < endDocPos(state.doc)) {\n const nextChar = charAt(state.doc, pos);\n if (classifier(nextChar) !== kCharClassNonWord) {\n break;\n } else {\n pos++;\n }\n }\n return pos;\n}\n\nexport function findBeginWord(state: EditorState, pos: number, classifier: (ch: number) => number) {\n // scan backwards until a non-word character is encountered\n while (pos >= beginDocPos()) {\n const prevChar = charAt(state.doc, pos - 1);\n if (classifier(prevChar) === kCharClassNonWord) {\n break;\n } else {\n pos--;\n }\n }\n // return the position\n return pos;\n}\n\nexport function findEndWord(state: EditorState, pos: number, classifier: (ch: number) => number) {\n // scan forwards until a non-word character is encountered\n while (pos < endDocPos(state.doc)) {\n const nextChar = charAt(state.doc, pos);\n if (classifier(nextChar) === kCharClassNonWord) {\n break;\n } else {\n pos++;\n }\n }\n\n // return the position\n return pos;\n}\n\n// get the chracter code at the specified position, returning character code 32 (a space)\n// for begin/end of document, block boundaries, and non-text leaf nodes\nexport function charAt(doc: ProsemirrorNode, pos: number) {\n if (pos < beginDocPos() || pos >= endDocPos(doc)) {\n return 32; // space for doc boundary\n } else {\n return (doc.textBetween(pos, pos + 1, ' ', ' ') || ' ').charCodeAt(0);\n }\n}\n\nexport function excludedMarks(schema: Schema, marks: readonly PandocMark[]): MarkType[] {\n return marks.filter(mark => mark.noSpelling).map(mark => schema.marks[mark.name]);\n}\n\nexport function spellcheckerWord(word: string) {\n return word.replace(/’/g, \"'\");\n}\n","/*\n * spelling.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport const kCharClassWord = 0;\nexport const kCharClassBoundary = 1;\nexport const kCharClassNonWord = 2;\n\nexport interface EditorUISpelling {\n // realtime interface\n realtimeEnabled: () => boolean;\n checkWords: (words: string[]) => string[];\n suggestionList: (word: string, callback: (suggestions: string[]) => void) => void;\n\n // dictionary\n isWordIgnored: (word: string) => boolean;\n ignoreWord: (word: string) => void;\n unignoreWord: (word: string) => void;\n addToDictionary: (word: string) => void;\n\n // word breaking\n breakWords: (text: string) => EditorWordRange[];\n classifyCharacter: (ch: number) => number;\n}\n\nexport interface EditorAnchor {\n getPosition: () => number;\n}\n\nexport interface EditorRect {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\nexport interface EditorWordRange {\n start: number;\n end: number;\n}\n\nexport interface EditorWordSource {\n hasNext: () => boolean;\n next: () => EditorWordRange | null;\n}\n\nexport interface EditorSpellingDoc {\n getWords: (start: number, end: number) => EditorWordSource;\n\n createAnchor: (pos: number) => EditorAnchor;\n\n shouldCheck: (wordRange: EditorWordRange) => boolean;\n setSelection: (wordRange: EditorWordRange) => void;\n getText: (wordRange: EditorWordRange) => string;\n\n getCursorPosition: () => number;\n replaceSelection: (text: string) => void;\n getSelectionStart: () => number;\n getSelectionEnd: () => number;\n\n getCursorBounds: () => EditorRect;\n moveCursorNearTop: () => void;\n\n dispose: () => void;\n}\n","/*\n * spelling-realtime.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, MarkType } from 'prosemirror-model';\nimport { Plugin, PluginKey, EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { DecorationSet, EditorView, Decoration, DecorationAttrs } from 'prosemirror-view';\nimport { AddMarkStep, RemoveMarkStep } from 'prosemirror-transform';\nimport { ChangeSet } from 'prosemirror-changeset';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { FocusEvent } from '../../api/event-types';\nimport { PandocMark } from '../../api/mark';\nimport {\n EditorUISpelling,\n EditorWordRange,\n kCharClassWord\n} from '../../api/spelling';\nimport { EditorEvents } from '../../api/events';\nimport { kAddToHistoryTransaction } from '../../api/transaction';\nimport { EditorUI, EditorMenuItem } from '../../api/ui';\n\nimport { excludedMarks, getWords, spellcheckerWord, findBeginWord, findEndWord, charAt } from './spelling';\n\nconst kUpdateSpellingTransaction = 'updateSpelling';\nconst kInvalidateSpellingWordTransaction = 'invalidateSpellingWord';\nconst kSpellingErrorClass = 'pm-spelling-error';\n\nconst realtimeSpellingKey = new PluginKey('spelling-realtime-plugin');\n\nexport function realtimeSpellingPlugin(\n schema: Schema,\n marks: readonly PandocMark[],\n ui: EditorUI,\n events: EditorEvents,\n) {\n return new RealtimeSpellingPlugin(excludedMarks(schema, marks), ui, events);\n}\n\nexport function invalidateAllWords(view: EditorView) {\n updateSpelling(view);\n}\n\nexport function invalidateWord(view: EditorView, word: string) {\n const tr = view.state.tr;\n tr.setMeta(kInvalidateSpellingWordTransaction, word);\n tr.setMeta(kAddToHistoryTransaction, false);\n view.dispatch(tr);\n}\n\nclass RealtimeSpellingPlugin extends Plugin {\n // track whether we've ever had the focus (don't do any spelling operations until then)\n private hasBeenFocused = true;\n\n private view: EditorView | null = null;\n private readonly ui: EditorUI;\n\n constructor(excluded: MarkType[], ui: EditorUI, events: EditorEvents) {\n super({\n key: realtimeSpellingKey,\n view: (view: EditorView) => {\n this.view = view;\n return {};\n },\n state: {\n init: (_config, state: EditorState) => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, oldState: EditorState, newState: EditorState) => {\n // if we somehow manage to get focus w/o our FocusEvent (below) being called then also\n // flip the hasBeenFocused bit here\n if (this.view?.hasFocus()) {\n this.hasBeenFocused = true;\n }\n\n // don't continue if either realtime spelling is disabled or we have never been focused\n if (!this.ui.spelling.realtimeEnabled() || !this.hasBeenFocused) {\n return DecorationSet.empty;\n }\n\n if (tr.getMeta(kUpdateSpellingTransaction)) {\n // explicit update request invalidates any existing decorations (this can happen when\n // we get focus for the very first time or when the main or secondary dictionaries change)\n return DecorationSet.create(newState.doc, spellingDecorations(newState, ui.spelling, excluded));\n } else if (tr.getMeta(kInvalidateSpellingWordTransaction)) {\n // for word invalidations we search through the decorations and remove words that match\n const word = tr.getMeta(kInvalidateSpellingWordTransaction) as string;\n\n // find decorations that have this word and remove them\n const wordDecos = old.find(undefined, undefined, spec => spec.word === word);\n\n // return decorators w/ those words removed\n return old.remove(wordDecos);\n } else if (tr.docChanged) {\n // perform an incremental update of spelling decorations (invalidate and re-scan\n // for decorations in changed ranges)\n\n // start w/ previous state\n let decos = old;\n\n // create change set from transaction\n let changeSet = ChangeSet.create(oldState.doc);\n changeSet = changeSet.addSteps(newState.doc, tr.mapping.maps);\n\n // collect ranges that had mark changes\n const markRanges: Array<{ from: number; to: number }> = [];\n for (const step of tr.steps) {\n if (step instanceof AddMarkStep || step instanceof RemoveMarkStep) {\n const markStep = step as any;\n markRanges.push({ from: markStep.from, to: markStep.to });\n }\n }\n\n // remove ranges = mark ranges + deleted ranges\n const removeRanges = markRanges.concat(\n changeSet.changes.map(change => ({ from: change.fromA, to: change.toA })),\n );\n\n // remove decorations from deleted ranges (expanding ranges to word boundaries)\n for (const range of removeRanges) {\n const fromPos = findBeginWord(oldState, range.from, ui.spelling.classifyCharacter);\n const toPos = findEndWord(oldState, range.to, ui.spelling.classifyCharacter);\n decos = decos.remove(decos.find(fromPos, toPos));\n }\n\n // map decoration positions to new document\n decos = decos.map(tr.mapping, tr.doc);\n\n // add ranges = mark ranges + inserted ranges\n const addRanges = markRanges.concat(\n changeSet.changes.map(change => ({ from: change.fromB, to: change.toB })),\n );\n\n // scan inserted ranges for spelling decorations (don't need to find word boundaries\n // b/c spellingDecorations already does that)\n for (const range of addRanges) {\n decos = decos.add(\n tr.doc,\n spellingDecorations(newState, ui.spelling, excluded, false, range.from - 1, range.to)\n );\n }\n\n // return decorators\n return decos;\n } else if (tr.selectionSet) {\n // if we had previously suppressed a decoration due to typing at the cursor, restore it\n // whenever the selection changes w/o the doc changing\n\n // start with previous state\n let decos = old;\n\n // find any special 'at cursor' errors\n const cursorDecos = decos.find(undefined, undefined, spec => !!spec.cursor);\n if (cursorDecos.length) {\n // there will only be one cursor, capture it's position then remove it\n const word = cursorDecos[0].spec.word as string;\n const { from, to } = cursorDecos[0];\n decos = decos.remove(cursorDecos);\n\n // add it back in as a real spelling error\n decos = decos.add(tr.doc, [Decoration.inline(from, to, { class: kSpellingErrorClass }, { word })]);\n }\n\n // return decorators\n return decos;\n } else {\n // no content or selection change, return old w/o mapping\n return old;\n }\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return realtimeSpellingKey.getState(state);\n },\n handleDOMEvents: {\n contextmenu: spellingSuggestionContextMenuHandler(ui),\n },\n },\n });\n\n // save reference to ui\n this.ui = ui;\n\n // trigger update on first focus\n const focusUnsubscribe = events.subscribe(FocusEvent, () => {\n if (this.view) {\n focusUnsubscribe();\n this.hasBeenFocused = true;\n updateSpelling(this.view);\n\n // call a second time as no words will be cached initially, this simplifies the\n // need for threading a callback through the entire plugin system\n const v = this.view;\n setTimeout(() => {\n if (v.dom?.isConnected) {\n updateSpelling(v);\n }\n }, 5000); \n }\n });\n }\n}\n\nfunction spellingDecorations(\n state: EditorState,\n spelling: EditorUISpelling,\n excluded: MarkType[],\n excludeCursor = false,\n from = -1,\n to = -1,\n): Decoration[] {\n\n // a map of wordText -> [wordRange...]\n const rangeMap = new Map();\n\n // break words\n const words = getWords(state, from, to, spelling, excluded);\n\n // spell check and return decorations for misspellings\n const decorations: Decoration[] = [];\n\n // words to pass to the spellchecker\n const wordsToCheck: string[] = [];\n\n while (words.hasNext()) {\n const word = words.next()!;\n const wordText = state.doc.textBetween(word.start, word.end);\n\n const ranges = rangeMap.get(wordText) || [];\n ranges.push(word);\n rangeMap.set(wordText, ranges);\n\n wordsToCheck.push(spellcheckerWord(wordText));\n }\n\n const incorrectWords: string[] = spelling.checkWords(wordsToCheck);\n\n for (const incorrectWord of incorrectWords) {\n const ranges: EditorWordRange[] | undefined = rangeMap.get(incorrectWord);\n\n if (!!ranges) {\n for (const range of ranges) {\n const attrs: DecorationAttrs = {};\n const spec: { [key: string]: any } = {\n word: incorrectWord,\n };\n if (excludeCursor && state.selection.head > range.start && state.selection.head <= range.end) {\n spec.cursor = true;\n } else {\n attrs.class = kSpellingErrorClass;\n }\n decorations.push(Decoration.inline(range.start, range.end, attrs, spec));\n }\n }\n }\n\n return decorations;\n}\n\nfunction spellingSuggestionContextMenuHandler(ui: EditorUI) {\n return (view: EditorView, event: Event) => {\n if (!ui.display.showContextMenu) {\n return false;\n }\n\n // helper to create a menu action\n const menuAction = (text: string, action: VoidFunction) => {\n return {\n text,\n exec: () => {\n action();\n view.focus();\n },\n };\n };\n\n // helper to show a context menu and prevent further event handling\n const showContextMenu = (menuItems: EditorMenuItem[]) => {\n // show the menu\n const { clientX, clientY } = event as MouseEvent;\n ui.display.showContextMenu!(menuItems, clientX, clientY);\n };\n\n if (event.target && event.target instanceof Node) {\n // alias schema\n const schema = view.state.schema;\n\n // find the spelling decoration at this position (if any)\n const pos = view.posAtDOM(event.target, 0);\n const deco = realtimeSpellingKey.getState(view.state)!.find(pos, pos);\n if (deco.length) {\n // prevent default handling\n event.stopPropagation();\n event.preventDefault();\n\n // get word\n const { from, to } = deco[0];\n const word = spellcheckerWord(view.state.doc.textBetween(from, to));\n\n const kMaxSuggetions = 5;\n ui.spelling.suggestionList(word, (suggestions: string[]): void => {\n // create menu w/ suggestions\n const menuItems: EditorMenuItem[] = suggestions.slice(0, kMaxSuggetions).map(suggestion => {\n return {\n text: suggestion,\n exec: () => {\n const tr = view.state.tr;\n tr.setSelection(TextSelection.create(tr.doc, from, to));\n const marks = tr.selection.$from.marks();\n tr.replaceSelectionWith(schema.text(suggestion, marks), false);\n setTextSelection(from + suggestion.length)(tr);\n view.dispatch(tr);\n view.focus();\n },\n };\n });\n if (menuItems.length) {\n menuItems.push({ separator: true });\n }\n\n menuItems.push(menuAction(ui.context.translateText('Ignore All'), () => ui.spelling.ignoreWord(word)));\n menuItems.push({ separator: true });\n menuItems.push(\n menuAction(ui.context.translateText('Add to Dictionary'), () => ui.spelling.addToDictionary(word)),\n );\n\n // show context menu\n showContextMenu(menuItems);\n });\n\n return true;\n }\n\n // find the word at this position and see if it's ignored. if so provide an unignore context menu\n const classify = ui.spelling.classifyCharacter;\n const mouseEvent = event as MouseEvent;\n const clickPos = view.posAtCoords({ left: mouseEvent.clientX, top: mouseEvent.clientY });\n if (clickPos) {\n const ch = charAt(view.state.doc, clickPos.pos);\n if (classify(ch) === kCharClassWord) {\n const from = findBeginWord(view.state, clickPos.pos, classify);\n const to = findEndWord(view.state, clickPos.pos, classify);\n const word = spellcheckerWord(view.state.doc.textBetween(from, to));\n\n if (ui.spelling.isWordIgnored(word)) {\n // prevent default handling\n event.stopPropagation();\n event.preventDefault();\n\n showContextMenu([\n menuAction(`${ui.context.translateText('Unignore')} \\'${word}\\'`, () => ui.spelling.unignoreWord(word)),\n ]);\n return true;\n }\n }\n }\n }\n\n return false;\n };\n}\n\nfunction updateSpelling(view: EditorView) {\n const tr = view.state.tr;\n tr.setMeta(kUpdateSpellingTransaction, true);\n tr.setMeta(kAddToHistoryTransaction, false);\n view.dispatch(tr);\n}\n","/*\n * pandoc_converter.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { findChildren } from 'prosemirror-utils';\n\nimport {\n PandocServer,\n PandocTokenReader,\n PandocNodeWriter,\n PandocMarkWriter,\n PandocPreprocessorFn,\n PandocBlockReaderFn,\n PandocPostprocessorFn,\n PandocInlineHTMLReaderFn,\n PandocWriterOptions,\n PandocTokensFilterFn,\n} from '../api/pandoc';\n\nimport { haveTableCellsWithInlineRcode } from '../api/rmd';\n\nimport { pandocFormatWith, PandocFormat, kGfmFormat, kCommonmarkFormat } from '../api/pandoc_format';\nimport { PandocCapabilities } from '../api/pandoc_capabilities';\nimport { PandocBlockCapsuleFilter, pandocMarkdownWithBlockCapsules } from '../api/pandoc_capsule';\n\nimport { ExtensionManager } from '../editor/editor-extensions';\n\nimport { pandocToProsemirror } from './pandoc_to_prosemirror';\nimport { pandocFromProsemirror } from './pandoc_from_prosemirror';\nimport { isParagraphNode } from '../api/paragraph';\n\nexport type PandocLineWrapping = 'none' | 'column' | 'sentence';\n\nexport interface PandocToProsemirrorResult {\n doc: ProsemirrorNode;\n line_wrapping: PandocLineWrapping;\n unrecognized: string[];\n example_lists: boolean;\n unparsed_meta: { [key: string]: any };\n}\n\nexport class PandocConverter {\n private readonly schema: Schema;\n private readonly preprocessors: readonly PandocPreprocessorFn[];\n private readonly postprocessors: readonly PandocPostprocessorFn[];\n private readonly readers: readonly PandocTokenReader[];\n private readonly tokensFilters: readonly PandocTokensFilterFn[];\n private readonly blockReaders: readonly PandocBlockReaderFn[];\n private readonly inlineHTMLReaders: readonly PandocInlineHTMLReaderFn[];\n private readonly blockCapsuleFilters: readonly PandocBlockCapsuleFilter[];\n private readonly nodeWriters: readonly PandocNodeWriter[];\n private readonly markWriters: readonly PandocMarkWriter[];\n private readonly pandoc: PandocServer;\n private readonly pandocCapabilities: PandocCapabilities;\n\n constructor(\n schema: Schema,\n extensions: ExtensionManager,\n pandoc: PandocServer,\n pandocCapabilities: PandocCapabilities,\n ) {\n this.schema = schema;\n\n this.preprocessors = extensions.pandocPreprocessors();\n this.postprocessors = extensions.pandocPostprocessors();\n this.readers = extensions.pandocReaders();\n this.tokensFilters = extensions.pandocTokensFilters();\n this.blockReaders = extensions.pandocBlockReaders();\n this.inlineHTMLReaders = extensions.pandocInlineHTMLReaders();\n this.blockCapsuleFilters = extensions.pandocBlockCapsuleFilters();\n this.nodeWriters = extensions.pandocNodeWriters();\n this.markWriters = extensions.pandocMarkWriters();\n\n this.pandoc = pandoc;\n this.pandocCapabilities = pandocCapabilities;\n }\n\n public async toProsemirror(markdown: string, format: PandocFormat): Promise {\n // save original markdown (for aligning capsule positions)\n const original = markdown;\n\n // adjust format. we always need to *read* raw_html, raw_attribute, and backtick_code_blocks b/c\n // that's how preprocessors hoist content through pandoc into our prosemirror token parser.\n // we always need to read with auto_identifiers so we can catch any auto-generated ids\n // required to fulfill links inside the document (we will strip out heading ids that\n // aren't explicit or a link target using the heading_ids returned with the ast). \n //\n // we always read all forms of tables (since they can always be written back out as raw_html)\n //\n // we also always read math (since it can always be output as 'asciimath')\n //\n // we disable 'smart' b/c that causes pandoc to insert non-breaking spaces before selected\n // abbreviations like e.g. rather, we do our own implementation of 'smart' when we read\n // PandocTokenType.Str from the ast\n\n // determine type of auto_ids\n const autoIds = format.extensions.gfm_auto_identifiers ? 'gfm_auto_identifiers' : 'auto_identifiers';\n const targetFormat = adjustedFormat(\n format.fullName,\n ['raw_html', 'raw_attribute', 'backtick_code_blocks', autoIds, \n 'grid_tables', 'pipe_tables', 'multiline_tables', 'simple_tables',\n 'tex_math_dollars'],\n ['smart'],\n );\n\n // run preprocessors\n this.preprocessors.forEach(preprocessor => {\n markdown = preprocessor(markdown);\n });\n\n // create source capsules\n this.blockCapsuleFilters.forEach(filter => {\n markdown = pandocMarkdownWithBlockCapsules(original, markdown, filter);\n });\n\n const ast = await this.pandoc.markdownToAst(markdown, targetFormat, []);\n const result = pandocToProsemirror(\n ast,\n this.schema,\n format.extensions,\n this.readers,\n this.tokensFilters,\n this.blockReaders,\n this.inlineHTMLReaders,\n this.blockCapsuleFilters,\n );\n\n // run post-processors\n this.postprocessors.forEach(postprocessor => {\n result.doc = postprocessor(result.doc);\n });\n\n // return the doc\n return result;\n }\n\n // NOTE: For a plain markdown file, this is the closest we can come to cannonicalizing w/ just pandoc:\n //\n // pandoc MANUAL.md --to markdown-auto_identifiers-smart -o MANUAL.md --self-contained --atx-headers --wrap=none\n //\n // For R Mardown files, we would need to pull out the Rmd chunks before sending to pandoc.\n //\n\n public async fromProsemirror(\n doc: ProsemirrorNode,\n pandocFormat: PandocFormat,\n options: PandocWriterOptions,\n ): Promise {\n // generate pandoc ast\n const output = pandocFromProsemirror(\n doc,\n this.pandocCapabilities.api_version,\n pandocFormat,\n this.nodeWriters,\n this.markWriters,\n );\n\n // adjust format. we always need to be able to write raw_attribute b/c that's how preprocessors\n // hoist content through pandoc into our prosemirror token parser. since we open this door when\n // reading, users could end up writing raw inlines, and in that case we want them to echo back\n // to the source document just the way they came in. for writing markdown from pm we don't\n // ever want to generate auto identifiers so we disable them here. we also disable smart b/c\n // we do this manually above in pandocFromProsemirror (so we can avoid pandoc's insertion of\n // nbsp's after abbreviations, which is more approriate for final output than editing)\n let format = adjustedFormat(\n pandocFormat.fullName,\n ['raw_html', 'raw_attribute'], // always enable\n ['auto_identifiers', 'gfm_auto_identifiers', 'smart'],\n ); // always disable\n\n // disable selected format options\n format = pandocFormatWith(format, disabledFormatOptions(format, pandocFormat, doc), '');\n\n // prepare pandoc options\n let pandocOptions: string[] = [];\n if (!options.atxHeaders) {\n pandocOptions.push('--markdown-headings=setext');\n }\n if (options.dpi) {\n pandocOptions.push('--dpi');\n }\n // default to block level references (validate known types)\n let referenceLocation = 'block';\n if (options.references?.location) {\n referenceLocation = ['block', 'section', 'document'].includes(options.references.location)\n ? options.references.location\n : 'block';\n }\n pandocOptions.push(`--reference-location=${referenceLocation}`);\n\n // references prefix (if any)\n if (options.references?.prefix) {\n pandocOptions.push('--id-prefix', options.references.prefix);\n }\n\n // provide wrap options\n pandocOptions = pandocOptions.concat(wrapOptions(options));\n\n // render to markdown\n const markdown = await this.pandoc.astToMarkdown(output.ast, format, pandocOptions);\n\n // normalize newlines (don't know if pandoc uses \\r\\n on windows)\n return markdown.replace(/\\r\\n|\\n\\r|\\r/g, '\\n');\n }\n}\n\n// adjust the specified format\nfunction adjustedFormat(format: string, extensions: string[], disabled: string[]) {\n let newFormat = pandocFormatWith(\n format,\n '',\n extensions.map(ext => `+${ext}`).join('') + disabled.map(ext => `-${ext}`).join(''),\n );\n\n // any extension specified needs to not have a - anywhere in the format\n extensions.forEach(ext => {\n newFormat = newFormat.replace('-' + ext, '');\n });\n\n return newFormat;\n}\n\nfunction disabledFormatOptions(format: string, pandocFormat: PandocFormat, doc: ProsemirrorNode) {\n // (prefer pipe and grid tables). users can still force the availability of these by\n // adding those format flags but all known markdown variants that support tables also\n // support pipe tables so this seems unlikely to ever be required.\n let disabledTableTypes = '-simple_tables-multiline_tables';\n\n // if there are tables with inline R code then disable grid tables (as the inline\n // R code will mess up the column boundaries)\n if (haveTableCellsWithInlineRcode(doc) || \n (!gridTablesRequired(doc) && pandocFormat.extensions.pipe_tables)) {\n disabledTableTypes += '-grid_tables';\n }\n\n // gfm and commonmark variants don't allow simple/multiline/grid tables (just pipe tables)\n // and it's an error to even include these in the markdown format specifier -- so for\n // these modes we just nix the disabling\n if (format.startsWith(kGfmFormat) || format.startsWith(kCommonmarkFormat)) {\n disabledTableTypes = '';\n }\n\n // return\n return disabledTableTypes;\n}\n\nfunction gridTablesRequired(doc: ProsemirrorNode) {\n const schema = doc.type.schema;\n const isTableCell = (node: ProsemirrorNode) => node.type === schema.nodes.table_cell || node.type === schema.nodes.table_header;\n return findChildren(doc, isTableCell).some(cell => {\n // various things require grid tables (basically anyting that requires embedded newlines)\n\n // multiple blocks\n if (cell.node.childCount > 1) {\n return true;\n }\n\n // non paragraph block\n if (!isParagraphNode(cell.node.firstChild)) {\n return true;\n }\n\n // paragraph with hard break\n const paraNode = cell.node.firstChild!;\n return findChildren(paraNode, node => node.type === schema.nodes.hard_break).length > 0;\n }); \n}\n\nfunction wrapOptions(options: PandocWriterOptions) {\n const pandocOptions: string[] = [];\n if (options.wrap) {\n if (options.wrap === 'none' || options.wrap === 'sentence') {\n pandocOptions.push('--wrap=none');\n } else {\n const column = parseInt(options.wrap, 10);\n if (column) {\n pandocOptions.push('--wrap=auto');\n pandocOptions.push(`--columns=${column}`);\n } else {\n pandocOptions.push('--wrap=none');\n }\n }\n } else {\n pandocOptions.push('--wrap=none');\n }\n return pandocOptions;\n}\n","/*\n * pandoc_capsule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\n\nimport { base64Encode, base64Decode } from './base64';\n\nimport { PandocToken, ProsemirrorWriter, mapTokens, PandocTokenType } from './pandoc';\n\n// constants used for creating/consuming capsules\nconst kFieldDelimiter = '\\n';\nconst kValueDelimiter = ':';\nconst kTypeField = 'type';\nconst kPositionField = 'position';\nconst kPrefixField = 'prefix';\nconst kSourceField = 'source';\nconst kSuffixField = 'suffix';\nconst kBlockCapsuleSentinel = '31B8E172-B470-440E-83D8-E6B185028602'.toLowerCase();\n\n// block capsule\nexport interface PandocBlockCapsule {\n type: string;\n position: number;\n prefix: string;\n source: string;\n suffix: string;\n}\n\n// preserve block source code through markdown parsing (e.g. for yaml metadata or rmd chunks).\n// block capsules remove markdown from the document before pandoc parses it (placing it into\n// a base64 encoded 'capsule'), then unwraps the capsule from the AST. All of this is done\n// by the function in this interface.\nexport interface PandocBlockCapsuleFilter {\n // unique type id for this capsule\n type: string;\n\n // regex that matches a prefix (match[1]), the source to preserve (match[2]), and a suffix (match[3])\n // we need the prefix/suffix for the cases where the preserved source needs to be put back exactly\n // where it came from (e.g. in a multi-line html comment). we also need it to fixup indentation in\n // cases where capsules are unwrapped within a code block or raw block. the prefix and suffix\n // must begin and end (respectively) with newlines, and consist entirely of whitespace (e.g. leading\n // space for indented block or incidental whitespace after block delimiter)\n match: RegExp;\n\n // optional seconary filter expression (applied to a successful match to ensure\n // that matching wasn't overly greedy)\n discard?: RegExp;\n\n // custom function for pulling out the 3 parts from a match (defaults to p1,p2,p3)\n extract?: (\n match: string,\n p1: string,\n p2: string,\n p3: string,\n p4: string,\n ) => { prefix: string; source: string; suffix: string };\n\n // provide a (text) envelope around the capsule, e.g.\n // - newlines to ensure that yaml is parsed as a standalone paragraph;\n // - backticks to ensure an Rmd is structurally parsed by pandoc as a codeblock\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) => string;\n\n // examine a piece of text from within the pandoc ast and, if approproate, substitute any\n // capsules of my type for the original text (otherwise just return the passed string).\n // this method will generally use encodedBlockCapsuleRegex to create a regex to search\n // with, then upon finding a capsule, will unpack it with parsePandocBlockCapsule, compare\n // the type against our own type, and in the case they match do the substitution.\n handleText: (text: string, tok: PandocToken) => string;\n\n // do you want to handle this token as a capsule object? if so return the capsule text\n // (only the filter will know how to extract it from a pandoc token b/c it knows\n // where it was parsed from and what happened in the 'enclose' method)\n handleToken: (tok: PandocToken) => string | null;\n\n // write a capsule as a pandoc node\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => void;\n}\n\n// transform the passed markdown to include base64 encoded block capsules as specified by the\n// provided capsule filter. capsules are used to hoist block types that we don't want pandoc\n// to see (e.g. yaml metadata or Rmd chunks) out of the markdown, only to be re-inserted\n// after pandoc has yielded an ast. block capsules are a single base64 encoded pieced of\n// text that include the original content, the matched prefix and suffix, and a type\n// identifier for orchestrating the unpacking.\nexport function pandocMarkdownWithBlockCapsules(\n original: string,\n markdown: string,\n capsuleFilter: PandocBlockCapsuleFilter,\n) {\n // default extractor\n const defaultExtractor = (match: string, p1: string, p2: string, p3: string) => {\n return {\n prefix: p1,\n source: p2,\n suffix: p3,\n };\n };\n\n // find the original position of all the matches\n const positions: number[] = [];\n let match = capsuleFilter.match.exec(original);\n while (match != null) {\n positions.push(match.index);\n match = capsuleFilter.match.exec(original);\n }\n\n // reset capsule filter match index\n capsuleFilter.match.lastIndex = 0;\n\n // replace all w/ source preservation capsules\n return markdown.replace(capsuleFilter.match, (match: string, p1: string, p2: string, p3: string, p4: string) => {\n // read the original position of the match\n let position = 0;\n const originalPos = positions.shift();\n if (originalPos) {\n position = originalPos;\n }\n\n // if the capsuleFilter has a discard expression then check it\n if (capsuleFilter.discard && !!match.match(capsuleFilter.discard)) {\n return match;\n }\n\n // extract matches\n const extract = capsuleFilter.extract || defaultExtractor;\n const { prefix, source, suffix } = extract(match, p1, p2, p3, p4);\n\n // make the capsule\n const capsule: PandocBlockCapsule = {\n [kTypeField]: capsuleFilter.type,\n [kPositionField]: position,\n [kPrefixField]: prefix,\n [kSourceField]: source,\n [kSuffixField]: suffix,\n };\n\n // construct a field\n const field = (name: string, value: string) => `${name}${kValueDelimiter}${base64Encode(value)}`;\n\n // construct a record\n const record =\n field(kTypeField, capsule.type) +\n kFieldDelimiter +\n field(kPositionField, capsule.position.toString()) +\n kFieldDelimiter +\n field(kPrefixField, capsule.prefix) +\n kFieldDelimiter +\n field(kSourceField, capsule.source) +\n kFieldDelimiter +\n field(kSuffixField, capsule.suffix);\n\n // now base64 encode the entire record (so it can masquerade as a paragraph)\n const encodedRecord = base64Encode(record);\n\n // return capsule, which is:\n // - a base64 encoded record surrounded with a sentinel value\n // - enclosed in a filter specific envelope (used to influence pandoc parsing),\n // - surrounded by the original prefix and suffix\n return (\n prefix +\n capsuleFilter.enclose(\n `${kBlockCapsuleSentinel}${kValueDelimiter}${encodedRecord}${kValueDelimiter}${kBlockCapsuleSentinel}`,\n capsule,\n ) +\n suffix\n );\n });\n}\n\n// block capsules can also end up not as block tokens, but rather as text within another\n// token (e.g. within a backtick code block or raw_block). this function takes a set\n// of pandoc tokens and recursively converts block capsules that aren't of type\n// PandocTokenType.Str (which is what we'd see in a paragraph) into their original form\nexport function resolvePandocBlockCapsuleText(\n tokens: PandocToken[],\n filters: readonly PandocBlockCapsuleFilter[],\n): PandocToken[] {\n // process all tokens\n return mapTokens(tokens, token => {\n // look for non-string pandoc tokens\n if (token.t !== PandocTokenType.Str && token.c) {\n if (typeof token.c === 'string') {\n token.c = decodeBlockCapsuleText(token.c, token, filters);\n } else if (Array.isArray(token.c)) {\n const children = token.c.length;\n for (let i = 0; i < children; i++) {\n if (typeof token.c[i] === 'string') {\n token.c[i] = decodeBlockCapsuleText(token.c[i], token, filters);\n }\n }\n }\n }\n\n return token;\n });\n}\n\n// decode the text capsule by running all of the filters (as there could be nesting)\nexport function decodeBlockCapsuleText(text: string, tok: PandocToken, filters: readonly PandocBlockCapsuleFilter[]) {\n filters.forEach(filter => {\n text = filter.handleText(text, tok);\n });\n return text;\n}\n\nexport function blockCapsuleTextHandler(type: string, pattern: RegExp, textFilter?: (text: string) => string) {\n return (text: string, tok: PandocToken): string => {\n // if this is a code block or raw block then we need to strip the prefix\n // (b/c it could in a blockquote or indented in a list)\n const stripPrefix = tok.t === PandocTokenType.CodeBlock || tok.t === PandocTokenType.RawBlock;\n\n // replace text\n return text.replace(pattern, match => {\n const capsuleText = textFilter ? textFilter(match) : match;\n const capsule = parsePandocBlockCapsule(capsuleText);\n if (capsule.type === type) {\n if (stripPrefix) {\n return blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n } else {\n return capsule.source;\n }\n } else {\n return match;\n }\n });\n };\n}\n\n// token handler that looks for a paragraph token consisting entirely of a block capsule of our type.\n// if we find that then return the block capsule text\nexport function blockCapsuleParagraphTokenHandler(type: string) {\n const tokenRegex = encodedBlockCapsuleRegex('^', '$');\n return (tok: PandocToken) => {\n if (tok.t === PandocTokenType.Para) {\n if (tok.c.length === 1 && tok.c[0].t === PandocTokenType.Str) {\n const text = tok.c[0].c as string;\n const match = text.match(tokenRegex);\n if (match) {\n const capsuleRecord = parsePandocBlockCapsule(match[0]);\n if (capsuleRecord.type === type) {\n return match[0];\n }\n }\n }\n }\n return null;\n };\n}\n\n// create a regex that can be used to match a block capsule\nexport function encodedBlockCapsuleRegex(prefix?: string, suffix?: string, flags?: string) {\n return new RegExp(\n (prefix || '') +\n kBlockCapsuleSentinel +\n kValueDelimiter +\n '((?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)' +\n kValueDelimiter +\n kBlockCapsuleSentinel +\n (suffix || ''),\n flags,\n );\n}\n\n// remove encoding envelope then parse the remaining text into a block capsule\nexport function parsePandocBlockCapsule(text: string): PandocBlockCapsule {\n const envelopeLen = kBlockCapsuleSentinel.length + kFieldDelimiter.length;\n const record = text.substring(envelopeLen, text.length - envelopeLen);\n const decodedRecord = base64Decode(record);\n const fields = decodedRecord.split(kFieldDelimiter);\n const fieldValue = (i: number) => base64Decode(fields[i].split(kValueDelimiter)[1]);\n return {\n [kTypeField]: fieldValue(0),\n [kPositionField]: parseInt(fieldValue(1), 10),\n [kPrefixField]: fieldValue(2),\n [kSourceField]: fieldValue(3),\n [kSuffixField]: fieldValue(4),\n };\n}\n\n// provide a version of the block capsule source with the prefix removed\n// from all but the very first line. this allows us to restore the text\n// to the level of indentation implied by the markdown (as opposed to the\n// level found literally in the source file)\nexport function blockCapsuleSourceWithoutPrefix(source: string, prefix: string) {\n // prefix represents the indentation level of the block's source code, strip that\n // same prefix from all the lines of code save for the first one\n const prefixStripRegEx = new RegExp('^' + prefix);\n const lines = source.split('\\n').map((line, index) => {\n return index > 0 ? line.replace(prefixStripRegEx, '') : line;\n });\n return lines.join('\\n');\n}\n","/*\n * base_64.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n// btoa and atob don't handle unicode strings, see\n// https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa#Unicode_strings\n\n// these functions implement the suggested workaround ()\n\nexport function base64Encode(text: string) {\n const binary = toBinary(text);\n return window.btoa(binary);\n}\n\nexport function base64Decode(encoded: string) {\n const decoded = atob(encoded);\n return fromBinary(decoded);\n}\n\n// convert a Unicode string to a string in which each 16-bit unit occupies only one byte\nfunction toBinary(text: string) {\n const codeUnits = new Uint16Array(text.length);\n for (let i = 0; i < codeUnits.length; i++) {\n codeUnits[i] = text.charCodeAt(i);\n }\n const charCodes = Array.from(new Uint8Array(codeUnits.buffer)).map(code => String.fromCharCode(code));\n return charCodes.join('');\n}\n\n// reverse the conversion\nfunction fromBinary(binary: string) {\n const bytes = new Uint8Array(binary.length);\n for (let i = 0; i < bytes.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n const charCodes = Array.from(new Uint16Array(bytes.buffer)).map(code => String.fromCharCode(code));\n return charCodes.join('');\n}\n","/*\n * pandoc_to_prosemirror.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Mark, Node as ProsemirrorNode, NodeType, Schema } from 'prosemirror-model';\n\nimport {\n PandocTokenReader,\n PandocToken,\n PandocAst,\n ProsemirrorWriter,\n PandocBlockReaderFn,\n PandocInlineHTMLReaderFn,\n PandocTokensFilterFn,\n PandocTokenType,\n mapTokens,\n stringifyTokens,\n PandocExtensions,\n forEachToken,\n} from '../api/pandoc';\nimport {\n pandocAttrReadAST,\n kCodeBlockAttr,\n kCodeBlockText,\n kPandocAttrClasses,\n kPandocAttrKeyvalue,\n} from '../api/pandoc_attr';\nimport {\n PandocBlockCapsuleFilter,\n parsePandocBlockCapsule,\n resolvePandocBlockCapsuleText,\n decodeBlockCapsuleText,\n} from '../api/pandoc_capsule';\n\nimport { PandocToProsemirrorResult, PandocLineWrapping } from './pandoc_converter';\nimport { kLinkTarget, kLinkTargetUrl, kLinkChildren, kLinkAttr, kLinkTargetTitle } from '../api/link';\nimport { kHeadingAttr, kHeadingLevel, kHeadingChildren } from '../api/heading';\nimport { pandocAutoIdentifier, gfmAutoIdentifier } from '../api/pandoc_id';\nimport { equalsIgnoreCase } from '../api/text';\nimport { hasShortcutHeadingLinks } from '../api/pandoc_format';\n\nexport function pandocToProsemirror(\n ast: PandocAst,\n schema: Schema,\n extensions: PandocExtensions,\n readers: readonly PandocTokenReader[],\n tokensFilters: readonly PandocTokensFilterFn[],\n blockReaders: readonly PandocBlockReaderFn[],\n inlineHTMLReaders: readonly PandocInlineHTMLReaderFn[],\n blockCapsuleFilters: readonly PandocBlockCapsuleFilter[],\n): PandocToProsemirrorResult {\n const parser = new Parser(\n schema,\n extensions,\n readers,\n tokensFilters,\n blockReaders,\n inlineHTMLReaders,\n blockCapsuleFilters,\n );\n return parser.parse(ast);\n}\n\nclass Parser {\n private readonly schema: Schema;\n private readonly extensions: PandocExtensions;\n private readonly tokensFilters: readonly PandocTokensFilterFn[];\n private readonly inlineHTMLReaders: readonly PandocInlineHTMLReaderFn[];\n private readonly blockCapsuleFilters: readonly PandocBlockCapsuleFilter[];\n private readonly handlers: { [token: string]: ParserTokenHandlerCandidate[] };\n\n constructor(\n schema: Schema,\n extensions: PandocExtensions,\n readers: readonly PandocTokenReader[],\n tokensFilters: readonly PandocTokensFilterFn[],\n blockReaders: readonly PandocBlockReaderFn[],\n inlineHTMLReaders: readonly PandocInlineHTMLReaderFn[],\n blockCapsuleFilters: readonly PandocBlockCapsuleFilter[],\n ) {\n this.schema = schema;\n this.extensions = extensions;\n this.tokensFilters = tokensFilters;\n this.inlineHTMLReaders = inlineHTMLReaders;\n // apply block capsule filters in reverse order\n this.blockCapsuleFilters = blockCapsuleFilters.slice().reverse();\n this.handlers = this.createHandlers(readers, blockReaders);\n }\n\n public parse(ast: PandocAst) {\n // create state\n const state: ParserState = new ParserState(this.schema);\n // create writer (compose state w/ writeTokens function)\n const parser = this;\n const writer: ProsemirrorWriter = {\n openNode: state.openNode.bind(state),\n closeNode: state.closeNode.bind(state),\n openNoteNode: state.openNoteNode.bind(state),\n addNode: state.addNode.bind(state),\n openMark: state.openMark.bind(state),\n closeMark: state.closeMark.bind(state),\n writeText: state.writeText.bind(state),\n hasInlineHTMLWriter(html: string) {\n return parser.hasInlineHTMLWriter(html);\n },\n writeInlineHTML(html: string) {\n return parser.writeInlineHTML(this, html);\n },\n writeTokens(tokens: PandocToken[]) {\n parser.writeTokens(this, tokens);\n },\n logUnrecognized: state.logUnrecognized.bind(state),\n logExampleList: state.logExampleList.bind(state),\n isNodeOpen: state.isNodeOpen.bind(state),\n };\n\n // process raw text capsules\n let targetAst = {\n ...ast,\n blocks: resolvePandocBlockCapsuleText(ast.blocks, this.blockCapsuleFilters),\n };\n\n // detect line wrapping\n const lineWrapping = detectLineWrapping(targetAst);\n\n // resolve heading ids\n targetAst = resolveHeadingIds(targetAst, this.extensions);\n\n // write all tokens\n writer.writeTokens(targetAst.blocks);\n\n // return\n return {\n doc: state.doc(),\n line_wrapping: lineWrapping,\n unrecognized: state.unrecognized(),\n example_lists: state.hasExampleLists(),\n unparsed_meta: ast.meta,\n };\n }\n\n private writeTokens(writer: ProsemirrorWriter, tokens: PandocToken[]) {\n // pass through tokens filters\n let targetTokens = tokens;\n this.tokensFilters.forEach(filter => {\n targetTokens = filter(targetTokens, writer);\n });\n\n // process tokens\n targetTokens.forEach(tok => this.writeToken(writer, tok));\n }\n\n private writeToken(writer: ProsemirrorWriter, tok: PandocToken) {\n // process block-level capsules\n for (const filter of this.blockCapsuleFilters) {\n const capsuleText = filter.handleToken?.(tok);\n if (capsuleText) {\n const blockCapsule = parsePandocBlockCapsule(capsuleText);\n // run all of the text filters in case there was nesting\n blockCapsule.source = decodeBlockCapsuleText(blockCapsule.source, tok, this.blockCapsuleFilters);\n filter.writeNode(this.schema, writer, blockCapsule);\n return;\n }\n }\n\n // look for a handler.match function that wants to handle this token\n const handlers = this.handlers[tok.t] || [];\n for (const handler of handlers) {\n // It's not enough for a pandoc reader's preferred token to match the\n // current token; it's possible based on the `match` method for the\n // reader to decline to handle it.\n if (handler.match && handler.match(tok)) {\n handler.handler(writer, tok);\n return;\n }\n }\n\n // if we didn't find one, look for the default handler\n for (const handler of handlers) {\n if (!handler.match) {\n handler.handler(writer, tok);\n return;\n }\n }\n\n // log unrecognized token\n writer.logUnrecognized(tok.t);\n }\n\n private hasInlineHTMLWriter(html: string) {\n for (const reader of this.inlineHTMLReaders) {\n if (reader(this.schema, html)) {\n return true;\n }\n }\n return false;\n }\n\n private writeInlineHTML(writer: ProsemirrorWriter, html: string) {\n for (const reader of this.inlineHTMLReaders) {\n if (reader(this.schema, html, writer)) {\n return;\n }\n }\n }\n\n // create parser token handler functions based on the passed readers\n private createHandlers(readers: readonly PandocTokenReader[], blockReaders: readonly PandocBlockReaderFn[]) {\n const handlers: { [token: string]: ParserTokenHandlerCandidate[] } = {};\n\n for (const reader of readers) {\n // resolve children (provide default impl)\n const getChildren = reader.getChildren || ((tok: PandocToken) => tok.c);\n\n // resolve getAttrs (provide default imple)\n const getAttrs = reader.getAttrs ? reader.getAttrs : (tok: PandocToken) => ({});\n\n let handler: ParserTokenHandler;\n\n // see if there is a low-level handler\n if (reader.handler) {\n handler = reader.handler(this.schema);\n }\n\n // text\n else if (reader.text) {\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n if (reader.getText) {\n const text = reader.getText(tok);\n writer.writeText(text);\n }\n };\n\n // marks\n } else if (reader.mark) {\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n const markType = this.schema.marks[reader.mark as string];\n const mark = markType.create(getAttrs(tok));\n writer.openMark(mark);\n if (reader.getText) {\n writer.writeText(reader.getText(tok));\n } else {\n writer.writeTokens(getChildren(tok));\n }\n writer.closeMark(mark);\n };\n\n // blocks\n } else if (reader.block) {\n const nodeType = this.schema.nodes[reader.block];\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n // give the block readers first crack (e.g. handle a paragraph node with\n // a single image as a figure node)\n for (const blockReader of blockReaders) {\n if (blockReader(this.schema, tok, writer)) {\n return;\n }\n }\n\n writer.openNode(nodeType, getAttrs(tok));\n if (reader.getText) {\n writer.writeText(reader.getText(tok));\n } else {\n writer.writeTokens(getChildren(tok));\n }\n writer.closeNode();\n };\n\n // nodes\n } else if (reader.node) {\n const nodeType = this.schema.nodes[reader.node];\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n if (reader.getChildren) {\n writer.openNode(nodeType, getAttrs(tok));\n writer.writeTokens(getChildren(tok));\n writer.closeNode();\n } else {\n let content: ProsemirrorNode[] = [];\n if (reader.getText) {\n content = [this.schema.text(reader.getText(tok))];\n }\n writer.addNode(nodeType, getAttrs(tok), content);\n }\n };\n\n // code blocks\n } else if (reader.code_block) {\n handler = (writer: ProsemirrorWriter, tok: PandocToken) => {\n // type/attr/text\n const nodeType = this.schema.nodes.code_block;\n const attr: {} = pandocAttrReadAST(tok, kCodeBlockAttr);\n const text = tok.c[kCodeBlockText] as string;\n\n // write node\n writer.openNode(nodeType, attr);\n writer.writeText(text);\n writer.closeNode();\n };\n } else {\n throw new Error('pandoc reader was malformed or unrecognized');\n }\n\n // Ensure an array exists\n handlers[reader.token] = handlers[reader.token] || [];\n\n handlers[reader.token].push({\n match: reader.match,\n handler,\n });\n }\n return handlers;\n }\n}\n\nclass ParserState {\n private readonly schema: Schema;\n private readonly stack: ParserStackElement[];\n private readonly notes: ProsemirrorNode[];\n private marks: Mark[];\n private footnoteNumber: number;\n private unrecognizedTokens: string[];\n private exampleLists: boolean;\n\n constructor(schema: Schema) {\n this.schema = schema;\n this.stack = [{ type: this.schema.nodes.body, attrs: {}, content: [] }];\n this.notes = [];\n this.marks = Mark.none;\n this.footnoteNumber = 1;\n this.unrecognizedTokens = [];\n this.exampleLists = false;\n }\n\n public doc(): ProsemirrorNode {\n const content: ProsemirrorNode[] = [];\n content.push(this.top().type.createAndFill(null, this.top().content) as ProsemirrorNode);\n content.push(this.schema.nodes.notes.createAndFill(null, this.notes) as ProsemirrorNode);\n return this.schema.topNodeType.createAndFill({}, content) as ProsemirrorNode;\n }\n\n public unrecognized(): string[] {\n return this.unrecognizedTokens;\n }\n\n public hasExampleLists(): boolean {\n return this.exampleLists;\n }\n\n public writeText(text: string) {\n if (!text) {\n return;\n }\n const nodes: ProsemirrorNode[] = this.top().content;\n const last: ProsemirrorNode = nodes[nodes.length - 1];\n const node: ProsemirrorNode = this.schema.text(text, this.marks);\n const merged: ProsemirrorNode | undefined = this.maybeMerge(last, node);\n if (last && merged) {\n nodes[nodes.length - 1] = merged;\n } else {\n nodes.push(node);\n }\n }\n\n public addNode(type: NodeType, attrs: {}, content: ProsemirrorNode[]) {\n const node: ProsemirrorNode | null | undefined = type.createAndFill(attrs, content, this.marks);\n if (!node) {\n return null;\n }\n if (this.stack.length) {\n if (type === this.schema.nodes.note) {\n this.notes.push(node);\n } else {\n this.top().content.push(node);\n }\n }\n return node;\n }\n\n public openNode(type: NodeType, attrs: {}) {\n this.stack.push({ type, attrs, content: [] });\n }\n\n public closeNode(): ProsemirrorNode {\n // get node info\n const info: ParserStackElement = this.stack.pop() as ParserStackElement;\n\n // clear marks if the node type isn't inline\n if (!info.type.isInline) {\n if (this.marks.length) {\n this.marks = Mark.none;\n }\n }\n\n return this.addNode(info.type, info.attrs, info.content) as ProsemirrorNode;\n }\n\n public openMark(mark: Mark) {\n this.marks = mark.addToSet(this.marks);\n }\n\n public closeMark(mark: Mark) {\n this.marks = mark.removeFromSet(this.marks);\n }\n\n public openNoteNode(ref: string) {\n this.openNode(this.schema.nodes.note, { ref, number: this.footnoteNumber++ });\n }\n\n public logUnrecognized(type: string) {\n if (!this.unrecognizedTokens.includes(type)) {\n this.unrecognizedTokens.push(type);\n }\n }\n\n public logExampleList() {\n this.exampleLists = true;\n }\n\n public isNodeOpen(type: NodeType) {\n return this.stack.some(value => value.type === type);\n }\n\n private top(): ParserStackElement {\n return this.stack[this.stack.length - 1];\n }\n\n private maybeMerge(a: ProsemirrorNode, b: ProsemirrorNode): ProsemirrorNode | undefined {\n if (a && a.isText && b.isText && Mark.sameSet(a.marks, b.marks)) {\n return this.schema.text(((a.text as string) + b.text) as string, a.marks);\n } else {\n return undefined;\n }\n }\n}\n\n// determine what sort of line wrapping is used within the file\nfunction detectLineWrapping(ast: PandocAst): PandocLineWrapping {\n // look for soft breaks and classify them as column or sentence breaks\n let columnBreaks = 0;\n let sentenceBreaks = 0;\n let prevTok: PandocToken = { t: PandocTokenType.Null };\n forEachToken(ast.blocks, tok => {\n if (tok.t === PandocTokenType.SoftBreak) {\n if (\n prevTok.t === PandocTokenType.Str &&\n typeof prevTok.c === 'string' &&\n ['.', '?', '!'].includes(prevTok.c.charAt(prevTok.c.length - 1))\n ) {\n sentenceBreaks++;\n } else {\n columnBreaks++;\n }\n }\n prevTok = tok;\n });\n\n // need to have > 5 line breaks or more line breaks than blocks to trigger detection\n // (prevents 'over-detection' if there are stray few soft breaks)\n const lineBreaks = columnBreaks + sentenceBreaks;\n if (lineBreaks > 5 || lineBreaks > ast.blocks.length) {\n if (sentenceBreaks > columnBreaks) {\n return 'sentence';\n } else {\n return 'column';\n }\n } else {\n return 'none';\n }\n}\n\n// determine which heading ids are valid based on explicit headings contained in the\n// document and any headings targeted by links. remove any heading ids not so identified\nfunction resolveHeadingIds(ast: PandocAst, extensions: PandocExtensions) {\n // determine function we will use to create auto-identifiers\n const autoIdentifier = extensions.gfm_auto_identifiers ? gfmAutoIdentifier : pandocAutoIdentifier;\n\n // start with ids we know are valid (i.e. ones the user added to the doc)\n const headingIds = new Set((ast.heading_ids || []).map(id => id.toLocaleLowerCase()));\n\n // find ids referenced in links\n let astBlocks = mapTokens(ast.blocks, tok => {\n if (tok.t === PandocTokenType.Link) {\n const target = tok.c[kLinkTarget];\n const href = target[kLinkTargetUrl] as string;\n if (href.startsWith('#')) {\n // if we have support for implicit header references and shortcut reference links,\n // also check to see whether the link text resolves to the target (in that case\n // we don't need the explicit id). note that if that heading has an explicit\n // id defined then we also leave it alone.\n const text = stringifyTokens(tok.c[kLinkChildren], extensions.gfm_auto_identifiers);\n if (\n hasShortcutHeadingLinks(extensions) &&\n equalsIgnoreCase('#' + autoIdentifier(text, extensions.ascii_identifiers), href) &&\n !headingIds.has(href.toLocaleLowerCase())\n ) {\n // return a version of the link w/o the target\n return {\n t: PandocTokenType.Link,\n c: [tok.c[kLinkAttr], tok.c[kLinkChildren], ['#', tok.c[kLinkTarget][kLinkTargetTitle]]],\n };\n\n // otherwise note that it's a valid id\n } else {\n headingIds.add(href.toLocaleLowerCase());\n }\n }\n }\n // default to return token unmodified\n return tok;\n });\n\n // remove any heading ids not created by the user or required by a link\n astBlocks = mapTokens(ast.blocks, tok => {\n if (tok.t === PandocTokenType.Header) {\n const attr = pandocAttrReadAST(tok, kHeadingAttr);\n if (attr.id && !headingIds.has('#' + attr.id.toLocaleLowerCase())) {\n return {\n t: PandocTokenType.Header,\n c: [\n tok.c[kHeadingLevel],\n ['', tok.c[kHeadingAttr][kPandocAttrClasses], tok.c[kHeadingAttr][kPandocAttrKeyvalue]],\n tok.c[kHeadingChildren],\n ],\n };\n }\n }\n // default to just reflecting back the token\n return tok;\n });\n\n // return the ast\n return {\n ...ast,\n blocks: astBlocks,\n heading_ids: undefined,\n };\n}\n\ninterface ParserStackElement {\n type: NodeType;\n attrs: {};\n content: ProsemirrorNode[];\n}\n\ntype ParserTokenHandler = (writer: ProsemirrorWriter, tok: PandocToken) => void;\n\ninterface ParserTokenHandlerCandidate {\n match?: (tok: PandocToken) => boolean;\n handler: ParserTokenHandler;\n}\n","/*\n * pandoc_from_prosemirror.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Fragment, MarkType, Mark } from 'prosemirror-model';\n\nimport {\n PandocAst,\n PandocToken,\n PandocOutput,\n PandocNodeWriterFn,\n PandocNodeWriter,\n PandocMarkWriter,\n PandocApiVersion,\n PandocTokenType,\n PandocOutputOption,\n PandocExtensions,\n marksByPriority,\n kPreventBracketEscape,\n} from '../api/pandoc';\n\nimport { PandocFormat, kGfmFormat } from '../api/pandoc_format';\nimport { PandocAttr } from '../api/pandoc_attr';\nimport { fragmentText } from '../api/fragment';\nimport { fancyQuotesToSimple } from '../api/quote';\n\nexport function pandocFromProsemirror(\n doc: ProsemirrorNode,\n apiVersion: PandocApiVersion,\n format: PandocFormat,\n nodeWriters: readonly PandocNodeWriter[],\n markWriters: readonly PandocMarkWriter[],\n) {\n const bodyNode = doc.child(0);\n const notesNode = doc.child(1);\n const writer = new PandocWriter(apiVersion, format, nodeWriters, markWriters, notesNode);\n writer.writeNodes(bodyNode);\n return writer.output();\n}\n\nclass PandocWriter implements PandocOutput {\n private readonly ast: PandocAst;\n private readonly format: PandocFormat;\n private readonly nodeWriters: { [key: string]: PandocNodeWriterFn };\n private readonly markWriters: { [key: string]: PandocMarkWriter };\n private readonly notes: { [key: string]: ProsemirrorNode };\n private readonly containers: any[][];\n private readonly activeMarks: MarkType[];\n private options: { [key: string]: boolean };\n\n public readonly extensions: PandocExtensions;\n\n private readonly escapeCharacters: string[] = [];\n private readonly manualEscapeCharacters: Map = new Map();\n private readonly preventEscapeCharacters: string[] = [];\n\n constructor(\n apiVersion: PandocApiVersion,\n format: PandocFormat,\n nodeWriters: readonly PandocNodeWriter[],\n markWriters: readonly PandocMarkWriter[],\n notes: ProsemirrorNode,\n ) {\n // save format and extensions\n this.format = format;\n this.extensions = format.extensions;\n // compute escape characters based on format\n this.initEscapeCharacters();\n // create maps of node and mark writers\n this.nodeWriters = {};\n nodeWriters.forEach((writer: PandocNodeWriter) => {\n this.nodeWriters[writer.name] = writer.write;\n });\n this.markWriters = {};\n markWriters.forEach((writer: PandocMarkWriter) => {\n this.markWriters[writer.name] = writer;\n });\n // create map of notes\n this.notes = {};\n notes.forEach((note: ProsemirrorNode) => {\n this.notes[note.attrs.ref] = note;\n });\n\n this.ast = {\n blocks: [],\n 'pandoc-api-version': apiVersion,\n meta: {},\n };\n this.containers = [this.ast.blocks];\n this.activeMarks = [];\n this.options = {\n writeSpaces: true,\n };\n }\n\n public output() {\n return {\n ast: this.ast,\n };\n }\n\n public write(value: any) {\n const container = this.containers[this.containers.length - 1];\n container.push(value);\n }\n\n public writeToken(type: PandocTokenType, content?: (() => void) | any) {\n const token: PandocToken = {\n t: type,\n };\n if (content !== undefined) {\n if (typeof content === 'function') {\n token.c = [];\n this.fill(token.c, content);\n } else {\n token.c = content;\n }\n }\n this.write(token);\n }\n\n public writeMark(type: PandocTokenType, parent: Fragment, expelEnclosingWhitespace = true) {\n // expel enclosing whitepsace if requested and if the fragment isn't 100% spaces\n if (expelEnclosingWhitespace) {\n // build output spec\n const output = {\n spaceBefore: false,\n nodes: new Array(),\n spaceAfter: false,\n };\n\n // if we see leading or trailing spaces we need to output them as tokens\n // and substitute text nodes\n parent.forEach((node: ProsemirrorNode, offset: number, index: number) => {\n // check for leading/trailing space in first/last nodes\n if (node.isText) {\n let outputText = node.textContent;\n\n // checking for leading space in first node\n if (output.nodes.length === 0 && node.textContent.match(/^\\s+/)) {\n output.spaceBefore = true;\n outputText = outputText.trimLeft();\n }\n\n // check for trailing space in last node\n if (index === parent.childCount - 1 && node.textContent.match(/\\s+$/)) {\n output.spaceAfter = true;\n outputText = outputText.trimRight();\n }\n\n // check for an entirely blank node\n if (outputText.match(/^\\s*$/)) {\n outputText = '';\n }\n\n // skip the node if it has nothing in it\n if (outputText.length > 0) {\n // if we modified the node's text then create a new node\n if (outputText !== node.textContent) {\n output.nodes.push(node.type.schema.text(outputText, node.marks));\n } else {\n output.nodes.push(node);\n }\n }\n } else {\n output.nodes.push(node);\n }\n });\n\n // output space tokens before/after mark as necessary\n if (output.nodes.length > 0) {\n if (output.spaceBefore) {\n this.writeToken(PandocTokenType.Space);\n }\n this.writeToken(type, () => {\n this.writeInlines(Fragment.from(output.nodes));\n });\n if (output.spaceAfter) {\n this.writeToken(PandocTokenType.Space);\n }\n }\n\n // normal codepath (not expelling existing whitespace)\n } else {\n this.writeToken(type, () => {\n this.writeInlines(parent);\n });\n }\n }\n\n public writeArray(content: () => void) {\n const arr: any[] = [];\n this.fill(arr, content);\n this.write(arr);\n }\n\n public writeAttr(id?: string, classes?: string[], keyvalue?: Array<[string, string]>) {\n this.write([id || '', classes || [], keyvalue || []]);\n }\n\n public writeText(text: string | null) {\n // determine which characters we shouldn't escape\n const preventEscapeCharacters = [ ...this.preventEscapeCharacters ];\n if (this.options[kPreventBracketEscape]) {\n preventEscapeCharacters.push('[', ']');\n }\n\n if (text) {\n let textRun = '';\n const flushTextRun = () => {\n if (textRun) {\n // if this is a line block, convert leading nbsp to regular space,\n if (!this.options.writeSpaces) {\n textRun = textRun.replace(/(^|\\n)+(\\u00A0+)/g, (_match, p1, p2) => {\n return p1 + Array(p2.length + 1).join(' ');\n });\n }\n\n // reverse smart punctuation. pandoc does this autmoatically for markdown\n // writing w/ +smart, however this also results in nbsp's being inserted\n // after selected abbreviations like e.g. and Mr., and we don't want that\n // to happen for editing (b/c the nbsp's weren't put there by the user\n // and are not obviously visible)\n if (this.extensions.smart) {\n textRun = textRun\n .replace(/—/g, '---')\n .replace(/–/g, '--')\n .replace(/…/g, '...');\n textRun = fancyQuotesToSimple(textRun);\n }\n \n this.writeToken(PandocTokenType.Str, textRun);\n textRun = '';\n }\n };\n for (let i = 0; i < text.length; i++) {\n const ch = text.charAt(i);\n if (this.options.writeSpaces && ch === ' ') {\n flushTextRun();\n this.writeToken(PandocTokenType.Space);\n } else if (preventEscapeCharacters.includes(ch)) {\n flushTextRun();\n this.writeRawMarkdown(ch);\n } else if (this.manualEscapeCharacters.has(ch)) {\n flushTextRun();\n this.writeRawMarkdown(this.manualEscapeCharacters.get(ch)!);\n } else {\n textRun += ch;\n }\n }\n flushTextRun();\n }\n }\n\n public writeLink(href: string, title: string, attr: PandocAttr | null, content: VoidFunction) {\n this.writeToken(PandocTokenType.Link, () => {\n // write attr if provided\n if (attr) {\n this.writeAttr(attr.id, attr.classes, attr.keyvalue);\n } else {\n this.writeAttr();\n }\n // write content\n this.writeArray(() => {\n content();\n });\n\n // write href\n this.write([href || '', title || '']);\n });\n }\n\n public writeNote(note: ProsemirrorNode) {\n // get corresponding note body\n const noteBody = this.notes[note.attrs.ref];\n\n // don't write empty footnotes (otherwise in block or section mode they gobble up the section below them)\n if (noteBody.textContent.trim().length > 0) {\n this.writeToken(PandocTokenType.Note, () => {\n this.writeNodes(noteBody);\n });\n }\n }\n\n public writeNode(node: ProsemirrorNode) {\n this.nodeWriters[node.type.name](this, node);\n }\n\n public writeNodes(parent: ProsemirrorNode) {\n parent.forEach(this.writeNode.bind(this));\n }\n\n public writeInlines(fragment: Fragment) {\n // get the marks from a node that are not already on the stack of active marks\n const nodeMarks = (node: ProsemirrorNode) => {\n // get marks ordered by writer priority\n let marks = marksByPriority(node.marks, this.markWriters);\n\n // remove active marks\n for (const activeMark of this.activeMarks) {\n marks = activeMark.removeFromSet(marks);\n }\n\n // return marks\n return marks;\n };\n\n // helpers to iterate through the nodes (sans any marks already on the stack)\n let currentChild = 0;\n const nextNode = () => {\n const childIndex = currentChild;\n currentChild++;\n return {\n node: fragment.child(childIndex),\n marks: nodeMarks(fragment.child(childIndex)),\n };\n };\n const putBackNode = () => {\n currentChild--;\n };\n\n // iterate through the nodes\n while (currentChild < fragment.childCount) {\n // get the next node\n let next = nextNode();\n\n // if there are active marks then collect them up and call the mark handler\n // with all nodes that it contains, otherwise just process it as a plain\n // unmarked node\n if (next.marks.length > 0) {\n // get the mark and start building a list of marked nodes\n const mark = next.marks[0];\n const markedNodes: ProsemirrorNode[] = [next.node];\n\n // inner iteration to find nodes that have this mark\n while (currentChild < fragment.childCount) {\n next = nextNode();\n // If the next node shares the same mark with the current node\n // then add this next node node as a child of the current node\n if (next.marks.some(nextMark => nextMark.eq(mark))) {\n markedNodes.push(next.node);\n } else {\n // no mark found, \"put back\" the node\n putBackNode();\n break;\n }\n }\n\n // call the mark writer after noting that this mark is active (which\n // will cause subsequent recursive invocations of this function to\n // not re-process this mark)\n this.activeMarks.push(mark.type);\n this.markWriters[mark.type.name].write(this, mark, Fragment.from(markedNodes));\n this.activeMarks.pop();\n } else {\n // ordinary unmarked node, call the node writer\n this.nodeWriters[next.node.type.name](this, next.node);\n }\n }\n }\n\n public writeRawMarkdown(markdown: Fragment | string, escapeSymbols?: boolean) {\n // collect markdown text if necessary\n let md = markdown instanceof Fragment ? fragmentText(markdown) : markdown;\n\n // escape symbols if requested\n if (escapeSymbols) {\n const escaped: string[] = [];\n for (let i = 0; i < md.length; i++) {\n const ch = md.charAt(i);\n if (this.escapeCharacters.includes(ch)) {\n escaped.push('\\\\' + ch);\n } else {\n escaped.push(ch);\n }\n }\n md = escaped.join('');\n }\n\n this.writeToken(PandocTokenType.RawInline, () => {\n this.write('markdown');\n this.write(md);\n });\n }\n\n public withOption(option: PandocOutputOption, value: boolean, f: () => void) {\n const previousValue = this.options[option];\n this.options[option] = value;\n f();\n this.options[option] = previousValue;\n }\n\n private fill(container: any[], content: () => void) {\n this.containers.push(container);\n content();\n this.containers.pop();\n }\n\n private initEscapeCharacters() {\n // gfm disallows [] escaping so that MediaWiki style page links (e.g. [[MyPage]]) work as expected\n // tex_math_single_backslash does not allow escaping of [] or () (as that conflicts with the math syntax)\n if (this.format.mode === kGfmFormat || this.format.extensions.tex_math_single_backslash) {\n this.preventEscapeCharacters.push('[', ']');\n }\n\n // tex_math_single_backslash does not allow escaping of [] or () (as that conflicts with the math syntax)\n if (this.format.extensions.tex_math_single_backslash) {\n this.preventEscapeCharacters.push('(', ')');\n }\n\n // filter standard escape characters w/ preventEscapeCharacters\n const allEscapeCharacters = ['\\\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!'];\n if (this.format.extensions.angle_brackets_escapable) {\n allEscapeCharacters.push('<');\n }\n this.escapeCharacters.push(...allEscapeCharacters.filter(ch => !this.preventEscapeCharacters.includes(ch)));\n\n // Manual escape characters are ones we can't rely on pandoc to automatically escape (b/c\n // they represent valid syntax for a markdown extension, e.g. '@' for citations).\n // For '@', since we already do special writing for spans we know are citation ids, we can\n // globally prescribe escaping behavior and never stomp over a citation. We also check\n // that '@' can be escaped in the current markdown format, and if not use an html escape.\n const atEscape = this.extensions.all_symbols_escapable ? '\\\\@' : '@';\n this.manualEscapeCharacters.set('@', atEscape);\n }\n}\n","/*\n * fragment.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment } from 'prosemirror-model';\n\nexport function fragmentText(fragment: Fragment, unemoji = false) {\n let text = '';\n fragment.forEach(node => {\n const emjojiMark = node.marks.find(mark => mark.type === node.type.schema.marks.emoji);\n if (unemoji && emjojiMark) {\n return (text = text + (emjojiMark.attrs.emojihint || node.textContent));\n } else {\n return (text = text + node.textContent);\n }\n });\n return text;\n}\n","/*\n * editor-extensions.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { InputRule } from 'prosemirror-inputrules';\nimport { Schema } from 'prosemirror-model';\nimport { Plugin } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { ProsemirrorCommand } from '../api/command';\nimport { PandocMark } from '../api/mark';\nimport { PandocNode, CodeViewOptions } from '../api/node';\nimport { Extension, ExtensionFn, ExtensionContext } from '../api/extension';\nimport { BaseKeyBinding } from '../api/basekeys';\nimport { OmniInserter } from '../api/omni_insert';\nimport { AppendTransactionHandler, AppendMarkTransactionHandler } from '../api/transaction';\nimport { FixupFn } from '../api/fixup';\nimport {\n PandocTokenReader,\n PandocMarkWriter,\n PandocNodeWriter,\n PandocPreprocessorFn,\n PandocPostprocessorFn,\n PandocBlockReaderFn,\n PandocInlineHTMLReaderFn,\n PandocTokensFilterFn,\n} from '../api/pandoc';\nimport { PandocBlockCapsuleFilter } from '../api/pandoc_capsule';\nimport { markInputRuleFilter } from '../api/input_rule';\nimport { CompletionHandler } from '../api/completion';\n\n// required extensions (base non-customiziable pandoc nodes/marks + core behaviors)\nimport nodeText from '../nodes/text';\nimport nodeParagraph from '../nodes/paragraph';\nimport nodeHeading from '../nodes/heading';\nimport nodeBlockquote from '../nodes/blockquote';\nimport nodeCodeBlock from '../nodes/code_block';\nimport nodeLists from '../nodes/list/list';\nimport nodeImage from '../nodes/image/image';\nimport nodeFigure from '../nodes/image/figure';\nimport nodeHr from '../nodes/hr';\nimport nodeHardBreak from '../nodes/hard_break';\nimport nodeNull from '../nodes/null';\nimport markEm from '../marks/em';\nimport markStrong from '../marks/strong';\nimport markCode from '../marks/code';\nimport markLink from '../marks/link/link';\nimport behaviorHistory from '../behaviors/history';\nimport behaviorSelectAll from '../behaviors/select_all';\nimport behaviorCursor from '../behaviors/cursor';\nimport behaviorFind from '../behaviors/find';\nimport behaviorSpellingInteractive from '../behaviors/spelling/spelling-interactive';\nimport behaviorClearFormatting from '../behaviors/clear_formatting';\n\n// behaviors\nimport behaviorSmarty from '../behaviors/smarty';\nimport behaviorAttrDuplicateId from '../behaviors/attr_duplicate_id';\nimport behaviorTrailingP from '../behaviors/trailing_p';\nimport behaviorEmptyMark from '../behaviors/empty_mark';\nimport behaviorEscapeMark from '../behaviors/escape_mark';\nimport behaviorOutline from '../behaviors/outline';\nimport beahviorCodeBlockInput from '../behaviors/code_block_input';\nimport behaviorPasteText from '../behaviors/paste_text';\nimport behaviorBottomPadding from '../behaviors/bottom_padding';\nimport behaviorInsertSymbol from '../behaviors/insert_symbol/insert_symbol-plugin-symbol';\nimport behaviorInsertSymbolEmoji from '../behaviors/insert_symbol/insert_symbol-plugin-emoji';\nimport beahviorInsertSpecialCharacters from '../behaviors/insert_symbol/insert_special_characters';\nimport behaviorNbsp from '../behaviors/nbsp';\nimport behaviorRemoveSection from '../behaviors/remove_section';\nimport behaviorSlides from '../behaviors/slides';\n\n// marks\nimport markStrikeout from '../marks/strikeout';\nimport markSuperscript from '../marks/superscript';\nimport markSubscript from '../marks/subscript';\nimport markSmallcaps from '../marks/smallcaps';\nimport markUnderline from '../marks/underline';\nimport markRawInline from '../marks/raw_inline/raw_inline';\nimport markRawTex from '../marks/raw_inline/raw_tex';\nimport markRawHTML from '../marks/raw_inline/raw_html';\nimport markMath from '../marks/math/math';\nimport markCite from '../marks/cite/cite';\nimport markSpan from '../marks/span';\nimport markXRef from '../marks/xref/xref';\nimport markHTMLComment from '../marks/raw_inline/raw_html_comment';\nimport markShortcode from '../marks/shortcode';\nimport markEmoji from '../marks/emoji/emoji';\nimport { markOmniInsert } from '../behaviors/omni_insert/omni_insert';\n\n// nodes\nimport nodeFootnote from '../nodes/footnote/footnote';\nimport nodeRawBlock from '../nodes/raw_block';\nimport nodeYamlMetadata from '../nodes/yaml_metadata/yaml_metadata';\nimport nodeRmdCodeChunk from '../nodes/rmd_chunk/rmd_chunk';\nimport nodeDiv from '../nodes/div/div';\nimport nodeLineBlock from '../nodes/line_block';\nimport nodeTable from '../nodes/table/table';\nimport nodeDefinitionList from '../nodes/definition_list/definition_list';\nimport nodeShortcodeBlock from '../nodes/shortcode_block';\nimport nodeHtmlPreserve from '../nodes/html_preserve';\n\n// extension/plugin factories\nimport { aceExtension } from '../optional/ace/ace';\nimport { attrEditExtension } from '../behaviors/attr_edit/attr_edit';\nimport { codeViewClipboardPlugin } from '../api/code';\n\nexport function initExtensions(context: ExtensionContext, extensions?: readonly Extension[]): ExtensionManager {\n // create extension manager\n const manager = new ExtensionManager(context);\n\n // required extensions\n manager.register([\n nodeText,\n nodeParagraph,\n nodeHeading,\n nodeBlockquote,\n nodeLists,\n nodeCodeBlock,\n nodeImage,\n nodeFigure,\n nodeHr,\n nodeHardBreak,\n nodeNull,\n markEm,\n markStrong,\n markCode,\n markLink,\n behaviorHistory,\n behaviorSelectAll,\n behaviorCursor,\n behaviorFind,\n behaviorSpellingInteractive,\n behaviorClearFormatting,\n behaviorSlides\n ]);\n\n // optional extensions\n manager.register([\n // behaviors\n behaviorSmarty,\n behaviorAttrDuplicateId,\n behaviorTrailingP,\n behaviorEmptyMark,\n behaviorEscapeMark,\n behaviorOutline,\n beahviorCodeBlockInput,\n behaviorPasteText,\n behaviorBottomPadding,\n behaviorInsertSymbol,\n behaviorInsertSymbolEmoji,\n beahviorInsertSpecialCharacters,\n behaviorNbsp,\n behaviorRemoveSection,\n\n // nodes\n nodeDiv,\n nodeFootnote,\n nodeYamlMetadata,\n nodeRmdCodeChunk,\n nodeTable,\n nodeDefinitionList,\n nodeLineBlock,\n nodeRawBlock,\n nodeShortcodeBlock,\n nodeHtmlPreserve,\n\n // marks\n markUnderline,\n markStrikeout,\n markSuperscript,\n markSubscript,\n markSmallcaps,\n markHTMLComment,\n markRawTex,\n markRawHTML,\n markRawInline,\n markMath,\n markCite,\n markSpan,\n markXRef,\n markShortcode,\n markEmoji,\n markOmniInsert,\n ]);\n\n // register external extensions\n if (extensions) {\n manager.register(extensions);\n }\n\n // additional extensions dervied from other extensions (e.g. extensions that have registered attr editors)\n // note that all of these take a callback to access the manager -- this is so that if an extension earlier\n // in the chain registers something the later extensions are able to see it\n manager.register([\n // bindings to 'Edit Attribute' command and UI adornment\n attrEditExtension(context.pandocExtensions, context.ui, context.format, manager.attrEditors()),\n ]);\n\n // additional plugins derived from extensions\n const codeViews = manager.codeViews();\n const plugins: Plugin[] = [];\n if (context.options.codeEditor === 'ace') {\n manager.register([\n aceExtension(codeViews)\n ]);\n }\n plugins.push(codeViewClipboardPlugin(codeViews));\n\n // register plugins\n manager.registerPlugins(plugins);\n\n // return manager\n return manager;\n}\n\nexport class ExtensionManager {\n private context: ExtensionContext;\n private extensions: Extension[];\n\n public constructor(context: ExtensionContext) {\n this.context = context;\n this.extensions = [];\n }\n\n public register(extensions: ReadonlyArray, priority = false): void {\n extensions.forEach(extension => {\n if (typeof extension === 'function') {\n const ext = extension(this.context);\n if (ext) {\n if (priority) {\n this.extensions.unshift(ext);\n } else {\n this.extensions.push(ext);\n }\n }\n } else {\n if (priority) {\n this.extensions.unshift(extension);\n } else {\n this.extensions.push(extension);\n }\n }\n });\n }\n\n public registerPlugins(plugins: Plugin[], priority = false) {\n this.register([{ plugins: () => plugins }], priority);\n }\n\n public pandocMarks(): readonly PandocMark[] {\n return this.collect(extension => extension.marks);\n }\n\n public pandocNodes(): readonly PandocNode[] {\n return this.collect(extension => extension.nodes);\n }\n\n public pandocPreprocessors(): readonly PandocPreprocessorFn[] {\n return this.collectFrom({\n node: node => [node.pandoc.preprocessor],\n });\n }\n\n public pandocPostprocessors(): readonly PandocPostprocessorFn[] {\n return this.pandocReaders().flatMap(reader => (reader.postprocessor ? [reader.postprocessor] : []));\n }\n\n public pandocTokensFilters(): readonly PandocTokensFilterFn[] {\n return this.collectFrom({\n mark: mark => [mark.pandoc.tokensFilter],\n node: node => [node.pandoc.tokensFilter],\n });\n }\n\n public pandocBlockReaders(): readonly PandocBlockReaderFn[] {\n return this.collectFrom({\n node: node => [node.pandoc.blockReader],\n });\n }\n\n public pandocInlineHTMLReaders(): readonly PandocInlineHTMLReaderFn[] {\n return this.collectFrom({\n mark: mark => [mark.pandoc.inlineHTMLReader],\n node: node => [node.pandoc.inlineHTMLReader],\n });\n }\n\n public pandocBlockCapsuleFilters(): readonly PandocBlockCapsuleFilter[] {\n return this.collectFrom({\n node: node => [node.pandoc.blockCapsuleFilter],\n });\n }\n\n public pandocReaders(): readonly PandocTokenReader[] {\n return this.collectFrom({\n mark: mark => mark.pandoc.readers,\n node: node => node.pandoc.readers ?? [],\n });\n }\n\n public pandocMarkWriters(): readonly PandocMarkWriter[] {\n return this.collectFrom({\n mark: mark => [{ name: mark.name, ...mark.pandoc.writer }],\n });\n }\n\n public pandocNodeWriters(): readonly PandocNodeWriter[] {\n return this.collectFrom({\n node: node => {\n return node.pandoc.writer ? [{ name: node.name, write: node.pandoc.writer! }] : [];\n },\n });\n }\n\n public commands(schema: Schema): readonly ProsemirrorCommand[] {\n return this.collect(extension => extension.commands?.(schema));\n }\n\n public omniInserters(schema: Schema): OmniInserter[] {\n const omniInserters: OmniInserter[] = [];\n const commands = this.commands(schema);\n commands.forEach(command => {\n if (command.omniInsert) {\n omniInserters.push({\n ...command.omniInsert,\n id: command.id,\n command: command.execute,\n });\n }\n });\n return omniInserters;\n }\n\n public codeViews() {\n const views: { [key: string]: CodeViewOptions } = {};\n this.pandocNodes().forEach((node: PandocNode) => {\n if (node.code_view) {\n views[node.name] = node.code_view;\n }\n });\n return views;\n }\n\n public attrEditors() {\n return this.collectFrom({\n node: node => [node.attr_edit?.()],\n });\n }\n\n public baseKeys(schema: Schema): readonly BaseKeyBinding[] {\n return this.collect(extension => extension.baseKeys?.(schema));\n }\n\n public appendTransactions(schema: Schema): readonly AppendTransactionHandler[] {\n return this.collect(extension => extension.appendTransaction?.(schema));\n }\n\n public appendMarkTransactions(schema: Schema): readonly AppendMarkTransactionHandler[] {\n return this.collect(extension => extension.appendMarkTransaction?.(schema));\n }\n\n public plugins(schema: Schema): readonly Plugin[] {\n return this.collect(extension => extension.plugins?.(schema));\n }\n\n public fixups(schema: Schema, view: EditorView): readonly FixupFn[] {\n return this.collect(extension => extension.fixups?.(schema, view));\n }\n\n public completionHandlers(): readonly CompletionHandler[] {\n return this.collect(extension => extension.completionHandlers?.());\n }\n\n // NOTE: return value not readonly b/c it will be fed directly to a\n // Prosemirror interface that doesn't take readonly\n public inputRules(schema: Schema): InputRule[] {\n const markFilter = markInputRuleFilter(schema, this.pandocMarks());\n return this.collect(extension => extension.inputRules?.(schema, markFilter));\n }\n\n private collect(collector: (extension: Extension) => readonly T[] | undefined) {\n return this.collectFrom({\n extension: extension => collector(extension) ?? [],\n });\n }\n\n /**\n * Visits extensions in order of registration, providing optional callbacks\n * for extension, mark, and node. The return value of callbacks should be\n * arrays of (T | undefined | null); these will all be concatenated together,\n * with the undefined and nulls filtered out.\n *\n * @param visitor Object containing callback methods for the different\n * extension parts.\n */\n private collectFrom(visitor: {\n extension?: (extension: Extension) => ReadonlyArray;\n mark?: (mark: PandocMark) => ReadonlyArray;\n node?: (node: PandocNode) => ReadonlyArray;\n }): T[] {\n const results: Array = [];\n\n this.extensions.forEach(extension => {\n if (visitor.extension) {\n results.push(...visitor.extension(extension));\n }\n if (visitor.mark && extension.marks) {\n results.push(...extension.marks.flatMap(visitor.mark));\n }\n if (visitor.node && extension.nodes) {\n results.push(...extension.nodes.flatMap(visitor.node));\n }\n });\n\n return results.filter(value => typeof value !== 'undefined' && value !== null) as T[];\n }\n}\n","/*\n * text.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { PandocOutput, PandocToken, PandocTokenType, ProsemirrorWriter } from '../api/pandoc';\nimport { ExtensionContext } from '../api/extension';\nimport { kQuoteType, QuoteType, kQuoteChildren, fancyQuotesToSimple } from '../api/quote';\n\nconst extension = (context: ExtensionContext) => {\n const readText = (text: string) => {\n // we explicitly don't want fancy quotes in the editor\n if (context.pandocExtensions.smart) {\n text = fancyQuotesToSimple(text);\n }\n \n if (context.pandocExtensions.smart) {\n return text\n .replace(/---/g, '—')\n .replace(/--/g, '–')\n .replace(/\\.\\.\\./g, '…');\n } else {\n return text;\n }\n };\n\n return {\n nodes: [\n {\n name: 'text',\n spec: {\n group: 'inline',\n toDOM(node: ProsemirrorNode): any {\n return node.text;\n },\n },\n pandoc: {\n readers: [\n { token: PandocTokenType.Str, text: true, getText: (t: PandocToken) => readText(t.c) },\n { token: PandocTokenType.Space, text: true, getText: () => ' ' },\n { token: PandocTokenType.SoftBreak, text: true, getText: () => ' ' },\n {\n token: PandocTokenType.Quoted,\n handler: () => (writer: ProsemirrorWriter, tok: PandocToken) => {\n const type = tok.c[kQuoteType].t;\n const quote = type === QuoteType.SingleQuote ? \"'\" : '\"';\n writer.writeTokens([{ t: 'Str', c: quote }, ...tok.c[kQuoteChildren], { t: 'Str', c: quote }]);\n },\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n const text = node.textContent;\n output.writeText(text);\n },\n },\n },\n ],\n };\n};\n\nexport default extension;\n","/*\n * paragraph.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\n\nimport { BlockCommand, EditorCommandId, ProsemirrorCommand } from '../api/command';\nimport { Extension } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { insertParagraph } from '../api/paragraph';\nimport { emptyNodePlaceholderPlugin } from '../api/placeholder';\nimport { selectionWithinLastBodyParagraph } from '../api/selection';\nimport { kAddToHistoryTransaction } from '../api/transaction';\n\nconst extension: Extension = {\n nodes: [\n {\n name: 'paragraph',\n spec: {\n content: 'inline*',\n group: 'block list_item_block',\n parseDOM: [{ tag: 'p' }],\n toDOM() {\n return ['p', 0];\n },\n },\n pandoc: {\n readers: [\n { token: PandocTokenType.Para, block: 'paragraph' },\n { token: PandocTokenType.Plain, block: 'paragraph' },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n output.writeInlines(node.content);\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new BlockCommand(EditorCommandId.Paragraph, ['Mod-Alt-0'], schema.nodes.paragraph, schema.nodes.paragraph),\n new InsertParagraphCommand(),\n ];\n },\n\n plugins: (schema: Schema) => {\n let showHint = true;\n return [emptyNodePlaceholderPlugin(schema.nodes.paragraph, node => \" type / to insert a block (code, math, figure, div, etc.)\", tr => {\n if (showHint !== false) {\n if (selectionWithinLastBodyParagraph(tr.selection)) {\n if (tr.docChanged) {\n showHint = false;\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n })];\n },\n};\n\nclass InsertParagraphCommand extends ProsemirrorCommand {\n constructor() {\n super(EditorCommandId.ParagraphInsert, [], insertParagraph);\n }\n}\n\nexport default extension;\n","/*\n * heading.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { textblockTypeInputRule, InputRule } from 'prosemirror-inputrules';\nimport { Node as ProsemirrorNode, Schema, NodeType, Fragment } from 'prosemirror-model';\nimport { EditorState } from 'prosemirror-state';\nimport { findParentNode, findParentNodeOfType } from 'prosemirror-utils';\n\nimport { PandocOutput, PandocToken, PandocTokenType } from '../api/pandoc';\nimport { EditorCommandId, toggleBlockType, ProsemirrorCommand } from '../api/command';\nimport { Extension, ExtensionContext } from '../api/extension';\nimport {\n pandocAttrSpec,\n pandocAttrParseDom,\n pandocAttrToDomAttr,\n pandocAttrReadAST,\n pandocAttrParseText,\n} from '../api/pandoc_attr';\nimport { uuidv4 } from '../api/util';\nimport { EditorUI } from '../api/ui';\nimport { OmniInsert, OmniInsertGroup } from '../api/omni_insert';\nimport { emptyNodePlaceholderPlugin } from '../api/placeholder';\nimport { kHeadingLevel, kHeadingAttr, kHeadingChildren } from '../api/heading';\n\nconst kHeadingLevels = [1, 2, 3, 4, 5, 6];\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, format, ui } = context;\n\n const headingAttr = pandocExtensions.header_attributes || pandocExtensions.mmd_header_identifiers;\n\n return {\n nodes: [\n {\n name: 'heading',\n spec: {\n attrs: {\n level: { default: 1 },\n link: { default: null },\n navigation_id: { default: null },\n ...(headingAttr ? pandocAttrSpec : {}),\n },\n content: 'inline*',\n group: 'block',\n defining: true,\n parseDOM: [\n { tag: 'h1', getAttrs: headingAttrs(1, headingAttr) },\n { tag: 'h2', getAttrs: headingAttrs(2, headingAttr) },\n { tag: 'h3', getAttrs: headingAttrs(3, headingAttr) },\n { tag: 'h4', getAttrs: headingAttrs(4, headingAttr) },\n { tag: 'h5', getAttrs: headingAttrs(5, headingAttr) },\n { tag: 'h6', getAttrs: headingAttrs(6, headingAttr) },\n ],\n toDOM(node) {\n const attr = headingAttr ? pandocAttrToDomAttr(node.attrs) : {};\n attr.class = (attr.class || '').concat(' pm-heading');\n return [\n 'h' + node.attrs.level,\n {\n 'data-link': node.attrs.link,\n ...attr,\n },\n\n 0,\n ];\n },\n },\n\n attr_edit: () => {\n if (headingAttr) {\n return {\n type: (schema: Schema) => schema.nodes.heading,\n offset: {\n top: 2,\n right: 6,\n },\n preferHidden: true\n };\n } else {\n return null;\n }\n },\n\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Header,\n block: 'heading',\n getAttrs: (tok: PandocToken) => ({\n level: tok.c[kHeadingLevel],\n navigation_id: uuidv4(),\n ...(headingAttr ? pandocAttrReadAST(tok, kHeadingAttr) : {}),\n }),\n getChildren: (tok: PandocToken) => tok.c[kHeadingChildren],\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Header, () => {\n output.write(node.attrs.level);\n if (headingAttr) {\n output.writeAttr(node.attrs.id, node.attrs.classes, node.attrs.keyvalue);\n } else {\n output.writeAttr();\n }\n output.writeArray(() => {\n if (node.attrs.level === 1 && format.rmdExtensions.bookdownPart) {\n writeBookdownH1(output, node);\n } else {\n output.writeInlines(node.content);\n }\n });\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new HeadingCommand(schema, EditorCommandId.Heading1, 1, heading1OmniInsert(ui)),\n new HeadingCommand(schema, EditorCommandId.Heading2, 2, heading2OmniInsert(ui)),\n new HeadingCommand(schema, EditorCommandId.Heading3, 3, heading3OmniInsert(ui)),\n new HeadingCommand(schema, EditorCommandId.Heading4, 4, heading4OmniInsert(ui)),\n new HeadingCommand(schema, EditorCommandId.Heading5, 5),\n new HeadingCommand(schema, EditorCommandId.Heading6, 6),\n ];\n },\n\n inputRules: (schema: Schema) => {\n const rules = [\n textblockTypeInputRule(\n new RegExp('^(#{1,' + kHeadingLevels.length + '})\\\\s$'),\n schema.nodes.heading,\n match => ({\n level: match[1].length,\n navigation_id: uuidv4(),\n }),\n ),\n ];\n\n if (headingAttr) {\n rules.push(headingAttributeInputRule(schema));\n }\n\n return rules;\n },\n\n plugins: (schema: Schema) => {\n return [emptyHeadingPlaceholderPlugin(schema.nodes.heading, ui)];\n },\n };\n};\n\nfunction headingAttributeInputRule(schema: Schema) {\n return new InputRule(/ {([^}]+)}$/, (state: EditorState, match: string[], start: number, end: number) => {\n // only fire in headings\n const heading = findParentNodeOfType(schema.nodes.heading)(state.selection);\n if (heading) {\n // try to parse the attributes\n const attrs = pandocAttrParseText(match[1]);\n if (attrs) {\n const tr = state.tr;\n tr.setNodeMarkup(heading.pos, undefined, {\n ...heading.node.attrs,\n ...attrs,\n });\n tr.deleteRange(start + 1, end);\n return tr;\n } else {\n return null;\n }\n } else {\n return null;\n }\n });\n}\n\nclass HeadingCommand extends ProsemirrorCommand {\n public readonly nodeType: NodeType;\n public readonly level: number;\n\n constructor(schema: Schema, id: EditorCommandId, level: number, omniInsert?: OmniInsert) {\n super(id, ['Mod-Alt-' + level], headingCommandFn(schema, level), omniInsert);\n this.nodeType = schema.nodes.heading;\n this.level = level;\n }\n\n public isActive(state: EditorState) {\n const predicate = (n: ProsemirrorNode) => n.type === this.nodeType && n.attrs.level === this.level;\n const node = findParentNode(predicate)(state.selection);\n return !!node;\n }\n}\n\nfunction heading1OmniInsert(ui: EditorUI) {\n return headingOmniInsert(ui, 1, ui.context.translateText('Part heading'), [\n ui.images.omni_insert?.heading1!,\n ui.images.omni_insert?.heading1_dark!,\n ]);\n}\n\nfunction heading2OmniInsert(ui: EditorUI) {\n return headingOmniInsert(ui, 2, ui.context.translateText('Section heading'), [\n ui.images.omni_insert?.heading2!,\n ui.images.omni_insert?.heading2_dark!,\n ]);\n}\nfunction heading3OmniInsert(ui: EditorUI) {\n return headingOmniInsert(ui, 3, ui.context.translateText('Sub-section heading'), [\n ui.images.omni_insert?.heading3!,\n ui.images.omni_insert?.heading3_dark!,\n ]);\n}\n\nfunction heading4OmniInsert(ui: EditorUI) {\n return headingOmniInsert(ui, 4, ui.context.translateText('Small heading'), [\n ui.images.omni_insert?.heading4!,\n ui.images.omni_insert?.heading4_dark!,\n ]);\n}\n\nfunction headingOmniInsert(ui: EditorUI, level: number, description: string, images: [string, string], group = OmniInsertGroup.Headings): OmniInsert {\n return {\n name: headingName(ui, level),\n keywords: [\"h\" + level],\n description,\n group,\n image: () => (ui.prefs.darkMode() ? images[1] : images[0]),\n };\n}\n\nfunction headingName(ui: EditorUI, level: number) {\n const kHeadingPrefix = ui.context.translateText('Heading');\n return `${kHeadingPrefix} ${level}`;\n}\n\nfunction headingCommandFn(schema: Schema, level: number) {\n return toggleBlockType(schema.nodes.heading, schema.nodes.paragraph, { level });\n}\n\n// function for getting attrs\nfunction headingAttrs(level: number, pandocAttrSupported: boolean) {\n return (dom: Node | string) => {\n const el = dom as Element;\n return {\n level,\n 'data-link': el.getAttribute('data-link'),\n ...(pandocAttrSupported ? pandocAttrParseDom(el, {}) : {}),\n };\n };\n}\n\nfunction emptyHeadingPlaceholderPlugin(nodeType: NodeType, ui: EditorUI) {\n return emptyNodePlaceholderPlugin(nodeType, node => headingName(ui, node.attrs.level));\n}\n\n// write a bookdown (PART) H1 w/o spurious \\\nfunction writeBookdownH1(output: PandocOutput, node: ProsemirrorNode) {\n // see if this is a (PART\\*). note we also match and replay any text\n // before the first ( in case the cursor sentinel ended up there\n const partMatch = node.textContent.match(/^([^()]*)\\(PART\\\\\\*\\)/);\n if (partMatch) {\n const schema = node.type.schema;\n output.writeInlines(Fragment.from(schema.text(partMatch[1] + '(PART*)')));\n output.writeInlines(node.content.cut(partMatch[0].length));\n } else {\n output.writeInlines(node.content);\n }\n}\n\nexport default extension;\n","/*\n * blockquote.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { wrappingInputRule } from 'prosemirror-inputrules';\nimport { Node as ProsemirrorNode, Schema, DOMOutputSpec } from 'prosemirror-model';\n\nimport { WrapCommand, EditorCommandId } from '../api/command';\nimport { ExtensionContext } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { EditorUI } from '../api/ui';\nimport { OmniInsertGroup } from '../api/omni_insert';\n\nconst extension = (context: ExtensionContext) => {\n const { ui } = context;\n\n return {\n nodes: [\n {\n name: 'blockquote',\n spec: {\n content: 'block+',\n group: 'block',\n defining: true,\n parseDOM: [{ tag: 'blockquote' }],\n toDOM(): DOMOutputSpec {\n return ['blockquote', { class: 'pm-blockquote pm-block-border-color' }, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.BlockQuote,\n block: 'blockquote',\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.BlockQuote, () => {\n output.writeNodes(node);\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [new WrapCommand(EditorCommandId.Blockquote, [], schema.nodes.blockquote, {}, blockquoteOmniInsert(ui))];\n },\n\n inputRules: (schema: Schema) => {\n return [wrappingInputRule(/^\\s*>\\s$/, schema.nodes.blockquote)];\n },\n };\n};\n\nfunction blockquoteOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Blockquote'),\n description: ui.context.translateText('Section quoted from another source'),\n group: OmniInsertGroup.Blocks,\n priority: 8,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.blockquote_dark! : ui.images.omni_insert?.blockquote!),\n };\n}\n\nexport default extension;\n","/*\n * code_block.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\nimport { newlineInCode, exitCode } from 'prosemirror-commands';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { findParentNodeOfType } from 'prosemirror-utils';\n\nimport { BlockCommand, EditorCommandId, ProsemirrorCommand, toggleBlockType } from '../api/command';\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { BaseKey } from '../api/basekeys';\nimport { codeNodeSpec } from '../api/code';\nimport { PandocOutput, PandocTokenType, PandocExtensions } from '../api/pandoc';\nimport { pandocAttrSpec, pandocAttrParseDom, pandocAttrToDomAttr } from '../api/pandoc_attr';\nimport { PandocCapabilities } from '../api/pandoc_capabilities';\nimport { EditorUI } from '../api/ui';\nimport { CodeBlockProps } from '../api/ui-dialogs';\nimport { hasFencedCodeBlocks } from '../api/pandoc_format';\nimport { precedingListItemInsertPos, precedingListItemInsert } from '../api/list';\nimport { EditorOptions } from '../api/options';\nimport { OmniInsertGroup } from '../api/omni_insert';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, pandocCapabilities, ui, options } = context;\n\n const hasAttr = hasFencedCodeBlocks(pandocExtensions);\n\n return {\n nodes: [\n {\n name: 'code_block',\n\n spec: {\n ...codeNodeSpec(),\n attrs: { ...(hasAttr ? pandocAttrSpec : {}) },\n parseDOM: [\n {\n tag: 'pre',\n preserveWhitespace: 'full',\n getAttrs: (node: Node | string) => {\n if (hasAttr) {\n const el = node as Element;\n return pandocAttrParseDom(el, {});\n } else {\n return {};\n }\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n const fontClass = 'pm-fixedwidth-font';\n const attrs = hasAttr\n ? pandocAttrToDomAttr({\n ...node.attrs,\n classes: [...node.attrs.classes, fontClass],\n })\n : {\n class: fontClass,\n };\n return ['pre', attrs, ['code', 0]];\n },\n },\n\n code_view: {\n lang: (node: ProsemirrorNode) => {\n return codeBlockLang(node, options);\n },\n attrEditFn: codeBlockFormatCommandFn(pandocExtensions, ui, pandocCapabilities.highlight_languages),\n },\n\n attr_edit: codeBlockAttrEdit(pandocExtensions, pandocCapabilities, ui),\n\n pandoc: {\n readers: [\n {\n token: PandocTokenType.CodeBlock,\n code_block: true,\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.CodeBlock, () => {\n if (hasAttr) {\n const id = pandocExtensions.fenced_code_attributes ? node.attrs.id : '';\n const keyvalue = pandocExtensions.fenced_code_attributes ? node.attrs.keyvalue : [];\n output.writeAttr(id, node.attrs.classes, keyvalue);\n } else {\n output.writeAttr();\n }\n output.write(node.textContent);\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n const commands: ProsemirrorCommand[] = [\n new BlockCommand(EditorCommandId.CodeBlock, [], schema.nodes.code_block, schema.nodes.paragraph, {}),\n ];\n if (hasAttr) {\n commands.push(new CodeBlockFormatCommand(pandocExtensions, ui, pandocCapabilities.highlight_languages));\n }\n return commands;\n },\n\n baseKeys: () => {\n return [\n { key: BaseKey.Enter, command: newlineInCode },\n { key: BaseKey.ModEnter, command: exitCode },\n { key: BaseKey.ShiftEnter, command: exitCode },\n ];\n },\n };\n};\n\nclass CodeBlockFormatCommand extends ProsemirrorCommand {\n constructor(pandocExtensions: PandocExtensions, ui: EditorUI, languages: string[]) {\n super(\n EditorCommandId.CodeBlockFormat,\n ['Shift-Mod-\\\\'],\n codeBlockFormatCommandFn(pandocExtensions, ui, languages),\n {\n name: ui.context.translateText('Code Block...'),\n description: ui.context.translateText('Source code display'),\n group: OmniInsertGroup.Blocks,\n priority: 7,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.code_block_dark! : ui.images.omni_insert?.code_block!,\n },\n );\n }\n}\n\nfunction codeBlockFormatCommandFn(pandocExtensions: PandocExtensions, ui: EditorUI, languages: string[]) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // enable if we are either inside a code block or we can toggle to a code block\n const schema = state.schema;\n const codeBlock = findParentNodeOfType(schema.nodes.code_block)(state.selection);\n if (\n !codeBlock &&\n !toggleBlockType(schema.nodes.code_block, schema.nodes.paragraph)(state) &&\n !precedingListItemInsertPos(state.doc, state.selection)\n ) {\n return false;\n }\n\n async function asyncEditCodeBlock() {\n if (dispatch) {\n // get props to edit\n const codeBlockProps = codeBlock\n ? { ...(codeBlock.node.attrs as CodeBlockProps), lang: '' }\n : defaultCodeBlockProps();\n\n // set lang if the first class is from available languages\n // (alternatively if we don't support attributes then it's\n // automatically considered the language)\n if (codeBlockProps.classes && codeBlockProps.classes.length) {\n const potentialLang = codeBlockProps.classes[0];\n if (!pandocExtensions.fenced_code_attributes || languages.includes(potentialLang)) {\n codeBlockProps.lang = potentialLang;\n codeBlockProps.classes = codeBlockProps.classes.slice(1);\n }\n }\n\n // show dialog\n const result = await ui.dialogs.editCodeBlock(\n codeBlockProps,\n pandocExtensions.fenced_code_attributes,\n languages,\n );\n if (result) {\n // extract lang\n const applyProps = propsWithLangClass(result);\n\n // edit or toggle as appropriate\n if (codeBlock) {\n const tr = state.tr;\n tr.setNodeMarkup(codeBlock.pos, schema.nodes.code_block, applyProps);\n dispatch(tr);\n } else {\n const prevListItemPos = precedingListItemInsertPos(state.doc, state.selection);\n if (prevListItemPos) {\n const tr = state.tr;\n const block = schema.nodes.code_block.create(applyProps);\n precedingListItemInsert(tr, prevListItemPos, block);\n dispatch(tr);\n } else {\n toggleBlockType(schema.nodes.code_block, schema.nodes.paragraph, applyProps)(state, dispatch, view);\n }\n }\n }\n }\n\n if (view) {\n view.focus();\n }\n }\n\n asyncEditCodeBlock();\n\n return true;\n };\n}\n\nfunction defaultCodeBlockProps() {\n return { id: '', classes: [], keyvalue: [], lang: '' };\n}\n\nfunction propsWithLangClass(props: CodeBlockProps) {\n const newProps = { ...props };\n if (newProps.classes && newProps.lang) {\n newProps.classes.unshift(props.lang);\n }\n return newProps;\n}\n\n// determine the code block language. if it's an Rmd example (i.e. with `r ''`) and\n// we have rmdExampleHighlight enabled then use the Rmd chunk language for highlighting\nfunction codeBlockLang(node: ProsemirrorNode, options: EditorOptions) {\n if (node.attrs.classes && node.attrs.classes.length) {\n const lang = node.attrs.classes[0];\n if (options.rmdExampleHighlight && lang === 'md') {\n const match = node.textContent.match(/^```+\\s*\\{([a-zA-Z0-9_]+)( *[ ,].*)?\\}`r ''`/);\n if (match) {\n return match[1];\n }\n }\n return lang;\n } else {\n return null;\n }\n}\n\nfunction codeBlockAttrEdit(pandocExtensions: PandocExtensions, pandocCapabilities: PandocCapabilities, ui: EditorUI) {\n return () => {\n if (hasFencedCodeBlocks(pandocExtensions)) {\n return {\n type: (schema: Schema) => schema.nodes.code_block,\n tags: (node: ProsemirrorNode) => {\n const tags: string[] = [];\n if (node.attrs.id) {\n tags.push(`#${node.attrs.id}`);\n }\n if (node.attrs.classes) {\n for (let i=1; i 0) {\n const lang = node.attrs.classes[0];\n if (pandocCapabilities.highlight_languages.includes(lang) || lang === 'tex') {\n tags.push(lang);\n } else {\n tags.push(`.${lang}`);\n }\n }\n }\n if (node.attrs.keyvalue && node.attrs.keyvalue.length) {\n tags.push(`${node.attrs.keyvalue.map(\n (kv: [string,string]) => kv[0] + '=\"' + (kv[1] || '1') + '\"').join(' ')}\n `);\n }\n return tags;\n },\n offset: {\n top: 3,\n right: 0,\n },\n editFn: () => codeBlockFormatCommandFn(pandocExtensions, ui, pandocCapabilities.highlight_languages),\n };\n } else {\n return null;\n }\n };\n}\n\nexport default extension;\n","/*\n * list.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\nimport { liftListItem, sinkListItem, splitListItem } from 'prosemirror-schema-list';\nimport { Plugin, PluginKey, EditorState } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { findParentNodeOfType } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { BaseKey } from '../../api/basekeys';\nimport { EditorUI, kListSpacingTight } from '../../api/ui';\nimport { ListCapabilities } from '../../api/list';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { PandocTokenType } from '../../api/pandoc';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { conditionalWrappingInputRule } from '../../api/input_rule';\nimport { kPresentationDocType } from '../../api/format';\n\nimport { ListCommand, TightListCommand, EditListPropertiesCommand, editListPropertiesCommandFn } from './list-commands';\n\nimport {\n CheckedListItemNodeView,\n checkedListItemInputRule,\n checkedListInputRule,\n CheckedListItemCommand,\n CheckedListItemToggleCommand,\n} from './list-checked';\n\nimport { writePandocBulletList, writePandocOrderedList, readPandocList } from './list-pandoc';\n\nimport './list-styles.css';\n\nexport enum ListNumberStyle {\n DefaultStyle = 'DefaultStyle',\n Decimal = 'Decimal',\n LowerRoman = 'LowerRoman',\n UpperRoman = 'UpperRoman',\n LowerAlpha = 'LowerAlpha',\n UpperAlpha = 'UpperAlpha',\n Example = 'Example',\n}\n\n// NOTE: HTML output doesn't currently respect this and it's difficult to\n// do with CSS (especially for nested lists). So we allow the user to edit\n// it but it isn't reflected in the editor.\nexport enum ListNumberDelim {\n DefaultDelim = 'DefaultDelim',\n Period = 'Period',\n OneParen = 'OneParen',\n TwoParens = 'TwoParens',\n}\n\nconst plugin = new PluginKey('list');\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, ui, format } = context;\n\n // determine list capabilities based on active format options\n const capabilities: ListCapabilities = {\n tasks: pandocExtensions.task_lists,\n fancy: pandocExtensions.fancy_lists,\n /*\n Always disable example lists b/c they don't round trip through the AST:\n - (@good) referenced elsewhere via (@good) just becomes a generic example (@) with \n a literal numeric reference.\n - The writer doesn't preserve the (@) or the (@good) when writing\n */\n // example: pandocExtensions.fancy_lists && pandocExtensions.example_lists,\n example: false,\n order: pandocExtensions.startnum,\n incremental: format.docTypes.includes(kPresentationDocType)\n };\n\n return {\n nodes: [\n {\n name: 'list_item',\n spec: {\n content: 'list_item_block block*',\n attrs: {\n checked: { default: null },\n },\n defining: true,\n parseDOM: [\n {\n tag: 'li',\n getAttrs: (dom: Node | string) => {\n const el = dom as Element;\n const attrs: any = {};\n if (capabilities.tasks && el.hasAttribute('data-checked')) {\n attrs.checked = el.getAttribute('data-checked') === 'true';\n }\n return attrs;\n },\n },\n ],\n toDOM(node) {\n const attrs: any = {\n class: 'pm-list-item',\n };\n if (capabilities.tasks && node.attrs.checked !== null) {\n attrs['data-checked'] = node.attrs.checked ? 'true' : 'false';\n }\n return ['li', attrs, 0];\n },\n },\n pandoc: {},\n },\n {\n name: 'bullet_list',\n spec: {\n content: 'list_item+',\n group: 'block',\n attrs: {\n tight: { default: false },\n },\n parseDOM: [\n {\n tag: 'ul',\n getAttrs: (dom: Node | string) => {\n const el = dom as Element;\n const attrs: any = {};\n if (el.hasAttribute('data-tight')) {\n attrs.tight = true;\n }\n return attrs;\n },\n },\n ],\n toDOM(node) {\n const attrs: { [key: string]: string } = {};\n attrs.class = 'pm-list pm-bullet-list';\n if (node.attrs.tight) {\n attrs['data-tight'] = 'true';\n }\n return ['ul', attrs, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.BulletList,\n handler: (schema: Schema) => readPandocList(schema.nodes.bullet_list, capabilities),\n },\n ],\n writer: writePandocBulletList(capabilities),\n },\n\n attr_edit: listAttrEdit('bullet_list', capabilities, ui),\n },\n {\n name: 'ordered_list',\n spec: {\n content: 'list_item+',\n group: 'block',\n attrs: {\n tight: { default: false },\n order: { default: 1 },\n number_style: { default: ListNumberStyle.DefaultStyle },\n number_delim: { default: ListNumberDelim.DefaultDelim },\n },\n parseDOM: [\n {\n tag: 'ol',\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n\n const attrs: any = {};\n attrs.tight = el.hasAttribute('data-tight');\n\n if (capabilities.order) {\n const order: string | null = el.getAttribute('start');\n if (!order) {\n attrs.order = 1;\n } else {\n attrs.order = parseInt(order, 10) || 1;\n }\n }\n\n if (capabilities.fancy) {\n if (capabilities.example && el.getAttribute('data-example')) {\n attrs.number_style = ListNumberStyle.Example;\n } else {\n attrs.number_style = typeToNumberStyle(el.getAttribute('type'));\n }\n const numberDelim = el.getAttribute('data-number-delim');\n if (numberDelim) {\n attrs.number_delim = numberDelim;\n }\n }\n\n return attrs;\n },\n },\n ],\n toDOM(node) {\n const attrs: { [key: string]: string } = {};\n attrs.class = 'pm-list pm-ordered-list';\n if (node.attrs.tight) {\n attrs['data-tight'] = 'true';\n }\n if (capabilities.order && node.attrs.order !== 1) {\n attrs.start = node.attrs.order;\n }\n if (capabilities.fancy) {\n const type = numberStyleToType(node.attrs.number_style);\n if (type) {\n attrs.type = type;\n }\n if (capabilities.example) {\n if (node.attrs.number_style === ListNumberStyle.Example) {\n attrs['data-example'] = '1';\n }\n }\n attrs['data-number-delim'] = node.attrs.number_delim;\n }\n return ['ol', attrs, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.OrderedList,\n handler: (schema: Schema) => readPandocList(schema.nodes.ordered_list, capabilities),\n },\n ],\n writer: writePandocOrderedList(capabilities),\n },\n\n attr_edit: listAttrEdit('ordered_list', capabilities, ui),\n },\n ],\n\n plugins: (schema: Schema) => {\n const plugins: Plugin[] = [];\n if (capabilities.tasks) {\n plugins.push(\n new Plugin({\n key: plugin,\n props: {\n nodeViews: {\n list_item(node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) {\n return new CheckedListItemNodeView(node, view, getPos as () => number);\n },\n },\n },\n }),\n );\n }\n return plugins;\n },\n\n commands: (schema: Schema) => {\n const commands = [\n new ListCommand(\n EditorCommandId.BulletList,\n [],\n schema.nodes.bullet_list,\n schema.nodes.list_item,\n bulletListOmniInsert(ui),\n ui.prefs,\n ),\n new ListCommand(\n EditorCommandId.OrderedList,\n [],\n schema.nodes.ordered_list,\n schema.nodes.list_item,\n orderedListOmniInsert(ui),\n ui.prefs,\n ),\n new ProsemirrorCommand(EditorCommandId.ListItemSink, ['Tab'], sinkListItem(schema.nodes.list_item)),\n new ProsemirrorCommand(EditorCommandId.ListItemLift, ['Shift-Tab'], liftListItem(schema.nodes.list_item)),\n new ProsemirrorCommand(EditorCommandId.ListItemSplit, ['Enter'], splitListItem(schema.nodes.list_item)),\n new TightListCommand(),\n ];\n if (capabilities.fancy) {\n commands.push(new EditListPropertiesCommand(ui, capabilities));\n }\n if (capabilities.tasks) {\n commands.push(\n new CheckedListItemCommand(schema.nodes.list_item),\n new CheckedListItemToggleCommand(schema.nodes.list_item),\n );\n }\n return commands;\n },\n\n baseKeys: (schema: Schema) => {\n return [\n { key: BaseKey.Enter, command: splitListItem(schema.nodes.list_item) },\n { key: BaseKey.Tab, command: sinkListItem(schema.nodes.list_item) },\n { key: BaseKey.ShiftTab, command: liftListItem(schema.nodes.list_item) },\n ];\n },\n\n inputRules: (schema: Schema) => {\n // reflect tight pref\n const tightFn = () => {\n return {\n tight: ui.prefs.listSpacing() === kListSpacingTight,\n };\n };\n\n const isNotInHeading = (state: EditorState) => {\n return !findParentNodeOfType(schema.nodes.heading)(state.selection);\n };\n\n const rules = [\n conditionalWrappingInputRule(/^\\s*([-+*])\\s$/, schema.nodes.bullet_list, isNotInHeading, tightFn),\n conditionalWrappingInputRule(\n /^(\\d+)\\.\\s$/,\n schema.nodes.ordered_list,\n isNotInHeading,\n match => ({ order: +match[1], tight: tightFn() }),\n (match, node) => node.childCount + node.attrs.order === +match[1],\n ),\n ];\n if (capabilities.tasks) {\n rules.push(checkedListItemInputRule(), checkedListInputRule(schema));\n }\n return rules;\n },\n };\n};\n\nfunction listAttrEdit(type: string, capabilities: ListCapabilities, ui: EditorUI) {\n return () => {\n return {\n type: (schema: Schema) => schema.nodes[type],\n editFn: () => editListPropertiesCommandFn(ui, capabilities),\n offset: {\n top: 5,\n right: 5,\n },\n preferHidden: true\n };\n };\n}\n\nfunction numberStyleToType(style: ListNumberStyle): string | null {\n switch (style) {\n case ListNumberStyle.DefaultStyle:\n case ListNumberStyle.Decimal:\n case ListNumberStyle.Example:\n return 'l';\n case ListNumberStyle.LowerAlpha:\n return 'a';\n case ListNumberStyle.UpperAlpha:\n return 'A';\n case ListNumberStyle.LowerRoman:\n return 'i';\n case ListNumberStyle.UpperRoman:\n return 'I';\n default:\n return null;\n }\n}\n\nfunction typeToNumberStyle(type: string | null): ListNumberStyle {\n switch (type) {\n case 'l':\n return ListNumberStyle.Decimal;\n case 'a':\n return ListNumberStyle.LowerAlpha;\n case 'A':\n return ListNumberStyle.UpperAlpha;\n case 'i':\n return ListNumberStyle.LowerRoman;\n case 'I':\n return ListNumberStyle.UpperRoman;\n default:\n return ListNumberStyle.Decimal;\n }\n}\n\nfunction bulletListOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Bullet List'),\n description: ui.context.translateText('List using bullets for items'),\n group: OmniInsertGroup.Common,\n priority: 4,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.bullet_list_dark! : ui.images.omni_insert?.bullet_list!),\n };\n}\n\nfunction orderedListOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Numbered List'),\n description: ui.context.translateText('List using numbers for items'),\n group: OmniInsertGroup.Common,\n priority: 3,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.ordered_list_dark! : ui.images.omni_insert?.ordered_list!,\n };\n}\n\nexport default extension;\n","/*\n * list-commands.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { NodeType, Node as ProsemirrorNode, NodeRange, Schema } from 'prosemirror-model';\nimport { EditorState, Transaction, Selection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { autoJoin } from 'prosemirror-commands';\nimport { NodeWithPos, findParentNode } from 'prosemirror-utils';\n\nimport { NodeCommand, toggleList, ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { EditorUI, EditorUIPrefs } from '../../api/ui';\nimport { ListProps } from '../../api/ui-dialogs';\nimport { ListType, ListCapabilities, isList } from '../../api/list';\nimport { OmniInsert } from '../../api/omni_insert';\nimport { findWrapping } from 'prosemirror-transform';\nimport { trRemoveDiv } from '../div/div';\nimport { pandocAttrHasClass, pandocAttrRemoveClass, pandocAttrEnsureClass } from '../../api/pandoc_attr';\n\nexport class ListCommand extends NodeCommand {\n constructor(\n id: EditorCommandId,\n keymap: string[],\n listType: NodeType,\n listItemType: NodeType,\n omniInsert: OmniInsert,\n prefs: EditorUIPrefs,\n ) {\n super(id, keymap, listType, {}, autoJoin(toggleList(listType, listItemType, prefs), [listType.name]), omniInsert);\n }\n}\n\nexport class TightListCommand extends ProsemirrorCommand {\n constructor() {\n super(\n EditorCommandId.TightList,\n ['Mod-Alt-9'],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const parentList = findParentNode(isList)(state.selection);\n if (!parentList) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n const node = parentList.node;\n tr.setNodeMarkup(parentList.pos, node.type, {\n ...node.attrs,\n tight: !node.attrs.tight,\n });\n dispatch(tr);\n }\n\n return true;\n },\n );\n }\n\n public isActive(state: EditorState): boolean {\n if (this.isEnabled(state)) {\n const itemNode = findParentNode(isList)(state.selection) as NodeWithPos;\n return itemNode.node.attrs.tight;\n } else {\n return false;\n }\n }\n}\n\nexport function editListPropertiesCommandFn(ui: EditorUI, capabilities: ListCapabilities) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // see if a parent node is a list\n let node: ProsemirrorNode | null = null;\n let pos: number = 0;\n const nodeWithPos = findParentNode(isList)(state.selection);\n if (nodeWithPos) {\n node = nodeWithPos.node;\n pos = nodeWithPos.pos;\n }\n\n // return false (disabled) for no targets\n if (!node) {\n return false;\n }\n\n // execute command when requested\n async function asyncEditList() {\n if (dispatch) {\n await editList(node as ProsemirrorNode, pos, state, dispatch, ui, capabilities);\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditList();\n\n return true;\n };\n}\n\nexport class EditListPropertiesCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI, capabilities: ListCapabilities) {\n super(EditorCommandId.EditListProperties, [], editListPropertiesCommandFn(ui, capabilities));\n }\n}\n\nconst kListIncrementalDefault = \"default\";\nconst kListIncremental = \"incremental\";\nconst kListNonIncremental = \"nonincremental\";\n\nasync function editList(\n node: ProsemirrorNode,\n pos: number,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n ui: EditorUI,\n capabilities: ListCapabilities,\n): Promise {\n // get list properties\n const schema = node.type.schema;\n const attrs = node.attrs;\n const props = {\n ...attrs,\n type: node.type === schema.nodes.ordered_list ? ListType.Ordered : ListType.Bullet,\n } as ListProps;\n\n // if we support incremental lists then determine that value\n const incrementalDiv = wrappingIncrementalDiv(state.selection, schema);\n if (incrementalDiv && capabilities.incremental) {\n props.incremental = pandocAttrHasClass(incrementalDiv.node.attrs, clz => clz === kListIncremental) \n ? kListIncremental \n : kListNonIncremental;\n } else {\n props.incremental = kListIncrementalDefault;\n }\n\n // edit list\n const result = await ui.dialogs.editList(props, capabilities);\n\n // apply result\n if (result) {\n const tr = state.tr;\n const listType = result.type === ListType.Ordered ? schema.nodes.ordered_list : schema.nodes.bullet_list;\n tr.setNodeMarkup(pos, listType, {\n ...attrs,\n ...result,\n });\n\n \n if (capabilities.incremental) {\n\n // remove any existing wrapping\n if (result.incremental === kListIncrementalDefault) {\n if (incrementalDiv) {\n trRemoveDiv(tr, incrementalDiv);\n }\n // edit existing wrapping\n } else if (incrementalDiv) {\n const divAttrs = { ...incrementalDiv.node.attrs };\n pandocAttrRemoveClass(divAttrs, isIncrementalClass);\n pandocAttrEnsureClass(divAttrs, result.incremental);\n tr.setNodeMarkup(incrementalDiv.pos, schema.nodes.div, divAttrs);\n // create new wrapping\n } else {\n const $pos = tr.doc.resolve(pos);\n const $endPos = tr.doc.resolve(pos + node.nodeSize);\n const range = $pos.blockRange($endPos); \n if (range) {\n const wrapping = findWrapping(range, schema.nodes.div, { classes: [result.incremental]});\n if (wrapping) {\n tr.wrap(range, wrapping);\n }\n }\n }\n }\n \n dispatch(tr);\n }\n}\n\nfunction wrappingIncrementalDiv(selection: Selection, schema: Schema) {\n return findParentNode(nd => {\n return nd.type === schema.nodes.div && \n pandocAttrHasClass(nd.attrs, isIncrementalClass);\n })(selection);\n\n}\n\nfunction isIncrementalClass(clz: string) {\n return [kListIncremental, kListNonIncremental].includes(clz);\n}","/*\n * div.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, DOMOutputSpec, ResolvedPos } from 'prosemirror-model';\nimport { EditorState, Transaction, Plugin, PluginKey, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeOfType, ContentNodeWithPos } from 'prosemirror-utils';\nimport { wrapIn } from 'prosemirror-commands';\nimport { liftTarget } from 'prosemirror-transform';\n\nimport { ExtensionContext, Extension } from '../../api/extension';\nimport {\n pandocAttrSpec,\n pandocAttrToDomAttr,\n pandocAttrParseDom,\n pandocAttrReadAST,\n pandocAttrFrom,\n pandocAttrAvailable,\n PandocAttr,\n pandocAttrHasClass,\n} from '../../api/pandoc_attr';\nimport { PandocOutput, PandocTokenType, PandocToken } from '../../api/pandoc';\nimport { ProsemirrorCommand, EditorCommandId, toggleWrap } from '../../api/command';\nimport { EditorUI } from '../../api/ui';\nimport { OmniInsertGroup, OmniInsert } from '../../api/omni_insert';\nimport { markIsActive } from '../../api/mark';\nimport { BaseKey } from '../../api/basekeys';\nimport { attrInputToProps } from '../../api/ui-dialogs';\nimport { kQuartoDocType } from '../../api/format';\n\nimport { insertCalloutCommand, editCalloutDiv } from './div-callout';\nimport { insertTabsetCommand } from './div-tabset';\n\nimport './div-styles.css';\n\nconst DIV_ATTR = 0;\nconst DIV_CHILDREN = 1;\n\nconst extension = (context: ExtensionContext) : Extension | null => {\n const { pandocExtensions, format, ui } = context;\n\n if (!pandocExtensions.fenced_divs && !pandocExtensions.native_divs) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'div',\n spec: {\n attrs: {\n ...pandocAttrSpec,\n },\n defining: true,\n content: 'block+',\n group: 'block list_item_block',\n parseDOM: [\n {\n tag: 'div[data-div=\"1\"]',\n getAttrs(dom: Node | string) {\n const attrs: {} = { 'data-div': 1 };\n return {\n ...attrs,\n ...pandocAttrParseDom(dom as Element, attrs),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n const attr = {\n 'data-div': '1',\n ...pandocAttrToDomAttr({\n ...node.attrs,\n classes: [...node.attrs.classes, 'pm-div', 'pm-div-background-color'],\n }),\n };\n return ['div', attr, 0];\n },\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.div,\n editFn: () => divCommand(ui, true),\n offset: {\n top: 3,\n right: 0\n }\n }),\n\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Div,\n block: 'div',\n getAttrs: (tok: PandocToken) => ({\n ...pandocAttrReadAST(tok, DIV_ATTR),\n }),\n getChildren: (tok: PandocToken) => tok.c[DIV_CHILDREN],\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Div, () => {\n output.writeAttr(node.attrs.id, node.attrs.classes, node.attrs.keyvalue);\n output.writeArray(() => {\n output.writeNodes(node);\n });\n });\n },\n },\n },\n ],\n\n baseKeys: () => {\n return [\n { key: BaseKey.Enter, command: divInputRuleEnter() },\n ];\n },\n\n commands: () => {\n const cmds = [\n // turn current block into a div\n new DivCommand(EditorCommandId.Div, ui, true),\n\n // insert a div\n new DivCommand(EditorCommandId.InsertDiv, ui, false, {\n name: ui.context.translateText('Div...'),\n description: ui.context.translateText('Block containing other content'),\n group: OmniInsertGroup.Common,\n priority: 6,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.div_dark! : ui.images.omni_insert?.div!),\n }),\n ];\n\n // quarto div commands\n if (format.docTypes.includes(kQuartoDocType)) {\n cmds.push(\n insertCalloutCommand(ui),\n insertTabsetCommand(ui)\n );\n }\n\n return cmds;\n },\n\n plugins: (schema: Schema) => {\n return [\n new Plugin({\n key: new PluginKey(\"div-selection\"),\n appendTransaction: (_transactions: Transaction[], _oldState: EditorState, newState: EditorState) => {\n if (newState.selection.empty) {\n return;\n }\n const divNode = findParentNodeOfType(schema.nodes.div)(newState.selection);\n if (divNode && \n (newState.selection.anchor === divNode.start + 1) &&\n newState.selection.head === divNode.pos + divNode.node.nodeSize - 2) {\n const tr = newState.tr;\n const sel = TextSelection.create(tr.doc, divNode.start, divNode.start + divNode.node.nodeSize - 1);\n tr.setSelection(sel);\n return tr;\n }\n }\n }),\n ];\n },\n };\n};\n\nexport function removeDiv(state: EditorState, dispatch: (tr: Transaction) => void, div: ContentNodeWithPos) {\n const tr = state.tr;\n trRemoveDiv(tr, div);\n dispatch(tr);\n}\n\nexport function trRemoveDiv(tr: Transaction, div: ContentNodeWithPos) {\n const fromPos = tr.doc.resolve(div.pos + 1);\n const toPos = tr.doc.resolve(div.pos + div.node.nodeSize - 1);\n const nodeRange = fromPos.blockRange(toPos);\n if (nodeRange) {\n const targetLiftDepth = liftTarget(nodeRange);\n if (targetLiftDepth || targetLiftDepth === 0) {\n tr.lift(nodeRange, targetLiftDepth);\n }\n }\n}\n\nfunction divCommand(ui: EditorUI, allowEdit: boolean) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // two different modes:\n // - editing attributes of an existing div\n // - wrapping (a la blockquote)\n const schema = state.schema;\n const div = allowEdit ? findParentNodeOfType(schema.nodes.div)(state.selection) : undefined;\n if (!div && !toggleWrap(schema.nodes.div)(state)) {\n return false;\n }\n\n async function asyncEditDiv() {\n if (dispatch) {\n // selecting nothing or entire div means edit, selecting text outside of a\n // div or a subset of an existing div means create new one\n const editMode = div && (state.selection.empty || isFullDivSelection(div, state));\n if (editMode) {\n const attr = pandocAttrFrom(div!.node.attrs);\n if (pandocAttrHasClass(attr, (clz) => clz.startsWith(\"callout-\"))) {\n await editCalloutDiv(ui, state, dispatch, div!);\n } else {\n await editDiv(ui, state, dispatch, div!);\n }\n } else {\n await createDiv(ui, state, dispatch);\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditDiv();\n\n return true;\n };\n}\n\nclass DivCommand extends ProsemirrorCommand {\n constructor(id: EditorCommandId, ui: EditorUI, allowEdit: boolean, omniInsert?: OmniInsert) {\n super(id, [], divCommand(ui, allowEdit), omniInsert);\n }\n}\n\nasync function createDiv(ui: EditorUI, state: EditorState, dispatch: (tr: Transaction) => void) {\n const result = await ui.dialogs.editDiv({}, false);\n if (result) {\n wrapIn(state.schema.nodes.div)(state, (tr: Transaction) => {\n const div = findParentNodeOfType(state.schema.nodes.div)(tr.selection)!;\n tr.setNodeMarkup(div.pos, div.node.type, result.attr);\n dispatch(tr);\n });\n }\n}\n\nasync function editDiv(ui: EditorUI, state: EditorState, dispatch: (tr: Transaction) => void, div: ContentNodeWithPos) {\n const attr = pandocAttrFrom(div.node.attrs);\n const result = await ui.dialogs.editDiv(attr, pandocAttrAvailable(attr));\n if (result) {\n if (result.action === 'edit') {\n const tr = state.tr;\n tr.setNodeMarkup(div.pos, div.node.type, result.attr);\n dispatch(tr);\n } else if (result.action === 'remove') {\n removeDiv(state, dispatch, div);\n }\n }\n}\n\n\nfunction isFullDivSelection(div: ContentNodeWithPos, state: EditorState) {\n const divStart = div.pos;\n const divEnd = div.pos + div.node.nodeSize;\n return state.selection.from - 2 === divStart && state.selection.to + 2 === divEnd;\n}\n\nfunction divInputRuleEnter() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // see if the parent consist of a pending code block input rule\n const schema = state.schema;\n\n // selection must be empty\n if (!state.selection.empty) {\n return false;\n }\n\n // full text of parent must meet the pattern\n // eslint-disable-next-line no-useless-escape\n const match = state.selection.$head.parent.textContent.match(/^:{3,}(\\s+({.*?}|\\S+)?[\\s:]*)?$/);\n if (!match) {\n return false;\n }\n\n // no inline code marks\n if (markIsActive(state, schema.marks.code)) {\n return false;\n }\n\n // must be able to perform the replacement\n if (!canApplyDivInputRule(state)) {\n return false;\n }\n\n // execute\n if (dispatch) {\n // if it's just followed by whitespace then don't do it\n if (match[1] && match[1].trim().length === 0) {\n return false;\n }\n\n // parse attributes\n const attrs: PandocAttr = pandocAttrFrom({});\n const attribMatch = match[2];\n if (attribMatch) {\n const bracesMatch = attribMatch.match(/^{(.*?)}$/);\n if (bracesMatch) {\n const pandocAttrsText = bracesMatch[1];\n const pandocAttrsMatch = pandocAttrsText.match(/^\\s*(#\\S+)?\\s*((?:\\.\\S+\\s*)*)?(.*)?$/);\n if (pandocAttrsMatch) {\n const attrProps = attrInputToProps({ id: pandocAttrsMatch[1], classes: pandocAttrsMatch[2] });\n attrs.id = attrProps.id || '';\n attrs.classes = attrProps.classes || [];\n }\n } else {\n attrs.classes = [attribMatch];\n }\n }\n\n wrapIn(state.schema.nodes.div)(state, (tr: Transaction) => {\n const div = findParentNodeOfType(state.schema.nodes.div)(tr.selection)!;\n tr.setNodeMarkup(div.pos, div.node.type, attrs);\n const $head = tr.selection.$head;\n const start = $head.start();\n const end = start + $head.parent.textContent.length;\n tr.deleteRange(start, end);\n dispatch(tr);\n });\n }\n\n return true;\n };\n}\n\nfunction canReplaceNodeWithDiv(schema: Schema, $pos: ResolvedPos) {\n return $pos.node(-1).canReplaceWith($pos.index(-1), $pos.indexAfter(-1), schema.nodes.div);\n}\n\nfunction canApplyDivInputRule(state: EditorState) {\n const schema = state.schema;\n const { $head } = state.selection;\n return canReplaceNodeWithDiv(schema, $head);\n}\n\nexport default extension;\n","/*\n * div-callout.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from \"prosemirror-state\";\nimport { EditorView } from \"prosemirror-view\";\nimport { setTextSelection, ContentNodeWithPos, findParentNodeOfType } from \"prosemirror-utils\";\nimport { wrapIn } from \"prosemirror-commands\";\n\n\nimport { EditorCommandId, ProsemirrorCommand, toggleWrap } from \"../../api/command\";\nimport { EditorUI } from \"../../api/ui\";\nimport { OmniInsertGroup } from \"../../api/omni_insert\";\nimport { pandocAttrEnsureClass, pandocAttrSetKeyvalue, pandocAttrGetKeyvalue, \n pandocAttrRemoveKeyvalue, pandocAttrRemoveClass, pandocAttrFrom } from \"../../api/pandoc_attr\";\nimport { CalloutProps } from \"../../api/ui-dialogs\";\nimport { removeDiv } from \"./div\";\n\nexport function insertCalloutCommand(ui: EditorUI) {\n return new ProsemirrorCommand(EditorCommandId.Callout, [], insertCalloutCommandFn(ui), {\n name: ui.context.translateText('Callout'),\n description: ui.context.translateText('Content framed for special emphasis'),\n group: OmniInsertGroup.Content,\n priority: 2,\n image: () => ui.images.omni_insert?.generic!,\n });\n}\n\nexport async function editCalloutDiv(ui: EditorUI, state: EditorState, dispatch: (tr: Transaction) => void, div: ContentNodeWithPos) {\n \n // extract callout props\n const callout = defaultCallout();\n const attr = pandocAttrFrom(div.node.attrs);\n const calloutType = pandocAttrRemoveClass(attr, clz => clz.startsWith(\"callout-\"));\n if (calloutType) {\n let calloutAppearance = pandocAttrGetKeyvalue(attr, \"appearance\") as string | undefined;\n if (calloutAppearance) {\n pandocAttrRemoveKeyvalue(attr, \"appearance\");\n } else {\n calloutAppearance = \"default\";\n }\n let calloutIcon = true;\n if (pandocAttrGetKeyvalue(attr, \"icon\") === \"false\") {\n calloutIcon = false;\n pandocAttrRemoveKeyvalue(attr, \"icon\");\n }\n let calloutCaption = \"\";\n if (div.node.firstChild?.type === state.schema.nodes.heading) {\n calloutCaption = div.node.firstChild?.textContent || \"\";\n }\n callout.type = calloutType.replace(/^callout-/, \"\");\n callout.appearance = calloutAppearance;\n callout.icon = calloutIcon;\n callout.caption = calloutCaption;\n }\n \n // edit callout\n const result = await ui.dialogs.editCallout({ attr, callout }, true);\n \n if (result) {\n const tr = state.tr;\n if (result.action === 'edit') {\n \n // start with raw attributes\n const resultAttr = result.attr;\n\n // apply callout attributes \n pandocAttrEnsureClass(resultAttr, `callout-${result.callout.type}`);\n if (result.callout.appearance !== \"default\") {\n pandocAttrSetKeyvalue(resultAttr, \"appearance\", result.callout.appearance);\n }\n if (result.callout.icon !== true) {\n pandocAttrSetKeyvalue(resultAttr, \"icon\", \"false\");\n }\n\n // set node markup\n tr.setNodeMarkup(div.pos, div.node.type, resultAttr);\n\n // set caption if it's different\n if (result.callout && (callout?.caption !== result.callout?.caption)) {\n if (div.node.firstChild?.type === state.schema.nodes.heading) {\n if (result.callout?.caption) {\n tr.replaceRangeWith(\n div.start, \n div.start + div.node.firstChild?.nodeSize!, \n state.schema.nodes.heading.create(\n { level: 2 },\n state.schema.text(result.callout?.caption)\n )\n );\n } else {\n tr.deleteRange(div.start, div.start + div.node.firstChild?.nodeSize!);\n }\n } else if (result.callout?.caption) {\n tr.insert(\n div.start, \n state.schema.nodes.heading.create(\n { level: 2 }, \n state.schema.text(result.callout?.caption)\n )\n );\n }\n }\n dispatch(tr);\n\n } else if (result.action === 'remove') {\n removeDiv(state, dispatch, div); \n }\n }\n}\n\nfunction insertCalloutCommandFn(ui: EditorUI) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n \n const schema = state.schema;\n if (!toggleWrap(schema.nodes.div)(state)) {\n return false;\n }\n\n async function asyncInsertCallout() {\n if (dispatch) {\n await createCalloutDiv(ui, state, dispatch);\n if (view) {\n view.focus();\n }\n }\n }\n asyncInsertCallout();\n\n return true;\n };\n}\n\nasync function createCalloutDiv(ui: EditorUI, state: EditorState, dispatch: (tr: Transaction) => void) {\n const props = {\n attr: {},\n callout: defaultCallout()\n };\n const result = await ui.dialogs.editCallout(props, false);\n if (result) {\n wrapIn(state.schema.nodes.div)(state, (tr: Transaction) => {\n // set div props from callout\n const attr = result.attr as any;\n pandocAttrEnsureClass(attr, `callout-${result.callout.type}`);\n attr.keyvalue = attr.keyvalue || [];\n if (result.callout?.appearance !== \"default\") {\n attr.keyvalue.push([\"appearance\", result.callout.appearance]);\n }\n if (result.callout?.icon === false) {\n attr.keyvalue.push([\"icon\", \"false\"]);\n }\n const div = findParentNodeOfType(state.schema.nodes.div)(tr.selection)!;\n tr.setNodeMarkup(div.pos, div.node.type, attr);\n\n // insert caption if one is specified\n if (result.callout?.caption) {\n const calloutContent = [\n state.schema.nodes.heading.create(\n { level: 2 },\n state.schema.text(result.callout?.caption)\n ),\n state.schema.nodes.paragraph.create()\n ];\n tr.replaceWith(div.start, div.start + 1, calloutContent);\n setTextSelection(div.start + calloutContent[0].nodeSize)(tr);\n }\n dispatch(tr);\n });\n }\n}\n\nfunction defaultCallout() : CalloutProps {\n return {\n type: \"note\",\n appearance: \"default\",\n icon: true,\n caption: \"\"\n };\n}\n\n","/*\n * div-tabset.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction } from \"prosemirror-state\";\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { wrapIn } from \"prosemirror-commands\";\nimport { findParentNodeOfType, setTextSelection } from \"prosemirror-utils\";\nimport { EditorView } from \"prosemirror-view\";\n\nimport { EditorCommandId, ProsemirrorCommand, toggleWrap } from \"../../api/command\";\nimport { EditorUI } from \"../../api/ui\";\nimport { OmniInsertGroup } from \"../../api/omni_insert\";\nimport { pandocAttrEnsureClass } from \"../../api/pandoc_attr\";\n\n\nexport function insertTabsetCommand(ui: EditorUI) {\n return new ProsemirrorCommand(EditorCommandId.Tabset, [], insertTabsetCommandFn(ui), {\n name: ui.context.translateText('Tabset'),\n description: ui.context.translateText('Content divided into tabs'),\n group: OmniInsertGroup.Content,\n priority: 2,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.tabset_dark! : ui.images.omni_insert?.tabset!),\n });\n}\n\nfunction insertTabsetCommandFn(ui: EditorUI) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n \n const schema = state.schema;\n if (!toggleWrap(schema.nodes.div)(state)) {\n return false;\n }\n\n async function asyncInsertTabset() {\n if (dispatch) {\n const result = await ui.dialogs.insertTabset();\n if (result) {\n wrapIn(state.schema.nodes.div)(state, (tr: Transaction) => {\n // locate inserted div\n const div = findParentNodeOfType(state.schema.nodes.div)(tr.selection)!;\n\n // ensure that .panel-tabset is the first class then set attributes\n pandocAttrEnsureClass(result.attr, \"panel-tabset\");\n tr.setNodeMarkup(div.pos, div.node.type, result.attr);\n \n // insert tabset\n const tabset: ProsemirrorNode[] = result.tabs.flatMap(tab => {\n return [\n schema.nodes.heading.create(\n { level: 2 },\n schema.text(tab)\n ),\n schema.nodes.paragraph.create()\n ];\n });\n tr.replaceWith(div.start, div.start + 1, tabset);\n\n // set selection\n setTextSelection(div.start + tabset[0].nodeSize)(tr);\n\n // dispatch\n dispatch(tr);\n });\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncInsertTabset();\n\n return true;\n };\n}\n\n\n\n","/*\n * list-checked.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, Fragment, NodeType } from 'prosemirror-model';\nimport { NodeView, EditorView } from 'prosemirror-view';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { findParentNodeOfType, NodeWithPos, setTextSelection } from 'prosemirror-utils';\nimport { InputRule, wrappingInputRule } from 'prosemirror-inputrules';\n\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { PandocToken, mapTokens } from '../../api/pandoc';\n\n// custom NodeView that accomodates display / interaction with item check boxes\nexport class CheckedListItemNodeView implements NodeView {\n public readonly dom: HTMLElement;\n public readonly contentDOM: HTMLElement;\n\n private readonly node: ProsemirrorNode;\n private readonly view: EditorView;\n private readonly getPos: () => number;\n\n constructor(node: ProsemirrorNode, view: EditorView, getPos: () => number) {\n this.node = node;\n this.view = view;\n this.getPos = getPos;\n\n // create root li element\n this.dom = window.document.createElement('li');\n if (node.attrs.tight) {\n this.dom.setAttribute('data-tight', 'true');\n }\n\n const container = window.document.createElement('div');\n container.classList.add('list-item-container');\n this.dom.appendChild(container);\n\n // add checkbox for checked items\n if (node.attrs.checked !== null) {\n this.dom.setAttribute('data-checked', node.attrs.checked ? 'true' : 'false');\n\n // checkbox for editing checked state\n const input = window.document.createElement('input');\n input.classList.add('list-item-checkbox');\n input.setAttribute('type', 'checkbox');\n input.checked = node.attrs.checked;\n input.contentEditable = 'false';\n input.disabled = !(view as any).editable;\n input.addEventListener('mousedown', (ev: Event) => {\n ev.preventDefault(); // don't steal focus\n });\n input.addEventListener('change', (ev: Event) => {\n const tr = view.state.tr;\n tr.setNodeMarkup(getPos(), node.type, {\n ...node.attrs,\n checked: (ev.target as HTMLInputElement).checked,\n });\n setTextSelection(getPos() + 1)(tr);\n view.dispatch(tr);\n });\n container.appendChild(input);\n }\n\n // content div\n const content = window.document.createElement('div');\n content.classList.add('list-item-content');\n this.contentDOM = content;\n container.appendChild(content);\n }\n}\n\n// command to toggle checked list items\nexport function checkedListItemCommandFn(itemType: NodeType) {\n return (state: EditorState, dispatch?: ((tr: Transaction) => void) | undefined) => {\n const itemNode = findParentNodeOfType(itemType)(state.selection);\n if (!itemNode) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n if (itemNode.node.attrs.checked !== null) {\n setItemChecked(tr, itemNode, null);\n } else {\n setItemChecked(tr, itemNode, false);\n }\n\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function checkedListItemToggleCommandFn(itemType: NodeType) {\n return (state: EditorState, dispatch?: ((tr: Transaction) => void) | undefined) => {\n const itemNode = findParentNodeOfType(itemType)(state.selection);\n if (!itemNode || itemNode.node.attrs.checked === null) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n setItemChecked(tr, itemNode, !itemNode.node.attrs.checked);\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport class CheckedListItemCommand extends ProsemirrorCommand {\n constructor(itemType: NodeType) {\n super(EditorCommandId.ListItemCheck, [], checkedListItemCommandFn(itemType));\n }\n\n public isActive(state: EditorState): boolean {\n if (this.isEnabled(state)) {\n const itemNode = findParentNodeOfType(state.schema.nodes.list_item)(state.selection) as NodeWithPos;\n return itemNode.node.attrs.checked !== null;\n } else {\n return false;\n }\n }\n}\n\nexport class CheckedListItemToggleCommand extends ProsemirrorCommand {\n private itemType: NodeType;\n\n constructor(itemType: NodeType) {\n super(EditorCommandId.ListItemCheckToggle, [], checkedListItemToggleCommandFn(itemType));\n this.itemType = itemType;\n }\n\n public isActive(state: EditorState): boolean {\n const itemNode = findParentNodeOfType(this.itemType)(state.selection);\n return itemNode && itemNode.node.attrs.checked;\n }\n}\n\n// allow users to type [x] or [ ] to define a checked list item\nexport function checkedListItemInputRule() {\n return new InputRule(/\\[([ x])\\]\\s$/, (state: EditorState, match: string[], start: number, end: number) => {\n const schema = state.schema;\n\n const itemNode = findParentNodeOfType(schema.nodes.list_item)(state.selection);\n if (itemNode) {\n // create transaction\n const tr = state.tr;\n\n // set checked\n setItemChecked(tr, itemNode, match[1]);\n\n // delete entered text\n tr.delete(start, end);\n\n // return transaction\n return tr;\n } else {\n return null;\n }\n });\n}\n\n// allow users to begin a new checked list by typing [x] or [ ] at the beginning of a line\nexport function checkedListInputRule(schema: Schema) {\n // regex to match checked list at the beginning of a line\n const regex = /^\\s*\\[([ x])\\]\\s$/;\n\n // we are going to steal the handler from the base bullet list wrapping input rule\n const baseInputRule: any = wrappingInputRule(regex, schema.nodes.bullet_list);\n\n return new InputRule(regex, (state: EditorState, match: string[], start: number, end: number) => {\n // call the base handler to create the bullet list\n const tr = baseInputRule.handler(state, match, start, end);\n if (tr) {\n // set the checkbox\n const itemNode = findParentNodeOfType(schema.nodes.list_item)(tr.selection);\n if (itemNode) {\n setItemChecked(tr, itemNode, match[1]);\n }\n\n return tr;\n } else {\n return null;\n }\n });\n}\n\nfunction setItemChecked(tr: Transaction, itemNode: NodeWithPos, check: null | boolean | string) {\n tr.setNodeMarkup(itemNode.pos, itemNode.node.type, {\n ...itemNode.node.attrs,\n checked: check === null ? null : typeof check === 'string' ? check === 'x' : check,\n });\n}\n// prepend a check mark to the provided fragment\nexport function fragmentWithCheck(schema: Schema, fragment: Fragment, checked: boolean) {\n // create a raw markdown node with [x] or [ ]\n const mark = schema.marks.raw_inline.create({ format: 'markdown' });\n const check = schema.text((checked ? '[x]' : '[ ]') + ' ', [mark]);\n return Fragment.from(check).append(fragment);\n}\n\nconst kCheckedChar = '☒';\nconst kUncheckedChar = '☐';\n\nexport function tokensWithChecked(tokens: PandocToken[]): { checked: null | boolean; tokens: PandocToken[] } {\n // will set this flag based on inspecting the first Str token\n let checked: null | boolean | undefined;\n let lastWasChecked = false;\n\n // map tokens\n const mappedTokens = mapTokens(tokens, tok => {\n // if the last token was checked then strip the next space\n if (tok.t === 'Space' && lastWasChecked) {\n lastWasChecked = false;\n return {\n t: 'Str',\n c: '',\n };\n }\n\n // derive 'checked' from first chraracter of first Str token encountered\n // if we find checked or unchecked then set the flag and strip off\n // the first 2 chraracters (the check and the space after it)\n else if (tok.t === 'Str' && checked === undefined) {\n let text = tok.c as string;\n if (text.charAt(0) === kCheckedChar) {\n checked = true;\n lastWasChecked = true;\n text = text.slice(1);\n } else if (text.charAt(0) === kUncheckedChar) {\n checked = false;\n lastWasChecked = true;\n text = text.slice(1);\n } else {\n checked = null;\n }\n return {\n t: 'Str',\n c: text,\n };\n } else {\n return tok;\n }\n });\n\n // return\n return {\n checked: checked !== undefined ? checked : null,\n tokens: mappedTokens,\n };\n}\n","/*\n * list-pandoc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeType, Fragment } from 'prosemirror-model';\n\nimport { PandocOutput, PandocToken, ProsemirrorWriter, PandocTokenType } from '../../api/pandoc';\n\nimport { fragmentWithCheck, tokensWithChecked } from './list-checked';\nimport { ListNumberDelim, ListNumberStyle } from './list';\nimport { ListCapabilities, isList } from '../../api/list';\n\nconst LIST_ATTRIBS = 0;\nconst LIST_CHILDREN = 1;\n\nconst LIST_ATTRIB_ORDER = 0;\nconst LIST_ATTRIB_NUMBER_STYLE = 1;\nconst LIST_ATTRIB_NUMBER_DELIM = 2;\n\n// Note that we are planning on eliminating the markdownOutputFilter after this commit\n// as there will be no more uses of it and it plays poorly w/ e.g. pandoc table output\n// which needs to reliably know the number of characters wide each column will be).\n// (previous uses of markdownOutputFilter were converted to use output.writeRawMarkdown).\n// So, if we are attempting to re-enable example lists b/c there is now round tripping\n// of example lists through the pandoc AST we need an alternative way to fixup\n// example list output (likely a more robust pandoc AST).\nconst kListItemExampleSentinel = '20543127-1873-4833-AC49-5B352CFA2AF5';\nconst kListItemExampleRegex = new RegExp(`\\\\(\\\\d+\\\\) ${kListItemExampleSentinel}`, 'g');\n\nexport function readPandocList(nodeType: NodeType, capabilities: ListCapabilities) {\n // alias schema\n const schema = nodeType.schema;\n\n // default extraction functions\n let getChildren = (tok: PandocToken) => tok.c;\n let getAttrs = (tok: PandocToken): { [key: string]: any } => ({});\n\n // function to read the number style (convert example to default if we\n // don't support example lists)\n const readNumberStyle = (attribs: any) => {\n if (capabilities.fancy) {\n const style = attribs[LIST_ATTRIB_NUMBER_STYLE].t;\n if (style === ListNumberStyle.Example && !capabilities.example) {\n return ListNumberStyle.DefaultStyle;\n } else {\n return style;\n }\n } else {\n return ListNumberStyle.DefaultStyle;\n }\n };\n\n // specialize for ordered_list\n if (nodeType === schema.nodes.ordered_list) {\n getAttrs = (tok: PandocToken) => {\n const attribs = tok.c[LIST_ATTRIBS];\n return {\n order: capabilities.order ? attribs[LIST_ATTRIB_ORDER] : 1,\n number_style: readNumberStyle(attribs),\n number_delim: capabilities.fancy ? attribs[LIST_ATTRIB_NUMBER_DELIM].t : ListNumberDelim.DefaultDelim,\n };\n };\n getChildren = (tok: PandocToken) => tok.c[LIST_CHILDREN];\n }\n\n const listItemNodeType = schema.nodes.list_item;\n return (writer: ProsemirrorWriter, tok: PandocToken) => {\n\n // determine if this is an example list and log if it is\n if ((nodeType === schema.nodes.ordered_list) && capabilities.fancy) {\n const style = tok.c[LIST_ATTRIBS][LIST_ATTRIB_NUMBER_STYLE].t;\n if (style === ListNumberStyle.Example) {\n writer.logExampleList();\n }\n }\n \n const children = getChildren(tok);\n const attrs = getAttrs(tok);\n attrs.tight = children.length && children[0].length && children[0][0].t === 'Plain';\n writer.openNode(nodeType, attrs);\n children.forEach((child: PandocToken[]) => {\n // setup tokens/attribs for output\n let tokens = child;\n const childAttrs: { checked: null | boolean } = { checked: null };\n\n // special task list processing if the current format supports task lists\n if (capabilities.tasks) {\n // look for checkbox in first character of child tokens\n // if we see it, remove it and set childAttrs.checked as appropriate\n const childWithChecked = tokensWithChecked(child);\n childAttrs.checked = childWithChecked.checked;\n tokens = childWithChecked.tokens;\n }\n\n // process children\n writer.openNode(listItemNodeType, childAttrs);\n writer.writeTokens(tokens);\n writer.closeNode();\n });\n writer.closeNode();\n };\n}\n\nexport function writePandocOrderedList(capabilities: ListCapabilities) {\n return (output: PandocOutput, node: ProsemirrorNode) => {\n // alias some list options\n const options = listNodeOptions(node, capabilities);\n\n // force delim to two parens for example styles. we do this\n // to simplify the search/replace of example list sentinels\n // during conversion post-processing\n const delim = options.example ? ListNumberDelim.TwoParens : node.attrs.number_delim;\n\n output.writeToken(PandocTokenType.OrderedList, () => {\n output.writeArray(() => {\n output.write(capabilities.order ? node.attrs.order : 1);\n output.writeToken(capabilities.fancy ? node.attrs.number_style : ListNumberStyle.DefaultStyle);\n output.writeToken(capabilities.fancy ? delim : ListNumberDelim.DefaultDelim);\n });\n output.writeArray(() => {\n node.forEach(item => writePandocListItem(output, options, item));\n });\n });\n };\n}\n\nexport function writePandocBulletList(capabilities: ListCapabilities) {\n return (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.BulletList, () => {\n node.forEach(item => writePandocListItem(output, listNodeOptions(node, capabilities), item));\n });\n };\n}\n\nexport function exampleListPandocMarkdownOutputFilter(markdown: string) {\n return markdown.replace(kListItemExampleRegex, '(@) ');\n}\n\ninterface ListNodeOptions {\n tight: boolean;\n example: boolean;\n}\n\nfunction listNodeOptions(node: ProsemirrorNode, capabilities: ListCapabilities): ListNodeOptions {\n const options = {\n tight: node.attrs.tight,\n example: capabilities.example ? node.attrs.number_style === ListNumberStyle.Example : false,\n };\n\n // if it's tight see if we need to override b/c of multiple blocks\n // (allow case of [paragraph,list] which is just a nested list)\n node.forEach(item => {\n if (options.tight && item.childCount > 1) {\n if (item.childCount > 2 || !isList(item.child(1)) ) {\n options.tight = false;\n }\n }\n });\n\n return options;\n}\n\nfunction writePandocListItem(output: PandocOutput, options: ListNodeOptions, node: ProsemirrorNode) {\n const checked = node.attrs.checked;\n\n output.writeArray(() => {\n node.forEach((itemNode: ProsemirrorNode, _offset, index) => {\n if (itemNode.type === node.type.schema.nodes.paragraph) {\n const paraItemBlockType = options.tight ? PandocTokenType.Plain : PandocTokenType.Para;\n output.writeToken(paraItemBlockType, () => {\n // for first item block, prepend check mark if we have one\n if (checked !== null && index === 0) {\n writeListItemInlines(\n output,\n options.example,\n fragmentWithCheck(node.type.schema, itemNode.content, checked),\n index,\n );\n } else {\n writeListItemInlines(output, options.example, itemNode.content, index);\n }\n });\n } else {\n output.writeNode(itemNode);\n }\n });\n });\n}\n\nfunction writeListItemInlines(output: PandocOutput, example: boolean, fragment: Fragment, index: number) {\n if (index === 0 && example) {\n output.writeToken(PandocTokenType.Str, kListItemExampleSentinel);\n }\n output.writeInlines(fragment);\n}\n","/*\n * image.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, DOMOutputSpec } from 'prosemirror-model';\nimport { EditorState, NodeSelection, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { canInsertNode } from '../../api/node';\nimport { selectionIsImageNode, selectionIsEmptyParagraph } from '../../api/selection';\nimport {\n pandocAttrSpec,\n pandocAttrParseDom,\n pandocAttrToDomAttr,\n pandocAttrReadAST,\n pandocAttrAvailable,\n} from '../../api/pandoc_attr';\nimport {\n PandocOutput,\n PandocTokenType,\n ProsemirrorWriter,\n PandocToken,\n stringifyTokens,\n imageAttributesAvailable,\n} from '../../api/pandoc';\nimport { EditorUI } from '../../api/ui';\nimport { ImageDimensions } from '../../api/image';\nimport { asHTMLTag } from '../../api/html';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { EditorFormat } from '../../api/format';\n\nimport { imageDialog } from './image-dialog';\nimport { imageDimensionsFromImg, imageContainerWidth, inlineHTMLIsImage } from './image-util';\nimport { imageTextSelectionPlugin } from './image-textsel';\nimport { posHasProhibitedFigureParent } from './figure';\nimport { imageEventsPlugin } from './image-events';\nimport { imageNodeViewPlugins } from './image-view';\n\nconst TARGET_URL = 0;\nconst TARGET_TITLE = 1;\n\nconst IMAGE_ATTR = 0;\nconst IMAGE_ALT = 1;\nconst IMAGE_TARGET = 2;\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, ui, events, format } = context;\n\n const imageAttr = imageAttributesAvailable(pandocExtensions);\n\n return {\n nodes: [\n {\n name: 'image',\n spec: {\n inline: true,\n attrs: imageNodeAttrsSpec(false, imageAttr),\n group: 'inline',\n draggable: true,\n parseDOM: [\n {\n tag: 'img[src]',\n getAttrs(dom: Node | string) {\n return imageAttrsFromDOM(dom as Element, imageAttr);\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return imageDOMOutputSpec(node, imageAttr);\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Image,\n handler: pandocImageHandler(false, imageAttr),\n },\n ],\n inlineHTMLReader: pandocExtensions.raw_html ? imageInlineHTMLReader : undefined,\n writer: imagePandocOutputWriter(false, ui),\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.image,\n noDecorator: true,\n editFn: () => imageCommand(ui, format, imageAttr),\n }),\n },\n ],\n\n commands: (_schema: Schema) => {\n return [\n new ProsemirrorCommand(\n EditorCommandId.Image,\n ['Shift-Mod-i'],\n imageCommand(ui, format, imageAttr),\n imageOmniInsert(ui),\n ),\n ];\n },\n\n plugins: (schema: Schema) => {\n return [\n imageTextSelectionPlugin(),\n imageEventsPlugin(ui),\n ...imageNodeViewPlugins('image', ui, format, events, pandocExtensions),\n ];\n },\n };\n};\n\nexport function pandocImageHandler(figure: boolean, imageAttributes: boolean) {\n return (schema: Schema) => (writer: ProsemirrorWriter, tok: PandocToken) => {\n // get attributes\n const target = tok.c[IMAGE_TARGET];\n const attrs = {\n src: decodeURI(target[TARGET_URL]),\n title: readPandocTitle(target[TARGET_TITLE]),\n caption: '',\n ...(imageAttributes ? pandocAttrReadAST(tok, IMAGE_ATTR) : {}),\n };\n\n // add alt as plain text if it's not a figure\n if (!figure) {\n attrs.caption = stringifyTokens(tok.c[IMAGE_ALT]);\n }\n\n // read image and (if appropriate) children\n writer.openNode(figure ? schema.nodes.figure : schema.nodes.image, attrs);\n if (figure) {\n writer.writeTokens(tok.c[IMAGE_ALT]);\n }\n writer.closeNode();\n };\n}\n\nexport function imagePandocOutputWriter(figure: boolean, ui: EditorUI) {\n return (output: PandocOutput, node: ProsemirrorNode) => {\n // default writer for markdown images\n let writer = () => {\n output.writeToken(PandocTokenType.Image, () => {\n if (output.extensions.link_attributes) {\n output.writeAttr(node.attrs.id, node.attrs.classes, node.attrs.keyvalue);\n } else {\n output.writeAttr();\n }\n output.writeArray(() => {\n if (figure) {\n output.writeInlines(node.content);\n } else {\n output.writeText(node.attrs.caption);\n }\n });\n output.write([encodeURI(node.attrs.src), node.attrs.title || '']);\n });\n };\n\n // see if we need to write raw html\n const requireHTML =\n pandocAttrAvailable(node.attrs) && // attribs need to be written\n !output.extensions.link_attributes && // markdown attribs not supported\n output.extensions.raw_html; // raw html is supported\n\n // if we do, then substitute a raw html writer\n if (node.attrs.raw || requireHTML) {\n writer = () => {\n const imgAttr = imageDOMAttributes(node, true, false);\n const html = asHTMLTag('img', imgAttr, true, true);\n output.writeRawMarkdown(html);\n };\n }\n\n // write (wrap in paragraph and possibly link for figures)\n if (figure) {\n let writeFigure = writer;\n if (node.attrs.linkTo) {\n writeFigure = () => {\n output.writeLink(node.attrs.linkTo, '', null, writer);\n };\n }\n output.writeToken(PandocTokenType.Para, writeFigure);\n } else {\n writer();\n }\n };\n}\n\n// parse inline html with as image node\nfunction imageInlineHTMLReader(schema: Schema, html: string, writer?: ProsemirrorWriter) {\n const isImage = inlineHTMLIsImage(html);\n if (!isImage) {\n return false;\n }\n\n if (writer) {\n const attrs = imageAttrsFromHTML(html);\n if (attrs) {\n attrs.raw = true;\n writer.addNode(schema.nodes.image, attrs, []);\n } else {\n return false;\n }\n }\n\n return isImage;\n}\n\nexport function imageDOMOutputSpec(node: ProsemirrorNode, imageAttributes: boolean): DOMOutputSpec {\n return ['img', imageDOMAttributes(node, imageAttributes)];\n}\n\nexport function imageDOMAttributes(\n node: ProsemirrorNode,\n imageAttributes: boolean,\n marker = true,\n): { [key: string]: string } {\n const attr: { [key: string]: string } = {\n src: node.attrs.src,\n };\n const title = node.attrs.title;\n if (title) {\n attr.title = title;\n }\n const caption = node.attrs.caption || node.textContent;\n if (caption) {\n attr.alt = caption;\n }\n\n return {\n ...attr,\n ...(imageAttributes ? pandocAttrToDomAttr(node.attrs, marker) : {}),\n };\n}\n\nexport function imageNodeAttrsSpec(linkTo: boolean, imageAttributes: boolean) {\n return {\n src: {},\n title: { default: null },\n caption: { default: null },\n raw: { default: false },\n ...(linkTo ? { linkTo: { default: null } } : {}),\n ...(imageAttributes ? pandocAttrSpec : {}),\n };\n}\n\nexport function imageAttrsFromDOM(el: Element, imageAttributes: boolean, forceAttrs = false) {\n const attrs: { [key: string]: string | null } = {\n src: el.getAttribute('src') || null,\n title: el.getAttribute('title') || null,\n caption: el.getAttribute('alt') || null,\n };\n return {\n ...attrs,\n ...(imageAttributes ? pandocAttrParseDom(el, attrs, forceAttrs) : {}),\n };\n}\n\nexport function imageAttrsFromHTML(html: string) {\n const parser = new window.DOMParser();\n const doc = parser.parseFromString(html, 'text/html');\n if (doc.body && doc.body.firstChild instanceof HTMLImageElement) {\n return imageAttrsFromDOM(doc.body.firstChild, true, true);\n } else {\n return null;\n }\n}\n\nexport function imageCommand(editorUI: EditorUI, editorFormat: EditorFormat, imageAttributes: boolean) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (!canInsertNode(state, schema.nodes.image) && !canInsertNode(state, schema.nodes.figure)) {\n return false;\n }\n\n if (dispatch && view) {\n // see if we are editing an existing node\n let node: ProsemirrorNode | null = null;\n let nodeType = schema.nodes.image;\n let img: HTMLImageElement | null = null;\n let imgDimensions: ImageDimensions | null = null;\n if (selectionIsImageNode(schema, state.selection)) {\n node = (state.selection as NodeSelection).node;\n nodeType = node.type;\n if (nodeType === schema.nodes.figure) {\n const figure = view.nodeDOM(state.selection.from) as HTMLElement;\n img = figure.firstChild!.firstChild as HTMLImageElement;\n } else {\n const span = view.nodeDOM(state.selection.from) as HTMLElement;\n img = span.firstChild! as HTMLImageElement;\n }\n if (img) {\n const containerWidth = imageContainerWidth(state.selection.from, view);\n imgDimensions = imageDimensionsFromImg(img, containerWidth);\n }\n }\n\n // see if we are in an empty paragraph (in that case insert a figure)\n if (\n selectionIsEmptyParagraph(schema, state.selection) &&\n !posHasProhibitedFigureParent(schema, state.selection.$head)\n ) {\n nodeType = schema.nodes.figure;\n }\n\n // show dialog\n imageDialog(node, imgDimensions, nodeType, view, editorUI, editorFormat, imageAttributes);\n }\n\n return true;\n };\n}\n\nfunction imageOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Figure / Image...'),\n description: ui.context.translateText('Figure or inline image'),\n group: OmniInsertGroup.Content,\n priority: 10,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.image_dark! : ui.images.omni_insert?.image!),\n };\n}\n\nfunction readPandocTitle(title: string | null) {\n if (title) {\n return title.replace(/^(fig:)/, '');\n } else {\n return title;\n }\n}\n\nexport default extension;\n","/*\n * image-dialog.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, NodeType, Fragment, Mark } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { insertAndSelectNode } from '../../api/node';\nimport { EditorUI } from '../../api/ui';\nimport { ImageProps } from '../../api/ui-dialogs';\nimport { extractSizeStyles, kPercentUnit, kPixelUnit } from '../../api/css';\nimport { ImageType, ImageDimensions, isNaturalAspectRatio } from '../../api/image';\nimport { kWidthAttrib, kHeightAttrib, pandocAttrRemoveKeyvalue, \n pandocAttrGetKeyvalue, pandocAttrSetKeyvalue, \n kFigAlignAttrib, kFigEnvAttrib, kFigAltAttrib } from '../../api/pandoc_attr';\n import { EditorFormat, kQuartoDocType } from '../../api/format';\n\nimport { imagePropsWithSizes, hasPercentWidth } from './image-util';\n\nexport async function imageDialog(\n node: ProsemirrorNode | null,\n dims: ImageDimensions | null,\n nodeType: NodeType,\n view: EditorView,\n editorUI: EditorUI,\n editorFormat: EditorFormat,\n imageAttributes: boolean,\n) {\n // alias schema\n const schema = view.state.schema;\n\n // if we are being called with an existing node then read it's attributes\n let content = Fragment.empty;\n let image: ImageProps = { src: null };\n let linkMark: Mark | undefined;\n let marks: Mark[] = [];\n if (node && dims && node.type === nodeType) {\n // base attributess\n image = {\n ...(node.attrs as ImageProps),\n caption: nodeType === schema.nodes.figure ? node.textContent : node.attrs.caption,\n };\n\n // move width and height out of style and into keyvalue if necessary\n image = {\n ...image,\n keyvalue: extractSizeStyles(image.keyvalue),\n };\n\n // move width, height, and units out of keyvalue into explicit\n // top level image properties if necessary\n image = imagePropsWithSizes(image, dims);\n\n // record marks / linkTo\n if (nodeType === schema.nodes.image) {\n marks = node.marks;\n linkMark = node.marks.find(mark => mark.type === schema.marks.link);\n if (linkMark) {\n image.linkTo = linkMark.attrs.href;\n }\n }\n\n // content (will be caption for figures)\n content = node.content;\n } else {\n // create a new image\n image = nodeType.create(image).attrs as ImageProps;\n }\n\n // determine the type\n const type = nodeType === view.state.schema.nodes.image ? ImageType.Image : ImageType.Figure;\n\n // if this is a quarto figure then remove fig-align and fig-env from attributes\n const quartoFigure = (type === ImageType.Figure) && \n editorFormat.docTypes.includes(kQuartoDocType) && \n imageAttributes;\n if (quartoFigure) {\n // fig-alt\n image.alt = pandocAttrGetKeyvalue(image, kFigAltAttrib) || \"\";\n pandocAttrRemoveKeyvalue(image, kFigAltAttrib);\n // fig-align\n image.align = pandocAttrGetKeyvalue(image, kFigAlignAttrib) || \"default\";\n pandocAttrRemoveKeyvalue(image, kFigAlignAttrib);\n // fig env\n image.env = pandocAttrGetKeyvalue(image, kFigEnvAttrib) || \"\";\n pandocAttrRemoveKeyvalue(image, kFigEnvAttrib);\n }\n\n const result = await editorUI.dialogs.editImage(\n image, dims, type === ImageType.Figure, imageAttributes\n );\n if (result) {\n // since captions support inline formatting (and the dialog doesn't) we only want \n // to update the content if the alt/caption actually changed (as it will blow away\n // formatting)\n if (type === ImageType.Figure && image.caption !== result.caption) {\n if (result.caption) {\n content = Fragment.from(view.state.schema.text(result.caption));\n } else {\n content = Fragment.empty;\n }\n }\n\n // if we have align then move into keyvalue\n if (quartoFigure) {\n // fig-alt\n if (result.alt) {\n pandocAttrSetKeyvalue(result, kFigAltAttrib, result.alt);\n } else {\n pandocAttrRemoveKeyvalue(result, kFigAltAttrib);\n }\n // fig-align\n if (result.align) {\n if (result.align !== \"default\") {\n pandocAttrSetKeyvalue(result, kFigAlignAttrib, result.align);\n } else {\n pandocAttrRemoveKeyvalue(result, kFigAlignAttrib);\n }\n }\n // fig-env\n if (result.env) {\n pandocAttrSetKeyvalue(result, kFigEnvAttrib, result.env);\n } else {\n pandocAttrRemoveKeyvalue(result, kFigEnvAttrib);\n }\n }\n\n // if we have width and height move them into keyvalue\n let keyvalue = result.keyvalue;\n if (result.units) {\n // no units for px\n const units = result.units && result.units === kPixelUnit ? '' : result.units;\n // width\n if (result.width) {\n let width = result.width;\n if (hasPercentWidth(units)) {\n width = Math.min(width, 100);\n }\n keyvalue = keyvalue || [];\n keyvalue.push([kWidthAttrib, width + units]);\n }\n // only record height if it's not % units and it's not at it's natural height\n if (result.height && units !== kPercentUnit && !isNaturalHeight(result.width, result.height, dims)) {\n keyvalue = keyvalue || [];\n keyvalue.push([kHeightAttrib, result.height + units]);\n }\n }\n\n // merge updated keyvalue\n const imageProps = { ...result, keyvalue };\n\n // update or create link mark as necessary\n if (nodeType === schema.nodes.image) {\n if (linkMark) {\n marks = linkMark.removeFromSet(marks);\n if (imageProps.linkTo) {\n linkMark = linkMark.type.create({ ...linkMark.attrs, href: imageProps.linkTo });\n }\n } else if (imageProps.linkTo) {\n linkMark = schema.marks.link.create({ href: imageProps.linkTo });\n }\n if (imageProps.linkTo && linkMark) {\n marks = linkMark.addToSet(marks);\n }\n }\n\n // create the image\n const newImage = nodeType.createAndFill(imageProps, content, marks);\n\n // insert and select\n if (newImage) {\n insertAndSelectNode(view, newImage);\n }\n }\n\n if (view) {\n view.focus();\n }\n}\n\n// wrapper for isNaturalHeight that handles potentially undefined params\nfunction isNaturalHeight(width: number | undefined, height: number | undefined, dims: ImageDimensions | null) {\n if (width && height && dims) {\n return isNaturalAspectRatio(width, height, dims, false);\n } else {\n return false;\n }\n}\n","/*\n * image-util.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeClosestToPos } from 'prosemirror-utils';\n\nimport { ImageProps } from '../../api/ui-dialogs';\nimport {\n imageSizePropWithUnit,\n isValidImageSizeUnit,\n ensureContainerWidth,\n isNaturalAspectRatio,\n ImageDimensions,\n} from '../../api/image';\nimport { kWidthAttrib, kHeightAttrib, attrPartitionKeyvalue } from '../../api/pandoc_attr';\nimport { kPercentUnit, kPixelUnit } from '../../api/css';\nimport { elementInnerDimensions } from '../../api/dom';\n\nexport function imagePropsWithSizes(image: ImageProps, dims: ImageDimensions) {\n // pull width, height, and units out of keyvalue if necessary\n // (enables front-ends to provide dedicated UI for width/height)\n // note that if the value doesn't use a unit supported by the\n // UI it's kept within the original keyvalue prop\n if (image.keyvalue) {\n let width: number | undefined;\n let height: number | undefined;\n let units: string | undefined;\n let lockRatio = true;\n const partitionedKeyvalue = attrPartitionKeyvalue([kWidthAttrib, kHeightAttrib], image.keyvalue);\n for (const kv of partitionedKeyvalue.partitioned) {\n const [key, value] = kv;\n let partitioned = false;\n const sizeWithUnit = imageSizePropWithUnit(value);\n if (sizeWithUnit) {\n sizeWithUnit.unit = sizeWithUnit.unit || kPixelUnit;\n if (isValidImageSizeUnit(sizeWithUnit.unit)) {\n if (key === kWidthAttrib) {\n width = sizeWithUnit.size;\n units = sizeWithUnit.unit;\n } else if (key === kHeightAttrib) {\n height = sizeWithUnit.size;\n units = units || sizeWithUnit.unit;\n }\n partitioned = true;\n }\n }\n if (!partitioned) {\n partitionedKeyvalue.base.push(kv);\n }\n }\n if (width && height) {\n lockRatio = isNaturalAspectRatio(width, height, dims, lockRatio);\n }\n return {\n ...image,\n width,\n height,\n units,\n lockRatio,\n keyvalue: partitionedKeyvalue.base,\n };\n } else {\n return image;\n }\n}\n\nexport function imageDimensionsFromImg(img: HTMLImageElement, containerWidth: number) {\n return {\n naturalWidth: img.naturalWidth || null,\n naturalHeight: img.naturalHeight || null,\n containerWidth: ensureContainerWidth(containerWidth),\n };\n}\n\nexport function hasPercentWidth(size: string | null) {\n return !!size && size.endsWith(kPercentUnit);\n}\n\nexport function imageContainerWidth(pos: number, view: EditorView) {\n let containerWidth = (view.dom as HTMLElement).offsetWidth;\n if (containerWidth > 0) {\n if (pos) {\n const imagePos = view.state.doc.resolve(pos);\n const resizeContainer = findParentNodeClosestToPos(imagePos, nd => nd.isBlock);\n if (resizeContainer) {\n const resizeEl = view.domAtPos(resizeContainer.pos + 1);\n containerWidth = elementInnerDimensions(resizeEl.node as HTMLElement).width;\n }\n }\n }\n\n return containerWidth;\n}\n\nexport function inlineHTMLIsImage(html: string) {\n return html\n .trimLeft()\n .toLowerCase()\n .startsWith('({\n key: pluginKey,\n state: {\n init(_config: { [key: string]: any }, instance: EditorState) {\n return DecorationSet.empty;\n },\n apply(tr: Transaction, set: DecorationSet, oldState: EditorState, newState: EditorState) {\n // no decorations for empty or node selection\n if (tr.selection.empty || tr.selection instanceof NodeSelection) {\n return DecorationSet.empty;\n }\n\n const schema = newState.schema;\n const decorations: Decoration[] = [];\n tr.doc.nodesBetween(tr.selection.from, tr.selection.to, (node, pos) => {\n if ([schema.nodes.image, schema.nodes.figure].includes(node.type)) {\n decorations.push(nodeDecoration({ node, pos }, { class: 'pm-image-text-selection' }));\n }\n });\n\n return DecorationSet.create(tr.doc, decorations);\n },\n },\n props: {\n decorations(state: EditorState) {\n return pluginKey.getState(state);\n },\n },\n });\n}\n","/*\n * figure.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, Fragment, ResolvedPos } from 'prosemirror-model';\nimport { Transaction } from 'prosemirror-state';\nimport { Transform } from 'prosemirror-transform';\n\nimport { findChildrenByType, findParentNodeClosestToPos } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { FixupContext } from '../../api/fixup';\nimport { isSingleLineHTML } from '../../api/html';\nimport { getMarkAttrs } from '../../api/mark';\nimport {\n PandocToken,\n PandocTokenType,\n ProsemirrorWriter,\n kRawBlockContent,\n kRawBlockFormat,\n imageAttributesAvailable,\n} from '../../api/pandoc';\nimport { trTransform } from '../../api/transaction';\n\nimport {\n imageAttrsFromDOM,\n imageNodeAttrsSpec,\n imageDOMOutputSpec,\n imagePandocOutputWriter,\n pandocImageHandler,\n imageAttrsFromHTML,\n imageCommand,\n} from './image';\nimport { inlineHTMLIsImage } from './image-util';\nimport { imageNodeViewPlugins } from './image-view';\nimport { figureKeys } from './figure-keys';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, ui, events, format } = context;\n\n const imageAttr = imageAttributesAvailable(pandocExtensions);\n\n return {\n nodes: [\n {\n name: 'figure',\n spec: {\n attrs: imageNodeAttrsSpec(true, imageAttr),\n content: 'inline*',\n group: 'block',\n draggable: true,\n selectable: true,\n defining: true,\n parseDOM: [\n {\n tag: 'figure',\n contentElement: 'figcaption',\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n const img = el.querySelector('img');\n if (img && img.parentNode === dom) {\n return imageAttrsFromDOM(img, imageAttr);\n } else {\n return {\n src: null,\n title: null,\n };\n }\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return ['figure', imageDOMOutputSpec(node, imageAttr), ['figcaption', { class: 'pm-figcaption' }, 0]];\n },\n },\n pandoc: {\n writer: imagePandocOutputWriter(true, ui),\n\n // intercept paragraphs with a single image and process them as figures\n blockReader: (schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) => {\n // helper to process html image\n const handleHTMLImage = (html: string) => {\n const attrs = imageAttrsFromHTML(html);\n if (attrs) {\n attrs.raw = true;\n writer.addNode(schema.nodes.figure, attrs, []);\n return true;\n } else {\n return false;\n }\n };\n\n // unroll figure from paragraph with single image\n if (isParaWrappingFigure(tok) && !writerHasProhibitedFigureParent(schema, writer)) {\n const handler = pandocImageHandler(true, imageAttr)(schema);\n handler(writer, tok.c[0]);\n return true;\n // unroll figure from html RawBlock with single tag\n } else if (isHTMLImageBlock(tok)) {\n return handleHTMLImage(tok.c[kRawBlockContent]);\n } else {\n return false;\n }\n },\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.figure,\n editFn: () => imageCommand(ui, format, imageAttr),\n offset: {\n top: 2,\n right: 0\n },\n noKeyvalueTags: true,\n preferHidden: true\n }),\n },\n ],\n\n fixups: (_schema: Schema) => {\n return [\n (tr: Transaction, fixupContext: FixupContext) => {\n if (fixupContext === FixupContext.Load) {\n return convertImagesToFigure(tr);\n } else {\n return tr;\n }\n },\n ];\n },\n\n appendTransaction: (schema: Schema) => {\n return [\n {\n name: 'figure-convert',\n nodeFilter: node => node.type === schema.nodes.image,\n append: convertImagesToFigure,\n },\n ];\n },\n\n baseKeys: figureKeys,\n\n plugins: (schema: Schema) => {\n return [...imageNodeViewPlugins('figure', ui, format, events, pandocExtensions)];\n },\n };\n};\n\nexport function posHasProhibitedFigureParent(schema: Schema, $pos: ResolvedPos) {\n return prohibitedFigureParents(schema).some(type => {\n return !!findParentNodeClosestToPos($pos, node => node.type === type);\n });\n}\n\nexport function writerHasProhibitedFigureParent(schema: Schema, writer: ProsemirrorWriter) {\n return prohibitedFigureParents(schema).some(writer.isNodeOpen);\n}\n\nfunction prohibitedFigureParents(schema: Schema) {\n return [schema.nodes.table_cell, schema.nodes.list_item, schema.nodes.definition_list];\n}\n\nfunction convertImagesToFigure(tr: Transaction) {\n return trTransform(tr, imagesToFiguresTransform);\n}\n\nfunction imagesToFiguresTransform(tr: Transform) {\n const schema = tr.doc.type.schema;\n const images = findChildrenByType(tr.doc, schema.nodes.image);\n images.forEach(image => {\n // position reflecting steps already taken in this handler\n const mappedImagePos = tr.mapping.mapResult(image.pos);\n\n // process image so long as it wasn't deleted by a previous step\n if (!mappedImagePos.deleted) {\n // resolve image pos\n const imagePos = tr.doc.resolve(mappedImagePos.pos);\n\n // if it's an image in a standalone paragraph, convert it to a figure\n if (\n imagePos.parent.type === schema.nodes.paragraph &&\n imagePos.parent.childCount === 1 &&\n !posHasProhibitedFigureParent(schema, imagePos)\n ) {\n // figure attributes\n const attrs = image.node.attrs;\n\n // extract linkTo from link mark (if any)\n if (schema.marks.link.isInSet(image.node.marks)) {\n const linkAttrs = getMarkAttrs(\n tr.doc,\n { from: mappedImagePos.pos, to: mappedImagePos.pos + image.node.nodeSize },\n schema.marks.link,\n );\n if (linkAttrs && linkAttrs.href) {\n attrs.linkTo = linkAttrs.href;\n }\n }\n\n // figure content\n const content = attrs.caption ? Fragment.from(schema.text(attrs.caption)) : Fragment.empty;\n\n // replace image with figure\n const figure = schema.nodes.figure.createAndFill(attrs, content);\n if (figure) {\n tr.replaceRangeWith(mappedImagePos.pos, mappedImagePos.pos + image.node.nodeSize, figure);\n }\n }\n }\n });\n}\n\nfunction isParaWrappingFigure(tok: PandocToken) {\n return isSingleChildParagraph(tok) && tok.c[0].t === PandocTokenType.Image;\n}\n\nfunction isHTMLImageBlock(tok: PandocToken) {\n if (tok.t === PandocTokenType.RawBlock) {\n const format = tok.c[kRawBlockFormat];\n const text = tok.c[kRawBlockContent] as string;\n return format === 'html' && isSingleLineHTML(text) && inlineHTMLIsImage(text);\n } else {\n return false;\n }\n}\n\nfunction isSingleChildParagraph(tok: PandocToken) {\n return tok.t === PandocTokenType.Para && tok.c && tok.c.length === 1;\n}\n\nexport default extension;\n","/*\n * decoration.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { NodeWithPos } from 'prosemirror-utils';\nimport { DecorationAttrs, Decoration } from 'prosemirror-view';\n\nexport function nodeDecoration(nodeWithPos: NodeWithPos, attrs: DecorationAttrs) {\n return Decoration.node(nodeWithPos.pos, nodeWithPos.pos + nodeWithPos.node.nodeSize, attrs);\n}\n","/*\n * image-view.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { NodeView, EditorView } from 'prosemirror-view';\nimport { NodeSelection, PluginKey, Plugin } from 'prosemirror-state';\n\nimport { EditorUI } from '../../api/ui';\nimport { ImageType } from '../../api/image';\nimport { PandocExtensions, imageAttributesAvailable } from '../../api/pandoc';\nimport { isElementVisible } from '../../api/dom';\nimport { EditorEvents } from '../../api/events';\nimport { ResizeEvent } from '../../api/event-types';\nimport { EditorFormat } from '../../api/format';\n\nimport { imageDialog } from './image-dialog';\nimport {\n attachResizeUI,\n initResizeContainer,\n ResizeUI,\n isResizeUICompatible,\n updateImageViewSize,\n} from './image-resize';\nimport { imageDimensionsFromImg, imageContainerWidth } from './image-util';\n\nimport './image-styles.css';\n\nexport function imageNodeViewPlugins(\n type: string,\n ui: EditorUI,\n format: EditorFormat,\n events: EditorEvents,\n pandocExtensions: PandocExtensions,\n): Plugin[] {\n return [\n new Plugin({\n key: new PluginKey(`${type}-node-view`),\n props: {\n nodeViews: {\n [type]: (node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) => {\n return new ImageNodeView(node, view, getPos as () => number, ui, format, events, pandocExtensions);\n },\n },\n },\n }),\n ];\n}\n\nclass ImageNodeView implements NodeView {\n // ProseMirror context\n private readonly type: ImageType;\n private node: ProsemirrorNode;\n private readonly view: EditorView;\n private readonly getPos: () => number;\n private readonly editorUI: EditorUI;\n private readonly editorFormat: EditorFormat;\n private readonly imageAttributes: boolean;\n private readonly implicitFigures: boolean;\n\n // DOM elements\n public readonly dom: HTMLElement;\n private readonly img: HTMLImageElement;\n public readonly contentDOM: HTMLElement | null;\n private readonly figcaption: HTMLElement | null;\n\n // transient state\n private imgBroken: boolean;\n\n // things to clean up\n private resizeUI: ResizeUI | null;\n private sizeOnVisibleTimer?: number;\n private unregisterOnResize: VoidFunction;\n private unregisterWatchImg: VoidFunction | null = null;\n\n constructor(\n node: ProsemirrorNode,\n view: EditorView,\n getPos: () => number,\n editorUI: EditorUI,\n editorFormat: EditorFormat,\n editorEvents: EditorEvents,\n pandocExtensions: PandocExtensions,\n ) {\n // determine type\n const schema = node.type.schema;\n this.type = node.type === schema.nodes.image ? ImageType.Image : ImageType.Figure;\n\n // save references\n this.node = node;\n this.view = view;\n this.getPos = getPos;\n this.imageAttributes = imageAttributesAvailable(pandocExtensions);\n this.implicitFigures = pandocExtensions.implicit_figures;\n this.editorUI = editorUI;\n this.editorFormat = editorFormat;\n this.resizeUI = null;\n this.imgBroken = false;\n\n // set node selection on click\n const selectOnClick = () => {\n const tr = view.state.tr;\n tr.setSelection(NodeSelection.create(view.state.doc, getPos()));\n view.dispatch(tr);\n };\n\n // show image dialog on double-click\n const editOnDblClick = () => {\n selectOnClick();\n imageDialog(\n this.node,\n imageDimensionsFromImg(this.img, this.containerWidth()),\n this.node.type,\n this.view,\n editorUI,\n editorFormat,\n this.imageAttributes,\n );\n };\n\n // stop propagation from child elmeents that need to handle click\n // (e.g. figcaption element)\n const noPropagateClick = (ev: MouseEvent) => {\n ev.stopPropagation();\n };\n\n // create the image (used by both image and figure node types)\n this.img = document.createElement('img');\n this.img.classList.add('pm-img');\n this.img.onload = () => {\n this.imgBroken = false;\n };\n this.img.onerror = () => {\n this.imgBroken = true;\n };\n this.img.onclick = selectOnClick;\n this.img.ondblclick = editOnDblClick;\n\n // wrap in figure if appropriate\n if (this.type === ImageType.Figure) {\n // create figure wrapper\n this.dom = document.createElement('figure');\n this.dom.classList.add('pm-figure');\n\n // create container\n const container = document.createElement('div');\n container.contentEditable = 'false';\n this.dom.append(container);\n\n // initialize the image\n container.append(this.img);\n this.updateImg();\n\n // create the caption and make it our contentDOM\n this.figcaption = document.createElement('figcaption');\n this.figcaption.classList.add('pm-figcaption');\n this.figcaption.classList.add('pm-node-caption');\n this.figcaption.onclick = noPropagateClick;\n this.figcaption.ondblclick = noPropagateClick;\n this.contentDOM = this.figcaption;\n this.dom.append(this.figcaption);\n\n // manage visibility\n this.manageFigcaption();\n\n // standard inline image\n } else {\n this.dom = document.createElement('span');\n\n this.dom.append(this.img);\n this.updateImg();\n\n this.contentDOM = null;\n this.figcaption = null;\n }\n\n // prevent drag/drop if the event doesn't target the image\n this.dom.ondragstart = (event: DragEvent) => {\n if (event.target !== this.img) {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n\n // init resize if we support imageAttributes\n if (this.imageAttributes) {\n initResizeContainer(this.dom);\n }\n\n // update image size when the image first becomes visible\n this.updateSizeOnVisible();\n\n // update image size whenever the container is resized\n this.unregisterOnResize = editorEvents.subscribe(ResizeEvent, () => {\n this.updateImageSize();\n });\n }\n\n public destroy() {\n if (this.unregisterWatchImg) {\n this.unregisterWatchImg();\n }\n this.unregisterOnResize();\n this.clearSizeOnVisibleTimer();\n this.detachResizeUI();\n }\n\n public selectNode() {\n // mirror default implementation\n this.dom.classList.add('ProseMirror-selectednode');\n if (this.contentDOM || !this.node.type.spec.draggable) {\n this.dom.draggable = true;\n }\n\n // manage figcaption\n this.manageFigcaption();\n\n // attach resize UI\n this.attachResizeUI();\n }\n\n public deselectNode() {\n // mirror default implementation\n this.dom.classList.remove('ProseMirror-selectednode');\n if (this.contentDOM || !this.node.type.spec.draggable) {\n this.dom.draggable = false;\n }\n\n // remove resize UI\n this.detachResizeUI();\n }\n\n // update image with latest node/attributes\n public update(node: ProsemirrorNode) {\n // boilerplate type check\n if (node.type !== this.node.type) {\n return false;\n }\n\n // set new node and update the image\n this.node = node;\n this.updateImg();\n\n // if we already have resize UI then either update it\n // or detach it (if e.g. the units are no longer compatible)\n if (this.resizeUI) {\n if (isResizeUICompatible(this.img!)) {\n this.resizeUI.update();\n } else {\n this.resizeUI.detach();\n this.resizeUI = null;\n }\n // attach if the node is selected\n } else if (this.isNodeSelected()) {\n this.attachResizeUI();\n }\n return true;\n }\n\n // ignore mutations outside of the content dom so sizing actions don't cause PM re-render\n public ignoreMutation(mutation: MutationRecord | { type: 'selection'; target: Element }) {\n return !this.contentDOM || !this.contentDOM.contains(mutation.target);\n }\n\n // map node to img tag\n private updateImg() {\n // unsubscribe from any existing resource watcher\n if (this.unregisterWatchImg) {\n this.unregisterWatchImg();\n }\n\n // map to path reachable within current editing frame\n const src = this.node.attrs.src;\n this.img.src = this.editorUI.context.mapResourceToURL(src);\n\n // if this is a local resource then watch it and update when it changes\n if (!src.match(/^\\w+:\\/\\//)) {\n this.unregisterWatchImg = this.editorUI.context.watchResource(src, () => {\n this.img.src = this.editorUI.context.mapResourceToURL(src);\n });\n }\n\n // title/tooltip\n this.img.title = '';\n if (this.node.attrs.title) {\n this.img.title = this.node.attrs.title;\n }\n\n // ensure alt attribute so that we get default browser broken image treatment\n this.img.alt = this.node.textContent || this.node.attrs.src;\n\n // manage caption visibility\n this.manageFigcaption();\n\n // update size\n this.updateImageSize();\n }\n\n private updateImageSize() {\n const containerWidth = this.img.isConnected ? this.containerWidth() : 0;\n updateImageViewSize(this.node, this.img, this.isFigure() ? this.dom : null, containerWidth);\n }\n\n private updateSizeOnVisible() {\n const updateSizeOnVisible = () => {\n if (isElementVisible(this.img)) {\n this.updateImageSize();\n this.clearSizeOnVisibleTimer();\n }\n };\n this.sizeOnVisibleTimer = window.setInterval(updateSizeOnVisible, 200);\n }\n\n private clearSizeOnVisibleTimer() {\n if (this.sizeOnVisibleTimer) {\n clearInterval(this.sizeOnVisibleTimer);\n this.sizeOnVisibleTimer = undefined;\n }\n }\n\n // attach resize UI if appropriate\n private attachResizeUI() {\n if (this.imageAttributes && !this.imgBroken && isResizeUICompatible(this.img!)) {\n const imageNode = () => ({ pos: this.getPos(), node: this.node });\n const imgContainerWidth = () => this.containerWidth();\n this.resizeUI = attachResizeUI(imageNode, this.dom, this.img!, imgContainerWidth, \n this.view, this.editorUI, this.editorFormat);\n }\n }\n\n private detachResizeUI() {\n if (this.resizeUI) {\n this.resizeUI.detach();\n this.resizeUI = null;\n }\n }\n\n private isNodeSelected() {\n return this.dom.classList.contains('ProseMirror-selectednode');\n }\n\n private isFigure() {\n return this.type === ImageType.Figure;\n }\n\n private containerWidth() {\n return imageContainerWidth(this.getPos(), this.view);\n }\n\n private manageFigcaption() {\n // hide the figcaption if appropriate\n const noImplicitFigures = !this.implicitFigures;\n const emptyFigcaption = this.figcaption && this.node.textContent.length === 0;\n const selection = this.view.state.selection;\n const selectionInFigcaption = selection.empty && selection.$head.node() === this.node;\n const hide = noImplicitFigures || (emptyFigcaption && !selectionInFigcaption);\n\n // hide or show if we have a figcaption\n if (this.figcaption) {\n if (noImplicitFigures) {\n this.figcaption.style.display = 'none';\n this.figcaption.contentEditable = 'false';\n } else {\n this.figcaption.contentEditable = hide ? 'false' : 'true';\n this.figcaption.style.height = hide ? '0' : '';\n this.figcaption.style.minHeight = hide ? '0' : '';\n this.figcaption.style.margin = hide ? '0' : '';\n }\n }\n }\n}\n","/*\n * image-resize.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\nimport { NodeWithPos } from 'prosemirror-utils';\nimport { NodeSelection } from 'prosemirror-state';\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport {\n createPopup,\n createHorizontalPanel,\n addHorizontalPanelCell,\n createInputLabel,\n createImageButton,\n createCheckboxInput,\n createSelectInput,\n createTextInput,\n} from '../../api/widgets/widgets';\nimport { EditorUI } from '../../api/ui';\nimport { editingRootScrollContainerElement } from '../../api/node';\nimport { extractSizeStyles, kPercentUnit, kPixelUnit, removeStyleAttrib } from '../../api/css';\nimport {\n imageSizePropWithUnit,\n isNaturalAspectRatio,\n unitToPixels,\n pixelsToUnit,\n roundUnit,\n kValidUnits,\n isValidImageSizeUnit,\n} from '../../api/image';\nimport { kWidthAttrib, kHeightAttrib, kStyleAttrib, kAlignAttrib, kFigAlignAttrib, pandocAttrGetKeyvalue } from '../../api/pandoc_attr';\nimport { EditorUIImages } from '../../api/ui-images';\nimport { EditorFormat } from '../../api/format';\n\nimport { imageDialog } from './image-dialog';\nimport { hasPercentWidth, imageDimensionsFromImg } from './image-util';\n\nconst kDataWidth = 'data-width';\nconst kDataHeight = 'data-height';\n\nconst kDefaultContainerDisplay = 'inline-block';\n\nexport function initResizeContainer(container: HTMLElement) {\n // add standard parent class\n container.classList.add('pm-image-resize-container', 'pm-selected-node-outline-color');\n\n // so that we are the offsetParent for the resize handles and shelf\n container.style.position = 'relative';\n\n // so that the container matches the size of the contained image\n container.style.display = kDefaultContainerDisplay;\n\n // so that the handles and shelf can be visible outside the boundaries of the image\n container.style.overflow = 'visible';\n\n // return for convenience\n return container;\n}\n\nexport function isResizeUICompatible(img: HTMLImageElement) {\n // incompatible if it has a width, but not a data-width\n const incompatibleWidth = img.style.width && !img.hasAttribute(kDataWidth);\n\n // incompatible if it has a height, but not a data-height\n const incompatibleHeight = img.style.height && img.style.height !== 'auto' && !img.hasAttribute(kDataHeight);\n\n return !incompatibleWidth && !incompatibleHeight;\n}\n\nexport interface ResizeUI {\n update: () => void;\n detach: () => void;\n}\n\nexport function attachResizeUI(\n imageNode: () => NodeWithPos,\n container: HTMLElement,\n img: HTMLImageElement,\n imgContainerWidth: () => number,\n view: EditorView,\n ui: EditorUI,\n format: EditorFormat\n): ResizeUI {\n // indicate that resize ui is active\n container.classList.add('pm-image-resize-active');\n\n // sync current state of shelf to node\n const updateImageNodeFromShelf = () => {\n updateImageNodeSize(\n view,\n imageNode(),\n img,\n imgContainerWidth,\n shelf.props.width(),\n shelf.props.height(),\n shelf.props.units(),\n );\n };\n\n // shelf init\n const onInitShelf = () => {\n // sync props\n shelf.sync();\n\n // default for lockRatio based on naturalWidth/naturalHeight\n const dims = imageDimensionsFromImg(img, imgContainerWidth());\n shelf.props.setLockRatio(isNaturalAspectRatio(shelf.props.width(), shelf.props.height(), dims, true));\n };\n\n // handle width changed from shelf\n const onWidthChanged = () => {\n const width = shelf.props.width();\n const height = shelf.props.lockRatio() ? (img.offsetHeight / img.offsetWidth) * width : shelf.props.height();\n shelf.props.setHeight(height);\n updateImageNodeFromShelf();\n };\n\n // handle height changed from shelf\n const onHeightChanged = () => {\n const height = shelf.props.height();\n const width = shelf.props.lockRatio() ? (img.offsetWidth / img.offsetHeight) * height : shelf.props.width();\n shelf.props.setWidth(width);\n updateImageNodeFromShelf();\n };\n\n // do necessary unit conversion when the units change\n const onUnitsChanged = () => {\n const prevUnits = shelfSizeFromImage(img).unit;\n const containerWidth = imgContainerWidth();\n\n const width = shelf.props.width();\n const widthPixels = unitToPixels(width, prevUnits, containerWidth);\n let widthInUnits = pixelsToUnit(widthPixels, shelf.props.units(), containerWidth);\n if (hasPercentWidth(shelf.props.units()) && widthInUnits > 100) {\n widthInUnits = 100;\n }\n shelf.props.setWidth(widthInUnits);\n\n const height = shelf.props.height();\n const heightPixels = unitToPixels(height, prevUnits, containerWidth);\n shelf.props.setHeight(pixelsToUnit(heightPixels, shelf.props.units(), containerWidth));\n\n updateImageNodeFromShelf();\n };\n\n // handle editImage request from shelf\n const onEditImage = () => {\n const nodeWithPos = imageNode();\n imageDialog(\n nodeWithPos.node,\n imageDimensionsFromImg(img, imgContainerWidth()),\n nodeWithPos.node.type,\n view,\n ui,\n format,\n true,\n );\n };\n\n // create resize shelf\n const shelf = resizeShelf(\n view,\n container,\n img,\n onInitShelf,\n onWidthChanged,\n onHeightChanged,\n onUnitsChanged,\n onEditImage,\n ui.images,\n ui.context.translateText,\n );\n\n // create resize handle and add it to the container\n const handle = resizeHandle(\n img,\n imageNode,\n container,\n imgContainerWidth,\n shelf.props.lockRatio,\n shelf.props.units,\n shelf.sync,\n updateImageNodeFromShelf,\n );\n container.append(handle);\n\n // return functions that can be used to update and detach the ui\n return {\n update: () => {\n shelf.sync();\n },\n detach: () => {\n container.classList.remove('pm-image-resize-active');\n handle.remove();\n shelf.remove();\n },\n };\n}\n\nfunction resizeShelf(\n view: EditorView,\n container: HTMLElement,\n img: HTMLImageElement,\n onInit: () => void,\n onWidthChanged: () => void,\n onHeightChanged: () => void,\n onUnitsChanged: () => void,\n onEditImage: () => void,\n uiImages: EditorUIImages,\n translateText: (text: string) => string,\n) {\n // create resize shelf\n const shelf = createPopup(view, []);\n\n // add the shelf to the editor container (so we don't mutate the editor dom)\n const editorContainer = view.dom.parentNode as HTMLElement;\n editorContainer.appendChild(shelf);\n\n // update shelf absolute position to make sure it's visible\n const updatePosition = () => {\n const kShelfRequiredSize = 333;\n const editorBox = editorContainer.getBoundingClientRect();\n const imageBox = container.getBoundingClientRect();\n shelf.style.top = imageBox.top - editorBox.top + imageBox.height + 6 + 'px';\n const positionLeft = imageBox.left + kShelfRequiredSize < editorBox.right;\n if (positionLeft) {\n shelf.style.right = '';\n shelf.style.left = imageBox.left - editorBox.left + 'px';\n } else {\n shelf.style.left = '';\n shelf.style.right = editorBox.right - imageBox.right + 'px';\n }\n };\n\n // detect when the editing root note scrolls and update the position\n const editingScrollContainerEl = editingRootScrollContainerElement(view);\n if (editingScrollContainerEl) {\n editingScrollContainerEl.addEventListener('scroll', updatePosition);\n }\n\n // update position every 50ms (cleanup drag/drop copy/paste mispositioning)\n const positionTimer = setInterval(updatePosition, 50);\n\n // main panel that holds the controls\n const panel = createHorizontalPanel();\n shelf.append(panel);\n const addToPanel = (widget: HTMLElement, paddingRight: number) => {\n addHorizontalPanelCell(panel, widget);\n if (paddingRight) {\n const paddingSpan = window.document.createElement('span');\n paddingSpan.style.width = paddingRight + kPixelUnit;\n addHorizontalPanelCell(panel, paddingSpan);\n }\n };\n\n // width\n const inputClasses = ['pm-text-color', 'pm-background-color'];\n const wLabel = createInputLabel('w:');\n addToPanel(wLabel, 4);\n const wInput = createTextInput(4, inputClasses);\n wInput.onchange = onWidthChanged;\n addToPanel(wInput, 8);\n\n // height\n const kHeightWidth = '38px';\n const hLabel = createInputLabel('h:');\n addToPanel(hLabel, 4);\n const hInput = createTextInput(4, inputClasses, { width: kHeightWidth });\n hInput.onchange = onHeightChanged;\n addToPanel(hInput, 0);\n const hAutoLabel = createInputLabel('(auto)', ['pm-light-text-color'], { width: kHeightWidth });\n addToPanel(hAutoLabel, 10);\n\n // units\n const unitsSelect = createSelectInput(kValidUnits, inputClasses);\n unitsSelect.onchange = () => {\n // drive focus to width and back to prevent wierd selection change\n // detection condition that causes PM to re-render the node the\n // next time we resize it\n wInput.focus();\n unitsSelect.focus();\n\n // manage UI\n manageUnitsUI();\n\n // notify client\n onUnitsChanged();\n };\n addToPanel(unitsSelect, 12);\n\n // lock ratio\n const checkboxWrapper = window.document.createElement('div');\n const lockCheckbox = createCheckboxInput();\n lockCheckbox.checked = true;\n checkboxWrapper.append(lockCheckbox);\n addToPanel(checkboxWrapper, 4);\n const lockLabel = createInputLabel(translateText('Lock ratio'));\n addToPanel(lockLabel, 20);\n\n // edit button\n const editImage = createImageButton(\n uiImages.properties!,\n ['pm-image-button-edit-properties'],\n translateText('Edit Attributes'),\n );\n editImage.onclick = onEditImage;\n addHorizontalPanelCell(panel, editImage);\n\n // run onInit (wait for image to load if necessary)\n if (img.complete) {\n setTimeout(onInit, 0);\n } else {\n img.onload = onInit;\n }\n\n // function used to manage units ui (percent vs. non-percent)\n const manageUnitsUI = () => {\n const percentSizing = unitsSelect.value === kPercentUnit;\n\n if (percentSizing) {\n lockCheckbox.checked = true;\n lockCheckbox.disabled = true;\n } else {\n lockCheckbox.disabled = false;\n }\n\n hInput.style.display = percentSizing ? 'none' : '';\n hAutoLabel.style.display = percentSizing ? '' : 'none';\n };\n manageUnitsUI();\n\n // helper function to get a dimension (returns null if input not currently valid)\n const getDim = (input: HTMLInputElement) => {\n const value = parseFloat(input.value);\n if (isNaN(value)) {\n return null;\n }\n if (value > 0) {\n return value;\n } else {\n return null;\n }\n };\n\n const setWidth = (width: number) => {\n wInput.value = roundUnit(width, unitsSelect.value);\n };\n const setHeight = (height: number) => {\n hInput.value = roundUnit(height, unitsSelect.value);\n };\n\n return {\n // shelf element\n el: shelf,\n\n // sync the shelf props to the current size/units of the image\n // we don't sync to the node b/c we want to benefit from automatic\n // unit handling in the conversion to the DOM\n sync: () => {\n const size = shelfSizeFromImage(img);\n unitsSelect.value = size.unit;\n setWidth(size.width);\n setHeight(size.height);\n\n // manage units ui\n manageUnitsUI();\n\n // ensure we are positioned correctly (not offscreen, wide enough, etc.)\n updatePosition();\n },\n\n position: () => {\n updatePosition();\n },\n\n remove: () => {\n if (editingScrollContainerEl) {\n editingScrollContainerEl.removeEventListener('scroll', updatePosition);\n }\n clearInterval(positionTimer);\n shelf.remove();\n },\n\n props: {\n width: () => getDim(wInput) || shelfSizeFromImage(img).width,\n setWidth,\n height: () => getDim(hInput) || shelfSizeFromImage(img).height,\n setHeight,\n units: () => unitsSelect.value,\n setUnits: (units: string) => (unitsSelect.value = units),\n lockRatio: () => lockCheckbox.checked,\n setLockRatio: (lock: boolean) => {\n if (!lockCheckbox.disabled) {\n lockCheckbox.checked = lock;\n }\n },\n },\n };\n}\n\nfunction resizeHandle(\n img: HTMLImageElement,\n imageNode: () => NodeWithPos,\n container: HTMLElement,\n imgContainerWidth: () => number,\n lockRatio: () => boolean,\n units: () => string,\n onSizing: () => void,\n onSizingComplete: () => void,\n) {\n const handle = document.createElement('span');\n handle.contentEditable = 'false';\n handle.classList.add('pm-image-resize-handle', 'pm-background-color', 'pm-selected-node-border-color');\n handle.style.position = 'absolute';\n handle.style.bottom = '-6px';\n handle.style.right = '-6px';\n handle.style.cursor = 'nwse-resize';\n\n const havePointerEvents = !!document.body.setPointerCapture;\n\n const onPointerDown = (ev: MouseEvent) => {\n ev.preventDefault();\n\n const startWidth = img.offsetWidth;\n const startHeight = img.offsetHeight;\n\n const startX = ev.pageX;\n const startY = ev.pageY;\n\n const containerWidth = imgContainerWidth();\n\n const onPointerMove = (e: MouseEvent) => {\n // detect pointer movement\n const movedX = e.pageX - startX;\n const movedY = e.pageY - startY;\n\n let width;\n let height;\n if (lockRatio()) {\n if (movedX >= movedY) {\n width = startWidth + movedX;\n height = startHeight + movedX * (startHeight / startWidth);\n } else {\n height = startHeight + movedY;\n width = startWidth + movedY * (startWidth / startHeight);\n }\n } else {\n width = startWidth + movedX;\n height = startHeight + movedY;\n }\n\n // determine the new width in units. If it's percent and > 100 then clip\n const widthInUnits = pixelsToUnit(width, units(), containerWidth);\n if (hasPercentWidth(units()) && widthInUnits > 100) {\n width = containerWidth;\n height = width * (startHeight / startWidth);\n }\n\n // set margins for any alignment we have\n const align = pandocAttrGetKeyvalue(imageNode().node.attrs, kFigAlignAttrib);\n if (align) {\n setMarginsForAlignment(container, align, width, containerWidth);\n }\n\n img.style.width = width + kPixelUnit;\n img.setAttribute(kDataWidth, pixelsToUnit(width, units(), containerWidth) + units());\n img.style.height = height + kPixelUnit;\n img.setAttribute(kDataHeight, pixelsToUnit(height, units(), containerWidth) + units());\n\n onSizing();\n };\n\n const onPointerUp = (e: MouseEvent) => {\n e.preventDefault();\n\n // stop listening to events\n if (havePointerEvents) {\n handle.releasePointerCapture((e as PointerEvent).pointerId);\n handle.removeEventListener('pointermove', onPointerMove);\n handle.removeEventListener('pointerup', onPointerUp);\n } else {\n document.removeEventListener('mousemove', onPointerMove);\n document.removeEventListener('mouseup', onPointerUp);\n }\n\n // update image size\n onSizingComplete();\n };\n\n if (havePointerEvents) {\n handle.setPointerCapture((ev as PointerEvent).pointerId);\n handle.addEventListener('pointermove', onPointerMove);\n handle.addEventListener('pointerup', onPointerUp);\n } else {\n document.addEventListener('mousemove', onPointerMove);\n document.addEventListener('mouseup', onPointerUp);\n }\n };\n\n if (havePointerEvents) {\n handle.addEventListener('pointerdown', onPointerDown);\n } else {\n handle.addEventListener('mousedown', onPointerDown);\n }\n\n return handle;\n}\n\n// derive the shelf size attributes from the image. takes advantage of any data-width\n// or data-height attributes, then falls back to actual offsetWidth/offsetHeight\n// as necessary\nfunction shelfSizeFromImage(img: HTMLImageElement) {\n // get attributes\n const width = img.getAttribute(kDataWidth);\n const height = img.getAttribute(kDataHeight);\n\n // if there is no width and no height, then use naturalWidth/naturalHeight\n if (!width && !height) {\n return {\n width: img.naturalWidth || img.offsetWidth,\n height: img.naturalHeight || img.offsetHeight,\n unit: kPixelUnit,\n };\n\n // read units\n } else {\n let widthWithUnit = imageSizePropWithUnit(width);\n let heightWithUnit = imageSizePropWithUnit(height);\n\n if (!widthWithUnit) {\n widthWithUnit = {\n size: heightWithUnit!.size * (img.offsetWidth / img.offsetHeight),\n unit: heightWithUnit!.unit,\n };\n }\n\n if (!heightWithUnit) {\n heightWithUnit = {\n size: widthWithUnit.size * (img.offsetHeight / img.offsetWidth),\n unit: widthWithUnit.unit,\n };\n }\n\n return {\n width: widthWithUnit.size,\n height: heightWithUnit.size,\n unit: widthWithUnit.unit,\n };\n }\n}\n\nfunction updateImageNodeSize(\n view: EditorView,\n image: NodeWithPos,\n img: HTMLImageElement,\n imgContainerWidth: () => number,\n width: number,\n height: number,\n unit: string,\n) {\n // don't write pixels explicitly\n unit = unit === kPixelUnit ? '' : unit;\n\n // edit width & height in keyvalue\n let keyvalue = extractSizeStyles(image.node.attrs.keyvalue as Array<[string, string]>)!;\n keyvalue = keyvalue.filter(value => ![kWidthAttrib, kHeightAttrib].includes(value[0]));\n keyvalue.push([kWidthAttrib, width + unit]);\n const dims = imageDimensionsFromImg(img, imgContainerWidth());\n if (!hasPercentWidth(width + unit) && !isNaturalAspectRatio(width, height, dims, false)) {\n keyvalue.push([kHeightAttrib, height + unit]);\n }\n\n // create transaction\n const tr = view.state.tr;\n\n // set new attributes\n tr.setNodeMarkup(image.pos, image.node.type, { ...image.node.attrs, keyvalue });\n\n // restore node selection if our tr.setNodeMarkup blew away the selection\n const prevState = view.state;\n if (prevState.selection instanceof NodeSelection && prevState.selection.from === image.pos) {\n tr.setSelection(NodeSelection.create(tr.doc, image.pos));\n }\n\n // dispatch transaction\n view.dispatch(tr);\n}\n\n// update the DOM representation of the image. extracts size-oriented attributes from the node and\n// applies them to the img element (alignment oriented attributes are applied to the figure elmenet)\nexport function updateImageViewSize(\n node: ProsemirrorNode,\n img: HTMLImageElement,\n figure: HTMLElement | null,\n containerWidth: number,\n) {\n // reset attributes (they'll be set to new values below)\n img.removeAttribute(kStyleAttrib);\n img.removeAttribute(kDataWidth);\n img.removeAttribute(kDataHeight);\n\n // reset figure styles (only reset styles that we explicitly set below, b/c some\n // styles may have been set by e.g. the attachResizeUI function)\n if (figure) {\n figure.style.cssFloat = '';\n figure.style.verticalAlign = '';\n figure.style.margin = '';\n figure.style.marginTop = '';\n figure.style.marginBottom = '';\n figure.style.marginRight = '';\n figure.style.marginLeft = '';\n figure.style.padding = '';\n figure.style.paddingTop = '';\n figure.style.paddingBottom = '';\n figure.style.paddingRight = '';\n figure.style.paddingLeft = '';\n figure.style.display = kDefaultContainerDisplay;\n }\n\n // apply keyvalue attribute to image\n if (node.attrs.keyvalue) {\n // factor width & height out of style\n const keyvalue = extractSizeStyles(node.attrs.keyvalue);\n\n // inspect all keys and process width, height, and style\n (keyvalue as Array<[string, string]>).forEach(attr => {\n // alias key and value\n const key = attr[0];\n let value = attr[1];\n\n // set align oriented styles on figure parent\n if (key === kStyleAttrib) {\n if (figure) {\n const liftStyle = (attrib: string, val: string) => figure.style.setProperty(attrib, val);\n value = removeStyleAttrib(value, 'float', liftStyle);\n value = removeStyleAttrib(value, 'vertical-align', liftStyle);\n value = removeStyleAttrib(value, 'padding(?:[\\\\w\\\\-])*', liftStyle);\n removeStyleAttrib(value, 'display', liftStyle); // leave display for lifting by image\n }\n\n // apply selected other styles to the image view (we don't just forward the entire\n // style attribute b/c that would interfere with setting of style props in the\n // width and height cases below). here we should enumerate all styles we think\n // users might want to see in the editor\n const liftImgStyle = (attrib: string, val: string) => img.style.setProperty(attrib, val);\n value = removeStyleAttrib(value, 'border(?:[\\\\w\\\\-])*', liftImgStyle);\n value = removeStyleAttrib(value, 'margin(?:[\\\\w\\\\-])*', liftImgStyle);\n value = removeStyleAttrib(value, 'display', liftImgStyle);\n } else if (key === kWidthAttrib) {\n // see if this is a unit we can edit\n const widthProp = imageSizePropWithUnit(value);\n if (widthProp) {\n widthProp.unit = widthProp.unit || kPixelUnit;\n if (isValidImageSizeUnit(widthProp.unit)) {\n img.setAttribute(kDataWidth, widthProp.size + widthProp.unit);\n img.style.width = unitToPixels(widthProp.size, widthProp.unit, containerWidth) + kPixelUnit;\n }\n }\n\n // if not, just pass it straight through (editing UI will be disabled)\n if (!img.hasAttribute(kDataWidth)) {\n img.style.width = value;\n }\n } else if (key === kHeightAttrib) {\n // see if this is a unit we can edit\n const heightProp = imageSizePropWithUnit(value);\n if (heightProp) {\n heightProp.unit = heightProp.unit || kPixelUnit;\n if (isValidImageSizeUnit(heightProp.unit)) {\n img.setAttribute(kDataHeight, heightProp.size + heightProp.unit);\n img.style.height = unitToPixels(heightProp.size, heightProp.unit, containerWidth) + kPixelUnit;\n }\n }\n\n // if not, just pass it straight through (editing UI will be disabled)\n if (!img.hasAttribute(kDataHeight)) {\n img.style.height = value;\n }\n\n // use of legacy 'align' attribute is common for some pandoc users\n // so we convert it to the requisite CSS and apply it to the figure container\n } else if (figure && key === kAlignAttrib) {\n switch (value) {\n case 'left':\n case 'right':\n figure.style.cssFloat = value;\n break;\n case 'top':\n case 'bottom':\n case 'middle':\n figure.style.verticalAlign = value;\n break;\n }\n }\n });\n\n // if we have a fig-align value then determine the displayed width and\n // apply margins as required to the figure\n if (figure) {\n const align = pandocAttrGetKeyvalue(node.attrs, kFigAlignAttrib);\n if (align && (align !== \"default\")) {\n let width: number | null = null;\n const widthProp = imageSizePropWithUnit(img.style.width);\n if (widthProp) {\n width = widthProp.size;\n } else {\n const dims = imageDimensionsFromImg(img, containerWidth);\n width = dims.naturalWidth;\n }\n if (width !== null) {\n setMarginsForAlignment(figure, align, width, containerWidth);\n }\n }\n }\n \n // if width is a percentage, then displayed height needs to be 'auto'\n if (hasPercentWidth(img.getAttribute(kDataWidth))) {\n img.style.height = 'auto';\n }\n }\n}\n\n\nfunction setMarginsForAlignment(el: HTMLElement, align: string, width: number, containerWidth: number) {\n const marginWidth = containerWidth - width;\n if (marginWidth > 0) {\n if (align === \"left\") {\n el.style.marginRight = marginWidth + kPixelUnit;\n } else if (align === \"right\") {\n el.style.marginLeft = marginWidth + kPixelUnit;\n } else if (align === \"center\") {\n el.style.marginLeft = (marginWidth/2) + kPixelUnit;\n el.style.marginRight = el.style.marginLeft ;\n }\n } else {\n el.style.marginLeft = \"\";\n el.style.marginRight = \"\" ;\n }\n}","/*\n * widgets.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nimport { applyStyles } from '../css';\n\nimport './widgets.css';\n\nexport function createHorizontalPanel() {\n const div = window.document.createElement('div');\n div.classList.add('pm-horizontal-panel');\n return div;\n}\n\nexport function addHorizontalPanelCell(panel: HTMLDivElement, el: HTMLElement) {\n el.classList.add('pm-horizontal-panel-cell');\n panel.append(el);\n}\n\nexport function createPopup(\n view: EditorView,\n classes: string[],\n onDestroyed?: () => void,\n style?: { [key: string]: string },\n) {\n // create popup\n const popup = window.document.createElement('span');\n popup.contentEditable = 'false';\n popup.classList.add(\n 'pm-popup',\n 'pm-text-color',\n 'pm-proportional-font',\n 'pm-pane-border-color',\n 'pm-background-color',\n );\n popup.style.position = 'absolute';\n popup.style.zIndex = '10';\n applyStyles(popup, classes, style);\n\n // create mutation observer that watches for destruction\n if (onDestroyed) {\n const observer = new MutationObserver(mutationsList => {\n mutationsList.forEach(mutation => {\n mutation.removedNodes.forEach(node => {\n if (node === popup) {\n observer.disconnect();\n onDestroyed();\n }\n });\n });\n });\n observer.observe(view.dom, { attributes: false, childList: true, subtree: true });\n }\n\n return popup;\n}\n\nexport function createImageButton(image: string, classes: string[], title: string, style?: { [key: string]: string }) {\n const button = window.document.createElement('button');\n button.classList.add('pm-image-button');\n button.title = title;\n applyStyles(button, classes, style);\n const imageEl = window.document.createElement('img') as HTMLImageElement;\n imageEl.src = image;\n imageEl.setAttribute('draggable', 'false');\n button.append(imageEl);\n return button;\n}\n\nexport function createInputLabel(text: string, classes?: string[], style?: { [key: string]: string }) {\n const label = window.document.createElement('label');\n label.innerText = text;\n label.classList.add('pm-input-label');\n applyStyles(label, classes, style);\n return label;\n}\n\nexport function createSelectInput(options: string[], classes?: string[], style?: { [key: string]: string }) {\n const select = window.document.createElement('select');\n appendOptions(select, options);\n select.classList.add('pm-input-select');\n select.classList.add('pm-pane-border-color');\n applyStyles(select, classes, style);\n return select;\n}\n\nfunction appendOptions(container: HTMLElement, options: string[]) {\n options.forEach(option => {\n const optionEl = window.document.createElement('option');\n optionEl.value = option;\n optionEl.textContent = option;\n container.append(optionEl);\n });\n}\n\nexport function createCheckboxInput(classes?: string[], style?: { [key: string]: string }) {\n const input = window.document.createElement('input');\n input.classList.add('pm-input-checkbox');\n input.type = 'checkbox';\n applyStyles(input, classes, style);\n return input;\n}\n\nexport function createTextInput(widthChars: number, classes?: string[], style?: { [key: string]: string }) {\n const input = document.createElement('input');\n input.type = 'text';\n input.classList.add('pm-input-text');\n input.classList.add('pm-pane-border-color');\n applyStyles(input, classes, style);\n input.style.width = widthChars + 'ch';\n return input;\n}\n","/*\n * figure-keys.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\nimport { EditorState, Transaction, NodeSelection, Selection, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport {\n findParentNodeOfTypeClosestToPos,\n findSelectedNodeOfType,\n setTextSelection,\n ContentNodeWithPos,\n findParentNodeOfType,\n findParentNodeClosestToPos,\n} from 'prosemirror-utils';\n\nimport { BaseKey, verticalArrowCanAdvanceWithinTextBlock } from '../../api/basekeys';\nimport { exitNode } from '../../api/command';\n\nexport function figureKeys(schema: Schema) {\n return [\n { key: BaseKey.Enter, command: exitNode(schema.nodes.figure, -1, false) },\n { key: BaseKey.Backspace, command: backspaceHandler() },\n { key: BaseKey.ArrowLeft, command: arrowHandler('left') },\n { key: BaseKey.ArrowRight, command: arrowHandler('right') },\n { key: BaseKey.ArrowUp, command: arrowHandler('up') },\n { key: BaseKey.ArrowDown, command: arrowHandler('down') },\n ];\n}\n\nfunction backspaceHandler() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // must be an empty selection\n const selection = state.selection;\n if (!selection.empty) {\n return false;\n }\n\n // must be a selection at the beginning of it's parent\n const schema = state.schema;\n const { $head } = state.selection;\n const { parentOffset } = $head;\n if (parentOffset !== 0) {\n return false;\n }\n\n // two scenarios: backspace within empty caption or backspace right after figure\n const isWithinEmptyCaption = $head.parent.type === schema.nodes.figure && $head.parent.childCount === 0;\n if (isWithinEmptyCaption) {\n if (dispatch) {\n // set a node selection for the figure\n const tr = state.tr;\n tr.setSelection(NodeSelection.create(tr.doc, $head.pos - 1));\n dispatch(tr);\n }\n return true;\n } else {\n // check if the previous node is a figure\n const parent = $head.node($head.depth - 1);\n const parentIndex = $head.index($head.depth - 1);\n if (parentIndex > 0) {\n const previousNode = parent.child(parentIndex - 1);\n if (previousNode.type === schema.nodes.figure) {\n if (dispatch) {\n const tr = state.tr;\n\n // if the current node is and empty textblock then remove it\n if ($head.node().childCount === 0) {\n const parentTextBlock = findParentNodeClosestToPos($head, node => node.isTextblock);\n if (parentTextBlock) {\n tr.deleteRange(parentTextBlock.pos, parentTextBlock.pos + parentTextBlock.node.nodeSize);\n }\n }\n\n const nodePos = $head.pos - previousNode.nodeSize - 1;\n const figureSelection = NodeSelection.create(tr.doc, nodePos);\n tr.setSelection(figureSelection);\n dispatch(tr);\n }\n return true;\n }\n }\n }\n\n return false;\n };\n}\n\nfunction arrowHandler(dir: 'up' | 'down' | 'left' | 'right') {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // select figure\n const selectFigure = (figure: ContentNodeWithPos) => {\n if (dispatch) {\n const tr = state.tr;\n const figureSelection = NodeSelection.create(state.doc, figure.pos);\n tr.setSelection(figureSelection).scrollIntoView();\n dispatch(tr);\n }\n };\n\n // select figure caption\n const selectFigureCaption = (figure: ContentNodeWithPos, atEnd = false) => {\n if (dispatch) {\n const tr = state.tr;\n setTextSelection(figure.pos + (atEnd ? figure.node.textContent.length + 1 : 0), 1)(tr);\n dispatch(tr);\n }\n };\n\n // alias schema and selection\n const { schema, selection } = state;\n\n // down/right arrow for node selection w/ caption drives cursor into caption\n if (\n (dir === 'down' || dir === 'right') &&\n selection instanceof NodeSelection &&\n selection.node.type === schema.nodes.figure\n ) {\n const figure = findSelectedNodeOfType(schema.nodes.figure)(selection);\n if (figure && figure.node.childCount > 0) {\n selectFigureCaption(figure);\n return true;\n }\n }\n\n // up/left arrow for selection in caption takes us back to the node selection\n if (\n (dir === 'up' || dir === 'left') &&\n selection instanceof TextSelection &&\n !!findParentNodeOfType(schema.nodes.figure)(selection)\n ) {\n if (dir === 'up' || (dir === 'left' && selection.$head.parentOffset === 0)) {\n const figure = findParentNodeOfType(schema.nodes.figure)(selection);\n if (figure) {\n selectFigure(figure);\n return true;\n }\n }\n\n // normal node traversal\n } else if (selection.empty && view && view.endOfTextblock(dir)) {\n // compute side offset\n const side = dir === 'left' || dir === 'up' ? -1 : 1;\n\n // get selection head\n const { $head } = selection;\n\n // see if this would traverse our type\n const nextPos = Selection.near(state.doc.resolve(side > 0 ? $head.after() : $head.before()), side);\n if (nextPos.$head) {\n const figure = findParentNodeOfTypeClosestToPos(nextPos.$head, schema.nodes.figure);\n if (figure) {\n // check for e.g. math where you can advance across embedded newlines\n if ((dir === 'up' || dir === 'down') && verticalArrowCanAdvanceWithinTextBlock(state.selection, dir)) {\n return false;\n }\n // arrowing back into a figure with a caption selects the caption\n if (side === -1 && figure.node.childCount > 0) {\n selectFigureCaption(figure, dir === 'left');\n // otherwise select the figure\n } else {\n selectFigure(figure);\n }\n return true;\n }\n }\n }\n\n // not handled\n return false;\n };\n}\n","/*\n * image-events.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\n\nimport { Plugin, PluginKey } from 'prosemirror-state';\nimport { EditorUI } from '../../api/ui';\n\nconst kTextUriList = 'text/uri-list';\nconst kApplicationQtImage = 'application/x-qt-image';\n\nconst pluginKey = new PluginKey('image-events');\n\nexport function imageEventsPlugin(ui: EditorUI) {\n return new Plugin({\n key: pluginKey,\n props: {\n handleDOMEvents: {\n drop: imageDrop(ui),\n },\n handlePaste: imagePaste(ui),\n },\n });\n}\n\nfunction imagePaste(ui: EditorUI) {\n return (view: EditorView, event: Event) => {\n const clipboardEvent = event as ClipboardEvent;\n\n if (clipboardEvent.clipboardData) {\n // detect file pastes where there is no payload, in that case check to see\n // if there is clipboard data we can get from our context (e.g. from Qt)\n if (clipboardEvent.clipboardData.types.includes(kTextUriList)) {\n const uriList = clipboardEvent.clipboardData.getData(kTextUriList);\n if (uriList.length === 0) {\n ui.context.clipboardUris().then(uris => {\n if (uris) {\n handleImageUris(view, view.state.selection.from, event, uris, ui);\n }\n });\n event.preventDefault();\n return true;\n }\n // raw image paste (e.g. from an office doc)\n } else if (clipboardEvent.clipboardData.types.includes('application/x-qt-image')) {\n\n // don't process excel sheets (we want to use their html representation)\n const kTextHtml = \"text/html\";\n if (clipboardEvent.clipboardData.types.includes(kTextHtml) &&\n clipboardEvent.clipboardData.getData(kTextHtml).includes(\"content=Excel.Sheet\")) {\n return false;\n }\n \n ui.context.clipboardImage().then(image => {\n if (image) {\n handleImageUris(view, view.state.selection.from, event, [image], ui);\n }\n });\n event.preventDefault();\n return true;\n }\n }\n\n return false;\n };\n}\n\nfunction imageDrop(ui: EditorUI) {\n return (view: EditorView, event: Event) => {\n // alias to drag event so typescript knows about event.dataTransfer\n const dragEvent = event as DragEvent;\n\n // ensure we have data transfer\n if (!dragEvent.dataTransfer) {\n return false;\n }\n\n // ensure the drop coordinates map to an editor position\n const coordinates = view.posAtCoords({\n left: dragEvent.clientX,\n top: dragEvent.clientY,\n });\n if (!coordinates) {\n return false;\n }\n\n // array of uris\n let uris: string[] | null = null;\n\n // see if this is a drag of uris\n const uriList = dragEvent.dataTransfer.getData(kTextUriList);\n if (uriList) {\n uris = uriList.split('\\r?\\n');\n } else {\n // see if the ui context has some dropped uris\n uris = ui.context.droppedUris();\n }\n\n // process uris if we have them\n if (uris && handleImageUris(view, coordinates.pos, event, uris, ui)) {\n event.preventDefault();\n return true;\n } else {\n return false;\n }\n };\n}\n\nfunction handleImageUris(view: EditorView, pos: number, event: Event, uris: string[], ui: EditorUI): boolean {\n // filter out images\n const imageUris = uris.filter(uri => {\n // get extension and check it it's an image\n // https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#Common_image_file_types\n const kImageExtensions = [\n 'apng',\n 'bmp',\n 'gif',\n 'ico',\n 'cur',\n 'jpg',\n 'jpeg',\n 'jfif',\n 'pjpeg',\n 'pjp',\n 'png',\n 'svg',\n 'tif',\n 'tiff',\n 'webp',\n ];\n const extension = uri\n .split(/\\./)\n .pop()!\n .toLowerCase();\n return kImageExtensions.includes(extension);\n });\n\n // exit if we have no image uris\n if (imageUris.length === 0) {\n return false;\n }\n\n // resolve image uris then insert them. note that this is done\n // async so we return true indicating we've handled the drop and\n // then we actually do the insertion once it returns\n ui.context.resolveImageUris(imageUris).then(images => {\n const tr = view.state.tr;\n images.forEach(image => {\n const node = view.state.schema.nodes.image.create({ src: image });\n tr.insert(pos, node);\n });\n view.dispatch(tr);\n });\n\n // indicate that we will handle the event\n return true;\n}\n","/*\n * hr.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, DOMOutputSpec } from 'prosemirror-model';\nimport { InputRule } from 'prosemirror-inputrules';\nimport { findParentNodeOfType } from 'prosemirror-utils';\nimport { EditorState } from 'prosemirror-state';\n\nimport { ProsemirrorCommand, insertNode, EditorCommandId } from '../api/command';\nimport { ExtensionContext } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { EditorUI } from '../api/ui';\nimport { OmniInsertGroup } from '../api/omni_insert';\n\nimport './hr-styles.css';\n\nconst extension = (context: ExtensionContext) => {\n const { ui } = context;\n\n return {\n nodes: [\n {\n name: 'horizontal_rule',\n spec: {\n group: 'block',\n parseDOM: [{ tag: 'hr' }],\n toDOM(): DOMOutputSpec {\n return ['div', ['hr', { class: 'pm-border-background-color' }]];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.HorizontalRule,\n node: 'horizontal_rule',\n },\n ],\n writer: (output: PandocOutput) => {\n output.writeToken(PandocTokenType.HorizontalRule);\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new ProsemirrorCommand(\n EditorCommandId.HorizontalRule,\n [],\n insertNode(schema.nodes.horizontal_rule, {}, true),\n hrOmniInsert(ui),\n ),\n ];\n },\n\n inputRules: (_schema: Schema) => {\n return [\n new InputRule(/^\\*{3}$/, (state: EditorState, match: string[], start: number, end: number) => {\n const schema = state.schema;\n const paraNode = findParentNodeOfType(schema.nodes.paragraph)(state.selection);\n if (paraNode && state.selection.$anchor.depth === 2) {\n // only in top-level paragraphs\n return state.tr.replaceRangeWith(start, end, schema.nodes.horizontal_rule.create());\n } else {\n return null;\n }\n }),\n ];\n },\n };\n};\n\nfunction hrOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Horizontal Rule'),\n keywords: [\"hr\"],\n description: ui.context.translateText('Line that spans across the page'),\n group: OmniInsertGroup.Content,\n priority: 1,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.horizontal_rule_dark! : ui.images.omni_insert?.horizontal_rule!,\n };\n}\n\nexport default extension;\n","/*\n * hard_break.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nimport { Extension } from '../api/extension';\nimport { BaseKey } from '../api/basekeys';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\n\nconst extension: Extension = {\n nodes: [\n {\n name: 'hard_break',\n spec: {\n inline: true,\n group: 'inline',\n selectable: false,\n parseDOM: [{ tag: 'br' }],\n toDOM() {\n return ['br'];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.LineBreak,\n node: 'hard_break',\n },\n ],\n writer: (output: PandocOutput) => {\n output.writeToken(PandocTokenType.LineBreak);\n },\n },\n },\n ],\n\n baseKeys: (_schema: Schema) => {\n return [\n { key: BaseKey.ModEnter, command: hardBreakCommandFn() },\n { key: BaseKey.ShiftEnter, command: hardBreakCommandFn() },\n ];\n },\n};\n\nexport function hardBreakCommandFn() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const br = state.schema.nodes.hard_break;\n if (dispatch) {\n dispatch(state.tr.replaceSelectionWith(br.create()).scrollIntoView());\n }\n return true;\n };\n}\n\nexport default extension;\n","/*\n * null.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Extension } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\n\nimport './null-styles.css';\n\nconst extension: Extension = {\n nodes: [\n {\n name: 'null',\n spec: {\n group: 'block',\n atom: true,\n selectable: false,\n parseDOM: [{ tag: \"div[class*='null-block']\" }],\n toDOM() {\n return ['div', { class: 'null-block' }];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Null,\n node: 'null',\n },\n ],\n writer: (output: PandocOutput) => {\n output.writeToken(PandocTokenType.Null);\n },\n },\n },\n ],\n};\n\nexport default extension;\n","/*\n * em.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Mark, Fragment } from 'prosemirror-model';\n\nimport { MarkCommand, EditorCommandId } from '../api/command';\nimport { Extension } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { delimiterMarkInputRule, MarkInputRuleFilter } from '../api/input_rule';\n\nconst extension: Extension = {\n marks: [\n {\n name: 'em',\n spec: {\n group: 'formatting',\n parseDOM: [\n { tag: 'i' },\n { tag: 'em' },\n { style: 'font-weight', getAttrs: (value: string | Node) => (value as string) === 'italic' && null },\n ],\n toDOM() {\n return ['em'];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Emph,\n mark: 'em',\n },\n ],\n writer: {\n priority: 4,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeMark(PandocTokenType.Emph, parent);\n },\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [new MarkCommand(EditorCommandId.Em, ['Mod-i'], schema.marks.em)];\n },\n\n inputRules: (schema: Schema, filter: MarkInputRuleFilter) => {\n return [\n delimiterMarkInputRule('\\\\*', schema.marks.em, filter, '\\\\*-`', true),\n delimiterMarkInputRule('_', schema.marks.em, filter, '\\\\w_`', true),\n ];\n },\n};\n\nexport default extension;\n","/*\n * strong.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Mark, Fragment } from 'prosemirror-model';\n\nimport { MarkCommand, EditorCommandId } from '../api/command';\nimport { Extension } from '../api/extension';\nimport { PandocOutput, PandocTokenType } from '../api/pandoc';\nimport { delimiterMarkInputRule, MarkInputRuleFilter } from '../api/input_rule';\n\nconst extension: Extension = {\n marks: [\n {\n name: 'strong',\n spec: {\n group: 'formatting',\n parseDOM: [\n // This works around a Google Docs misbehavior where pasted content will be inexplicably wrapped in ``\n // tags with a font-weight normal.\n {\n tag: 'b',\n getAttrs: (value: string | Node) => (value as HTMLElement).style.fontWeight !== 'normal' && null,\n },\n { tag: 'strong' },\n {\n style: 'font-weight',\n getAttrs: (value: string | Node) => /^(bold(er)?|[5-9]\\d{2,})$/.test(value as string) && null,\n },\n ],\n toDOM() {\n return ['strong'];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Strong,\n mark: 'strong',\n },\n ],\n writer: {\n priority: 3,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeMark(PandocTokenType.Strong, parent);\n },\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [new MarkCommand(EditorCommandId.Strong, ['Mod-b'], schema.marks.strong)];\n },\n\n inputRules: (schema: Schema, filter: MarkInputRuleFilter) => {\n return [\n delimiterMarkInputRule('\\\\*\\\\*', schema.marks.strong, filter, '`', true),\n delimiterMarkInputRule('__', schema.marks.strong, filter, '\\\\w`', true),\n ];\n },\n};\n\nexport default extension;\n","/*\n * code.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment, Mark, Node as ProsemirrorNode, Schema } from 'prosemirror-model';\n\nimport { MarkCommand, EditorCommandId } from '../api/command';\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { pandocAttrSpec, pandocAttrParseDom, pandocAttrToDomAttr, pandocAttrReadAST } from '../api/pandoc_attr';\nimport { PandocToken, PandocOutput, PandocTokenType } from '../api/pandoc';\n\nimport { kCodeText, kCodeAttr } from '../api/code';\nimport { delimiterMarkInputRule, MarkInputRuleFilter } from '../api/input_rule';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions } = context;\n\n const codeAttrs = pandocExtensions.inline_code_attributes;\n\n return {\n marks: [\n {\n name: 'code',\n noInputRules: true,\n noSpelling: true,\n spec: {\n group: 'formatting',\n attrs: codeAttrs ? pandocAttrSpec : {},\n parseDOM: [\n {\n tag: 'code',\n getAttrs(dom: Node | string) {\n if (codeAttrs) {\n return pandocAttrParseDom(dom as Element, {});\n } else {\n return {};\n }\n },\n },\n ],\n toDOM(mark: Mark) {\n const fontClass = 'pm-code pm-fixedwidth-font pm-chunk-background-color pm-block-border-color';\n const attrs = codeAttrs\n ? pandocAttrToDomAttr({\n ...mark.attrs,\n classes: [...mark.attrs.classes, fontClass],\n })\n : {\n class: fontClass,\n };\n return ['code', attrs];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Code,\n mark: 'code',\n getText: (tok: PandocToken) => tok.c[kCodeText],\n getAttrs: (tok: PandocToken) => {\n if (codeAttrs) {\n return pandocAttrReadAST(tok, kCodeAttr);\n } else {\n return {};\n }\n },\n },\n ],\n writer: {\n // lowest possible mark priority since it doesn't call writeInlines\n // (so will 'eat' any other marks on the stack)\n priority: 0,\n write: (output: PandocOutput, mark: Mark, parent: Fragment) => {\n // collect code and trim it (pandoc will do this on parse anyway)\n let code = '';\n parent.forEach((node: ProsemirrorNode) => (code = code + node.textContent));\n code = code.trim();\n if (code.length > 0) {\n output.writeToken(PandocTokenType.Code, () => {\n if (codeAttrs) {\n output.writeAttr(mark.attrs.id, mark.attrs.classes, mark.attrs.keyvalue);\n } else {\n output.writeAttr();\n }\n output.write(code);\n });\n }\n },\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [new MarkCommand(EditorCommandId.Code, ['Mod-d'], schema.marks.code)];\n },\n\n inputRules: (schema: Schema, filter: MarkInputRuleFilter) => {\n return [delimiterMarkInputRule('`', schema.marks.code, filter)];\n },\n };\n};\n\nexport default extension;\n","/*\n * link.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment, Mark, Schema } from 'prosemirror-model';\nimport { PluginKey, Plugin } from 'prosemirror-state';\n\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { PandocToken, PandocOutput, PandocTokenType } from '../../api/pandoc';\nimport {\n pandocAttrSpec,\n pandocAttrParseDom,\n pandocAttrToDomAttr,\n pandocAttrReadAST,\n PandocAttr,\n} from '../../api/pandoc_attr';\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { kLinkTarget, kLinkTargetUrl, kLinkTargetTitle, kLinkAttr, kLinkChildren } from '../../api/link';\nimport { hasShortcutHeadingLinks } from '../../api/pandoc_format';\n\nimport { linkCommand, removeLinkCommand, linkOmniInsert } from './link-command';\nimport { linkInputRules, linkPasteHandler } from './link-auto';\nimport { linkHeadingsPostprocessor, syncHeadingLinksAppendTransaction } from './link-headings';\nimport { linkPopupPlugin } from './link-popup';\n\nimport './link-styles.css';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { pandocExtensions, ui, navigation } = context;\n\n const capabilities = {\n headings: hasShortcutHeadingLinks(pandocExtensions),\n attributes: pandocExtensions.link_attributes,\n text: true,\n };\n const linkAttr = pandocExtensions.link_attributes;\n const autoLink = pandocExtensions.autolink_bare_uris;\n const headingLink = hasShortcutHeadingLinks(pandocExtensions);\n const citations = pandocExtensions.citations;\n\n const excludes = citations ? { excludes: 'cite_id' } : {};\n\n return {\n marks: [\n {\n name: 'link',\n spec: {\n attrs: {\n href: {},\n heading: { default: null },\n title: { default: null },\n ...(linkAttr ? pandocAttrSpec : {}),\n },\n inclusive: false,\n ...excludes,\n parseDOM: [\n {\n tag: 'a[href]',\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n const attrs: { [key: string]: string | null } = {\n href: el.getAttribute('href'),\n title: el.getAttribute('title'),\n heading: el.getAttribute('data-heading'),\n };\n return {\n ...attrs,\n ...(linkAttr ? pandocAttrParseDom(el, attrs) : {}),\n };\n },\n },\n ],\n toDOM(mark: Mark) {\n const linkClasses = 'pm-link pm-link-text-color';\n\n let extraAttr: any = {};\n if (linkAttr) {\n extraAttr = pandocAttrToDomAttr({\n ...mark.attrs,\n classes: [...mark.attrs.classes, linkClasses],\n });\n } else {\n extraAttr = { class: linkClasses };\n }\n\n return [\n 'a',\n {\n href: mark.attrs.href,\n title: mark.attrs.title,\n 'data-heading': mark.attrs.heading,\n ...extraAttr,\n },\n ];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Link,\n mark: 'link',\n getAttrs: (tok: PandocToken) => {\n const target = tok.c[kLinkTarget];\n return {\n href: target[kLinkTargetUrl],\n title: target[kLinkTargetTitle] || null,\n ...(linkAttr ? pandocAttrReadAST(tok, kLinkAttr) : {}),\n };\n },\n getChildren: (tok: PandocToken) => tok.c[kLinkChildren],\n\n postprocessor: hasShortcutHeadingLinks(pandocExtensions) ? linkHeadingsPostprocessor : undefined,\n },\n ],\n\n writer: {\n priority: 12,\n write: (output: PandocOutput, mark: Mark, parent: Fragment) => {\n if (mark.attrs.heading) {\n output.writeRawMarkdown('[');\n output.writeInlines(parent);\n output.writeRawMarkdown(']');\n } else {\n output.writeLink(\n mark.attrs.href,\n mark.attrs.title,\n linkAttr ? (mark.attrs as PandocAttr) : null,\n () => {\n output.writeInlines(parent);\n },\n );\n }\n },\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new ProsemirrorCommand(\n EditorCommandId.Link,\n ['Mod-k'],\n linkCommand(schema.marks.link, ui.dialogs.editLink, capabilities),\n linkOmniInsert(ui),\n ),\n new ProsemirrorCommand(EditorCommandId.RemoveLink, [], removeLinkCommand(schema.marks.link)),\n ];\n },\n\n inputRules: linkInputRules(autoLink, headingLink),\n\n appendTransaction: (schema: Schema) =>\n pandocExtensions.implicit_header_references ? [syncHeadingLinksAppendTransaction()] : [],\n\n plugins: (schema: Schema) => {\n const plugins = [\n linkPopupPlugin(\n schema,\n ui,\n navigation,\n linkCommand(schema.marks.link, ui.dialogs.editLink, capabilities),\n removeLinkCommand(schema.marks.link),\n ),\n ];\n if (autoLink) {\n plugins.push(\n new Plugin({\n key: new PluginKey('link-auto'),\n props: {\n transformPasted: linkPasteHandler(schema),\n },\n }),\n );\n }\n return plugins;\n },\n };\n};\n\nexport default extension;\n","/*\n * link-command.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { MarkType } from 'prosemirror-model';\nimport { EditorUI } from '../../api/ui';\nimport { LinkEditorFn, LinkProps } from '../../api/ui-dialogs';\nimport { EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findChildren } from 'prosemirror-utils';\n\nimport { markIsActive, getMarkAttrs, getSelectionMarkRange, getMarkRange } from '../../api/mark';\n\nimport { linkTargets, LinkCapabilities, LinkType } from '../../api/link';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { equalsIgnoreCase } from '../../api/text';\n\nexport function linkCommand(markType: MarkType, onEditLink: LinkEditorFn, capabilities: LinkCapabilities) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n // if the current node doesn't allow this mark return false\n if (!state.selection.$from.node().type.allowsMarkType(markType)) {\n return false;\n }\n\n async function asyncEditLink() {\n if (dispatch) {\n // collect link targets\n const targets = await linkTargets(state.doc);\n\n // get the range of the mark\n const range = getSelectionMarkRange(state.selection, markType);\n\n // get link attributes if we have them\n let link: { [key: string]: any } = {};\n\n // only get text if this is a text selection\n if (state.selection instanceof TextSelection) {\n link.text = state.doc.textBetween(range.from, range.to);\n capabilities.text = true;\n } else {\n capabilities.text = false;\n }\n\n // get other attributes\n if (markIsActive(state, markType)) {\n link = {\n ...link,\n ...getMarkAttrs(state.doc, range, markType),\n };\n } else {\n // if the link text is a URL then make it the default\n if (link.text && link.text.match(/^https?:\\/\\/.*$/)) {\n link.href = link.text;\n }\n }\n\n // determine type\n if (link.heading) {\n link.type = LinkType.Heading;\n } else if (link.href && link.href.startsWith('#')) {\n link.type = LinkType.ID;\n } else {\n link.type = LinkType.URL;\n }\n\n // show edit ui\n const result = await onEditLink({ ...link } as LinkProps, targets, capabilities);\n if (result) {\n const tr = state.tr;\n tr.removeMark(range.from, range.to, markType);\n if (result.action === 'edit') {\n // create the mark\n const mark = markType.create(result.link);\n\n // if the content changed then replace the range, otherwise\n if (capabilities.text && link.text !== result.link.text) {\n const node = markType.schema.text(result.link.text, [mark]);\n // if we are editing an existing link then replace it, otherwise replace the selection\n if (link.href) {\n tr.replaceRangeWith(range.from, range.to, node);\n } else {\n tr.replaceSelectionWith(node, false);\n }\n } else {\n tr.addMark(range.from, range.to, mark);\n }\n\n // if it's a heading link then update heading to indicate it has an associated link\n if (result.link.type === LinkType.Heading) {\n const heading = findChildren(\n tr.doc,\n node =>\n node.type === state.schema.nodes.heading &&\n equalsIgnoreCase(node.textContent, result.link.heading || ''),\n );\n if (heading.length > 0) {\n tr.setNodeMarkup(heading[0].pos, state.schema.nodes.heading, {\n ...heading[0].node.attrs,\n link: result.link.heading,\n });\n }\n }\n }\n dispatch(tr);\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditLink();\n\n return true;\n };\n}\n\nexport function linkOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Link...'),\n description: ui.context.translateText('Link to another location'),\n group: OmniInsertGroup.Content,\n priority: 8,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.link_dark! : ui.images.omni_insert?.link!),\n };\n}\n\nexport function removeLinkCommand(markType: MarkType) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const range = getMarkRange(state.selection.$from, markType);\n if (!range) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n tr.removeMark(range.from, range.to, markType);\n dispatch(tr);\n }\n\n return true;\n };\n}\n","/*\n * link-auto.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\nimport { InputRule } from 'prosemirror-inputrules';\nimport { EditorState } from 'prosemirror-state';\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { markInputRule, MarkInputRuleFilter } from '../../api/input_rule';\nimport { markPasteHandler } from '../../api/clipboard';\n\nexport function linkInputRules(autoLink: boolean, headingLink: boolean) {\n return (schema: Schema, filter: MarkInputRuleFilter) => {\n const rules = [\n // style link\n markInputRule(/(?:(?:^|[^`])<)(https?:\\/\\/[^>]+)(?:>)$/, schema.marks.link, filter, (match: string[]) => ({\n href: match[1],\n })),\n // full markdown link\n new InputRule(/(?:\\[)([^\\]]+)(?:\\]\\()([^)]+)(?:\\))$/, (state: EditorState, match: string[], start: number, end: number) => {\n if (!filter(state, start, end)) {\n return null;\n }\n \n // remove any leading delimter (modulo spaces)\n const textIndex = match[0].indexOf(match[1]);\n const prefix = match[0].substring(0, textIndex).replace(/^\\s/, \"\");\n const delimStart = start + textIndex - prefix.length;\n const tr = state.tr;\n tr.delete(delimStart, delimStart + prefix.length);\n \n // create mark\n const attrs = { href: match[2] };\n const mark = schema.marks.link.create(attrs);\n \n // apply it to the matching core text\n const markStart = start + textIndex - prefix.length;\n tr.addMark(markStart, markStart + match[1].length, mark);\n tr.removeStoredMark(mark); // Do not continue with mark.\n \n // remove any remaining text\n const remainStart = markStart + match[1].length;\n tr.delete(remainStart, end);\n setTextSelection(remainStart)(tr);\n \n return tr;\n })\n ];\n\n if (autoLink) {\n // plain link\n rules.push(\n new InputRule(\n /(^|[^`])(https?:\\/\\/[^\\s]+\\w)[\\.\\?!\\,)]* $/,\n (state: EditorState, match: string[], start: number, end: number) => {\n const tr = state.tr;\n start = start + match[1].length;\n const linkEnd = start + match[2].length;\n tr.addMark(start, linkEnd, schema.marks.link.create({ href: match[2] }));\n tr.removeStoredMark(schema.marks.link);\n tr.insertText(' ');\n setTextSelection(end + 1)(tr);\n return tr;\n },\n ),\n );\n }\n\n return rules;\n };\n}\n\nexport function linkPasteHandler(schema: Schema) {\n return markPasteHandler(/(?:<)?([a-z]+:\\/\\/[^\\s>]+)(?:>)?/g, schema.marks.link, url => ({ href: url }));\n}\n","/*\n * clipboard.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Slice, Fragment, MarkType, Node as ProsemirrorNode } from 'prosemirror-model';\n\n// add marks to plain text pasted into the editor (e.g. urls become links)\n// https://github.com/ProseMirror/prosemirror/issues/90\nexport function markPasteHandler(regexp: RegExp, type: MarkType, getAttrs: (s: string) => {}) {\n const handler = (fragment: Fragment) => {\n regexp.lastIndex = 0;\n\n const nodes: ProsemirrorNode[] = [];\n\n fragment.forEach((child: ProsemirrorNode) => {\n if (child.isText) {\n const { text } = child;\n let pos = 0;\n let match;\n\n do {\n match = regexp.exec(text!);\n if (match) {\n const start = match.index;\n const end = start + match[0].length;\n const matchText = match.length > 1 ? match[1] : match[0];\n const attrs = getAttrs instanceof Function ? getAttrs(matchText) : getAttrs;\n if (start > 0) {\n nodes.push(child.cut(pos, start));\n }\n nodes.push(type.schema.text(matchText).mark(type.create(attrs).addToSet(child.marks)));\n pos = end;\n }\n } while (match);\n\n if (pos < text!.length) {\n nodes.push(child.cut(pos));\n }\n } else {\n nodes.push(child.copy(handler(child.content)));\n }\n });\n\n regexp.lastIndex = 0;\n\n return Fragment.fromArray(nodes);\n };\n\n return (slice: Slice) => new Slice(handler(slice.content), slice.openStart, slice.openEnd);\n}\n","/*\n * link-headings.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { findChildrenByType, findChildrenByMark } from 'prosemirror-utils';\n\nimport { getMarkRange, getMarkAttrs } from '../../api/mark';\nimport { Transaction } from 'prosemirror-state';\nimport { equalsIgnoreCase } from '../../api/text';\n\n// detect links to headings within the doc read from pandoc and update the doc\n// to note those headings in the link attributes\nexport function linkHeadingsPostprocessor(doc: ProsemirrorNode) {\n // alias schema\n const schema = doc.type.schema;\n\n // start with a list of all headings\n const headings = findChildrenByType(doc, schema.nodes.heading);\n\n // find link marks\n findChildrenByMark(doc, schema.marks.link).forEach(link => {\n const markRange = getMarkRange(doc.resolve(link.pos), schema.marks.link);\n if (markRange) {\n const attrs = getMarkAttrs(doc, markRange, schema.marks.link);\n const linkText = doc.textBetween(markRange.from, markRange.to);\n const matchedHeading = headings.find(heading => {\n return equalsIgnoreCase(heading.node.textContent, linkText) && !attrs.title && attrs.href === '#';\n });\n if (matchedHeading) {\n // point the link mark at this heading by name\n doc.nodesBetween(markRange.from, markRange.to, node => {\n const linkMark = node.marks.find(m => m.type === schema.marks.link);\n if (linkMark) {\n linkMark.attrs.heading = matchedHeading.node.textContent;\n }\n });\n\n // update the heading to indicate it has a named link to it\n matchedHeading.node.attrs.link = linkText;\n }\n }\n });\n\n // return doc\n return doc;\n}\n\nexport function syncHeadingLinksAppendTransaction() {\n return {\n name: 'sync-heading-links',\n nodeFilter: (node: ProsemirrorNode) =>\n node.type === node.type.schema.nodes.heading || node.type.schema.marks.link.isInSet(node.marks),\n append: (tr: Transaction) => {\n // alias schema\n const schema = tr.doc.type.schema;\n\n // fix links to be in sync with their text\n const links = findChildrenByMark(tr.doc, schema.marks.link);\n links.forEach(link => {\n const linkPos = tr.mapping.map(link.pos);\n const range = getMarkRange(tr.doc.resolve(linkPos), schema.marks.link);\n if (range) {\n const attrs = getMarkAttrs(tr.doc, range, schema.marks.link);\n const linkText = tr.doc.textBetween(range.from, range.to);\n if (attrs.heading && !equalsIgnoreCase(attrs.heading, linkText)) {\n tr.removeMark(range.from, range.to, schema.marks.link);\n tr.addMark(range.from, range.to, schema.marks.link.create({ ...attrs, heading: linkText }));\n }\n }\n });\n\n // if a heading has deviated from it's link, then update the link\n findChildrenByType(tr.doc, schema.nodes.heading).forEach(heading => {\n const headingPos = tr.mapping.map(heading.pos);\n const headingText = heading.node.textContent;\n const headingLink = heading.node.attrs.link;\n\n if (headingLink && !equalsIgnoreCase(headingLink, headingText) && headingText.length > 0) {\n // set the heading link text\n tr.setNodeMarkup(headingPos, schema.nodes.heading, {\n ...heading.node.attrs,\n link: headingText,\n });\n\n // find links that don't match and update them\n findChildrenByMark(tr.doc, schema.marks.link).forEach(link => {\n const linkPos = tr.mapping.map(link.pos);\n const range = getMarkRange(tr.doc.resolve(linkPos), schema.marks.link);\n if (range) {\n const attrs = getMarkAttrs(tr.doc, range, schema.marks.link);\n if (equalsIgnoreCase(attrs.heading, headingLink)) {\n tr.insertText(headingText, range.from, range.to);\n tr.addMark(\n range.from,\n range.from + headingText.length,\n schema.marks.link.create({ ...attrs, heading: headingText }),\n );\n }\n }\n });\n }\n });\n },\n };\n}\n","/*\n * LinkPopup.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { DecorationSet, EditorView } from 'prosemirror-view';\nimport { Selection, PluginKey } from 'prosemirror-state';\n\nimport * as React from 'react';\n\nimport ClipboardJS from 'clipboard';\n\nimport { EditorUI } from '../../api/ui';\nimport { LinkProps } from '../../api/ui-dialogs';\nimport { CommandFn } from '../../api/command';\n\nimport { selectionIsImageNode } from '../../api/selection';\n\nimport { showTooltip } from '../../api/widgets/tooltip';\n\nimport { WidgetProps } from '../../api/widgets/react';\nimport { LinkButton, ImageButton } from '../../api/widgets/button';\nimport { Popup } from '../../api/widgets/popup';\nimport { EditorNavigation, NavigationType } from '../../api/navigation';\nimport { Schema } from 'prosemirror-model';\nimport { textPopupDecorationPlugin, TextPopupTarget } from '../../api/text-popup';\n\nexport function linkPopupPlugin(\n schema: Schema,\n ui: EditorUI,\n nav: EditorNavigation,\n linkCmd: CommandFn,\n removeLinkCmd: CommandFn,\n) {\n const kPopupChromeWidth = 70;\n const kMaxLinkWidth = 300;\n const maxWidth = kMaxLinkWidth + kPopupChromeWidth;\n\n return textPopupDecorationPlugin({\n key: new PluginKey('link-popup'),\n markType: schema.marks.link,\n maxWidth,\n createPopup: (view: EditorView, target: TextPopupTarget, style: React.CSSProperties) => {\n return Promise.resolve(\n ,\n );\n },\n specKey: (target: TextPopupTarget) => {\n const linkText = target.attrs.heading ? target.attrs.heading : target.attrs.href;\n return `link:${linkText}`;\n },\n filter: (selection: Selection) => {\n return !selectionIsImageNode(schema, selection);\n },\n onCmdClick: (target: TextPopupTarget) => {\n ui.display.openURL(target.attrs.href);\n },\n });\n}\n\ninterface LinkPopupProps extends WidgetProps {\n link: LinkProps;\n maxLinkWidth: number;\n view: EditorView;\n ui: EditorUI;\n nav: EditorNavigation;\n linkCmd: CommandFn;\n removeLinkCmd: CommandFn;\n}\n\nconst LinkPopup: React.FC = props => {\n // link\n const linkText = props.link.heading ? props.link.heading : props.link.href;\n const onLinkClicked = () => {\n props.view.focus();\n if (props.link.heading) {\n props.nav.navigate(NavigationType.Heading, props.link.heading);\n } else if (props.link.href.startsWith('#')) {\n props.nav.navigate(NavigationType.Href, props.link.href.substr(1));\n } else {\n props.ui.display.openURL(props.link.href);\n }\n };\n\n // copy\n const showCopyButton = !props.link.heading && ClipboardJS.isSupported();\n let clipboard: ClipboardJS;\n const setCopyButton = (button: HTMLButtonElement | null) => {\n if (button) {\n clipboard = new ClipboardJS(button, {\n text: () => linkText,\n });\n clipboard.on('success', () => {\n showTooltip(button, props.ui.context.translateText('Copied to Clipboard'), 's');\n });\n } else {\n if (clipboard) {\n clipboard.destroy();\n }\n }\n };\n\n // remove\n const onRemoveClicked = () => {\n // in rstudio (w/ webkit) removing the link during the click results\n // in a page-navigation! defer to next event cycle to avoid this\n setTimeout(() => {\n props.removeLinkCmd(props.view.state, props.view.dispatch, props.view);\n props.view.focus();\n }, 0);\n };\n\n // edit\n const onEditClicked = () => {\n props.linkCmd(props.view.state, props.view.dispatch, props.view);\n };\n\n return (\n \n \n {showCopyButton ? (\n \n ) : null}\n \n \n \n );\n};\n","/*\n * tooltip.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport tlite from 'tlite';\n\nimport './tooltip.css';\n\nexport function showTooltip(\n el: Element,\n text: string,\n grav: 's' | 'n' | 'e' | 'w' | 'sw' | 'se' | 'nw' | 'ne' = 'n',\n timeout = 2000,\n) {\n el.setAttribute('title', '');\n el.setAttribute('data-tlite', text);\n tlite.show(el, { grav });\n setTimeout(() => tlite.hide(el), timeout);\n}\n","/*\n * button.tsx\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport React from 'react';\n\nimport { WidgetProps } from './react';\n\nexport interface LinkButtonProps extends WidgetProps {\n text: string;\n onClick: () => void;\n title?: string;\n maxWidth?: number;\n}\n\nexport const LinkButton: React.FC = props => {\n const className = ['pm-link', 'pm-link-text-color'].concat(props.classes || []).join(' ');\n\n const style: React.CSSProperties = {\n ...props.style,\n maxWidth: props.maxWidth,\n };\n\n const onClick = (e: React.MouseEvent) => {\n e.preventDefault();\n props.onClick();\n };\n\n const onKeyDown = (e: React.KeyboardEvent) => {\n if (e.keyCode === 32) {\n e.preventDefault();\n props.onClick();\n }\n };\n\n return (\n \n {props.text}\n \n );\n};\n\nexport interface ImageButtonProps extends WidgetProps {\n title: string;\n image: string;\n tabIndex?: number;\n onClick?: () => void;\n}\n\nexport const ImageButton = React.forwardRef((props: ImageButtonProps, ref) => {\n const className = ['pm-image-button'].concat(props.classes || []).join(' ');\n const onClick = (e: React.MouseEvent) => {\n if (props.onClick) {\n e.preventDefault();\n props.onClick();\n }\n };\n return (\n \n {props.title}\n \n );\n});\n\nexport interface TextButtonProps extends WidgetProps {\n title: string;\n onClick?: () => void;\n tabIndex?: number;\n disabled?: boolean;\n}\n\nexport const TextButton = React.forwardRef((props: TextButtonProps, ref) => {\n const className = ['pm-text-button', 'pm-input-button'].concat(props.classes || []).join(' ');\n const onClick = (e: React.MouseEvent) => {\n if (props.onClick) {\n e.preventDefault();\n props.onClick();\n }\n };\n return (\n \n {props.title}\n \n );\n});\n\nexport interface OutlineButtonProps extends WidgetProps {\n title: string;\n onClick?: (event: React.MouseEvent) => void;\n tabIndex?: number;\n}\n\nexport const OutlineButton = React.forwardRef(\n (props: OutlineButtonProps, ref) => {\n const className = ['pm-outline-button', 'pm-input-button', 'pm-input-outline-button']\n .concat(props.classes || [])\n .join(' ');\n return (\n \n {props.title}\n \n );\n },\n);\n","/*\n * TextPopup.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { DecorationSet, Decoration, EditorView } from 'prosemirror-view';\nimport { Selection, Plugin, PluginKey, EditorState, Transaction } from 'prosemirror-state';\n\nimport * as React from 'react';\n\nimport { getMarkRange, getMarkAttrs } from './mark';\nimport { kRestoreLocationTransaction, kNavigationTransaction } from './transaction';\n\nimport { reactRenderForEditorView } from './widgets/react';\nimport { textRangePopupDecorationPosition } from './widgets/decoration';\nimport { kPlatformMac } from './platform';\nimport { MarkType } from 'prosemirror-model';\n\nexport interface TextPopupTarget {\n attrs: AttrsType;\n text: string;\n}\n\nexport interface TextPopupDecoration {\n key: PluginKey;\n markType: MarkType;\n maxWidth: number;\n createPopup: (\n view: EditorView,\n target: TextPopupTarget,\n style: React.CSSProperties,\n ) => Promise;\n dismissOnEdit?: boolean;\n makeLinksAccessible?: boolean;\n specKey?: (target: TextPopupTarget) => string;\n filter?: (selection: Selection) => boolean;\n onCmdClick?: (target: TextPopupTarget) => void;\n}\n\nexport function textPopupDecorationPlugin(deco: TextPopupDecoration): Plugin {\n const {\n key,\n markType,\n maxWidth,\n createPopup,\n specKey,\n dismissOnEdit,\n makeLinksAccessible,\n filter,\n onCmdClick,\n } = deco;\n\n let editorView: EditorView;\n\n return new Plugin({\n key,\n view(view: EditorView) {\n editorView = view;\n return {};\n },\n state: {\n init: (_config: { [key: string]: any }) => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, _oldState: EditorState, newState: EditorState) => {\n // if this a restore location or navigation then return empty\n if (tr.getMeta(kRestoreLocationTransaction) || tr.getMeta(kNavigationTransaction)) {\n return DecorationSet.empty;\n }\n\n // if this is doc update and we have dismiss on edit then return empty\n if (dismissOnEdit && tr.docChanged) {\n return DecorationSet.empty;\n }\n\n // if the selection is contained within the mark then show the popup\n const selection = newState.selection;\n\n // TODO JJA: The mark range is undefined when the the selection is 'after' the mark\n // e.g. [@allaire2012|]\n // which means that the preview doesn't show\n const range = getMarkRange(selection.$from, markType);\n\n if (range) {\n // selection has to be bounded by the range\n if (selection.from < range.from || selection.to > range.to) {\n return DecorationSet.empty;\n }\n\n // apply the filter\n if (filter && !filter(selection)) {\n return DecorationSet.empty;\n }\n\n // don't show the link popup if it's positioned at the far left of the mark\n // (awkward when cursor is just left of an image)\n if (selection.empty && range.from === selection.from) {\n return DecorationSet.empty;\n }\n\n // mark target\n const attrs = getMarkAttrs(newState.doc, range, markType);\n const text = newState.doc.textBetween(range.from, range.to);\n const target = { attrs, text };\n\n // compute position (we need this both for setting the styles on the LinkPopup\n // as well as for setting the Decorator pos)\n const decorationPosition = textRangePopupDecorationPosition(editorView, range, maxWidth);\n\n // key if one was provided\n let decoratorSpec: { [key: string]: any } | undefined;\n if (specKey) {\n decoratorSpec = {\n key: decorationPosition.key + specKey(target),\n ignoreSelection: true,\n stopEvent: () => {\n return true;\n },\n };\n }\n\n // create decorator\n const textPopupDecorator = Decoration.widget(\n decorationPosition.pos,\n\n (view: EditorView, getPos: () => number) => {\n // create decorator and render popup into it\n const decorationEl = window.document.createElement('div');\n decorationEl.style.visibility = 'hidden';\n\n // create popup component\n createPopup(view, target, decorationPosition.style).then(popup => {\n if (popup) {\n reactRenderForEditorView(popup, decorationEl, view);\n\n // make sure links responsd to spacebar\n if (makeLinksAccessible) {\n const links = decorationEl.getElementsByTagName('a');\n // tslint:disable-next-line: prefer-for-of\n for (let i = 0; i < links.length; i++) {\n const link = links[0];\n link.onkeydown = (e: KeyboardEvent) => {\n if (e.keyCode === 32) {\n e.preventDefault();\n link.click();\n }\n };\n }\n }\n\n decorationEl.style.visibility = 'visible';\n }\n });\n\n return decorationEl;\n },\n\n decoratorSpec,\n );\n\n // return decorations\n return DecorationSet.create(tr.doc, [textPopupDecorator]);\n } else {\n return DecorationSet.empty;\n }\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n handleClick: onCmdClick\n ? (view: EditorView, pos: number, event: MouseEvent) => {\n const keyPressed = kPlatformMac && event.metaKey;\n if (keyPressed) {\n const attrs = getMarkAttrs(view.state.doc, { from: pos, to: pos }, markType);\n const range = getMarkRange(view.state.doc.resolve(pos));\n if (attrs && range) {\n event.stopPropagation();\n event.preventDefault();\n const text = view.state.doc.textBetween(range.from, range.to);\n onCmdClick({ attrs, text });\n return true;\n }\n }\n return false;\n }\n : undefined,\n },\n });\n}\n","/*\n * react.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\n\nimport { EditorView } from 'prosemirror-view';\n\nexport interface WidgetProps {\n classes?: string[];\n style?: React.CSSProperties;\n}\n\n// Render a react element into a DOM container that will eventually be added to the EditorView.dom\n// this function is necessary for situations where an element is created and then handed to ProseMirror\n// (unattached to the DOM), and then subsequently destoyed/unmounted by ProseMirror. We use a\n// MutationObserver to watch EditorView.dom for the element's removal then in response call\n// ReactDOM.unmountComponentAtNode\nexport function reactRenderForEditorView(element: React.ReactElement, container: HTMLElement, view: EditorView) {\n // render the react element into the container\n const ref = ReactDOM.render(element, container);\n\n // track view dom mutations to determine when ProseMirror has destroyed the element\n // (our cue to unmount/cleanup the react component)\n const observer = new MutationObserver(mutationsList => {\n mutationsList.forEach(mutation => {\n mutation.removedNodes.forEach(node => {\n if (node === container) {\n observer.disconnect();\n ReactDOM.unmountComponentAtNode(container);\n }\n });\n });\n });\n observer.observe(view.dom, { attributes: false, childList: true, subtree: true });\n\n // return the ref\n return ref;\n}\n","/*\n * decoration.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { ResolvedPos } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { editingRootNodeClosestToPos } from '../node';\n\nimport { kPixelUnit } from '../css';\n\nexport interface DecorationPosition {\n pos: number;\n style: { [key: string]: string };\n key: string;\n}\n\nexport function textRangePopupDecorationPosition(\n view: EditorView,\n range: { from: number; to: number },\n maxWidth: number,\n): DecorationPosition {\n // get the (window) DOM coordinates for the start of the range. we use range.from + 1 so\n // that ranges that are at the beginning of a line don't have their position set\n // to the previous line\n const rangeCoords = view.coordsAtPos(range.from + 1);\n\n // get the node, element, coordinates, and style for the current editing root\n const rangePos = view.state.doc.resolve(range.from);\n const editingNode = editingRootNodeClosestToPos(rangePos)!;\n const editingEl = view.domAtPos(editingNode!.pos + 1).node as HTMLElement;\n const editingBox = editingEl.getBoundingClientRect();\n const editingBoxStyle = window.getComputedStyle(editingEl);\n\n // base popup style\n const topPadding = parseInt(editingBoxStyle.paddingTop!, 10) || 0;\n const popupStyle = {\n top: rangeCoords.bottom - editingBox.top - topPadding + 5 + kPixelUnit,\n };\n\n // we need to compute whether the popup will be visible (horizontally), do\n // this by testing whether we have room for the max link width + controls/padding\n let style: { [key: string]: string };\n const positionRight = rangeCoords.left + maxWidth > editingBox.right;\n if (positionRight) {\n const rightCoords = view.coordsAtPos(range.to);\n const rightPos = rangeCoords.top === rightCoords.top ? editingBox.right - rightCoords.right : 0;\n style = {\n ...popupStyle,\n right: rightPos + kPixelUnit,\n };\n } else {\n const marginLeft =\n 'calc(' +\n (rangeCoords.left - editingBox.left) +\n 'px ' +\n ' - ' +\n editingBoxStyle.borderLeftWidth +\n ' - ' +\n editingBoxStyle.paddingLeft +\n ' - ' +\n editingBoxStyle.marginLeft +\n ' - 1ch' +\n ')';\n style = {\n ...popupStyle,\n marginLeft,\n };\n }\n\n // calculate key\n const key = Object.keys(style)\n .map(attrib => `${attrib}=${style[attrib]}`)\n .join(';');\n\n return {\n pos: editingNode.pos + editingNode.node.nodeSize - 1,\n style,\n key,\n };\n}\n\nfunction getEditingBox(view: EditorView, pos$: ResolvedPos) {\n const editingNode = editingRootNodeClosestToPos(pos$);\n const editingEl = view.domAtPos(editingNode!.pos + 1).node as HTMLElement;\n return editingEl.getBoundingClientRect();\n}\n","/*\n * select_all.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findBlockNodes, ContentNodeWithPos } from 'prosemirror-utils';\n\nimport { Extension } from '../api/extension';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { editingRootNode } from '../api/node';\n\nconst extension: Extension = {\n commands: () => {\n return [new ProsemirrorCommand(EditorCommandId.SelectAll, ['Mod-a'], selectAll)];\n },\n};\n\nexport function selectAll(state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) {\n if (dispatch) {\n const editingRoot = editingRootNode(state.selection);\n if (editingRoot) {\n const schema = state.schema;\n const tr = state.tr;\n if (editingRoot.node.type === schema.nodes.note) {\n tr.setSelection(childBlocksSelection(tr.doc, editingRoot));\n } else {\n const start = tr.doc.resolve(editingRoot.pos);\n const end = tr.doc.resolve(editingRoot.pos + editingRoot.node.nodeSize);\n tr.setSelection(new TextSelection(start, end));\n }\n dispatch(tr);\n if (view) {\n // we do this to escape from embedded editors e.g. codemirror\n view.focus();\n }\n }\n }\n return true;\n}\n\nfunction childBlocksSelection(doc: ProsemirrorNode, parent: ContentNodeWithPos) {\n const blocks = findBlockNodes(parent.node);\n const begin = parent.start + blocks[0].pos + 1;\n const lastBlock = blocks[blocks.length - 1];\n const end = parent.start + lastBlock.pos + lastBlock.node.nodeSize;\n return TextSelection.create(doc, begin, end);\n}\n\nexport default extension;\n","/*\n * history.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { history, redo, undo } from 'prosemirror-history';\n\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { Extension } from '../api/extension';\n\nconst extension: Extension = {\n commands: () => {\n return [\n new ProsemirrorCommand(EditorCommandId.Undo, ['Mod-z'], undo),\n new ProsemirrorCommand(EditorCommandId.Redo, ['Shift-Mod-z'], redo),\n ];\n },\n\n plugins: () => {\n return [history()];\n },\n};\n\nexport default extension;\n","/*\n * cursor.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { PluginKey, Plugin, EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { ResolvedPos, Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { dropCursor } from 'prosemirror-dropcursor';\nimport { gapCursor, GapCursor } from 'prosemirror-gapcursor';\nimport 'prosemirror-gapcursor/style/gapcursor.css';\n\nimport { findParentNodeOfTypeClosestToPos, findParentNodeOfType, findParentNode } from 'prosemirror-utils';\n\nimport { Extension } from '../api/extension';\nimport { BaseKey, verticalArrowCanAdvanceWithinTextBlock } from '../api/basekeys';\nimport { isList } from '../api/list';\n\nimport './cursor.css';\n\n\nconst extension: Extension = {\n\n baseKeys: () => {\n return [\n { key: BaseKey.ArrowLeft, command: gapArrowHandler('left') },\n { key: BaseKey.ArrowUp, command: gapArrowHandler('up') }\n ];\n },\n\n plugins: () => {\n return [\n gapCursor(), \n dropCursor(),\n new Plugin({\n key: new PluginKey('div-gap-cursor'),\n props: {\n handleDOMEvents: {\n click: gapClickHandler,\n },\n },\n })];\n },\n};\n\nfunction gapArrowHandler(dir: 'up' | 'left') {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n \n\n // function to create a gap cursor\n const createGapCursor = ($pos: ResolvedPos) => {\n if (dispatch) {\n const cursor = new GapCursor($pos, $pos);\n const tr = state.tr;\n tr.setSelection(cursor);\n dispatch(tr);\n }\n return true;\n };\n\n if (state.selection.empty && view && view.endOfTextblock(dir)) {\n \n // get the selection\n const $head = state.selection.$head;\n\n // if we are in a block that handles up/down (e.g. display math)\n // then we don't want to make a gap cursor\n if (dir === 'up' && verticalArrowCanAdvanceWithinTextBlock(state.selection, dir)) {\n return false;\n }\n\n // check if we are in a div \n if (state.schema.nodes.div) {\n const div = findParentNodeOfType(state.schema.nodes.div)(state.selection);\n \n // if we are at the very top of a div then create a gap cursor\n if (div) {\n \n const $divPos = state.doc.resolve(div.pos);\n if ($head.index($head.depth - 1) === 0 && !(state.selection instanceof GapCursor)) {\n \n // if we are in a list item the calculations about view.endOfTextblock will be off\n if (findParentNode(isList)(state.selection)) {\n return false;\n }\n \n return createGapCursor(state.doc.resolve($divPos.pos + 1));\n // if we are between divs then create a gap cursor between them\n } else if ($divPos.nodeBefore?.type === state.schema.nodes.div) {\n return createGapCursor(state.doc.resolve($divPos.pos));\n } \n }\n }\n \n\n // if we are at the top of the document then create a gap cursor\n if (!$head.nodeBefore && ($head.pos <= 2)) {\n return createGapCursor(state.doc.resolve($head.pos - 1));\n }\n \n return false;\n\n } else {\n return false;\n }\n\n \n };\n}\n\n\nfunction gapClickHandler(view: EditorView, event: Event): boolean {\n\n const schema = view.state.schema;\n const mouseEvent = event as MouseEvent;\n const clickPos = view.posAtCoords({ left: mouseEvent.clientX, top: mouseEvent.clientY } );\n\n if (clickPos) {\n\n // resolve click pos\n const $clickPos = view.state.doc.resolve(clickPos.pos); \n\n // create a gap cursor at the click position\n const createGapCursor = () => {\n // focus the view\n view.focus();\n \n // create the gap cursor\n const tr = view.state.tr;\n const cursor = new GapCursor($clickPos, $clickPos); \n tr.setSelection(cursor);\n view.dispatch(tr);\n \n // prevent default event handling\n event.preventDefault();\n event.stopImmediatePropagation();\n return false;\n };\n \n // handle clicks at the top of divs\n if (schema.nodes.div) {\n const div = findParentNodeOfTypeClosestToPos(\n view.state.doc.resolve(clickPos.pos), schema.nodes.div\n );\n if (div && div.pos === clickPos.inside) {\n const divNode = view.nodeDOM(div.start);\n if (divNode instanceof HTMLElement) {\n if (Math.abs(mouseEvent.clientX - divNode.getBoundingClientRect().left) < 150) {\n return createGapCursor();\n }\n }\n }\n }\n\n // handle clicks between certain block types that don't have a natural text cursor\n // for inserting additioanl content\n const blockRequiresGap = (node: ProsemirrorNode | null | undefined) => {\n if (node) {\n return node.type === schema.nodes.div ||\n node.type === schema.nodes.figure ||\n node.type === schema.nodes.table ||\n node.type === schema.nodes.horizontal_rule ||\n node.type === schema.nodes.code_block;\n } else {\n return false;\n }\n };\n if (!clickPos.inside) {\n if (blockRequiresGap($clickPos.nodeBefore) && blockRequiresGap($clickPos.nodeAfter)) {\n return createGapCursor();\n }\n }\n\n // handle clicks above body\n // Take this out for now b/c it was interfering with other mouse \n // gestures (e.g. clicking on attr editor). keyboard gestures still\n // work to get to the top of the body\n /*\n if ($clickPos.parent.type === schema.nodes.body &&\n $clickPos.start() === $clickPos.pos) {\n \n return createGapCursor();\n\n }\n */\n }\n\n return false;\n}\n\nexport default extension;\n","/*\n * clear_formatting.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\n\nimport { Extension } from '../api/extension';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { liftTarget } from 'prosemirror-transform';\n\n// marks included in clear formatting\nconst kFormattingMarks = ['code', 'em', 'underline', 'smallcaps', 'span', 'strikeout', 'strong', 'superscript', 'subscript'];\n\n// for nodes, all nodes with isTextblock === true will be converted to paragraph, and all\n// nodes in this list will be lifted\nconst kLiftFormattingNodes = ['blockquote', 'line_block', 'div', 'raw_block'];\n\nconst extension: Extension = {\n commands: () => {\n return [new ProsemirrorCommand(EditorCommandId.ClearFormatting, ['Mod-\\\\'], clearFormatting)];\n },\n};\n\nexport function clearFormatting(state: EditorState, dispatch?: (tr: Transaction) => void) {\n if (dispatch) {\n // create transaction\n const tr = state.tr;\n\n // alias schema and selection\n const schema = state.schema;\n const { from, to } = tr.selection;\n\n // clear formatting marks\n kFormattingMarks.forEach(markName => {\n const mark = state.schema.marks[markName];\n if (mark) {\n tr.removeMark(from, to, mark);\n }\n });\n tr.setStoredMarks([]);\n\n // lift / set nodes as required\n tr.doc.nodesBetween(from, to, (node: ProsemirrorNode, pos: number) => {\n // ignore paragraph and text nodes (already have 'cleared' formatting)\n if (node.type === schema.nodes.paragraph || node.type === schema.nodes.text) {\n return;\n }\n\n // pass recursively through list container nodes\n if (\n node.type === schema.nodes.bullet_list ||\n node.type === schema.nodes.ordered_list ||\n node.type === schema.nodes.definition_list ||\n node.type === schema.nodes.definition_list_term ||\n node.type === schema.nodes.definition_list_description\n ) {\n return;\n }\n\n // get node range (map positions)\n const fromPos = tr.doc.resolve(tr.mapping.map(pos + 1));\n const toPos = tr.doc.resolve(tr.mapping.map(pos + node.nodeSize - 1));\n const nodeRange = fromPos.blockRange(toPos);\n\n // process text blocks and blocks that can be lifted (e.g. blockquote)\n if (nodeRange) {\n if (node.type.isTextblock) {\n tr.setNodeMarkup(nodeRange.start, schema.nodes.paragraph);\n } else if (kLiftFormattingNodes.includes(node.type.name)) {\n const targetLiftDepth = liftTarget(nodeRange);\n if (targetLiftDepth || targetLiftDepth === 0) {\n tr.lift(nodeRange, targetLiftDepth);\n }\n }\n }\n });\n\n dispatch(tr);\n }\n\n return true;\n}\n\nexport default extension;\n","/*\n * smarty.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { ellipsis, InputRule } from 'prosemirror-inputrules';\nimport { Plugin, PluginKey, EditorState } from 'prosemirror-state';\nimport { Schema } from 'prosemirror-model';\n\nimport { Extension, extensionIfEnabled } from '../api/extension';\nimport { fancyQuotesToSimple } from '../api/quote';\n\nconst plugin = new PluginKey('smartypaste');\n\n// match enDash but only for lines that aren't an html comment\nconst enDash = new InputRule(/[^!-`]--$/, (state: EditorState, match: string[], start: number, end: number) => {\n const { parent, parentOffset } = state.selection.$head;\n const precedingText = parent.textBetween(0, parentOffset);\n if (precedingText.indexOf('$/;\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { options, ui } = context;\n\n return {\n marks: [\n {\n name: 'raw_html_comment',\n noInputRules: true,\n noSpelling: true,\n spec: {\n attrs: {\n editing: { default: false },\n format: { default: false },\n },\n inclusive: false,\n excludes: 'formatting',\n parseDOM: [\n {\n tag: \"span[class*='raw-html-comment']\",\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n return {\n editing: el.getAttribute('data-editing') === '1',\n format: el.getAttribute('data-format') === '1',\n };\n },\n },\n ],\n toDOM(mark: Mark) {\n const attr: any = {\n class:\n 'raw-html-comment pm-fixedwidth-font ' +\n (mark.attrs.editing ? 'pm-comment-color pm-comment-background-color' : 'pm-light-text-color') +\n (mark.attrs.format && options.hideFormatComment ? ' pm-comment-hidden' : ''),\n 'data-editing': mark.attrs.editing ? '1' : '0',\n 'data-format': mark.attrs.format ? '1' : '0',\n };\n return ['span', attr];\n },\n },\n pandoc: {\n readers: [],\n inlineHTMLReader: (schema: Schema, html: string, writer?: ProsemirrorWriter) => {\n const isComment = isHTMLComment(html);\n if (!isComment) {\n return false;\n }\n\n if (writer) {\n const mark = schema.marks.raw_html_comment.create(commentMarkAttribs(html));\n writer.openMark(mark);\n writer.writeText(html);\n writer.closeMark(mark);\n }\n\n return isComment;\n },\n writer: {\n priority: 1,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeRawMarkdown(parent);\n },\n },\n },\n },\n ],\n\n appendMarkTransaction: (schema: Schema) => {\n const markType = schema.marks.raw_html_comment;\n const kHTMLCommentMarkRegEx = new RegExp(kHTMLCommentRegEx.source, 'g');\n return [\n {\n name: 'html-editing-comment-marks',\n filter: (node: ProsemirrorNode) => node.isTextblock && node.type.allowsMarkType(markType),\n append: (tr: MarkTransaction, node: ProsemirrorNode, pos: number) => {\n removeInvalidatedMarks(tr, node, pos, kHTMLCommentRegEx, markType);\n detectAndApplyMarks(\n tr,\n tr.doc.nodeAt(pos)!,\n pos,\n kHTMLCommentMarkRegEx,\n markType,\n match => commentMarkAttribs(match[1]),\n () => true,\n match => match[1],\n );\n },\n },\n ];\n },\n\n // insert command\n commands: (schema: Schema) => {\n return [new InsertHTMLCommentCommand(schema, ui)];\n },\n };\n};\n\nexport class InsertHTMLCommentCommand extends ProsemirrorCommand {\n constructor(schema: Schema, ui: EditorUI) {\n super(\n EditorCommandId.HTMLComment,\n ['Shift-Mod-c'],\n (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // make sure we can insert a text node here\n if (!canInsertNode(state, schema.nodes.text)) {\n return false;\n }\n\n // make sure we can apply this mark here\n if (!toggleMarkType(schema.marks.raw_html)(state)) {\n return false;\n }\n\n // make sure the end of the selection (where we will insert the comment)\n // isn't already in a mark of this type\n if (state.doc.rangeHasMark(state.selection.to, state.selection.to + 1, schema.marks.raw_html)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n\n // set the selection to the end of the current selection (comment 'on' the selection)\n setTextSelection(tr.selection.to)(tr);\n\n // if we have a character right before us then insert a space\n const { parent, parentOffset } = tr.selection.$to;\n const charBefore = parent.textContent.slice(parentOffset - 1, parentOffset);\n if (charBefore.length && charBefore !== ' ') {\n tr.insertText(' ');\n }\n\n // insert the comment\n const comment = '';\n const mark = schema.marks.raw_html_comment.create({ editing: true });\n tr.insert(tr.selection.to, schema.text(comment, [mark]));\n\n // set the selection to the middle of the comment\n tr.setSelection(new TextSelection(tr.doc.resolve(tr.selection.to - (comment.length / 2 - 1))));\n\n // dispatch\n dispatch(tr);\n }\n\n return true;\n },\n {\n name: ui.context.translateText('Comment'),\n description: ui.context.translateText('Editing comment'),\n group: OmniInsertGroup.Content,\n priority: 3,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.comment_dark! : ui.images.omni_insert?.comment!),\n },\n );\n }\n}\n\nfunction commentMarkAttribs(comment: string) {\n return {\n editing: !!comment.match(kHTMLEditingCommentRegEx),\n format: !!matchPandocFormatComment(comment),\n };\n}\n\nexport default extension;\n","/*\n * shortcode.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Node as ProsemirrorNode, Mark, Fragment } from 'prosemirror-model';\nimport { Transaction } from 'prosemirror-state';\n\nimport { findChildren } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { detectAndApplyMarks, removeInvalidatedMarks } from '../api/mark';\nimport { MarkTransaction } from '../api/transaction';\nimport { FixupContext } from '../api/fixup';\nimport { kShortcodeRegEx } from '../api/shortcode';\nimport { PandocOutput } from '../api/pandoc';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { format } = context;\n\n if (!format.hugoExtensions.shortcodes) {\n return null;\n }\n\n return {\n marks: [\n {\n name: 'shortcode',\n noInputRules: true,\n noSpelling: true,\n spec: {\n inclusive: false,\n excludes: 'formatting',\n attrs: {},\n parseDOM: [\n {\n tag: \"span[class*='shortcode']\",\n },\n ],\n toDOM(_mark: Mark) {\n return ['span', { class: 'shortcode pm-markup-text-color pm-fixedwidth-font' }];\n },\n },\n pandoc: {\n readers: [],\n writer: {\n priority: 1,\n write: (output: PandocOutput, _mark: Mark, parent: Fragment) => {\n output.writeRawMarkdown(parent);\n },\n },\n },\n },\n ],\n\n fixups: (schema: Schema) => {\n return [\n (tr: Transaction, fixupContext: FixupContext) => {\n if (fixupContext === FixupContext.Load) {\n // apply marks\n const markType = schema.marks.shortcode;\n const predicate = (node: ProsemirrorNode) => {\n return node.isTextblock && node.type.allowsMarkType(markType);\n };\n const markTr = new MarkTransaction(tr);\n findChildren(tr.doc, predicate).forEach(nodeWithPos => {\n const { pos } = nodeWithPos;\n detectAndCreateShortcodes(schema, markTr, pos);\n });\n }\n return tr;\n },\n ];\n },\n\n appendMarkTransaction: (schema: Schema) => {\n return [\n {\n name: 'shortcode-marks',\n filter: (node: ProsemirrorNode) =>\n node.isTextblock && node.type.allowsMarkType(node.type.schema.marks.shortcode),\n append: (tr: MarkTransaction, node: ProsemirrorNode, pos: number) => {\n removeInvalidatedMarks(tr, node, pos, kShortcodeRegEx, node.type.schema.marks.shortcode);\n detectAndCreateShortcodes(node.type.schema, tr, pos);\n },\n },\n ];\n },\n };\n};\n\nfunction detectAndCreateShortcodes(schema: Schema, tr: MarkTransaction, pos: number) {\n // apply marks wherever they belong\n detectAndApplyMarks(\n tr,\n tr.doc.nodeAt(pos)!,\n pos,\n kShortcodeRegEx,\n schema.marks.shortcode,\n () => ({}),\n () => true,\n match => match[1],\n );\n}\n\nexport default extension;\n","/*\n * footnote.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, Fragment, NodeType, DOMOutputSpec } from 'prosemirror-model';\nimport { Plugin, PluginKey, EditorState, Transaction, TextSelection, Selection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport {\n findChildrenByType,\n findParentNodeOfType,\n findSelectedNodeOfType,\n NodeWithPos,\n findChildren,\n} from 'prosemirror-utils';\n\nimport { ExtensionContext } from '../../api/extension';\nimport { uuidv4 } from '../../api/util';\nimport { PandocOutput, PandocTokenType, ProsemirrorWriter, PandocToken } from '../../api/pandoc';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { canInsertNode } from '../../api/node';\nimport { EditorUI } from '../../api/ui';\nimport { OmniInsertGroup } from '../../api/omni_insert';\n\nimport {\n footnoteEditorKeyDownHandler,\n footnoteEditorActivationPlugin,\n footnoteEditorNodeViews,\n} from './footnote-editor';\nimport {\n footnoteAppendTransaction,\n footnoteFilterTransaction,\n footnoteSelectNoteAppendTransaction,\n} from './footnote-transaction';\n\nimport './footnote-styles.css';\n\nconst plugin = new PluginKey('footnote');\n\nconst extension = (context: ExtensionContext) => {\n const { pandocExtensions, ui } = context;\n\n if (!pandocExtensions.footnotes) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'footnote',\n spec: {\n inline: true,\n attrs: {\n number: { default: 1 },\n ref: {},\n content: { default: '' },\n },\n group: 'inline',\n // atom: true,\n parseDOM: [\n {\n tag: \"span[class*='footnote']\",\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n return {\n ref: el.getAttribute('data-ref'),\n content: el.getAttribute('data-content'),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n return [\n 'span',\n { class: 'footnote pm-footnote', 'data-ref': node.attrs.ref, 'data-content': node.attrs.content },\n node.attrs.number.toString(),\n ];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Note,\n handler: writePandocNote,\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeNote(node);\n },\n },\n },\n ],\n\n appendTransaction: (_schema: Schema) => {\n return [footnoteAppendTransaction()];\n },\n\n plugins: (_schema: Schema) => {\n return [\n footnoteEditorActivationPlugin(),\n\n new Plugin({\n key: plugin,\n\n // footnote editor\n props: {\n handleKeyDown: footnoteEditorKeyDownHandler(),\n nodeViews: footnoteEditorNodeViews(),\n },\n\n // footnote transactions (fixups, etc.)\n filterTransaction: footnoteFilterTransaction(),\n appendTransaction: footnoteSelectNoteAppendTransaction(),\n }),\n ];\n },\n\n commands: () => {\n return [\n new ProsemirrorCommand(EditorCommandId.Footnote, ['Shift-Mod-F7'], footnoteCommandFn(), footnoteOmniInsert(ui)),\n ];\n },\n };\n};\n\nfunction writePandocNote(schema: Schema) {\n return (writer: ProsemirrorWriter, tok: PandocToken) => {\n // generate unique id\n const ref = uuidv4();\n\n // add note to notes collection (will be handled specially by closeNode b/c it\n // has schema.nodes.node type)\n writer.openNoteNode(ref);\n writer.writeTokens(tok.c);\n const noteNode = writer.closeNode();\n\n // store json version of node in an attribute of the footnote (we can copy/paste)\n // between different documents\n const content = JSON.stringify(noteNode.content.toJSON());\n\n // add inline node to the body\n writer.addNode(schema.nodes.footnote, { ref, number: noteNode.attrs.number, content }, []);\n };\n}\n\nfunction footnoteCommandFn() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (!canInsertFootnote(state)) {\n return false;\n }\n if (dispatch) {\n const tr = state.tr;\n insertFootnote(tr);\n dispatch(tr);\n }\n return true;\n };\n}\n\nfunction footnoteOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Footnote'),\n description: ui.context.translateText('Note placed at the bottom of the page'),\n group: OmniInsertGroup.References,\n priority: 2,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.footnote_dark! : ui.images.omni_insert?.footnote!),\n };\n}\n\nfunction canInsertFootnote(state: EditorState) {\n return (\n canInsertNode(state, state.schema.nodes.footnote) && !findParentNodeOfType(state.schema.nodes.note)(state.selection)\n );\n}\n\nfunction insertFootnote(\n tr: Transaction,\n edit = true,\n content?: Fragment | ProsemirrorNode | ProsemirrorNode[] | undefined,\n): string {\n // resolve content\n const schema = tr.doc.type.schema;\n if (!content) {\n content = schema.nodes.paragraph.create();\n }\n\n // generate note id\n const ref = uuidv4();\n\n // insert empty note\n const notes = findChildrenByType(tr.doc, schema.nodes.notes, true)[0];\n const note = schema.nodes.note.createAndFill({ ref }, content);\n tr.insert(notes.pos + 1, note as ProsemirrorNode);\n\n // insert footnote linked to note\n const footnote = schema.nodes.footnote.create({ ref });\n tr.replaceSelectionWith(footnote, false);\n\n // open note editor\n if (edit) {\n const noteNode = findNoteNode(tr.doc, ref);\n if (noteNode) {\n tr.setSelection(TextSelection.create(tr.doc, noteNode.pos + 1));\n }\n }\n\n // return ref\n return ref;\n}\n\nexport function selectedFootnote(selection: Selection): NodeWithPos | undefined {\n const schema = selection.$head.node().type.schema;\n return findSelectedNodeOfType(schema.nodes.footnote)(selection);\n}\n\nexport function selectedNote(selection: Selection): NodeWithPos | undefined {\n const schema = selection.$head.node().type.schema;\n return findParentNodeOfType(schema.nodes.note)(selection);\n}\n\nexport function findNoteNode(doc: ProsemirrorNode, ref: string): NodeWithPos | undefined {\n return findNodeOfTypeWithRef(doc, doc.type.schema.nodes.note, ref);\n}\n\nexport function findFootnoteNode(doc: ProsemirrorNode, ref: string): NodeWithPos | undefined {\n return findNodeOfTypeWithRef(doc, doc.type.schema.nodes.footnote, ref);\n}\n\nfunction findNodeOfTypeWithRef(doc: ProsemirrorNode, type: NodeType, ref: string): NodeWithPos | undefined {\n const foundNode = findChildren(doc, node => node.type === type && node.attrs.ref === ref, true);\n if (foundNode.length) {\n return foundNode[0];\n } else {\n return undefined;\n }\n}\n\nexport default extension;\n","/*\n * shortcode.ts\n *\n * Copyright (C) 2019-20 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport const kShortcodePattern = '(?:^|[^`])({{([%<])\\\\s+.*?[%>]}})';\nexport const kShortcodeRegEx = new RegExp(kShortcodePattern, 'g');\n","/*\n * footnote-editor.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView, DecorationSet, NodeView } from 'prosemirror-view';\nimport { findParentNodeOfType, NodeWithPos, findChildrenByType, findChildren } from 'prosemirror-utils';\nimport { EditorState, TextSelection, Plugin, PluginKey, Transaction } from 'prosemirror-state';\n\nimport { nodeDecoration } from '../../api/decoration';\nimport { firstNode, lastNode } from '../../api/node';\nimport { selectionIsWithin } from '../../api/selection';\nimport { scrollIntoView } from '../../api/scroll';\n\nimport { findFootnoteNode, selectedFootnote, selectedNote } from './footnote';\n\nconst key = new PluginKey('footnote-editor-activate');\n\nexport function footnoteEditorActivationPlugin() {\n return new Plugin({\n key,\n state: {\n init(_config: { [key: string]: any }, instance: EditorState) {\n return DecorationSet.empty;\n },\n\n // whenever an edit affecting this mark type occurs then update the decorations\n apply(tr: Transaction, set: DecorationSet, oldState: EditorState, newState: EditorState) {\n if (selectedFootnote(newState.selection) || selectedNote(newState.selection)) {\n // if we are in the same note selection as before just return the set\n if (oldState.selection.$head.node() === newState.selection.$head.node()) {\n return set.map(tr.mapping, tr.doc);\n } else {\n return footnoteEditorDecorations(newState);\n }\n } else {\n return DecorationSet.empty;\n }\n },\n },\n props: {\n decorations(state: EditorState) {\n return key.getState(state);\n },\n },\n\n view: () => ({\n // scroll footnote into view (if necessary) when note editor is active\n update: (view: EditorView) => {\n const note = selectedNote(view.state.selection);\n if (note) {\n const footnote = findFootnoteNode(view.state.doc, note.node.attrs.ref);\n if (footnote) {\n scrollIntoView(view, footnote.pos, false, 0, 30);\n }\n }\n },\n }),\n });\n}\n\n// selection-driven decorations (mostly css classes) required to activate the footnote editor\nfunction footnoteEditorDecorations(state: EditorState) {\n const schema = state.schema;\n\n // see if either a footnote node or note (footnote editor) node has the selection\n let footnoteNode = selectedFootnote(state.selection);\n let noteNode = selectedNote(state.selection);\n\n // if they do then we need to enable footnote editing/behavior by\n // using decorators to inject appropriate css classes\n if (footnoteNode || noteNode) {\n // get body and notes nodes\n const bodyNode = findChildrenByType(state.doc, schema.nodes.body)[0];\n const notesNode = findChildrenByType(state.doc, schema.nodes.notes)[0];\n\n // resolve the specific footnote node or specific note node\n if (footnoteNode) {\n const ref = footnoteNode.node.attrs.ref;\n const matching = findChildren(notesNode.node, node => node.attrs.ref === ref);\n if (matching.length) {\n noteNode = matching[0];\n noteNode.pos = notesNode.pos + 1 + noteNode.pos;\n }\n } else if (noteNode) {\n const ref = noteNode.node.attrs.ref;\n const matching = findChildren(\n state.doc,\n node => node.type === schema.nodes.footnote && node.attrs.ref === ref,\n true,\n );\n if (matching.length) {\n footnoteNode = matching[0];\n }\n }\n\n if (footnoteNode && noteNode) {\n return DecorationSet.create(state.doc, [\n // make notes node visible\n nodeDecoration(noteNode, { class: 'active' }),\n\n // paint outline over footnote\n nodeDecoration(footnoteNode, { class: 'active pm-selected-node-outline-color' }),\n\n // position body and notes nodes for footnote editing\n nodeDecoration(bodyNode, { class: 'editing-footnote pm-pane-border-color' }),\n nodeDecoration(notesNode, { class: 'editing-footnote pm-pane-border-color' }),\n ]);\n } else {\n return DecorationSet.empty;\n }\n } else {\n return DecorationSet.empty;\n }\n}\n\n// node view that display the note number alongside the note content\nexport function footnoteEditorNodeViews() {\n return {\n note(node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) {\n return new NoteEditorView(node, view, getPos as () => number);\n },\n };\n}\n\nclass NoteEditorView implements NodeView {\n public readonly dom: HTMLElement;\n public readonly contentDOM: HTMLElement;\n\n private readonly node: ProsemirrorNode;\n private readonly view: EditorView;\n private readonly getPos: () => number;\n\n constructor(node: ProsemirrorNode, view: EditorView, getPos: () => number) {\n this.node = node;\n this.view = view;\n this.getPos = getPos;\n\n this.dom = window.document.createElement('div');\n this.dom.setAttribute('data-ref', this.node.attrs.ref);\n this.dom.classList.add('note');\n\n const label = window.document.createElement('div');\n label.classList.add('note-label');\n label.contentEditable = 'false';\n label.innerHTML = `

${this.node.attrs.number}:

`;\n this.dom.appendChild(label);\n\n const content = window.document.createElement('div');\n content.classList.add('note-content');\n this.contentDOM = content;\n this.dom.appendChild(content);\n }\n}\n\n// custom handling for arrow keys that cause selection to escape the editor\nexport function footnoteEditorKeyDownHandler() {\n return (view: EditorView, event: KeyboardEvent) => {\n // alias schema & selection\n const schema = view.state.schema;\n const selection = view.state.selection;\n\n // pass if the selection isn't in a note\n const noteNode: NodeWithPos | undefined = findParentNodeOfType(schema.nodes.note)(selection);\n if (!noteNode) {\n return false;\n }\n\n // function to find and move selection to associated footnote\n // will call this from Escape, ArrowLeft, and ArrowUp handlers below\n const selectFootnote = (before = true) => {\n const footnoteNode = findFootnoteNode(view.state.doc, noteNode.node.attrs.ref);\n if (footnoteNode) {\n const tr = view.state.tr;\n tr.setSelection(TextSelection.near(tr.doc.resolve(footnoteNode.pos + (before ? 0 : 1))));\n view.dispatch(tr);\n }\n };\n\n // if this is the Escape key then close the editor\n if (event.key === 'Escape') {\n selectFootnote();\n return true;\n }\n\n // ...otherwise check to see if the user is attempting to arrow out of the footnote\n\n // get first and last text block nodes (bail if we aren't in either)\n const firstTextBlock = firstNode(noteNode, node => node.isTextblock);\n const lastTextBlock = lastNode(noteNode, node => node.isTextblock);\n if (!firstTextBlock && !lastTextBlock) {\n return false;\n }\n\n // exiting from first text block w/ left or up arrow?\n if (firstTextBlock) {\n if (selectionIsWithin(selection, firstTextBlock)) {\n switch (event.key) {\n case 'ArrowLeft':\n if (selection.anchor === firstTextBlock.pos + 1) {\n selectFootnote(true);\n return true;\n }\n break;\n case 'ArrowUp': {\n if (view.endOfTextblock('up')) {\n selectFootnote(true);\n return true;\n }\n break;\n }\n }\n }\n }\n\n // exiting from last text block with right or down arrow?\n if (lastTextBlock) {\n if (selectionIsWithin(selection, lastTextBlock)) {\n switch (event.key) {\n case 'ArrowRight':\n if (selection.anchor === lastTextBlock.pos + lastTextBlock.node.nodeSize - 1) {\n selectFootnote(false);\n return true;\n }\n break;\n case 'ArrowDown': {\n if (view.endOfTextblock('down')) {\n selectFootnote(false);\n return true;\n }\n break;\n }\n }\n }\n }\n\n return false;\n };\n}\n","/*\n * footnote-transaction.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Fragment, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Transaction, EditorState, TextSelection } from 'prosemirror-state';\nimport {\n findChildrenByType,\n NodeWithPos,\n findSelectedNodeOfType,\n ContentNodeWithPos,\n findParentNodeOfType,\n} from 'prosemirror-utils';\nimport { Transform } from 'prosemirror-transform';\n\nimport { uuidv4 } from '../../api/util';\n\nimport { findNoteNode, selectedNote } from './footnote';\nimport { trTransform } from '../../api/transaction';\n\n// examine transactions and filter out attempts to place foonotes within note bodies\n// (this is not allowed by pandoc markdown)\nexport function footnoteFilterTransaction() {\n return (tr: Transaction, state: EditorState) => {\n const noteWithPos = selectedNote(tr.selection);\n if (noteWithPos && findChildrenByType(noteWithPos.node, state.schema.nodes.footnote).length) {\n return false;\n }\n return true;\n };\n}\n\n// examine editor transactions and append a transaction that handles fixup of footnote numbers,\n// importing of pasted footnotes, selection propagation to the footnote editor, etc.\nexport function footnoteAppendTransaction() {\n const footnoteChange = (node: ProsemirrorNode) => {\n const schema = node.type.schema;\n return node.type === schema.nodes.footnote || node.type === schema.nodes.note;\n };\n\n return {\n name: 'footnote-renumber',\n nodeFilter: footnoteChange,\n append: (tr: Transaction) => {\n const schema = tr.doc.type.schema;\n const activeNote = findParentNodeOfType(schema.nodes.note)(tr.selection);\n trTransform(tr, footnoteFixupTransform(activeNote));\n },\n };\n}\n\nfunction footnoteFixupTransform(activeNote: ContentNodeWithPos | undefined) {\n return (tr: Transform) => {\n // query for notes and footnotes. note that since these are computed at the beginning\n // before any steps are applied, we always need to map their positions before using them\n const schema = tr.doc.type.schema;\n const footnotes = findAllFootnotes(tr.doc);\n const allNotes = findAllNotes(tr.doc);\n\n // iterate through footnotes in the newState\n const refs = new Set();\n footnotes.forEach((footnote, index) => {\n // map position\n footnote.pos = tr.mapping.map(footnote.pos);\n\n // footnote number\n const number = index + 1;\n\n // alias ref and content (either or both may be updated)\n let { ref, content } = footnote.node.attrs;\n\n // we may be creating a new note to append\n let newNote: any;\n\n // get reference to note (if any)\n const note = allNotes.find(noteWithPos => noteWithPos.node.attrs.ref === ref);\n\n // matching note found\n if (note) {\n // map position since we scanned for all of the notes at the top and we may\n // have called tr.insert for a new note below which would have invalidated\n // the positions\n note.pos = tr.mapping.map(note.pos);\n\n // update content if this is a note edit (used to propagate user edits back to data-content)\n if (activeNote && activeNote.node.attrs.ref === ref) {\n content = JSON.stringify(note.node.content.toJSON());\n }\n\n // if we've already processed this ref then it's a duplicate, make a copy w/ a new ref/id\n if (refs.has(ref)) {\n // create a new unique id and change the ref to it\n ref = uuidv4();\n\n // create and insert new note with this id\n newNote = schema.nodes.note.createAndFill({ ref, number }, note.node.content);\n\n // otherwise update the note with the correct number (if necessary)\n } else {\n if (note.node.attrs.number !== number) {\n tr.setNodeMarkup(note.pos, schema.nodes.note, {\n ...note.node.attrs,\n number,\n });\n }\n }\n\n // if there is no note then create one using the content attr\n // (this can happen for a copy/paste operation from another document)\n } else if (content) {\n newNote = schema.nodes.note.createAndFill({ ref, number }, Fragment.fromJSON(schema, JSON.parse(content)));\n }\n\n // insert newNote if necessary\n if (newNote) {\n const notesContainer = findNotesContainer(tr.doc);\n tr.insert(notesContainer.pos + 1, newNote as ProsemirrorNode);\n }\n\n // indicate that we've seen this ref\n refs.add(ref);\n\n // set new footnote markup if necessary\n const attrs = footnote.node.attrs;\n if (ref !== attrs.ref || content !== attrs.content || number !== attrs.number) {\n tr.setNodeMarkup(footnote.pos, schema.nodes.footnote, {\n ...footnote.node.attrs,\n ref,\n content,\n number,\n });\n }\n });\n\n // remove ophraned notes\n for (let i = allNotes.length - 1; i >= 0; i--) {\n const note = allNotes[i];\n note.pos = tr.mapping.map(note.pos);\n const footnote = footnotes.find(fn => fn.node.attrs.ref === note.node.attrs.ref);\n if (!footnote) {\n tr.delete(note.pos, note.pos + note.node.nodeSize);\n }\n }\n };\n}\n\nexport function footnoteSelectNoteAppendTransaction() {\n return (_transactions: Transaction[], _oldState: EditorState, newState: EditorState) => {\n const schema = newState.schema;\n const footnoteNode: NodeWithPos | undefined = findSelectedNodeOfType(schema.nodes.footnote)(newState.selection);\n if (footnoteNode) {\n const tr = newState.tr;\n const ref = footnoteNode.node.attrs.ref;\n const noteNode = findNoteNode(tr.doc, ref);\n if (noteNode) {\n tr.setSelection(TextSelection.near(tr.doc.resolve(noteNode.pos)));\n }\n return tr;\n }\n };\n}\n\nfunction findAllFootnotes(doc: ProsemirrorNode) {\n const schema = doc.type.schema;\n return findChildrenByType(doc, schema.nodes.footnote, true);\n}\n\nfunction findAllNotes(doc: ProsemirrorNode) {\n const schema = doc.type.schema;\n const notesContainer = findNotesContainer(doc);\n const offset = notesContainer.pos + 1;\n const notes = findChildrenByType(notesContainer.node, schema.nodes.note, false);\n return notes.map(note => ({ ...note, pos: note.pos + offset }));\n}\n\nfunction findNotesContainer(doc: ProsemirrorNode) {\n return findChildrenByType(doc, doc.type.schema.nodes.notes, false)[0];\n}\n","/*\n * raw_block.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, NodeType } from 'prosemirror-model';\n\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { setBlockType } from 'prosemirror-commands';\n\nimport { findParentNode } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../api/extension';\n\nimport {\n PandocOutput,\n PandocToken,\n PandocTokenType,\n ProsemirrorWriter,\n kRawBlockContent,\n kRawBlockFormat,\n} from '../api/pandoc';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\n\nimport { EditorUI } from '../api/ui';\nimport { isSingleLineHTML } from '../api/html';\nimport { kHTMLFormat, kTexFormat, editRawBlockCommand, isRawHTMLFormat } from '../api/raw';\nimport { OmniInsert, OmniInsertGroup } from '../api/omni_insert';\nimport { kRawInlineFormat, kRawInlineContent } from '../marks/raw_inline/raw_inline';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { pandocExtensions, pandocCapabilities, ui } = context;\n\n const rawAttribute = pandocExtensions.raw_attribute;\n\n return {\n nodes: [\n {\n name: 'raw_block',\n spec: {\n content: 'text*',\n group: 'block',\n marks: '',\n code: true,\n defining: true,\n isolating: true,\n attrs: {\n format: {},\n },\n parseDOM: [\n {\n tag: \"div[class*='raw-block']\",\n preserveWhitespace: 'full',\n getAttrs: (node: Node | string) => {\n const el = node as Element;\n return {\n format: el.getAttribute('data-format'),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return [\n 'div',\n {\n class: 'raw-block pm-fixedwidth-font pm-code-block pm-markup-text-color',\n 'data-format': node.attrs.format,\n },\n 0,\n ];\n },\n },\n\n code_view: {\n lang: (node: ProsemirrorNode) => {\n return node.attrs.format;\n },\n attrEditFn: rawAttribute ? editRawBlockCommand(ui, pandocCapabilities.output_formats) : undefined,\n borderColorClass: 'pm-raw-block-border',\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.raw_block,\n tags: (node: ProsemirrorNode) => [node.attrs.format],\n editFn: rawAttribute\n ? () => editRawBlockCommand(ui, pandocCapabilities.output_formats)\n : () => (state: EditorState) => false,\n }),\n\n pandoc: {\n readers: [\n {\n token: PandocTokenType.RawBlock,\n block: 'raw_block',\n },\n ],\n\n // ensure that usethis badges comment ends up in it's own block\n preprocessor: (markdown: string) => {\n return markdown.replace(/([^\\n])(\\n^$)/gm, (_match, p1, p2) => {\n return p1 + '\\n' + p2;\n });\n },\n\n // we define a custom blockReader here so that we can convert html and tex blocks with\n // a single line of code into paragraph with a raw inline\n blockReader: (schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) => {\n if (tok.t === PandocTokenType.RawBlock) {\n readPandocRawBlock(schema, tok, writer);\n return true;\n } else if (isParagraphWrappingMultilineRaw(tok)) {\n const rawTok = tok.c[0];\n const format = rawTok.c[kRawBlockFormat];\n const content = rawTok.c[kRawBlockContent];\n writer.addNode(schema.nodes.raw_block, { format }, [schema.text(content)]);\n return true;\n } else if (isParagraphWrappingLatexBeginOrEnd(tok)) {\n writer.addNode(schema.nodes.raw_block, { format: kTexFormat }, [schema.text(tok.c[0].c)]);\n return true;\n } else if (isParagraphWrappingRawLatexBeginOrEnd(tok)) {\n writer.addNode(schema.nodes.raw_block, { format: kTexFormat }, [schema.text(tok.c[0].c[kRawInlineContent])]);\n return true;\n } else {\n return false;\n }\n },\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n if (!pandocExtensions.raw_attribute || node.textContent.trim() === '') {\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(node.textContent);\n });\n\n // raw block with embedded ``` (e.g. a commented out Rmd code chunk) needs\n // extra backticks on the outside to prevent the rmd chunk end backticks\n // from being considered the end of the raw html block.\n } else if (node.textContent.includes(\"\\n```\")) {\n // find the ``` standing by itself on a line\n const matches: RegExpExecArray[] = [];\n const embeddedTickRegEx = /\\n(`{3,})\\s*?\\n/g;\n embeddedTickRegEx.lastIndex = 0;\n let match: RegExpExecArray | null = null;\n // tslint:disable-next-line no-conditional-assignment\n while (match = embeddedTickRegEx.exec(node.textContent)) {\n matches.push(match);\n }\n embeddedTickRegEx.lastIndex = 0;\n const matchRev = matches.reverse();\n const ticks = (matchRev.length > 0 ? matchRev[0][1] : \"```\") + \"`\";\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(`${ticks}{=${node.attrs.format}}\\n${node.textContent}\\n${ticks}\\n`);\n });\n } else {\n output.writeToken(PandocTokenType.RawBlock, () => {\n output.write(node.attrs.format);\n output.write(node.textContent);\n });\n }\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n const commands: ProsemirrorCommand[] = [];\n\n commands.push(\n new FormatRawBlockCommand(EditorCommandId.HTMLBlock, kHTMLFormat, schema.nodes.raw_block, {\n name: ui.context.translateText('HTML Block'),\n description: ui.context.translateText('Raw HTML content'),\n group: OmniInsertGroup.Blocks,\n priority: 6,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.html_block_dark! : ui.images.omni_insert?.html_block!,\n }),\n );\n\n if (pandocExtensions.raw_tex) {\n commands.push(\n new FormatRawBlockCommand(EditorCommandId.TexBlock, kTexFormat, schema.nodes.raw_block, {\n name: ui.context.translateText('TeX Block'),\n description: ui.context.translateText('Raw TeX content'),\n group: OmniInsertGroup.Blocks,\n priority: 5,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.tex_block_dark! : ui.images.omni_insert?.tex_block!,\n }),\n );\n }\n\n if (rawAttribute) {\n commands.push(new RawBlockCommand(ui, pandocCapabilities.output_formats));\n }\n\n return commands;\n },\n };\n};\n\nfunction readPandocRawBlock(schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) {\n // single lines of html should be read as inline html (allows for\n // highlighting and more seamless editing experience)\n const format = tok.c[kRawBlockFormat];\n const text = tok.c[kRawBlockContent] as string;\n const textTrimmed = text.trimRight();\n if (isRawHTMLFormat(format) && isSingleLineHTML(textTrimmed) && writer.hasInlineHTMLWriter(textTrimmed)) {\n writer.openNode(schema.nodes.paragraph, {});\n writer.writeInlineHTML(textTrimmed);\n writer.closeNode();\n\n // similarly, single lines of tex (that aren't begin or end) should be read as inline tex\n } else if (format === kTexFormat && readAsInlineTex(textTrimmed)) {\n writer.openNode(schema.nodes.paragraph, {});\n const rawTexMark = schema.marks.raw_tex.create();\n writer.openMark(rawTexMark);\n writer.writeText(textTrimmed);\n writer.closeMark(rawTexMark);\n writer.closeNode();\n } else {\n writer.openNode(schema.nodes.raw_block, { format });\n writer.writeText(text);\n writer.closeNode();\n }\n}\n\n\nexport function readAsInlineTex(tex: string) {\n tex = tex.trimRight();\n if (tex.split('\\n').length === 1){\n return !isLatexBeginOrEnd(tex);\n } else {\n return false;\n }\n}\n\nfunction isParagraphWrappingMultilineRaw(tok: PandocToken) {\n return isSingleChildParagraph(tok) && \n tok.c[0].t === PandocTokenType.RawInline &&\n isMultilineString(tok.c[0].c[kRawBlockContent]);\n}\n\nfunction isParagraphWrappingLatexBeginOrEnd(tok: PandocToken) {\n return isSingleChildParagraph(tok) &&\n tok.c[0].t === PandocTokenType.Str &&\n isLatexBeginOrEnd(tok.c[0].c);\n}\n\nfunction isParagraphWrappingRawLatexBeginOrEnd(tok: PandocToken) {\n return isSingleChildParagraph(tok) &&\n (tok.c[0].t === PandocTokenType.RawInline &&\n tok.c[0].c[kRawInlineFormat] === kTexFormat &&\n isLatexBeginOrEnd(tok.c[0].c[kRawInlineContent]));\n}\n\nfunction isLatexBeginOrEnd(str: string) {\n return str && str.trimLeft().match(/\\\\(begin|end)/);\n}\n\nfunction isSingleChildParagraph(tok: PandocToken) {\n return tok.t === PandocTokenType.Para && tok.c && tok.c.length === 1;\n}\n\nfunction isMultilineString(str: string) {\n return str.indexOf('\\n') !== -1;\n}\n\n// base class for format specific raw block commands (e.g. html/tex)\nclass FormatRawBlockCommand extends ProsemirrorCommand {\n private format: string;\n private nodeType: NodeType;\n\n constructor(id: EditorCommandId, format: string, nodeType: NodeType, omniInsert?: OmniInsert) {\n super(\n id,\n [],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (!this.isActive(state) && !setBlockType(this.nodeType, { format })(state)) {\n return false;\n }\n\n if (dispatch) {\n const schema = state.schema;\n if (this.isActive(state)) {\n setBlockType(schema.nodes.paragraph)(state, dispatch);\n } else {\n setBlockType(this.nodeType, { format })(state, dispatch);\n }\n }\n\n return true;\n },\n omniInsert,\n );\n this.format = format;\n this.nodeType = nodeType;\n }\n\n public isActive(state: EditorState) {\n return !!findParentNode(node => node.type === this.nodeType && node.attrs.format === this.format)(state.selection);\n }\n}\n\n// generic raw block command (shows dialog to allow choosing from among raw formats)\nclass RawBlockCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI, outputFormats: string[]) {\n super(EditorCommandId.RawBlock, [], editRawBlockCommand(ui, outputFormats), {\n name: ui.context.translateText('Raw Block...'),\n description: ui.context.translateText('Raw content block'),\n group: OmniInsertGroup.Blocks,\n priority: 4,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.raw_block_dark! : ui.images.omni_insert?.raw_block!),\n });\n }\n}\n\nexport default extension;\n","/*\n * yaml_metadata.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, DOMOutputSpec, ParseRule } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { ExtensionContext, Extension } from '../../api/extension';\nimport { PandocOutput, PandocTokenType } from '../../api/pandoc';\nimport { EditorUI } from '../../api/ui';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { canInsertNode } from '../../api/node';\nimport { codeNodeSpec } from '../../api/code';\nimport { selectionIsBodyTopLevel } from '../../api/selection';\nimport { yamlMetadataTitlePlugin } from './yaml_metadata-title';\nimport { yamlMetadataBlockCapsuleFilter } from './yaml_metadata-capsule';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { fragmentText } from '../../api/fragment';\nimport { stripYamlDelimeters } from '../../api/yaml';\n\nconst extension = (context: ExtensionContext): Extension => {\n const { ui } = context;\n\n return {\n nodes: [\n {\n name: 'yaml_metadata',\n\n spec: {\n ...codeNodeSpec(),\n attrs: {\n navigation_id: { default: null },\n },\n parseDOM: [\n {\n tag: \"div[class*='yaml-block']\",\n preserveWhitespace: 'full',\n } as ParseRule,\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n return ['div', { class: 'yaml-block pm-code-block' }, 0];\n },\n },\n\n code_view: {\n lang: () => 'yaml-frontmatter',\n classes: ['pm-metadata-background-color', 'pm-yaml-metadata-block'],\n },\n\n pandoc: {\n blockCapsuleFilter: yamlMetadataBlockCapsuleFilter(),\n\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n const yaml = '---\\n' + stripYamlDelimeters(fragmentText(node.content)) + '\\n---';\n output.writeRawMarkdown(yaml);\n });\n },\n },\n },\n ],\n\n commands: () => {\n return [new YamlMetadataCommand(ui)];\n },\n\n plugins: () => [yamlMetadataTitlePlugin()],\n };\n};\n\nclass YamlMetadataCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI) {\n super(\n EditorCommandId.YamlMetadata,\n [],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (!canInsertNode(state, schema.nodes.yaml_metadata)) {\n return false;\n }\n\n // only allow inserting at the top level\n if (!selectionIsBodyTopLevel(state.selection)) {\n return false;\n }\n\n // create yaml metadata text\n if (dispatch) {\n const tr = state.tr;\n const kYamlLeading = '---\\n';\n const kYamlTrailing = '\\n---';\n const yamlText = schema.text(kYamlLeading + kYamlTrailing);\n const yamlNode = schema.nodes.yaml_metadata.create({}, yamlText);\n tr.replaceSelectionWith(yamlNode);\n setTextSelection(tr.mapping.map(state.selection.from) - kYamlTrailing.length - 1)(tr);\n dispatch(tr);\n }\n\n return true;\n },\n {\n name: ui.context.translateText('YAML'),\n description: ui.context.translateText('YAML metadata block'),\n group: OmniInsertGroup.Blocks,\n priority: 3,\n selectionOffset: -4,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.yaml_block_dark! : ui.images.omni_insert?.yaml_block!,\n },\n );\n }\n}\n\nexport default extension;\n","/*\n * yaml_metadata-capsule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\n\nimport { ProsemirrorWriter } from '../../api/pandoc';\nimport { uuidv4 } from '../../api/util';\nimport {\n encodedBlockCapsuleRegex,\n blockCapsuleSourceWithoutPrefix,\n PandocBlockCapsule,\n blockCapsuleParagraphTokenHandler,\n blockCapsuleTextHandler,\n} from '../../api/pandoc_capsule';\n\nconst kYamlBlocksRegex = /(^)(---[ \\t]*\\n(?![ \\t]*\\n)[\\W\\w]*?\\n(?:---|\\.\\.\\.))([ \\t]*)$/gm;\n\nconst kYamlDiscardRegex = /^([\\t >]*)`{3,}/m;\n\nexport function yamlMetadataBlockCapsuleFilter() {\n const kYamlMetadataCapsuleType = 'E1819605-0ACD-4FAE-8B99-9C1B7BD7C0F1'.toLowerCase();\n\n return {\n type: kYamlMetadataCapsuleType,\n\n match: kYamlBlocksRegex,\n\n // if there was an unterminated yaml block inside a code block (followed by more yaml,\n // perhaps in yet another code block) then the main regex eats the code block boundary.\n // provide a discard expression that excludes any yaml block that has what appears\n // to be a fenced code block boundary\n discard: kYamlDiscardRegex,\n\n // add a newline to ensure that if the metadata block has text right\n // below it we still end up in our own pandoc paragarph block\n enclose: (capsuleText: string) => capsuleText + '\\n',\n // globally replace any instances of our block capsule found in text\n handleText: blockCapsuleTextHandler(\n kYamlMetadataCapsuleType,\n encodedBlockCapsuleRegex(undefined, '\\\\n', 'gm'),\n (text: string) => text.substring(0, text.length - 1), // trim off newline\n ),\n\n // we are looking for a paragraph token consisting entirely of a\n // block capsule of our type. if find that then return the block\n // capsule text\n handleToken: blockCapsuleParagraphTokenHandler(kYamlMetadataCapsuleType),\n\n // write as yaml_metadata\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n writer.openNode(schema.nodes.yaml_metadata, {\n navigation_id: uuidv4(),\n md_index: capsule.position,\n });\n // write the lines w/o the source-level prefix\n writer.writeText(blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix));\n writer.closeNode();\n },\n };\n}\n","/*\n * rmd_chunk.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\n\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { PandocOutput, PandocTokenType } from '../../api/pandoc';\n\nimport { codeNodeSpec } from '../../api/code';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\n\nimport { EditorUI } from '../../api/ui';\nimport { kBookdownDocType } from '../../api/format';\nimport { rmdChunk, insertRmdChunk } from '../../api/rmd';\nimport { OmniInsertGroup } from '../../api/omni_insert';\n\nimport { RmdChunkImagePreviewPlugin } from './rmd_chunk-image';\nimport { rmdChunkBlockCapsuleFilter } from './rmd_chunk-capsule';\n\nimport './rmd_chunk-styles.css';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { ui, options, format } = context;\n\n if (!format.rmdExtensions.codeChunks) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'rmd_chunk',\n spec: {\n ...codeNodeSpec(),\n attrs: {\n navigation_id: { default: null },\n md_index: { default: 0 },\n },\n parseDOM: [\n {\n tag: \"div[class*='rmd-chunk']\",\n preserveWhitespace: 'full',\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return ['div', { class: 'rmd-chunk pm-code-block' }, 0];\n },\n },\n\n code_view: {\n firstLineMeta: true,\n lineNumbers: true,\n lineNumberFormatter: (lineNumber: number, lineCount?: number, line?: string) => {\n if (lineNumber === 1) {\n return '';\n } else {\n return lineNumber - 1 + '';\n }\n },\n bookdownTheorems: format.docTypes.includes(kBookdownDocType),\n classes: ['pm-chunk-background-color'],\n lang: (_node: ProsemirrorNode, content: string) => {\n const match = content.match(/^\\{([a-zA-Z0-9_]+)/);\n if (match) {\n return match[1];\n } else {\n return null;\n }\n },\n createFromPastePattern: /^\\{([a-zA-Z0-9_]+).*}.*?\\n/m,\n },\n\n pandoc: {\n blockCapsuleFilter: rmdChunkBlockCapsuleFilter(),\n\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n const parts = rmdChunk(node.textContent);\n if (parts) {\n output.writeRawMarkdown(parts.delimiter + '{' + parts.meta + '}\\n' + parts.code + parts.delimiter + '\\n');\n }\n });\n },\n },\n },\n ],\n\n commands: (_schema: Schema) => {\n const commands = [\n new RChunkCommand(ui),\n new PythonChunkCommand(ui),\n new BashChunkCommand(ui),\n new RcppChunkCommand(ui),\n new SQLChunkCommand(ui),\n new D3ChunkCommand(ui),\n new StanChunkCommand(ui),\n new ExpandAllChunksCommand(ui),\n new CollapseAllChunksCommand(ui)\n ];\n return commands;\n },\n\n plugins: (_schema: Schema) => {\n if (options.rmdImagePreview) {\n return [new RmdChunkImagePreviewPlugin(ui.context)];\n } else {\n return [];\n }\n },\n };\n};\n\nclass RmdChunkCommand extends ProsemirrorCommand {\n constructor(\n ui: EditorUI,\n id: EditorCommandId,\n keymap: string[],\n priority: number,\n lang: string,\n placeholder: string,\n image: () => string,\n group = OmniInsertGroup.Chunks\n ) {\n super(id, keymap, insertRmdChunk(placeholder), {\n name: `${lang} ${ui.context.translateText('Code Chunk')}`,\n description: `${ui.context.translateText('Executable')} ${lang} ${ui.context.translateText('chunk')}`,\n group,\n priority,\n image\n });\n }\n}\n\nclass RChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.RCodeChunk, ['Mod-Alt-i'], 10, 'R', '{r}\\n', () =>\n ui.prefs.darkMode() ? ui.images.omni_insert!.r_chunk_dark! : ui.images.omni_insert!.r_chunk!,\n OmniInsertGroup.Common\n );\n }\n}\n\nclass PythonChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(\n ui,\n EditorCommandId.PythonCodeChunk,\n [],\n 8,\n 'Python',\n '{python}\\n',\n () => ui.images.omni_insert!.python_chunk!,\n OmniInsertGroup.Common\n );\n }\n}\n\nclass BashChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.BashCodeChunk, [], 7, 'Bash', '{bash}\\n', () =>\n ui.prefs.darkMode() ? ui.images.omni_insert!.bash_chunk_dark! : ui.images.omni_insert!.bash_chunk!,\n );\n }\n}\n\nclass RcppChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.RcppCodeChunk, [], 6, 'Rcpp', '{Rcpp}\\n', () =>\n ui.prefs.darkMode() ? ui.images.omni_insert!.rcpp_chunk_dark! : ui.images.omni_insert!.rcpp_chunk!,\n );\n }\n}\n\nclass SQLChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(\n ui,\n EditorCommandId.SQLCodeChunk,\n [],\n 5,\n 'SQL',\n '{sql connection=}\\n',\n () => ui.images.omni_insert!.sql_chunk!,\n OmniInsertGroup.Chunks\n );\n }\n}\n\nclass D3ChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.D3CodeChunk, [], 4, 'D3', '{d3 data=}\\n', () => ui.images.omni_insert!.d3_chunk!, OmniInsertGroup.Chunks);\n }\n}\n\nclass StanChunkCommand extends RmdChunkCommand {\n constructor(ui: EditorUI) {\n super(\n ui,\n EditorCommandId.StanCodeChunk,\n [],\n 7,\n 'Stan',\n '{stan output.var=}\\n',\n () => ui.images.omni_insert!.stan_chunk!,\n OmniInsertGroup.Chunks\n );\n }\n}\n\nclass ChunkExpansionCommand extends ProsemirrorCommand {\n constructor(\n ui: EditorUI,\n id: EditorCommandId,\n keymap: string[],\n expand: boolean\n ) {\n super(id, keymap, (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => \n {\n if (dispatch) {\n ui.chunks.setChunksExpanded(expand);\n }\n return true;\n });\n }\n}\n\nclass ExpandAllChunksCommand extends ChunkExpansionCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.ExpandAllChunks, [], true);\n }\n}\n\nclass CollapseAllChunksCommand extends ChunkExpansionCommand {\n constructor(ui: EditorUI) {\n super(ui, EditorCommandId.CollapseAllChunks, [], false);\n }\n}\n\nexport default extension;\n","/*\n * rmd_chunk-image.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Plugin, PluginKey, Transaction, EditorState } from 'prosemirror-state';\nimport { DecorationSet, Decoration, EditorView } from 'prosemirror-view';\n\nimport { findChildrenByType, setTextSelection } from 'prosemirror-utils';\n\nimport { transactionsAreTypingChange, transactionsHaveChange } from '../../api/transaction';\nimport { EditorUIContext } from '../../api/ui';\nimport { stripQuotes } from '../../api/text';\nimport { onElementRemoved } from '../../api/dom';\n\nconst key = new PluginKey('rmd-chunk-image-preview');\n\nexport class RmdChunkImagePreviewPlugin extends Plugin {\n constructor(uiContext: EditorUIContext) {\n super({\n key,\n state: {\n init: (_config: { [key: string]: any }, state: EditorState) => {\n return imagePreviewDecorations(state, uiContext);\n },\n apply: (tr: Transaction, old: DecorationSet, oldState: EditorState, newState: EditorState) => {\n const transactions = [tr];\n\n // doc didn't change, return existing decorations\n if (!tr.docChanged) {\n return old.map(tr.mapping, tr.doc);\n\n // non-typing change, do a full rescan\n } else if (!transactionsAreTypingChange(transactions)) {\n return imagePreviewDecorations(newState, uiContext);\n\n // change that affects a rmd chunk block, do a full rescan\n } else if (transactionsHaveChange(transactions, oldState, newState, isRmdChunkNode)) {\n return imagePreviewDecorations(newState, uiContext);\n }\n\n // otherwise return the existing set (mapped)\n else {\n return old.map(tr.mapping, tr.doc);\n }\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n },\n });\n }\n}\n\nfunction imagePreviewDecorations(state: EditorState, uiContext: EditorUIContext) {\n // find all rmd code chunks with knitr::include_graphics\n const decorations: Decoration[] = [];\n findChildrenByType(state.doc, state.schema.nodes.rmd_chunk).forEach(rmdChunk => {\n // look for a line with knitr::include_graphics\n const match = rmdChunk.node.textContent.match(/^(knitr::)?include_graphics\\((['\"])([^\\2]+)\\2/m);\n if (match) {\n // see if we can also find an out.width on the first line\n let width = '';\n const firstLine = rmdChunk.node.textContent.split(/\\r?\\n/)[0];\n const widthMatch = firstLine.match(/^\\s*\\{[r|R][, ].*out\\.width\\s*=\\s*([^ ,$]+).*}/);\n if (widthMatch) {\n width = stripQuotes(widthMatch[1].trim());\n // revert if they are using out.width = NULL\n if (width === 'NULL') {\n width = '';\n }\n }\n\n // see if we can find fig.align='center'\n const alignCenter = !!firstLine.match(/^\\s*\\{[r|R][, ].*fig\\.align\\s*=\\s*['\"]?center['\"]?/);\n\n const imagePath = match[3];\n const decoration = Decoration.widget(\n rmdChunk.pos + rmdChunk.node.nodeSize,\n (view: EditorView, getPos: () => number) => {\n const container = window.document.createElement('div');\n container.style.marginTop = '-1.5em'; // to bridge back to the codemirror block\n // which has a margin-block-end of 1em\n container.classList.add('pm-image-preview');\n container.classList.add('pm-block-border-color');\n const img = window.document.createElement('img');\n if (alignCenter) {\n img.classList.add('pm-image-centered');\n }\n\n img.src = uiContext.mapResourceToURL(imagePath);\n img.setAttribute('draggable', 'false');\n\n // watch for changes to the file\n const unsubscribe = uiContext.watchResource(imagePath, () => {\n img.src = uiContext.mapResourceToURL(imagePath);\n });\n onElementRemoved(view.dom, container, unsubscribe);\n\n if (width) {\n img.setAttribute('width', width);\n }\n img.draggable = false;\n img.onload = () => {\n img.alt = '';\n };\n img.onerror = () => {\n img.alt = ` ${uiContext.translateText('Image not found')}: ${imagePath}`;\n };\n // select rmd_chunk for clicks on the preview image\n img.onclick = () => {\n const tr = view.state.tr;\n setTextSelection(getPos() - 1)(tr);\n view.dispatch(tr);\n };\n container.append(img);\n return container;\n },\n { key: imagePath + 'width:' + width + 'center:' + alignCenter },\n );\n decorations.push(decoration);\n }\n });\n\n // return decorations\n return DecorationSet.create(state.doc, decorations);\n}\n\nfunction isRmdChunkNode(node: ProsemirrorNode) {\n return node.type === node.type.schema.nodes.rmd_chunk;\n}\n","/*\n * rmd_chunk-capsule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\n\nimport { PandocBlockCapsule, parsePandocBlockCapsule, blockCapsuleSourceWithoutPrefix } from '../../api/pandoc_capsule';\nimport { PandocToken, PandocTokenType, ProsemirrorWriter } from '../../api/pandoc';\nimport { pandocAttrReadAST, kCodeBlockAttr, PandocAttr, kCodeBlockText } from '../../api/pandoc_attr';\nimport { uuidv4 } from '../../api/util';\n\nexport function rmdChunkBlockCapsuleFilter() {\n // (note that this constant is also defined in VisualMode.java)\n const kBlockCapsuleType = 'F3175F2A-E8A0-4436-BE12-B33925B6D220'.toLowerCase();\n const kBlockCapsuleTextRegEx = new RegExp('```' + kBlockCapsuleType + '\\\\n[ \\\\t>]*([^`]+)\\\\n[ \\\\t>]*```', 'g');\n\n return {\n type: kBlockCapsuleType,\n\n match: /^([\\t >]*)((```+)\\s*\\{[a-zA-Z0-9_]+(?: *[ ,].*?)?\\}[ \\t]*\\n(?:[\\t >]*\\3|[\\W\\w]*?\\n[\\t >]*\\3))([ \\t]*)$/gm,\n\n extract: (match: string, p1: string, p2: string, p3: string, p4: string) => {\n return {\n prefix: p1,\n source: p2,\n suffix: p4,\n };\n },\n\n // textually enclose the capsule so that pandoc parses it as the type of block we want it to\n // (in this case a code block). we use the capsule prefix here to make sure that the code block's\n // content and end backticks match the indentation level of the first line correctly\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) =>\n '```' + kBlockCapsuleType + '\\n' + capsule.prefix + capsuleText + '\\n' + capsule.prefix + '```',\n // look for one of our block capsules within pandoc ast text (e.g. a code or raw block)\n // and if we find it, parse and return the original source code\n handleText: (text: string, tok: PandocToken) => {\n // if this is a code block then we need to strip the prefix\n const stripPrefix = tok.t === PandocTokenType.CodeBlock;\n\n return text.replace(kBlockCapsuleTextRegEx, (_match, p1) => {\n const capsuleText = p1;\n const capsule = parsePandocBlockCapsule(capsuleText);\n if (stripPrefix) {\n return blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n } else {\n return capsule.source;\n }\n });\n },\n\n // look for a block capsule of our type within a code block (indicated by the\n // presence of a special css class)\n handleToken: (tok: PandocToken) => {\n if (tok.t === PandocTokenType.CodeBlock) {\n const attr = pandocAttrReadAST(tok, kCodeBlockAttr) as PandocAttr;\n if (attr.classes.includes(kBlockCapsuleType)) {\n return tok.c[kCodeBlockText];\n }\n }\n return null;\n },\n\n // write the node as an rmd_chunk, being careful to remove the backticks\n // preserved as part of the source, and striping out the base indentation\n // level implied by the prefix\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n // open node\n writer.openNode(schema.nodes.rmd_chunk, {\n navigation_id: uuidv4(),\n md_index: capsule.position,\n });\n\n // source still has leading and trailing backticks, remove them\n const source = capsule.source.replace(/^```+/, '').replace(/\\n[\\t >]*```+$/, '');\n\n // write the lines w/o the source-level prefix\n writer.writeText(blockCapsuleSourceWithoutPrefix(source, capsule.prefix));\n\n // all done\n writer.closeNode();\n },\n };\n}\n","/*\n * line_block.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema, DOMOutputSpec } from 'prosemirror-model';\n\nimport { ExtensionContext } from '../api/extension';\nimport { PandocOutput, PandocTokenType, PandocToken, kWriteSpaces } from '../api/pandoc';\n\nimport { EditorCommandId, WrapCommand } from '../api/command';\nimport { OmniInsertGroup } from '../api/omni_insert';\n\nimport './line_block-styles.css';\n\nconst extension = (context: ExtensionContext) => {\n const { pandocExtensions, ui } = context;\n\n if (!pandocExtensions.line_blocks) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'line_block',\n spec: {\n content: 'paragraph+',\n group: 'block',\n defining: true,\n parseDOM: [\n {\n tag: \"div[class*='line-block']\",\n },\n ],\n toDOM(): DOMOutputSpec {\n return ['div', { class: 'line-block pm-line-block pm-block-border-color pm-margin-bordered' }, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.LineBlock,\n block: 'line_block',\n getChildren: (tok: PandocToken) => {\n return tok.c.map((line: PandocToken[]) => ({ t: PandocTokenType.Para, c: line }));\n },\n },\n ],\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.withOption(kWriteSpaces, false, () => {\n output.writeToken(PandocTokenType.LineBlock, () => {\n node.forEach(line => {\n output.writeArray(() => {\n output.writeInlines(line.content);\n });\n });\n });\n });\n },\n },\n },\n ],\n commands: (schema: Schema) => {\n return [\n new WrapCommand(\n EditorCommandId.LineBlock,\n [],\n schema.nodes.line_block,\n {},\n {\n name: ui.context.translateText('Line Block'),\n description: ui.context.translateText('Preserve leading spaces and line breaks'),\n group: OmniInsertGroup.Blocks,\n priority: 2,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.line_block_dark! : ui.images.omni_insert?.line_block!,\n },\n ),\n ];\n },\n };\n};\n\nexport default extension;\n","/*\n * table.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\nimport { Transaction, EditorState } from 'prosemirror-state';\nimport { Transform } from 'prosemirror-transform';\nimport { tableEditing, columnResizing, goToNextCell, deleteColumn, deleteRow } from 'prosemirror-tables';\nimport { sinkListItem, liftListItem } from 'prosemirror-schema-list';\n\nimport { findChildrenByType } from 'prosemirror-utils';\n\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { BaseKey } from '../../api/basekeys';\nimport { ProsemirrorCommand, EditorCommandId, exitNode } from '../../api/command';\nimport { TableCapabilities } from '../../api/table';\nimport { trTransform } from '../../api/transaction';\n\nimport {\n insertTable,\n deleteTable,\n deleteTableCaption,\n addRows,\n addColumns,\n TableColumnAlignmentCommand,\n TableRowCommand,\n TableColumnCommand,\n TableToggleHeaderCommand,\n TableToggleCaptionCommand,\n CssAlignment,\n insertTableOmniInsert,\n} from './table-commands';\n\nimport {\n tableContainerNode,\n tableNode,\n tableCaptionNode,\n tableCellNode,\n tableHeaderNode,\n tableRowNode,\n} from './table-nodes';\n\nimport { fixupTableWidths } from './table-columns';\nimport { TableContextMenuPlugin } from './table-contextmenu';\nimport { tablePaste } from './table-paste';\n\nimport 'prosemirror-tables/style/tables.css';\nimport './table-styles.css';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { pandocExtensions, ui } = context;\n\n // not enabled if there are no tables enabled\n if (\n !pandocExtensions.grid_tables &&\n !pandocExtensions.pipe_tables &&\n !pandocExtensions.simple_tables &&\n !pandocExtensions.multiline_tables &&\n !pandocExtensions.raw_html\n ) {\n return null;\n }\n\n // define table capabilities\n const capabilities: TableCapabilities = {\n captions: pandocExtensions.table_captions,\n headerOptional: pandocExtensions.grid_tables,\n multiline: pandocExtensions.multiline_tables || pandocExtensions.grid_tables,\n };\n\n return {\n nodes: [\n tableContainerNode,\n tableNode,\n tableCaptionNode,\n tableCellNode(pandocExtensions.grid_tables),\n tableHeaderNode,\n tableRowNode,\n ],\n\n commands: (_schema: Schema) => {\n const commands = [\n new ProsemirrorCommand(\n EditorCommandId.Table,\n ['Alt-Mod-t'],\n insertTable(capabilities, ui),\n insertTableOmniInsert(ui),\n ),\n new ProsemirrorCommand(\n EditorCommandId.TableInsertTable,\n [],\n insertTable(capabilities, ui),\n ),\n new ProsemirrorCommand(EditorCommandId.TableNextCell, ['Tab'], goToNextCell(1)),\n new ProsemirrorCommand(EditorCommandId.TablePreviousCell, ['Shift-Tab'], goToNextCell(-1)),\n new TableColumnCommand(EditorCommandId.TableAddColumnAfter, [], addColumns(true)),\n new TableColumnCommand(EditorCommandId.TableAddColumnBefore, [], addColumns(false)),\n new TableColumnCommand(EditorCommandId.TableDeleteColumn, [], deleteColumn),\n new TableRowCommand(EditorCommandId.TableAddRowAfter, [], addRows(true)),\n new TableRowCommand(EditorCommandId.TableAddRowBefore, [], addRows(false)),\n new TableRowCommand(EditorCommandId.TableDeleteRow, [], deleteRow),\n new ProsemirrorCommand(EditorCommandId.TableDeleteTable, [], deleteTable()),\n new TableColumnAlignmentCommand(EditorCommandId.TableAlignColumnLeft, CssAlignment.Left),\n new TableColumnAlignmentCommand(EditorCommandId.TableAlignColumnRight, CssAlignment.Right),\n new TableColumnAlignmentCommand(EditorCommandId.TableAlignColumnCenter, CssAlignment.Center),\n new TableColumnAlignmentCommand(EditorCommandId.TableAlignColumnDefault, null),\n ];\n if (capabilities.captions) {\n commands.push(new TableToggleCaptionCommand());\n }\n if (capabilities.headerOptional) {\n commands.push(new TableToggleHeaderCommand());\n }\n return commands;\n },\n\n plugins: (schema: Schema) => {\n return [\n columnResizing({\n handleWidth: 5,\n }),\n tableEditing(),\n tablePaste(),\n new TableContextMenuPlugin(schema, ui),\n ];\n },\n\n baseKeys: (schema: Schema) => {\n // core keys\n const keys = [\n { key: BaseKey.Backspace, command: deleteTableCaption() },\n { key: BaseKey.Enter, command: exitNode(schema.nodes.table_caption, -2, false) },\n { key: BaseKey.Tab, command: tableTabKey },\n { key: BaseKey.ShiftTab, command: tableShiftTabKey },\n ];\n\n // turn enter key variations into tab if we don't support multi-line\n if (!capabilities.multiline) {\n keys.push({ key: BaseKey.Enter, command: goToNextCell(1) });\n keys.push({ key: BaseKey.ShiftEnter, command: goToNextCell(-11) });\n keys.push({ key: BaseKey.ModEnter, command: goToNextCell(1) });\n }\n\n return keys;\n },\n\n fixups: (_schema: Schema, view: EditorView) => {\n return [fixupTableWidths(view)];\n },\n\n appendTransaction: (_schema: Schema) => {\n return [\n {\n name: 'table-repair',\n nodeFilter: node => node.type === node.type.schema.nodes.table,\n append: (tr: Transaction) => {\n trTransform(tr, tableRepairTransform);\n },\n },\n ];\n },\n };\n};\n\nexport function tableTabKey(state: EditorState, dispatch?: (tr: Transaction) => void): boolean {\n if (sinkListItem(state.schema.nodes.list_item)(state)) {\n return false;\n } else {\n return goToNextCell(1)(state, dispatch);\n }\n}\n\nexport function tableShiftTabKey(state: EditorState, dispatch?: (tr: Transaction) => void): boolean {\n if (liftListItem(state.schema.nodes.list_item)(state)) {\n return false;\n } else {\n return goToNextCell(-1)(state, dispatch);\n }\n}\n\nfunction tableRepairTransform(tr: Transform) {\n const schema = tr.doc.type.schema;\n const tables = findChildrenByType(tr.doc, schema.nodes.table);\n tables.forEach(table => {\n // map the position\n const pos = tr.mapping.map(table.pos);\n\n // get containing node (pos is right before the table)\n const containingNode = tr.doc.resolve(pos).node();\n\n // table with no container\n if (containingNode.type !== schema.nodes.table_container) {\n // add the container\n const caption = schema.nodes.table_caption.createAndFill({ inactive: true }, undefined)!;\n const container = schema.nodes.table_container.createAndFill({}, [table.node, caption])!;\n tr.replaceWith(pos, pos + table.node.nodeSize, container);\n }\n\n // table with no content (possible w/ half caption leftover)\n else if (table.node.firstChild && table.node.firstChild.childCount === 0) {\n // delete the table (and container if necessary)\n const hasContainer = containingNode.type === schema.nodes.table_container;\n if (hasContainer) {\n tr.deleteRange(pos - 1, pos - 1 + containingNode.nodeSize);\n } else {\n tr.deleteRange(pos, table.node.nodeSize);\n }\n }\n });\n}\n\nexport default extension;\n","/*\n * table-commands.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorView } from 'prosemirror-view';\nimport { Node as ProsemirrorNode, Fragment } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\nimport { findParentNodeOfType, setTextSelection, findChildrenByType } from 'prosemirror-utils';\nimport {\n isInTable,\n Rect,\n TableMap,\n selectionCell,\n CellSelection,\n toggleHeader,\n addRow,\n addColumn,\n} from 'prosemirror-tables';\n\nimport { EditorUI } from '../../api/ui';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { canInsertNode } from '../../api/node';\nimport { TableCapabilities } from '../../api/table';\nimport { OmniInsertGroup } from '../../api/omni_insert';\n\nexport function insertTable(capabilities: TableCapabilities, ui: EditorUI) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n // can we insert?\n if (!canInsertNode(state, schema.nodes.table_container)) {\n return false;\n }\n\n // is the selection inside a table caption? if it is then we can't insert\n // as it will \"split\" the table_container in such a way that an invalid\n // table will be created\n if (findParentNodeOfType(schema.nodes.table_caption)(state.selection)) {\n return false;\n }\n\n async function asyncInsertTable() {\n if (dispatch) {\n const result = await ui.dialogs.insertTable(capabilities);\n if (result) {\n // create cells\n const numRows = result.rows + (result.header ? 1 : 0);\n const rows: ProsemirrorNode[] = [];\n for (let r = 0; r < numRows; r++) {\n const cells: ProsemirrorNode[] = [];\n const cellType = r === 0 && result.header ? schema.nodes.table_header : schema.nodes.table_cell;\n for (let c = 0; c < result.cols; c++) {\n const content =\n cellType === schema.nodes.table_header\n ? schema.text(`${ui.context.translateText('Col')}${c + 1}`)\n : Fragment.empty;\n cells.push(cellType.createAndFill({}, schema.nodes.paragraph.createAndFill({}, content)!)!);\n }\n rows.push(schema.nodes.table_row.createAndFill({}, cells)!);\n }\n\n // create table\n const table = schema.nodes.table.createAndFill({}, rows)!;\n const tableCaption = schema.nodes.table_caption.createAndFill(\n { inactive: !result.caption },\n result.caption ? schema.text(result.caption) : undefined,\n )!;\n const tableContainer = schema.nodes.table_container.createAndFill({}, [table, tableCaption])!;\n\n // insert\n const tr = state.tr;\n tr.replaceSelectionWith(tableContainer);\n\n // select first cell\n const selectionPos = tr.mapping.map(state.selection.from, -1);\n setTextSelection(selectionPos)(tr).scrollIntoView();\n\n // dispatch & focus\n dispatch(tr);\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncInsertTable();\n\n return true;\n };\n}\n\nexport function insertTableOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('Table'),\n description: ui.context.translateText('Content in rows and columns'),\n group: OmniInsertGroup.Lists,\n priority: 1,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.table_dark! : ui.images.omni_insert?.table!),\n };\n}\n\nexport function deleteTable() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n const schema = state.schema;\n const container = findParentNodeOfType(schema.nodes.table_container)(state.selection);\n if (container) {\n if (dispatch) {\n const tr = state.tr;\n tr.delete(container.pos, container.pos + container.node.nodeSize);\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n return false;\n };\n}\n\nexport function deleteTableCaption() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // must be a selection within an empty table caption\n const schema = state.schema;\n const { $head } = state.selection;\n if ($head.parent.type !== schema.nodes.table_caption || $head.parent.childCount !== 0) {\n return false;\n }\n\n if (dispatch) {\n // set the caption to inactive\n const tr = state.tr;\n const caption = $head.parent;\n tr.setNodeMarkup($head.pos - 1, schema.nodes.table_caption, {\n ...caption.attrs,\n inactive: true,\n });\n setTextSelection($head.pos - 1, -1)(tr);\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function addColumns(after: boolean) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!isInTable(state)) {\n return false;\n }\n if (dispatch) {\n let tr = state.tr;\n const rect = selectedRect(state);\n const columns = rect.right - rect.left;\n for (let i = 0; i < columns; i++) {\n tr = addColumn(tr, rect, after ? rect.right : rect.left);\n }\n dispatch(tr);\n }\n return true;\n };\n}\n\nexport function addRows(after: boolean) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!isInTable(state)) {\n return false;\n }\n if (dispatch) {\n // add the rows\n let tr = state.tr;\n const rect = selectedRect(state);\n const rows = rect.bottom - rect.top;\n for (let i = 0; i < rows; i++) {\n tr = addRow(tr, rect, after ? rect.bottom : rect.top);\n }\n\n // sync column alignments for table\n const table = findParentNodeOfType(state.schema.nodes.table)(tr.selection);\n if (table) {\n const alignments = new Array(rect.map.width);\n table.node.forEach((rowNode, rowOffset, rowIndex) => {\n rowNode.forEach((cellNode, cellOffset, colIndex) => {\n const cellPos = table.pos + 1 + rowOffset + 1 + cellOffset;\n if (rowIndex === 0) {\n const cell = tr.doc.nodeAt(cellPos);\n alignments[colIndex] = cell?.attrs.align || null;\n } else {\n tr.setNodeMarkup(cellPos, cellNode.type, {\n ...cellNode.attrs,\n align: alignments[colIndex] || null,\n });\n }\n });\n });\n }\n\n dispatch(tr);\n }\n return true;\n };\n}\n\nexport class TableToggleHeaderCommand extends ProsemirrorCommand {\n constructor() {\n super(EditorCommandId.TableToggleHeader, [], toggleHeader('row'));\n }\n\n public isActive(state: EditorState): boolean {\n if (!isInTable(state)) {\n return false;\n }\n const { table } = selectedRect(state);\n const firstCell = table.firstChild!.firstChild!;\n return firstCell.type === state.schema.nodes.table_header;\n }\n}\n\nexport class TableToggleCaptionCommand extends ProsemirrorCommand {\n constructor() {\n super(\n EditorCommandId.TableToggleCaption,\n [],\n (state: EditorState, dispatch?: (tr: Transaction, view?: EditorView) => void) => {\n if (!isInTable(state)) {\n return false;\n }\n const caption = this.tableCaptionNode(state);\n if (!caption) {\n return false;\n }\n\n if (dispatch) {\n const focus = caption.node.attrs.inactive;\n const tr = state.tr;\n tr.setNodeMarkup(caption.pos + 1, state.schema.nodes.table_caption, {\n ...caption.node.attrs,\n inactive: !caption.node.attrs.inactive,\n });\n if (focus) {\n setTextSelection(caption.pos + 1)(tr).scrollIntoView();\n }\n dispatch(tr);\n }\n\n return true;\n },\n );\n }\n\n public isActive(state: EditorState): boolean {\n if (!isInTable(state)) {\n return false;\n }\n\n const caption = this.tableCaptionNode(state);\n if (!caption) {\n return false;\n }\n\n return !caption.node.attrs.inactive;\n }\n\n private tableCaptionNode(state: EditorState) {\n const container = findParentNodeOfType(state.schema.nodes.table_container)(state.selection);\n if (container) {\n const caption = findChildrenByType(container.node, state.schema.nodes.table_caption);\n return {\n node: caption[0].node,\n pos: container.pos + caption[0].pos,\n };\n } else {\n return undefined;\n }\n }\n}\n\nexport enum CssAlignment {\n Left = 'left',\n Right = 'right',\n Center = 'center',\n}\n\nexport class TableRowCommand extends ProsemirrorCommand {\n public plural(state: EditorState) {\n if (!isInTable(state)) {\n return 1;\n }\n\n const rect = selectedRect(state);\n return rect.bottom - rect.top;\n }\n}\n\nexport class TableColumnCommand extends ProsemirrorCommand {\n public plural(state: EditorState) {\n if (!isInTable(state)) {\n return 1;\n }\n\n const rect = selectedRect(state);\n return rect.right - rect.left;\n }\n}\n\nexport class TableColumnAlignmentCommand extends ProsemirrorCommand {\n private readonly align: CssAlignment | null;\n\n constructor(id: EditorCommandId, align: CssAlignment | null) {\n super(id, [], (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!isInTable(state)) {\n return false;\n }\n\n if (dispatch) {\n const { table, tableStart, left, right } = selectedRect(state);\n const tr = state.tr;\n table.forEach((rowNode, rowOffset) => {\n rowNode.forEach((cellNode, cellOffset, i) => {\n if (i >= left && i < right) {\n const cellPos = tableStart + 1 + rowOffset + cellOffset;\n tr.setNodeMarkup(cellPos, cellNode.type, {\n ...cellNode.attrs,\n align,\n });\n }\n });\n });\n dispatch(tr);\n }\n\n return true;\n });\n this.align = align;\n }\n\n public isActive(state: EditorState): boolean {\n if (!isInTable(state)) {\n return false;\n }\n const { table, top, left } = selectedRect(state);\n const cell = table.child(top).child(left);\n return cell.attrs.align === this.align;\n }\n}\n\n// from: https://github.com/ProseMirror/prosemirror-tables/blob/master/src/commands.js\n\ninterface SelectedRect extends Rect {\n tableStart: number;\n map: TableMap;\n table: ProsemirrorNode;\n}\n\nfunction selectedRect(state: EditorState): SelectedRect {\n const sel = state.selection;\n const $pos = selectionCell(state)!;\n const table = $pos.node(-1);\n const tableStart = $pos.start(-1);\n const map = TableMap.get(table);\n let rect: Rect;\n if (sel instanceof CellSelection) {\n rect = map.rectBetween(sel.$anchorCell.pos - tableStart, sel.$headCell.pos - tableStart);\n } else {\n rect = map.findCell($pos.pos - tableStart);\n }\n return {\n ...rect,\n tableStart,\n map,\n table,\n };\n}\n","/*\n * table-nodes.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { tableNodes } from 'prosemirror-tables';\nimport { Node as ProsemirrorNode, DOMOutputSpec } from 'prosemirror-model';\n\nimport { PandocTokenType } from '../../api/pandoc';\n\nimport {\n readPandocTable,\n writePandocTableContainer,\n writePandocTable,\n writePandocTableCaption,\n writePandocTableNodes,\n writePandocTableHeaderNodes,\n} from './table-pandoc';\nimport { tableColumnWidths } from './table-columns';\nimport { tableBlockCapsuleFilter } from './table-capsule';\n\nexport const kDefaultCellClasses = 'pm-table-cell pm-block-border-color';\n\nconst nodes = tableNodes({\n tableGroup: 'block',\n cellContent: 'block+',\n cellAttributes: {\n align: {\n default: null,\n getFromDOM(dom: Element) {\n return (dom as HTMLElement).style.textAlign || null;\n },\n setDOMAttr(value, attrs) {\n if (value) {\n attrs.style = (attrs.style || '') + `text-align: ${value};`;\n }\n },\n },\n className: {\n default: kDefaultCellClasses,\n getFromDOM(dom: Element) {\n return (dom as HTMLElement).className;\n },\n setDOMAttr(value, attrs) {\n attrs.class = kDefaultCellClasses;\n },\n },\n },\n});\n\nexport const tableContainerNode = {\n name: 'table_container',\n spec: {\n content: 'table table_caption',\n group: 'block',\n parseDOM: [{ tag: \"div[class*='table-container']\" }],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n return ['div', { class: 'table-container pm-table-container' }, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.Table,\n handler: readPandocTable,\n },\n ],\n writer: writePandocTableContainer,\n blockCapsuleFilter: tableBlockCapsuleFilter(),\n },\n};\n\nexport const tableNode = {\n name: 'table',\n spec: {\n ...nodes.table,\n attrs: {\n ...nodes.table.attrs,\n width: { default: null },\n colpercents: { default: null },\n },\n parseDOM: [\n {\n tag: 'table',\n getAttrs: (dom: Node | string) => {\n const el = dom as HTMLElement;\n\n // shared colpercents\n let colpercents: number[] | null = null;\n\n // if we have a colgroup w/ widths then read percents from there\n // \n const colgroup = el.getElementsByTagName('colgroup');\n if (colgroup.length) {\n const cols = colgroup[0].childElementCount;\n colpercents = new Array(cols).fill(0);\n for (let i = 0; i < cols; i++) {\n const col = colgroup[0].children.item(i) as HTMLElement;\n if (col.style.width) {\n colpercents[i] = (parseInt(col.style.width, 10) || 0) / 100;\n }\n }\n if (colpercents.every(value => !!value)) {\n return {\n colpercents,\n };\n }\n }\n\n // otherwise read from data-colwidth\n let width: number | null = null;\n const rows = el.getElementsByTagName('tr');\n if (rows.length) {\n const firstRow = rows.item(0)!;\n const numCells = firstRow.cells.length;\n const colWidths = new Array(numCells).fill(0);\n for (let i = 0; i < numCells; i++) {\n const cell = firstRow.cells.item(i)!;\n const colWidth = cell.getAttribute('data-colwidth');\n if (colWidth) {\n colWidths[i] = Number(colWidth);\n }\n }\n if (colWidths.every(colWidth => colWidth > 0)) {\n width = colWidths.reduce((total, value) => total + value, 0);\n colpercents = colWidths.map(colWidth => colWidth / width!);\n }\n }\n\n return {\n width,\n colpercents,\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n const attrs: any = {};\n if (node.attrs.width) {\n attrs['data-width'] = node.attrs.width.toString();\n }\n attrs['data-colpercents'] = tableColumnWidths(node).join(',');\n return ['table', attrs, ['tbody', 0]];\n },\n },\n pandoc: {\n writer: writePandocTable,\n },\n};\n\nexport const tableCaptionNode = {\n name: 'table_caption',\n spec: {\n attrs: {\n inactive: { default: false },\n },\n content: 'inline*',\n parseDOM: [\n {\n tag: \"p[class*='table-caption']\",\n getAttrs(dom: Node | string) {\n return {\n inactive: (dom as HTMLElement).classList.contains('table-caption-inactive'),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode): DOMOutputSpec {\n const classes = ['table-caption', 'pm-node-caption'];\n if (node.attrs.inactive) {\n classes.push('table-caption-inactive');\n }\n return ['p', { class: classes.join(' ') }, 0];\n },\n },\n pandoc: {\n writer: writePandocTableCaption,\n },\n};\n\nexport const tableRowNode = {\n name: 'table_row',\n spec: nodes.table_row,\n pandoc: {\n writer: writePandocTableNodes,\n },\n};\n\nexport const tableCellNode = (blocks: boolean) => ({\n name: 'table_cell',\n spec: {\n ...nodes.table_cell,\n content: blocks ? 'block+' : 'paragraph',\n },\n pandoc: {\n writer: writePandocTableNodes,\n },\n});\n\nexport const tableHeaderNode = {\n name: 'table_header',\n spec: nodes.table_header,\n pandoc: {\n writer: writePandocTableHeaderNodes,\n },\n};\n","/*\n * table-pandoc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, NodeType, Node as ProsemirrorNode, Fragment } from 'prosemirror-model';\n\nimport { ProsemirrorWriter, PandocToken, PandocTokenType, PandocOutput } from '../../api/pandoc';\n\nimport { CssAlignment } from './table-commands';\nimport { tableColumnAlignments, tableColumnWidths } from './table-columns';\n\n// attributes\nconst kTableAttr = 0;\n\n// caption\nconst kTableCaption = 1;\nconst kTableCaptionShort = 0; // [Inline]\nconst kTableCaptionFull = 1; // [Block]\n\n// columdefs\nconst kTableColSpec = 2;\nconst kTableColSpecAlign = 0;\nconst kTableColSpecWidth = 1;\n\n// table head\nconst kTableHead = 3;\nconst kTableHeadAttr = 0;\nconst kTableHeadRows = 1; // [Row]\n\n// table body\nconst kTableBody = 4;\nconst kTableBodyAttr = 0;\nconst kTableBodyRowHeadNumColumns = 1;\nconst kTableBodyRowHead = 2;\nconst kTableBodyRows = 3; // [Row]\n\n// table foot\nconst kTableFoot = 5;\nconst kTableFootAttr = 0;\nconst kTableFootRows = 1; // [Row]\n\n// table row\nconst kTableRowAttr = 0;\nconst kTableRowCells = 1; // [Cell]\n\n// table cell\nconst kTableCellAttr = 0;\nconst kTableCellAlignments = 1;\nconst kTableCellRowSpan = 2;\nconst kTableCellColSpan = 3;\nconst KTableCellContents = 4; // [Block]\n\n\nexport function readPandocTable(schema: Schema) {\n return (writer: ProsemirrorWriter, tok: PandocToken) => {\n // get alignments and columns widths\n const alignments = columnCssAlignments(tok);\n const colpercents = columnPercents(tok);\n\n // helper function to parse a table row\n const parseRow = (row: any[], cellType: NodeType) => {\n const cells: any[] = row[kTableRowCells];\n if (cells.length) {\n writer.openNode(schema.nodes.table_row, {});\n cells.forEach((cell: any[], i) => {\n writer.openNode(cellType, { align: alignments[i] });\n writer.writeTokens(cell[KTableCellContents]);\n writer.closeNode();\n });\n writer.closeNode();\n }\n };\n\n // open table container node\n writer.openNode(schema.nodes.table_container, {});\n\n // open table node\n writer.openNode(schema.nodes.table, { colpercents });\n\n // parse column headers\n const head = tok.c[kTableHead] as any[];\n const firstRow = head[kTableHeadRows][0];\n if (firstRow && firstRow[kTableRowCells].some((cell: any[]) => cell[KTableCellContents].length > 0)) {\n parseRow(firstRow, schema.nodes.table_header);\n }\n\n // parse table rows\n const body = tok.c[kTableBody][0] as any[];\n body[kTableBodyRows].forEach((row: any[]) => {\n parseRow(row, schema.nodes.table_cell);\n });\n\n // close table node\n writer.closeNode();\n\n // read caption\n const caption = tok.c[kTableCaption][kTableCaptionFull];\n const captionBlock: PandocToken[] = caption.length ? caption[0].c : [];\n writer.openNode(schema.nodes.table_caption, { inactive: captionBlock.length === 0 });\n writer.writeTokens(captionBlock);\n writer.closeNode();\n\n // close table container node\n writer.closeNode();\n };\n}\n\nexport function writePandocTableContainer(output: PandocOutput, node: ProsemirrorNode) {\n const caption = node.lastChild!;\n const table = node.firstChild!;\n\n output.writeToken(PandocTokenType.Table, () => {\n\n // write empty attributes\n output.writeAttr();\n\n // write caption\n output.writeNode(caption);\n\n // write table\n output.writeNode(table);\n });\n}\n\nexport function writePandocTable(output: PandocOutput, node: ProsemirrorNode) {\n const firstRow = node.firstChild!;\n\n // get alignments and column widths\n const alignments = tableColumnAlignments(node);\n const widths = tableColumnWidths(node);\n\n // write colspcs\n // TODO: Columns are coming out ColWidthDefault\n output.writeArray(() => {\n alignments.forEach((align, i) => {\n output.writeArray(() => {\n output.writeToken(align);\n if (widths[i] === 0) {\n output.writeToken(PandocTokenType.ColWidthDefault);\n } else {\n output.writeToken(PandocTokenType.ColWidth, widths[i]);\n }\n });\n });\n });\n\n\n // write header row if necessary\n const headerCut = firstRow.firstChild!.type === node.type.schema.nodes.table_header ? 1 : 0;\n output.writeArray(() => {\n output.writeAttr();\n output.writeArray(() => {\n writePandocTableRow(output, firstRow, headerCut === 0);\n });\n });\n\n // write table body\n output.writeArray(() => {\n output.writeArray(() => {\n output.writeAttr();\n output.write(0);\n output.writeArray(() => { /* */ });\n // write rows\n output.writeArray(() => {\n for (let i = headerCut; i < node.childCount; i++) {\n writePandocTableRow(output, node.content.child(i));\n }\n });\n });\n });\n\n // write table footer\n output.writeArray(() => {\n output.writeAttr();\n output.writeArray(() => { /* */ });\n });\n\n\n}\n\nexport function writePandocTableCaption(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n output.write(null);\n output.writeArray(() => {\n if (!node.attrs.inactive && node.childCount > 0) {\n output.writeToken(PandocTokenType.Plain, () => {\n output.writeInlines(node.content);\n });\n }\n });\n });\n}\n\nexport function writePandocTableNodes(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n output.writeNodes(node);\n });\n}\n\nexport function writePandocTableHeaderNodes(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n if (node.textContent.length > 0) {\n output.writeNodes(node);\n } else {\n // write a paragraph containing a space (this is an attempt to fix an issue where\n // empty headers don't get correct round-tripping)\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(' ');\n });\n }\n });\n}\n\nfunction writePandocTableRow(output: PandocOutput, node: ProsemirrorNode, empty = false) {\n output.writeArray(() => {\n output.writeAttr();\n output.writeArray(() => {\n node.forEach((cellNode) => {\n output.writeArray(() => {\n output.writeAttr();\n output.writeToken(PandocTokenType.AlignDefault);\n output.write(1);\n output.write(1);\n if (!empty) {\n output.writeNode(cellNode);\n } else {\n output.writeArray(() => {\n output.writeInlines(Fragment.empty);\n });\n }\n });\n });\n });\n });\n}\n\n\nfunction columnCssAlignments(tableToken: PandocToken) {\n return tableToken.c[kTableColSpec].map((spec: any) => {\n const alignment = spec[kTableColSpecAlign];\n switch (alignment.t) {\n case PandocTokenType.AlignLeft:\n return CssAlignment.Left;\n case PandocTokenType.AlignRight:\n return CssAlignment.Right;\n case PandocTokenType.AlignCenter:\n return CssAlignment.Center;\n case PandocTokenType.AlignDefault:\n default:\n return null;\n }\n });\n}\n\nfunction columnPercents(tableToken: PandocToken): number[] {\n return tableToken.c[kTableColSpec].map((spec: any) => {\n const width = spec[kTableColSpecWidth];\n return width.t === PandocTokenType.ColWidth ? width.c : 0;\n });\n}\n","/*\n * table-columns.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\nimport { Transaction } from 'prosemirror-state';\nimport { findChildrenByType } from 'prosemirror-utils';\n\nimport { PandocTokenType } from '../../api/pandoc';\n\nimport { CssAlignment } from './table-commands';\n\nexport function tableColumnAlignments(node: ProsemirrorNode) {\n // get the first row (schema requires at least 1 row)\n const firstRow = node.firstChild!;\n\n // determine # of columns\n const cols = firstRow.childCount;\n\n // return alignments\n const alignments = new Array(cols);\n for (let i = 0; i < cols; i++) {\n const cell = firstRow.child(i);\n const align: CssAlignment = cell.attrs.align;\n switch (align) {\n case CssAlignment.Left:\n alignments[i] = PandocTokenType.AlignLeft;\n break;\n case CssAlignment.Right:\n alignments[i] = PandocTokenType.AlignRight;\n break;\n case CssAlignment.Center:\n alignments[i] = PandocTokenType.AlignCenter;\n break;\n case null:\n default:\n alignments[i] = PandocTokenType.AlignDefault;\n break;\n }\n }\n return alignments;\n}\n\nexport function tableColumnWidths(node: ProsemirrorNode) {\n // get the first row (schema requires at least 1 row)\n const firstRow = node.firstChild!;\n\n // determine # of columns\n const cols = firstRow.childCount;\n\n // width percentages\n let widths = new Array(cols).fill(0);\n\n // take note of explicitly sized columns\n const totalWidth = node.attrs.width;\n let availableWidth = totalWidth;\n let colsWithWidth = 0;\n for (let i = 0; i < cols; i++) {\n const col = firstRow.child(i);\n if (col.attrs.colwidth && col.attrs.colwidth[0]) {\n widths[i] = col.attrs.colwidth[0];\n colsWithWidth++;\n availableWidth -= widths[i];\n }\n }\n\n // allocate remaining widths if we have at least 1 sized columns (otherwise\n // we leave all of the widths at 0 which results in no sizing)\n if (colsWithWidth > 0) {\n if (availableWidth > 0) {\n const defaultWidth = availableWidth / (cols - colsWithWidth);\n for (let i = 0; i < cols; i++) {\n const col = firstRow.child(i);\n if (!col.attrs.colwidth || !col.attrs.colwidth[0]) {\n widths[i] = defaultWidth;\n }\n }\n }\n\n // convert widths to percentages\n widths = widths.map(width => width / totalWidth);\n }\n\n return widths;\n}\n\nexport function fixupTableWidths(view: EditorView) {\n return (tr: Transaction) => {\n const schema = tr.doc.type.schema;\n\n // don't do fixup if we aren't connected to the DOM\n if (!view.dom || !view.dom.isConnected) {\n return tr;\n }\n\n const tables = findChildrenByType(tr.doc, schema.nodes.table);\n for (const table of tables) {\n // get table width\n const el = view.domAtPos(table.pos).node as HTMLElement;\n const containerWidth = table.node.attrs.width || el.clientWidth;\n if (containerWidth === 0) {\n continue;\n }\n\n // resolve colpercents (read by tokenzier)\n let colpercents: number[] = table.node.attrs.colpercents;\n\n if (colpercents) {\n\n // enforce a minimum column width of 25% (otherwise hard to edit)\n // note some of this will get taken back when we adjust all columns\n // for the extra bonus given to small columns\n const kMinPercent = 0.25;\n const totalPercent = colpercents.reduce((total: number, pct: number) => {\n return total + pct;\n }, 0);\n colpercents = colpercents.map(pct => Math.max(pct, kMinPercent));\n const adjustedPercent = colpercents.reduce((total: number, pct: number) => {\n return total + pct;\n }, 0);\n const extraPercent = adjustedPercent - totalPercent;\n colpercents = colpercents.map(pct => pct - (extraPercent/colpercents.length));\n const colWidths = colpercents.map(pct => Math.floor(pct * containerWidth));\n\n // for each row\n table.node.forEach((rowNode, rowOffset, r) => {\n // for each cell\n rowNode.forEach((cellNode, cellOffset, c) => {\n const cellPos = table.pos + 1 + rowOffset + 1 + cellOffset;\n const colWidth = [colWidths[c]];\n if (colWidth !== cellNode.attrs.colwidth) {\n tr.setNodeMarkup(cellPos, cellNode.type, {\n ...cellNode.attrs,\n colwidth: colWidth,\n });\n }\n });\n });\n }\n\n if (containerWidth !== table.node.attrs.width || colpercents) {\n tr.setNodeMarkup(table.pos, schema.nodes.table, {\n ...table.node.attrs,\n width: containerWidth,\n colpercents: null,\n });\n }\n }\n return tr;\n };\n}\n","/*\n * table-capsule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, DOMParser } from 'prosemirror-model';\n\nimport {\n PandocBlockCapsuleFilter,\n PandocBlockCapsule,\n blockCapsuleParagraphTokenHandler,\n encodedBlockCapsuleRegex,\n blockCapsuleTextHandler,\n blockCapsuleSourceWithoutPrefix,\n parsePandocBlockCapsule,\n} from '../../api/pandoc_capsule';\nimport { ProsemirrorWriter, PandocToken, PandocTokenType } from '../../api/pandoc';\nimport { kHTMLFormat } from '../../api/raw';\n\nexport function tableBlockCapsuleFilter(): PandocBlockCapsuleFilter {\n const kTableBlockCapsuleType = '8EF5A772-DD63-4622-84BF-AF1995A1B2B9'.toLowerCase();\n const pagraphTokenCapsuleHandler = blockCapsuleParagraphTokenHandler(kTableBlockCapsuleType);\n const tokenRegex = encodedBlockCapsuleRegex('^', '$');\n\n return {\n type: kTableBlockCapsuleType,\n\n match: /^([\\t >]*)()([ \\t]*)$/gm,\n\n // textually enclose the capsule so that pandoc parses it as the type of block we want it to\n // (in this case we don't do anything because pandoc would have written this table as a\n // semantically standalone block)\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) => {\n return capsuleText;\n },\n\n // look for one of our block capsules within pandoc ast text (e.g. a code or raw block)\n // and if we find it, parse and return the original source code\n handleText: blockCapsuleTextHandler(kTableBlockCapsuleType, encodedBlockCapsuleRegex(undefined, undefined, 'gm')),\n\n // we are looking for a paragraph token consisting entirely of a block capsule of our type.\n // if find that then return the block capsule text\n handleToken: (tok: PandocToken) => {\n // first check for a paragraph\n const capsuleText = pagraphTokenCapsuleHandler(tok);\n if (capsuleText) {\n return capsuleText;\n }\n\n // now look for a definition list (which is what a table with a caption parses as)\n if (tok.t === PandocTokenType.DefinitionList) {\n if (tok.c.length === 1) {\n const definition = tok.c[0];\n if (definition[0][0].t === PandocTokenType.Str) {\n const term = definition[0][0].c as string;\n const match = term.match(tokenRegex);\n if (match) {\n const capsuleRecord = parsePandocBlockCapsule(term);\n if (capsuleRecord.type === kTableBlockCapsuleType) {\n return term;\n }\n }\n }\n }\n }\n\n return null;\n },\n\n // write the node as a table (parse the html)\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n // remove the source prefix\n const source = blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n\n // fallback to write as raw html\n const writeAsRawHTML = () => {\n writer.openNode(schema.nodes.raw_block, { format: kHTMLFormat });\n writer.writeText(source);\n writer.closeNode();\n };\n\n // parse the table from the string\n const parser = new window.DOMParser();\n const doc = parser.parseFromString(capsule.source, 'text/html');\n if (doc.body && doc.body.firstChild instanceof HTMLTableElement) {\n // get prosemirror dom parser\n const prosemirrorDomParser = DOMParser.fromSchema(schema);\n\n // get unparsed (by prosemirror) table\n const unparsedTable = doc.body.firstChild;\n\n // ensure that table cells all have content\n const ensureCellContent = (tag: string) => {\n const cells = unparsedTable.getElementsByTagName(tag);\n for (let i = 0; i < cells.length; i++) {\n const cell = cells.item(i)!;\n if (cell.children.length === 0) {\n cell.append(window.document.createElement('p'));\n }\n }\n };\n ensureCellContent('td');\n ensureCellContent('th');\n\n // extract caption element\n let captionElement: HTMLTableCaptionElement | null = null;\n const captionCollection = unparsedTable.getElementsByTagName('caption');\n if (captionCollection.length) {\n captionElement = captionCollection.item(0);\n if (captionElement) {\n captionElement.remove();\n }\n }\n\n // determine caption (either empty or parsed from element)\n let caption = schema.nodes.table_caption.create({ inactive: true });\n if (captionElement) {\n const captionSlice = prosemirrorDomParser.parseSlice(captionElement);\n caption = schema.nodes.table_caption.createAndFill({ inactive: false }, captionSlice.content)!;\n }\n\n // parse the prosemirror table element\n const slice = prosemirrorDomParser.parseSlice(doc.body);\n if (slice.content.firstChild && slice.content.firstChild.type === schema.nodes.table) {\n const table = slice.content.firstChild;\n writer.addNode(schema.nodes.table_container, {}, [table, caption]);\n } else {\n writeAsRawHTML();\n }\n\n // fallback to writing as raw_html (round-trip unmodified)\n } else {\n writeAsRawHTML();\n }\n },\n };\n}\n","/*\n * table-contextmenu.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey, Transaction, EditorState } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { Schema } from 'prosemirror-model';\nimport { isInTable } from 'prosemirror-tables';\n\nimport { EditorUI } from '../../api/ui';\nimport { EditorCommandId } from '../../api/command';\n\nexport class TableContextMenuPlugin extends Plugin {\n private menuVisible = false;\n\n constructor(_schema: Schema, ui: EditorUI) {\n super({\n key: new PluginKey('table-contextmenu'),\n\n props: {\n handleDOMEvents: {\n contextmenu: (view: EditorView, event: Event) => {\n // only trigger when in table\n if (!isInTable(view.state)) {\n return false;\n }\n\n const asyncShowTableContextMenu = async () => {\n const menu = [\n { command: EditorCommandId.TableAddRowBefore },\n { command: EditorCommandId.TableAddRowAfter },\n { separator: true },\n { command: EditorCommandId.TableAddColumnBefore },\n { command: EditorCommandId.TableAddColumnAfter },\n { separator: true },\n { command: EditorCommandId.TableDeleteRow },\n { command: EditorCommandId.TableDeleteColumn },\n { separator: true },\n { command: EditorCommandId.TableDeleteTable },\n { separator: true },\n {\n text: ui.context.translateText('Align Column'),\n subMenu: {\n items: [\n { command: EditorCommandId.TableAlignColumnLeft },\n { command: EditorCommandId.TableAlignColumnCenter },\n { command: EditorCommandId.TableAlignColumnRight },\n { separator: true },\n { command: EditorCommandId.TableAlignColumnDefault },\n ],\n },\n },\n { separator: true },\n { command: EditorCommandId.TableToggleHeader },\n { command: EditorCommandId.TableToggleCaption },\n ];\n\n const { clientX, clientY } = event as MouseEvent;\n await ui.display.showContextMenu!(menu, clientX, clientY);\n this.menuVisible = false;\n };\n\n if (ui.display.showContextMenu) {\n this.menuVisible = true;\n asyncShowTableContextMenu();\n event.stopPropagation();\n event.preventDefault();\n return true;\n } else {\n return false;\n }\n },\n },\n },\n\n // prevent selection while the context menu is visible (the right-click\n // that invokes the context menu ends up resetting the selection, which\n // makes the selection-based commands behave incorrectly when multiple\n // rows or columns are selected)\n filterTransaction: (tr: Transaction, state: EditorState) => {\n if (this.menuVisible && isInTable(state)) {\n return !(tr.selectionSet && !tr.docChanged && !tr.storedMarksSet);\n } else {\n return true;\n }\n },\n });\n }\n}\n","/*\n * table-paste.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Plugin, PluginKey, Transaction, EditorState } from 'prosemirror-state';\nimport { Slice, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView } from 'prosemirror-view';\n\nimport { sliceHasNode } from '../../api/slice';\n\nimport { fixupTableWidths } from './table-columns';\nimport { forChangedNodes } from '../../api/transaction';\n\nimport { kDefaultCellClasses } from './table-nodes';\n\nexport function tablePaste() {\n return new Plugin({\n key: new PluginKey('table-paste'),\n props: {\n handlePaste: (view: EditorView, _event: Event, slice: Slice) => {\n // if the slice contains a table then we handle it\n if (sliceHasNode(slice, node => node.type === node.type.schema.nodes.table)) {\n // based on https://github.com/ProseMirror/prosemirror-view/blob/fb799aae4e9dd5cfc256708a6845d76aaaf145bf/src/input.js#L503-L510\n const tr = view.state.tr.replaceSelection(slice);\n view.dispatch(\n tr\n .scrollIntoView()\n .setMeta('paste', true)\n .setMeta('tablePaste', true)\n .setMeta('uiEvent', 'paste'),\n );\n view.dispatch(fixupTableWidths(view)(view.state.tr));\n return true;\n } else {\n return false;\n }\n },\n },\n appendTransaction: (transactions: Transaction[], oldState: EditorState, newState: EditorState) => {\n // alias schema\n const schema = newState.schema;\n\n // only process table paste transactions\n if (!transactions.some(transaction => transaction.getMeta('tablePaste'))) {\n return null;\n }\n\n // cleanup table by converting the first row to header cells, ensuring that column alignments\n // are derived from the alignment of the first row, and applying the standard cell class names\n const tr = newState.tr;\n forChangedNodes(\n oldState,\n newState,\n node => node.type === node.type.schema.nodes.table,\n (node, pos) => {\n let firstRow: ProsemirrorNode;\n let currentColumn = 0;\n const columnAlignments: string[] = [];\n\n node.descendants((childNode, childPos, parent) => {\n // if this is a row then reset the current column to 0\n if (childNode.type === schema.nodes.table_row) {\n currentColumn = 0;\n }\n\n // first thing we will encounter in traveral is the first row, note that and move along to cells\n if (!firstRow) {\n // note first row\n firstRow = childNode;\n\n // children of the first row are the headers\n } else if (parent === firstRow) {\n // collect alignment (will be applied below to cells in this column)\n columnAlignments.push(childNode.attrs.align);\n\n // convert to a table header w/ default class\n const headerPos = pos + 1 + childPos;\n tr.setNodeMarkup(headerPos, schema.nodes.table_header, {\n ...childNode.attrs,\n className: kDefaultCellClasses,\n });\n\n // normal cell - apply the requisite alignment and give it the default class\n } else if (childNode.type === schema.nodes.table_cell) {\n // determine alignment\n const align = columnAlignments[currentColumn] || null;\n\n // apply markup\n const cellPos = pos + 1 + childPos;\n tr.setNodeMarkup(cellPos, schema.nodes.table_cell, {\n ...childNode.attrs,\n align,\n className: kDefaultCellClasses,\n });\n }\n\n // if this is a cell then advance the current column\n if (childNode.type === schema.nodes.table_header || childNode.type === schema.nodes.table_cell) {\n currentColumn++;\n }\n });\n },\n );\n\n if (tr.docChanged) {\n return tr;\n }\n },\n });\n}\n","/*\n * definition_list.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, DOMOutputSpec } from 'prosemirror-model';\n\nimport { PandocTokenType } from '../../api/pandoc';\nimport { ExtensionContext } from '../../api/extension';\nimport { BaseKey } from '../../api/basekeys';\n\nimport { InsertDefinitionList, InsertDefinitionDescription, InsertDefinitionTerm } from './definition_list-commands';\n\nimport {\n definitionListEnter,\n definitionListBackspace,\n definitionListTab,\n definitionListShiftTab,\n} from './definition-list-keys';\n\nimport { definitionInputRule } from './definition_list-inputrule';\n\nimport { insertDefinitionListAppendTransaction } from './definition_list-insert';\nimport {\n readPandocDefinitionList,\n writePandocDefinitionList,\n writePandocDefinitionListTerm,\n writePandocDefinitionListDescription,\n} from './definition_list-pandoc';\n\nimport './definition_list-styles.css';\nimport { emptyNodePlaceholderPlugin } from '../../api/placeholder';\n\nconst extension = (context: ExtensionContext) => {\n const { pandocExtensions, ui } = context;\n\n if (!pandocExtensions.definition_lists) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'definition_list_term',\n spec: {\n content: 'inline*',\n isolating: true,\n parseDOM: [{ tag: 'dt' }],\n toDOM(): DOMOutputSpec {\n return ['dt', { class: 'pm-definition-term' }, 0];\n },\n },\n pandoc: {\n writer: writePandocDefinitionListTerm,\n },\n },\n {\n name: 'definition_list_description',\n spec: {\n content: 'block+',\n parseDOM: [{ tag: 'dd' }],\n toDOM(): DOMOutputSpec {\n return ['dd', { class: 'pm-definition-description pm-block-border-color pm-margin-bordered' }, 0];\n },\n },\n pandoc: {\n writer: writePandocDefinitionListDescription,\n },\n },\n {\n name: 'definition_list',\n spec: {\n content: '(definition_list_term definition_list_description*)+',\n group: 'block',\n defining: true,\n parseDOM: [{ tag: 'dl' }],\n toDOM(): DOMOutputSpec {\n return ['dl', { class: 'pm-definition-list' }, 0];\n },\n },\n pandoc: {\n readers: [\n {\n token: PandocTokenType.DefinitionList,\n handler: readPandocDefinitionList,\n },\n ],\n\n writer: writePandocDefinitionList,\n },\n },\n ],\n\n commands: (schema: Schema) => {\n return [\n new InsertDefinitionList(ui),\n new InsertDefinitionTerm(schema, ui),\n new InsertDefinitionDescription(schema),\n ];\n },\n\n baseKeys: (_schema: Schema) => {\n return [\n { key: BaseKey.Enter, command: definitionListEnter() },\n { key: BaseKey.Backspace, command: definitionListBackspace() },\n { key: BaseKey.Tab, command: definitionListTab() },\n { key: BaseKey.ShiftTab, command: definitionListShiftTab() },\n ];\n },\n\n inputRules: (_schema: Schema) => {\n return [definitionInputRule()];\n },\n\n appendTransaction: (_schema: Schema) => {\n return [insertDefinitionListAppendTransaction()];\n },\n\n plugins: (schema: Schema) => {\n return [emptyNodePlaceholderPlugin(schema.nodes.definition_list_term, () => ui.context.translateText('Term'))];\n },\n };\n};\n\nexport default extension;\n","/*\n * definition_list-commands.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeOfType, setTextSelection } from 'prosemirror-utils';\n\nimport { canInsertNode } from '../../api/node';\nimport { insertDefinitionList } from './definition_list-insert';\nimport { EditorUI } from '../../api/ui';\nimport { OmniInsertGroup } from '../../api/omni_insert';\n\nexport class InsertDefinitionList extends ProsemirrorCommand {\n constructor(ui: EditorUI) {\n super(\n EditorCommandId.DefinitionList,\n [],\n (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (\n findParentNodeOfType(schema.nodes.definition_list)(state.selection) ||\n !canInsertNode(state, schema.nodes.definition_list)\n ) {\n return false;\n }\n\n // new definition list\n if (dispatch) {\n const tr = state.tr;\n\n // create new list\n const termText = insertTermText(ui);\n const term = schema.text(termText);\n insertDefinitionList(tr, [\n schema.nodes.definition_list_term.createAndFill({}, term),\n createDefinitionDescription(schema),\n ]);\n const start = state.selection.from;\n tr.setSelection(TextSelection.create(tr.doc, start, start + termText.length + 1)).scrollIntoView();\n dispatch(tr);\n }\n return true;\n },\n // omni insert\n {\n name: ui.context.translateText('Definition List'),\n description: ui.context.translateText('List with a definition for each item'),\n group: OmniInsertGroup.Lists,\n priority: 3,\n image: () =>\n ui.prefs.darkMode() ? ui.images.omni_insert?.definition_list_dark! : ui.images.omni_insert?.definition_list!,\n },\n );\n }\n}\n\nclass InsertDefinitionListItemCommand extends ProsemirrorCommand {\n constructor(id: EditorCommandId, createFn: () => ProsemirrorNode) {\n super(id, [], (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const schema = state.schema;\n\n if (!findParentNodeOfType(schema.nodes.definition_list)(state.selection)) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n const dlTypes = [schema.nodes.definition_list_term, schema.nodes.definition_list_description];\n const parent = findParentNodeOfType(dlTypes)(state.selection)!;\n const insertPos = parent.pos + parent.node.nodeSize;\n const insertNode = createFn();\n tr.insert(insertPos, insertNode);\n if (insertNode.textContent.length > 1) {\n tr.setSelection(TextSelection.create(tr.doc, insertPos, insertPos + insertNode.textContent.length + 1));\n } else {\n setTextSelection(insertPos, 1)(tr);\n }\n tr.scrollIntoView();\n\n dispatch(tr);\n }\n\n return true;\n });\n }\n}\n\nexport class InsertDefinitionTerm extends InsertDefinitionListItemCommand {\n constructor(schema: Schema, ui: EditorUI) {\n super(EditorCommandId.DefinitionTerm, () => {\n const term = schema.text(insertTermText(ui));\n return schema.nodes.definition_list_term.createAndFill({}, term)!;\n });\n }\n}\n\nexport class InsertDefinitionDescription extends InsertDefinitionListItemCommand {\n constructor(schema: Schema) {\n super(EditorCommandId.DefinitionDescription, () => {\n return createDefinitionDescription(schema);\n });\n }\n}\n\nfunction insertTermText(ui: EditorUI) {\n return ui.context.translateText('term');\n}\n\nfunction createDefinitionDescription(schema: Schema) {\n return schema.nodes.definition_list_description.createAndFill({}, schema.nodes.paragraph.create())!;\n}\n","/*\n * definition_list-insert.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { Transaction } from 'prosemirror-state';\nimport { setTextSelection } from 'prosemirror-utils';\nimport { findChildrenByType } from 'prosemirror-utils';\nimport { trTransform } from '../../api/transaction';\nimport { Transform } from 'prosemirror-transform';\n\nexport function insertDefinitionList(tr: Transaction, items: ProsemirrorNode[]) {\n const schema = items[0].type.schema;\n const definitionList = schema.nodes.definition_list.createAndFill({}, items)!;\n const prevCursor = tr.selection.to;\n tr.replaceSelectionWith(definitionList);\n setTextSelection(tr.mapping.map(prevCursor) - 1, -1)(tr).scrollIntoView();\n return tr;\n}\n\nexport function insertDefinitionListAppendTransaction() {\n return {\n name: 'definition-list-join',\n nodeFilter: (node: ProsemirrorNode) => node.type === node.type.schema.nodes.definition_list,\n append: (tr: Transaction) => {\n // if a transaction creates 2 adjacent definition lists then join them\n trTransform(tr, joinDefinitionListsTransform);\n },\n };\n}\n\nfunction joinDefinitionListsTransform(tr: Transform) {\n const nodeType = tr.doc.type.schema.nodes.definition_list;\n const lists = findChildrenByType(tr.doc, nodeType, true);\n for (const list of lists) {\n // NOTE: no mapping (checking for deletion + getting the updated\n // position) is required here because we only ever do one transform\n // (see return after tr.join below)\n const listPos = tr.doc.resolve(list.pos + 1);\n const listIndex = listPos.index(listPos.depth - 1);\n const listParent = listPos.node(listPos.depth - 1);\n if (listIndex + 1 < listParent.childCount) {\n const nextNode = listParent.child(listIndex + 1);\n if (nextNode.type === nodeType) {\n tr.join(list.pos + list.node.nodeSize);\n return;\n }\n }\n }\n}\n","/*\n * definition_list-keys.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction, TextSelection } from 'prosemirror-state';\nimport {\n findParentNodeOfType,\n findParentNodeOfTypeClosestToPos,\n setTextSelection,\n hasParentNodeOfType,\n ContentNodeWithPos,\n} from 'prosemirror-utils';\n\nimport { isLastChild, isOnlyChild } from '../../api/position';\n\nexport function definitionListEnter() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // process if we are within a definition list\n const schema = state.schema;\n const parentDL = findParentNodeOfType(schema.nodes.definition_list)(state.selection);\n if (!parentDL) {\n return false;\n }\n\n // handle only empty selections\n if (!state.selection.empty) {\n return false;\n }\n\n // handle enter in either a term or definition\n const parentTerm = findParentNodeOfType(schema.nodes.definition_list_term)(state.selection);\n if (parentTerm) {\n return termEnter(parentTerm, state, dispatch);\n\n // enter in trailing empty description paragraph (append a term)\n } else if (isTrailingEmptyParagraph(state)) {\n if (dispatch) {\n endOfDescriptionEnter(state, dispatch);\n }\n return true;\n } else {\n return false;\n }\n };\n}\n\nexport function definitionListBackspace() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // process if we are within a definition item\n const schema = state.schema;\n const dlTypes = [schema.nodes.definition_list_term, schema.nodes.definition_list_description];\n const parentTerm = findParentNodeOfType(dlTypes)(state.selection);\n if (!parentTerm) {\n return false;\n }\n\n if (parentTerm.node.type === schema.nodes.definition_list_term) {\n // if it's empty\n if (parentTerm.node.childCount === 0) {\n if (dispatch) {\n emptyTermBackspace(state, dispatch);\n }\n return true;\n }\n } else {\n // if the enclosing description is empty then delete it\n if (parentTerm.node.textContent.length === 0) {\n if (dispatch) {\n emptyDescriptionBackspace(parentTerm, state, dispatch);\n }\n\n return true;\n }\n }\n\n return false;\n };\n}\n\nexport function definitionListTab() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // process if we are within a definition_term\n const schema = state.schema;\n const dlTypes = [schema.nodes.definition_list_term, schema.nodes.definition_list_description];\n const parentTerm = findParentNodeOfType(dlTypes)(state.selection);\n if (!parentTerm) {\n return false;\n }\n\n // advance past node\n if (dispatch) {\n const tr = state.tr;\n const advancePos = parentTerm.pos + parentTerm.node.nodeSize;\n setTextSelection(advancePos, 1)(tr).scrollIntoView();\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nexport function definitionListShiftTab() {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // process if we are within a definition_term\n const schema = state.schema;\n const dlTypes = [schema.nodes.definition_list_term, schema.nodes.definition_list_description];\n const parentTerm = findParentNodeOfType(dlTypes)(state.selection);\n if (!parentTerm) {\n return false;\n }\n\n if (dispatch) {\n const tr = state.tr;\n const backwardPos = state.doc.resolve(parentTerm.pos - 1);\n const prevNode = findParentNodeOfTypeClosestToPos(backwardPos, dlTypes);\n if (prevNode) {\n setTextSelection(prevNode.start, 1)(tr).scrollIntoView();\n } else {\n const listNode = findParentNodeOfType(schema.nodes.definition_list)(tr.selection)!;\n setTextSelection(listNode.pos, -1)(tr).scrollIntoView();\n }\n\n dispatch(tr);\n }\n\n return true;\n };\n}\n\nfunction termEnter(term: ContentNodeWithPos, state: EditorState, dispatch?: (tr: Transaction) => void) {\n const schema = state.schema;\n const $head = state.selection.$head;\n\n // only handle empty selections\n if (!state.selection.empty) {\n return false;\n }\n\n // if we are empty then it's an exit (delete the term)\n const isEmpty = term.node.textContent.length === 0;\n if (isEmpty) {\n if (dispatch) {\n const tr = state.tr;\n tr.deleteRange(term.pos, term.pos + term.node.nodeSize);\n tr.replaceSelectionWith(schema.nodes.paragraph.create());\n setTextSelection(tr.mapping.map(state.selection.from), 1)(tr);\n dispatch(tr);\n }\n return true;\n\n // variable handling for non-empty\n } else {\n // selection at the beginning means insert another term above\n if ($head.parentOffset === 0) {\n if (dispatch) {\n const tr = state.tr;\n const insertPos = tr.selection.$head.before($head.depth);\n tr.insert(insertPos, schema.nodes.definition_list_term.create());\n dispatch(tr);\n }\n return true;\n\n // selection at the end means insert a description below\n } else if ($head.parentOffset === term.node.textContent.length) {\n if (dispatch) {\n const tr = state.tr;\n const insertPos = tr.selection.$head.after($head.depth);\n tr.insert(\n insertPos,\n schema.nodes.definition_list_description.createAndFill({}, schema.nodes.paragraph.create())!,\n );\n setTextSelection(insertPos, 1)(tr).scrollIntoView();\n dispatch(tr);\n }\n return true;\n }\n }\n\n return false;\n}\n\nfunction emptyTermBackspace(state: EditorState, dispatch: (tr: Transaction) => void) {\n const { $head } = state.selection;\n const tr = state.tr;\n // if it's the only child then delete the entire list\n if (isOnlyChild($head)) {\n const start = $head.start($head.depth - 1) - 1;\n tr.deleteRange(start, start + $head.node($head.depth - 1).nodeSize);\n } else {\n const start = $head.start($head.depth) - 1;\n tr.deleteRange(start, start + $head.node($head.depth).nodeSize);\n }\n dispatch(tr);\n}\n\nfunction endOfDescriptionEnter(state: EditorState, dispatch: (tr: Transaction) => void) {\n const schema = state.schema;\n const { $head } = state.selection;\n const selectionNode = $head.node($head.depth);\n\n const tr = state.tr;\n\n // if the parent description is empty then delete it\n let start = null;\n const descriptionNode = $head.node($head.depth - 1);\n if (descriptionNode.textContent.trim().length === 0) {\n start = $head.start($head.depth - 1) - 1;\n tr.deleteRange(start, start + descriptionNode.nodeSize);\n\n // only if at very end\n if (isLastChild($head, 2)) {\n const insertPos = tr.mapping.map($head.after($head.depth - 2));\n tr.insert(insertPos, schema.nodes.paragraph.create());\n setTextSelection(insertPos, 1)(tr).scrollIntoView();\n }\n\n // otherwise just delete the paragraph and insert a term\n } else {\n start = $head.start($head.depth) - 1;\n tr.deleteRange(start, start + selectionNode.nodeSize);\n start = tr.mapping.map(start);\n tr.insert(start + 1, schema.nodes.definition_list_term.create());\n setTextSelection(start, 1)(tr).scrollIntoView();\n }\n\n dispatch(tr);\n}\n\nfunction emptyDescriptionBackspace(\n description: ContentNodeWithPos,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n) {\n const tr = state.tr;\n tr.deleteRange(description.pos, description.pos + description.node.nodeSize);\n dispatch(tr);\n}\n\nfunction isTrailingEmptyParagraph(state: EditorState) {\n const { $head } = state.selection;\n const selectionNode = $head.node($head.depth);\n const isParagraph = selectionNode.type === state.schema.nodes.paragraph;\n const isEmpty = selectionNode.textContent.trim().length === 0;\n return isParagraph && isEmpty && isLastChild($head);\n}\n\n// eslint-disable-next-line\nfunction selectionCrossesListBoundary(state: EditorState) {\n const { $head, $anchor } = state.selection;\n const headInDL = hasParentNodeOfType(state.schema.nodes.definition_list)(TextSelection.near($head));\n const anchorInDL = hasParentNodeOfType(state.schema.nodes.definition_list)(TextSelection.near($anchor));\n return headInDL !== anchorInDL;\n}\n","/*\n * definition_list-inputrule.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { InputRule } from 'prosemirror-inputrules';\nimport { EditorState } from 'prosemirror-state';\nimport { setTextSelection, findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';\n\nimport { insertDefinitionList } from './definition_list-insert';\n\nexport function definitionInputRule() {\n return new InputRule(/^:[ ]+$/, (state: EditorState, match: string[], start: number, end: number) => {\n const schema = state.schema;\n\n // if we are inside a definiition list description this means start a new description\n const { $head } = state.selection;\n const container = $head.node($head.depth - 1);\n const parent = $head.node($head.depth);\n\n // must be just ': '\n if (parent.textContent.trim() !== ':') {\n return null;\n }\n\n // check for : within a definition list description\n if (container.type === schema.nodes.definition_list_description && parent.type === schema.nodes.paragraph) {\n const tr = state.tr;\n const startPos = $head.start($head.depth) - 1;\n tr.deleteRange(startPos, startPos + $head.node($head.depth).nodeSize);\n const insertPos = tr.mapping.map(startPos) + 1;\n tr.insert(\n insertPos,\n schema.nodes.definition_list_description.createAndFill({}, schema.nodes.paragraph.create())!,\n );\n setTextSelection(insertPos, 1)(tr).scrollIntoView();\n return tr;\n\n // check for : in a paragraph immediately after another paragraph\n } else if (container.type !== schema.nodes.definition_list_description && isParagraphAfterParagraph(state)) {\n const prevPara = findParentNodeOfTypeClosestToPos(state.doc.resolve(start - 2), schema.nodes.paragraph);\n if (prevPara) {\n const tr = state.tr;\n tr.deleteRange(prevPara.start, end);\n insertDefinitionList(tr, [\n schema.nodes.definition_list_term.createAndFill({}, prevPara.node.content)!,\n schema.nodes.definition_list_description.createAndFill({}, schema.nodes.paragraph.create())!,\n ]);\n return tr;\n } else {\n return null;\n }\n } else {\n return null;\n }\n });\n}\n\nfunction isParagraphAfterParagraph(state: EditorState) {\n const schema = state.schema;\n const { $head } = state.selection;\n\n // check if the selection is in a paragraph\n const selectionInParagraph = $head.node($head.depth).type === schema.nodes.paragraph;\n if (!selectionInParagraph) {\n return false;\n }\n\n // check if the previous node is a paragraph\n const parent = $head.node($head.depth - 1);\n const parentIndex = $head.index($head.depth - 1);\n return parentIndex > 0 && parent.child(parentIndex - 1).type === schema.nodes.paragraph;\n}\n","/*\n * position.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { ResolvedPos } from 'prosemirror-model';\n\nexport function isOnlyChild(pos: ResolvedPos, depthOffset = 1) {\n return pos.node(pos.depth - depthOffset).childCount === 1;\n}\n\nexport function isLastChild(pos: ResolvedPos, depthOffset = 1) {\n return pos.index(pos.depth - depthOffset) === pos.node(pos.depth - depthOffset).childCount - 1;\n}\n","/*\n * definition_list-pandoc.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { ProsemirrorWriter, PandocToken, PandocOutput, PandocTokenType } from '../../api/pandoc';\n\nexport function readPandocDefinitionList(schema: Schema) {\n return (writer: ProsemirrorWriter, tok: PandocToken) => {\n writer.openNode(schema.nodes.definition_list, {});\n\n const definitions = tok.c;\n definitions.forEach((definition: [PandocToken[], PandocToken[][]]) => {\n const term = definition[0];\n writer.openNode(schema.nodes.definition_list_term, {});\n writer.writeTokens(term);\n writer.closeNode();\n\n const descriptions = definition[1];\n descriptions.forEach(description => {\n writer.openNode(schema.nodes.definition_list_description, {});\n writer.writeTokens(description);\n writer.closeNode();\n });\n });\n writer.closeNode();\n };\n}\n\nexport function writePandocDefinitionList(output: PandocOutput, node: ProsemirrorNode) {\n output.writeToken(PandocTokenType.DefinitionList, () => {\n // collect terms and descriptions\n const currentDefinition: {\n term?: ProsemirrorNode;\n descriptions: ProsemirrorNode[];\n } = { descriptions: new Array() };\n\n // functions to manipulate current definition\n function writeCurrent() {\n if (currentDefinition.term) {\n output.writeArray(() => {\n output.writeNode(currentDefinition.term!);\n output.writeArray(() => {\n currentDefinition.descriptions.forEach(description => {\n output.writeNode(description);\n });\n });\n });\n }\n }\n\n // write the list\n node.forEach(child => {\n if (child.type === child.type.schema.nodes.definition_list_term) {\n writeCurrent();\n currentDefinition.term = child;\n currentDefinition.descriptions = [];\n } else {\n currentDefinition.descriptions.push(child);\n }\n });\n writeCurrent();\n });\n}\n\nexport function writePandocDefinitionListTerm(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n output.writeInlines(node.content);\n });\n}\n\nexport function writePandocDefinitionListDescription(output: PandocOutput, node: ProsemirrorNode) {\n output.writeArray(() => {\n output.writeNodes(node);\n });\n}\n","/*\n * shortcode_block.ts\n *\n * Copyright (C) 2019-20 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\nimport { EditorState, Transaction } from 'prosemirror-state';\n\nimport { setTextSelection } from 'prosemirror-utils';\n\nimport { PandocOutput, PandocTokenType, PandocToken, stringifyTokens, ProsemirrorWriter } from '../api/pandoc';\n\nimport { kHugoDocType, kQuartoDocType } from '../api/format';\n\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { codeNodeSpec } from '../api/code';\nimport { ProsemirrorCommand, EditorCommandId } from '../api/command';\nimport { canInsertNode } from '../api/node';\nimport { kShortcodeRegEx } from '../api/shortcode';\nimport {\n PandocBlockCapsuleFilter,\n blockCapsuleParagraphTokenHandler,\n encodedBlockCapsuleRegex,\n PandocBlockCapsule,\n blockCapsuleTextHandler,\n blockCapsuleSourceWithoutPrefix,\n} from '../api/pandoc_capsule';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { format } = context;\n\n // return null if no shortcodes\n if (!format.hugoExtensions.shortcodes) {\n return null;\n }\n\n return {\n nodes: [\n {\n name: 'shortcode_block',\n\n spec: {\n ...codeNodeSpec(),\n attrs: {},\n parseDOM: [\n {\n tag: \"div[class*='shortcode-block']\",\n preserveWhitespace: 'full',\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return ['div', { class: 'shortcode-block pm-fixedwidth-font pm-code-block pm-markup-text-color' }, 0];\n },\n },\n\n code_view: {\n lang: () => 'text',\n borderColorClass: 'pm-raw-block-border',\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.shortcode_block,\n tags: () => ['shortcode'],\n editFn: () => () => false,\n }),\n\n pandoc: {\n // unroll shortcode from paragraph with single shortcode\n blockReader: (schema: Schema, tok: PandocToken, writer: ProsemirrorWriter) => {\n if (isParaWrappingShortcode(tok)) {\n const text = stringifyTokens(tok.c);\n writer.addNode(schema.nodes.shortcode_block, {}, [schema.text(text)]);\n return true;\n } else {\n return false;\n }\n },\n\n // capture shortcuts w/ begin/end tags\n blockCapsuleFilter: shortcodeBlockCapsuleFilter(),\n\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(node.content);\n });\n },\n },\n },\n ],\n\n commands: (schema: Schema) => {\n // only create command for hugo anq quarto doc types\n if (!format.docTypes.includes(kHugoDocType) && \n !format.docTypes.includes(kQuartoDocType)) {\n return [];\n }\n\n return [\n new ProsemirrorCommand(\n EditorCommandId.Shortcode,\n [],\n (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n // enable/disable command\n if (!canInsertNode(state, schema.nodes.shortcode_block)) {\n return false;\n }\n if (dispatch) {\n const tr = state.tr;\n const shortcode = '{{< >}}';\n const shortcodeNode = schema.nodes.shortcode_block.create({}, schema.text(shortcode));\n tr.replaceSelectionWith(shortcodeNode);\n setTextSelection(tr.mapping.map(state.selection.from) - shortcode.length / 2 - 1)(tr);\n dispatch(tr);\n }\n return true;\n },\n ),\n ];\n },\n };\n};\n\nfunction isParaWrappingShortcode(tok: PandocToken) {\n if (tok.t === PandocTokenType.Para) {\n // qualify that this paragraph has text that begins with {{< (so that\n // we don't end up scanning every token of every paragraph )\n const children: PandocToken[] = tok.c;\n if (tok.c.length > 1) {\n const [first, second] = tok.c;\n const firstText = first.t === PandocTokenType.Str ? first.c : second.c;\n if (typeof firstText === 'string' && firstText.startsWith('{{<')) {\n const text = stringifyTokens(children);\n return !!text.match(kShortcodeRegEx);\n }\n }\n }\n return false;\n}\n\nexport function shortcodeBlockCapsuleFilter(): PandocBlockCapsuleFilter {\n const kShortcodeBlockCapsuleType = 'B65B58FD-D707-4C30-8C97-3D99ACF9A157'.toLowerCase();\n\n return {\n type: kShortcodeBlockCapsuleType,\n\n // eslint-disable-next-line no-useless-escape\n match: /^([\\t >]*)(\\{\\{<\\s+([^\\/][^\\t ]+).*?>\\}\\}[ \\t]*\\n(?![ \\t]*\\n)[\\W\\w]*?\\n[\\t >]*\\{\\{<\\s+\\/\\3\\s+>\\}\\})([ \\t]*)$/gm,\n\n extract: (_match: string, p1: string, p2: string, _p3: string, p4: string) => {\n return {\n prefix: p1,\n source: p2,\n suffix: p4,\n };\n },\n\n // textually enclose the capsule so that pandoc parses it as the type of block we want it to\n // (in this case we don't do anything because pandoc would have written this table as a\n // semantically standalone block)\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) => {\n return capsuleText;\n },\n\n // look for one of our block capsules within pandoc ast text (e.g. a code or raw block)\n // and if we find it, parse and return the original source code\n handleText: blockCapsuleTextHandler(\n kShortcodeBlockCapsuleType,\n encodedBlockCapsuleRegex(undefined, undefined, 'gm'),\n ),\n\n // we are looking for a paragraph token consisting entirely of a block capsule of our type.\n // if find that then return the block capsule text\n handleToken: blockCapsuleParagraphTokenHandler(kShortcodeBlockCapsuleType),\n\n // write the node\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n // remove the source prefix\n const source = blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n\n // write the node\n writer.addNode(schema.nodes.shortcode_block, {}, [schema.text(source)]);\n },\n };\n}\n\nexport default extension;\n","/*\n * html_preserve.ts\n *\n * Copyright (C) 2019-20 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Node as ProsemirrorNode, Schema } from 'prosemirror-model';\n\nimport { PandocOutput, PandocTokenType, ProsemirrorWriter } from '../api/pandoc';\nimport { Extension, ExtensionContext } from '../api/extension';\nimport { codeNodeSpec } from '../api/code';\n\nimport {\n PandocBlockCapsuleFilter,\n blockCapsuleParagraphTokenHandler,\n encodedBlockCapsuleRegex,\n PandocBlockCapsule,\n blockCapsuleTextHandler,\n blockCapsuleSourceWithoutPrefix,\n} from '../api/pandoc_capsule';\n\nconst extension = (context: ExtensionContext): Extension | null => {\n const { format } = context;\n\n return {\n nodes: [\n {\n name: 'html_preserve',\n\n spec: {\n ...codeNodeSpec(),\n attrs: {},\n parseDOM: [\n {\n tag: \"div[class*='pm-html-preserve']\",\n preserveWhitespace: 'full',\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return ['div', { class: 'pm-html-preserve pm-fixedwidth-font pm-code-block pm-markup-text-color' }, 0];\n },\n },\n\n code_view: {\n lang: () => 'html',\n borderColorClass: 'pm-raw-block-border',\n },\n\n attr_edit: () => ({\n type: (schema: Schema) => schema.nodes.html_preserve,\n tags: () => ['html_preserve'],\n editFn: () => () => false,\n }),\n\n pandoc: {\n // capture shortcuts w/ begin/end tags\n blockCapsuleFilter: htmlPreserveBlockCapsuleFilter(),\n\n writer: (output: PandocOutput, node: ProsemirrorNode) => {\n output.writeToken(PandocTokenType.Para, () => {\n output.writeRawMarkdown(node.content);\n });\n },\n },\n },\n ],\n };\n};\n\nexport function htmlPreserveBlockCapsuleFilter(): PandocBlockCapsuleFilter {\n const kHtmlPreserveBlockCapsuleType = '83CFCBF3-0429-4822-AAC6-D6F31591AEA8'.toLowerCase();\n\n return {\n type: kHtmlPreserveBlockCapsuleType,\n\n // eslint-disable-next-line no-useless-escape\n match: /^([\\t >]*)([\\W\\w]*?)([ \\t]*)$/gm,\n\n extract: (_match: string, p1: string, p2: string, p3: string) => {\n return {\n prefix: p1,\n source: p2,\n suffix: p3,\n };\n },\n\n // textually enclose the capsule so that pandoc parses it as the type of block we want it to\n // (in this case we don't do anything because pandoc would have written this as a\n // semantically standalone block)\n enclose: (capsuleText: string, capsule: PandocBlockCapsule) => {\n return capsuleText;\n },\n\n // look for one of our block capsules within pandoc ast text (e.g. a code or raw block)\n // and if we find it, parse and return the original source code\n handleText: blockCapsuleTextHandler(\n kHtmlPreserveBlockCapsuleType,\n encodedBlockCapsuleRegex(undefined, undefined, 'gm'),\n ),\n\n // we are looking for a paragraph token consisting entirely of a block capsule of our type.\n // if find that then return the block capsule text\n handleToken: blockCapsuleParagraphTokenHandler(kHtmlPreserveBlockCapsuleType),\n\n // write the node\n writeNode: (schema: Schema, writer: ProsemirrorWriter, capsule: PandocBlockCapsule) => {\n // remove the source prefix\n const source = blockCapsuleSourceWithoutPrefix(capsule.source, capsule.prefix);\n\n // write the node\n writer.addNode(schema.nodes.html_preserve, {}, [schema.text(source)]);\n },\n };\n}\n\nexport default extension;\n","/*\n * ace.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport {\n Plugin,\n PluginKey,\n TextSelection,\n EditorState,\n Transaction,\n Selection,\n NodeSelection,\n} from 'prosemirror-state';\n\nimport { Node as ProsemirrorNode } from 'prosemirror-model';\nimport { EditorView, NodeView, Decoration } from 'prosemirror-view';\nimport { undo, redo } from 'prosemirror-history';\nimport { exitCode } from 'prosemirror-commands';\nimport { keymap } from 'prosemirror-keymap';\nimport { undoInputRule } from 'prosemirror-inputrules';\nimport { GapCursor } from 'prosemirror-gapcursor';\n\nimport { CodeViewOptions, editingRootNode } from '../../api/node';\nimport { insertParagraph } from '../../api/paragraph';\nimport { EditorUI, ChunkEditor } from '../../api/ui';\nimport { EditorOptions } from '../../api/options';\nimport { EditorEvents } from '../../api/events';\nimport { ExtensionContext, ExtensionFn } from '../../api/extension';\nimport { DispatchEvent, ResizeEvent, ScrollEvent } from '../../api/event-types';\nimport { verticalArrowCanAdvanceWithinTextBlock } from '../../api/basekeys';\nimport { handleArrowToAdjacentNode } from '../../api/cursor';\n\nimport { selectAll } from '../../behaviors/select_all';\nimport { findPluginState } from '../../behaviors/find';\n\nimport { AceRenderQueue } from './ace-render-queue';\nimport { AcePlaceholder } from './ace-placeholder';\nimport { AceNodeViews } from './ace-node-views';\n\nimport zenscroll from 'zenscroll';\n\nimport './ace.css';\nimport { ProsemirrorCommand, EditorCommandId } from '../../api/command';\nimport { setTextSelection } from 'prosemirror-utils';\n\nconst plugin = new PluginKey('ace');\n\nexport function aceExtension(codeViews: { [key: string]: CodeViewOptions }): ExtensionFn {\n\n return (context: ExtensionContext) => {\n // shared services\n const aceRenderQueue = new AceRenderQueue(context.events);\n const aceNodeViews = new AceNodeViews();\n\n // build nodeViews\n const nodeTypes = Object.keys(codeViews);\n const nodeViews: {\n [name: string]: (node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) => NodeView;\n } = {};\n nodeTypes.forEach(name => {\n nodeViews[name] = (node: ProsemirrorNode, view: EditorView, getPos: boolean | (() => number)) => {\n return new AceNodeView(\n node,\n view,\n getPos as () => number,\n context,\n codeViews[name],\n aceRenderQueue,\n aceNodeViews,\n );\n };\n });\n\n const activeAceNodeViewCommand = (fn: (view: AceNodeView) => void) => {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n const activeView = aceNodeViews.activeNodeView();\n if (!activeView) {\n return false;\n }\n if (dispatch) {\n fn(activeView);\n }\n return true;\n };\n };\n\n return {\n plugins: () => [\n new Plugin({\n key: plugin,\n props: {\n nodeViews,\n handleDOMEvents: {\n click: aceNodeViews.handleClick.bind(aceNodeViews),\n },\n },\n }),\n // arrow in and out of editor\n keymap({\n ArrowLeft: arrowHandler('left', nodeTypes),\n ArrowRight: arrowHandler('right', nodeTypes),\n ArrowUp: arrowHandler('up', nodeTypes),\n ArrowDown: arrowHandler('down', nodeTypes),\n }),\n ],\n commands: () => [\n new ProsemirrorCommand(EditorCommandId.ExpandChunk, [], activeAceNodeViewCommand(nodeView => {\n nodeView.setExpanded(true); \n })),\n new ProsemirrorCommand(EditorCommandId.CollapseChunk, [], activeAceNodeViewCommand(nodeView => {\n nodeView.setExpanded(false);\n })),\n ]\n };\n };\n}\n\n/**\n * Represents a selection that was applied prior to the editor rendering (needs\n * to be applied when the editor rendering completes)\n */\nclass QueuedSelection {\n constructor(public readonly anchor: number, public readonly head: number) {}\n}\n\nexport class AceNodeView implements NodeView {\n public readonly getPos: () => number;\n public node: ProsemirrorNode;\n public readonly dom: HTMLElement;\n\n private readonly view: EditorView;\n private readonly ui: EditorUI;\n private readonly nodeViews: AceNodeViews;\n private readonly renderQueue: AceRenderQueue;\n private chunk?: ChunkEditor;\n private aceEditor?: AceAjax.Editor;\n private editSession?: AceAjax.IEditSession;\n private readonly editorOptions: EditorOptions;\n private readonly options: CodeViewOptions;\n private readonly events: EditorEvents;\n\n private updating: boolean;\n private escaping: boolean;\n private gapCursorPending: boolean;\n private mouseDown: boolean;\n private mode: string;\n private findMarkers: number[];\n private selectionMarker: number | null;\n private queuedSelection: QueuedSelection | null;\n private resizeTimer: number;\n private renderedWidth: number;\n private scrollRow: number;\n private cursorDirty: boolean;\n\n private readonly subscriptions: VoidFunction[];\n\n constructor(\n node: ProsemirrorNode,\n view: EditorView,\n getPos: () => number,\n context: ExtensionContext,\n options: CodeViewOptions,\n renderQueue: AceRenderQueue,\n nodeViews: AceNodeViews,\n ) {\n // context\n const ui = context.ui;\n const editorOptions = context.options;\n\n // Store for later\n this.node = node;\n this.view = view;\n this.ui = context.ui;\n this.events = context.events;\n this.getPos = getPos;\n\n // Initialize values\n this.mode = '';\n this.escaping = false;\n this.gapCursorPending = false;\n this.findMarkers = [];\n this.selectionMarker = null;\n this.renderQueue = renderQueue;\n this.nodeViews = nodeViews;\n this.queuedSelection = null;\n this.subscriptions = [];\n this.resizeTimer = 0;\n this.renderedWidth = 0;\n this.scrollRow = -1;\n this.cursorDirty = false;\n this.mouseDown = false;\n\n // options\n this.editorOptions = editorOptions;\n this.options = options;\n\n // The editor's outer node is our DOM representation\n this.dom = document.createElement('div');\n this.dom.classList.add('pm-code-editor');\n this.dom.classList.add('pm-ace-editor');\n this.dom.classList.add('pm-ace-editor-inactive');\n this.dom.classList.add(options.borderColorClass || 'pm-block-border-color');\n if (this.options.classes) {\n this.options.classes.forEach(className => this.dom.classList.add(className));\n }\n\n // Create a preview of the text (will be shown until editor is fully initialized)\n const preview = new AcePlaceholder(node.textContent);\n this.dom.appendChild(preview.getElement());\n\n // Style the first line differently if requested\n if (options.firstLineMeta) {\n this.dom.classList.add('pm-ace-first-line-meta');\n }\n\n // update mode\n this.updateMode();\n\n // observe all editor dispatches\n this.subscriptions.push(\n this.events.subscribe(DispatchEvent, (tr: Transaction | undefined) => {\n if (tr) {\n this.onEditorDispatch(tr);\n }\n }),\n );\n\n // This flag is used to avoid an update loop between the outer and\n // inner editor\n this.updating = false;\n\n if (renderQueue.isRenderCompleted()) {\n // All editors have been rendered and the queue is empty; initialize\n // directly (this happens when e.g., inserting code chunks interactively\n // after the document is fully rendered)\n this.initEditor();\n } else {\n // Rendering is not complete; add to the queue\n renderQueue.add(this);\n }\n\n // add ourselves to the list of all ace node views\n this.nodeViews.add(this);\n }\n\n public destroy() {\n // Unsubscribe from events\n this.subscriptions.forEach(unsub => unsub());\n\n // Clean up attached editor instance when it's removed from the DOM\n if (this.chunk) {\n this.chunk.destroy();\n }\n\n // remove ourselves from the list of all ace node views\n this.nodeViews.remove(this);\n }\n\n public update(node: ProsemirrorNode, _decos: Decoration[]) {\n if (node.type !== this.node.type) {\n return false;\n }\n if (!this.editSession) {\n return false;\n }\n this.node = node;\n this.updateMode();\n\n const AceRange = window.require('ace/range').Range;\n const doc = this.editSession.getDocument();\n\n const change = computeChange(this.editSession.getValue(), node.textContent);\n if (change) {\n this.updating = true;\n const range = AceRange.fromPoints(doc.indexToPosition(change.from, 0), doc.indexToPosition(change.to, 0));\n this.editSession.replace(range, change.text);\n this.updating = false;\n }\n\n // Clear any previously rendered find markers\n this.findMarkers.forEach(id => {\n if (this.editSession) {\n this.editSession.removeMarker(id);\n }\n });\n this.findMarkers = [];\n\n // Get all of the find results inside this node\n const decorations = findPluginState(this.view.state);\n if (decorations) {\n const decos = decorations?.find(this.getPos(), this.getPos() + node.nodeSize - 1);\n\n // If we got results, render them\n if (decos) {\n decos.forEach((deco: any) => {\n if (!this.editSession) {\n return;\n }\n\n // Calculate from/to position for result marker (adjust for zero based column)\n const markerFrom = doc.indexToPosition(deco.from - this.getPos(), 0);\n markerFrom.column--;\n const markerTo = doc.indexToPosition(deco.to - this.getPos(), 0);\n markerTo.column--;\n const range = AceRange.fromPoints(markerFrom, markerTo);\n\n // Create the search result marker and add it to the rendered set\n const markerId = this.editSession.addMarker(range, deco.type.attrs.class, 'result', true);\n this.findMarkers.push(markerId);\n });\n }\n }\n\n // Ensure that the chunk is expanded if it contains find markers (so user can see search results)\n if (this.chunk && this.findMarkers.length > 0) {\n this.chunk.setExpanded(true);\n }\n\n return true;\n }\n\n public setSelection(anchor: number, head: number) {\n // We haven't drawn the editor yet, so queue the selection until we can\n // apply it.\n if (!this.aceEditor || !this.editSession) {\n this.queuedSelection = new QueuedSelection(anchor, head);\n return;\n }\n if (!this.escaping && !this.gapCursorPending) {\n this.aceEditor.focus();\n }\n this.updating = true;\n const doc = this.editSession.getDocument();\n const AceRange = window.require('ace/range').Range;\n const range = AceRange.fromPoints(doc.indexToPosition(anchor, 0), doc.indexToPosition(head, 0));\n this.editSession.getSelection().setSelectionRange(range);\n this.updating = false;\n }\n\n public setGapCursorPending(pending: boolean) {\n this.gapCursorPending = pending;\n }\n\n public isFocused() {\n return this.aceEditor && this.aceEditor.isFocused();\n }\n\n public setExpanded(expanded: boolean) {\n if (this.chunk) {\n this.chunk.setExpanded(expanded);\n }\n }\n\n public getExpanded() {\n if (this.chunk) {\n return this.chunk.getExpanded();\n } else {\n return false;\n }\n }\n\n public selectNode() {\n if (this.aceEditor) {\n this.aceEditor.focus();\n }\n }\n\n public stopEvent() {\n return true;\n }\n\n public ignoreMutation(_mutation: MutationRecord | { type: 'selection'; target: Element }) {\n return true;\n }\n\n private onEditorDispatch(tr: Transaction) {\n if (!tr.docChanged && tr.selectionSet) {\n this.highlightSelectionAcross(tr.selection); \n }\n }\n\n private forwardSelection() {\n // ignore if we don't have focus\n if (!this.chunk || !this.chunk.element.contains(window.document.activeElement)) {\n return;\n }\n\n const state = this.view.state;\n const selection = this.asProseMirrorSelection(state.doc);\n if (selection && !selection.eq(state.selection)) {\n this.view.dispatch(state.tr.setSelection(selection));\n }\n }\n\n private asProseMirrorSelection(doc: ProsemirrorNode) {\n if (!this.editSession) {\n return null;\n }\n const offset = this.getPos() + 1;\n const session = this.editSession;\n const range = session.getSelection().getRange();\n const anchor = session.getDocument().positionToIndex(range.start, 0) + offset;\n const head = session.getDocument().positionToIndex(range.end, 0) + offset;\n return TextSelection.create(doc, anchor, head);\n }\n\n // detect the entire editor being selected across, in which case we add an ace marker\n // visually indicating that the text is selected\n private highlightSelectionAcross(selection: Selection) {\n if (!this.aceEditor || !this.editSession) {\n return;\n }\n\n // clear any existing selection marker\n if (this.selectionMarker !== null) {\n this.editSession.removeMarker(this.selectionMarker);\n this.selectionMarker = null;\n }\n\n // check for selection spanning us\n const pos = this.getPos();\n if (selection.from < pos && selection.to > pos + this.node.nodeSize) {\n const doc = this.editSession.getDocument();\n const AceRange = window.require('ace/range').Range;\n const range = AceRange.fromPoints(doc.indexToPosition(0, 0), doc.indexToPosition(this.node.nodeSize - 1, 0));\n this.selectionMarker = this.editSession.addMarker(range, 'pm-selected-text', 'selection', true);\n }\n }\n\n private valueChanged() {\n const change = computeChange(this.node.textContent, this.getContents());\n if (change) {\n // update content\n const start = this.getPos() + 1;\n if (!isNaN(start)) {\n const tr = this.view.state.tr.replaceWith(\n start + change.from,\n start + change.to,\n change.text ? this.node.type.schema.text(change.text) : null,\n );\n this.view.dispatch(tr);\n }\n }\n this.updateMode();\n }\n\n /**\n * Scrolls a child of the editor chunk into view.\n *\n * @param ele The child to scroll.\n */\n private scrollIntoView(ele: HTMLElement) {\n const editingRoot = editingRootNode(this.view.state.selection);\n if (editingRoot) {\n const container = this.view.nodeDOM(editingRoot.pos) as HTMLElement;\n const scroller = zenscroll.createScroller(container);\n\n let top = 0;\n\n // The DOM node representing this editor chunk (this.dom) may not be a\n // direct child of the scrollable container. If it isn't, walk up the DOM\n // tree until we find the main content node (pm-content), which is the\n // offset parent against which we need to compute scroll position.\n let scrollParent = this.dom;\n while (scrollParent.offsetParent != null &&\n !scrollParent.offsetParent.classList.contains(\"pm-content\"))\n {\n top += scrollParent.offsetTop;\n scrollParent = scrollParent.offsetParent as HTMLElement;\n }\n\n // Since the element we want to scroll into view is not a direct child of\n // the scrollable container, do a little math to figure out the\n // destination scroll position.\n top += ele.offsetTop + scrollParent.offsetTop;\n const bottom = top + ele.offsetHeight;\n const viewTop = container.scrollTop;\n const viewBottom = container.scrollTop + container.offsetHeight;\n\n // Scroll based on element's current position and size\n if (top > viewTop && bottom < viewBottom) {\n // Element is already fully contained in the viewport\n return;\n } else if (ele.offsetHeight > container.offsetHeight) {\n // Element is taller than the viewport, so show the first part of it\n scroller.toY(top);\n } else if (top < viewTop) {\n // Element is above viewport, so scroll it into view\n scroller.toY(top);\n } else if (bottom > viewBottom) {\n // Part of the element is beneath the viewport, so scroll just enough to\n // bring it into view\n scroller.toY(container.scrollTop - (viewBottom - bottom));\n }\n }\n }\n\n /**\n * Initializes the editing surface by creating and injecting an Ace editor\n * instance from the host.\n */\n public initEditor() {\n // skip if we're already initialized\n if (this.aceEditor) {\n return;\n }\n\n // call host factory to instantiate editor\n this.chunk = this.ui.chunks.createChunkEditor('ace', this.dom, this.node.attrs.md_index, this.node.attrs.classes, {\n getPos: () => this.getPos(),\n scrollIntoView: ele => this.scrollIntoView(ele),\n scrollCursorIntoView: () => this.scrollCursorIntoView(),\n getTextContent: () => this.node.textContent\n });\n\n // populate initial contents\n this.aceEditor = this.chunk.editor as AceAjax.Editor;\n this.updating = true;\n this.aceEditor.setValue(this.node.textContent);\n this.updating = false;\n\n this.aceEditor.clearSelection();\n\n // cache edit session for convenience; most operations happen on the session\n this.editSession = this.aceEditor.getSession();\n\n // remove the preview and recreate chunk toolbar\n this.dom.innerHTML = '';\n this.dom.appendChild(this.chunk.element);\n\n // Propagate updates from the code editor to ProseMirror\n this.aceEditor.on('changeSelection', () => {\n if (!this.updating) {\n this.forwardSelection();\n }\n });\n this.aceEditor.on('change', () => {\n if (!this.updating) {\n this.valueChanged();\n }\n });\n\n // Forward selection we we receive it\n this.aceEditor.on('focus', () => {\n this.dom.classList.remove('pm-ace-editor-inactive');\n this.forwardSelection();\n });\n\n this.aceEditor.on('blur', () => {\n // Add a class to editor; this class contains CSS rules that hide editor\n // components that Ace cannot hide natively (such as the cursor,\n // matching bracket indicator, and active selection)\n this.dom.classList.add('pm-ace-editor-inactive');\n });\n\n // If the cursor moves and we're in focus, ensure that the cursor is\n // visible. Ace's own cursor visiblity mechanisms don't work in embedded\n // editors.\n this.aceEditor.getSelection().on('changeCursor', () => {\n if (this.dom.contains(document.activeElement) && !this.mouseDown) {\n this.cursorDirty = true;\n }\n });\n\n this.aceEditor.renderer.on('afterRender', () => {\n // If the cursor position is dirty and the mouse is not down, scroll the\n // cursor into view. Don't scroll while the mouse is down, as it will be\n // treated as a click-and-drag by Ace.\n if (this.cursorDirty && !this.mouseDown) {\n this.scrollCursorIntoView();\n this.cursorDirty = false;\n }\n });\n\n // Add custom escape commands for movement keys (left/right/up/down); these\n // will check to see whether the movement should leave the editor, and if\n // so will do so instead of moving the cursor.\n this.aceEditor.commands.addCommand({\n name: 'leftEscape',\n bindKey: 'Left',\n exec: () => {\n this.arrowMaybeEscape('char', -1, 'gotoleft');\n },\n readOnly: true\n });\n this.aceEditor.commands.addCommand({\n name: 'rightEscape',\n bindKey: 'Right',\n exec: () => {\n // if the chunk is currently collapsed, the right arrow should open it up\n if (this.chunk && !this.chunk.getExpanded()) {\n this.chunk.setExpanded(true);\n return;\n }\n this.arrowMaybeEscape('char', 1, 'gotoright');\n },\n readOnly: true\n });\n this.aceEditor.commands.addCommand({\n name: 'upEscape',\n bindKey: 'Up',\n exec: () => {\n this.arrowMaybeEscape('line', -1, 'golineup');\n },\n readOnly: true\n });\n this.aceEditor.commands.addCommand({\n name: 'downEscape',\n bindKey: 'Down',\n exec: () => {\n this.arrowMaybeEscape('line', 1, 'golinedown');\n },\n readOnly: true\n });\n\n // Pressing Backspace in the editor when it's empty should delete it.\n this.aceEditor.commands.addCommand({\n name: 'backspaceDeleteNode',\n bindKey: 'Backspace',\n exec: () => {\n this.backspaceMaybeDeleteNode();\n },\n });\n\n // Handle undo/redo in ProseMirror\n this.aceEditor.commands.addCommand({\n name: 'undoProsemirror',\n bindKey: {\n win: 'Ctrl-Z',\n mac: 'Command-Z',\n },\n exec: () => {\n if (undo(this.view.state, this.view.dispatch)) {\n this.view.focus();\n }\n },\n });\n this.aceEditor.commands.addCommand({\n name: 'redoProsemirror',\n bindKey: {\n win: 'Ctrl-Shift-Z|Ctrl-Y',\n mac: 'Command-Shift-Z|Command-Y',\n },\n exec: () => {\n if (redo(this.view.state, this.view.dispatch)) {\n this.view.focus();\n }\n },\n });\n\n // Handle Select All in ProseMirror\n this.aceEditor.commands.addCommand({\n name: 'selectAllProsemirror',\n bindKey: {\n win: 'Ctrl-A',\n mac: 'Command-A',\n },\n exec: () => {\n if (selectAll(this.view.state, this.view.dispatch, this.view)) {\n this.view.focus();\n }\n },\n });\n\n // Handle shortcuts for moving focus out of the code editor and into\n // ProseMirror\n this.aceEditor.commands.addCommand({\n name: 'exitCodeBlock',\n bindKey: 'Shift-Enter',\n exec: () => {\n if (exitCode(this.view.state, this.view.dispatch)) {\n this.view.focus();\n }\n },\n });\n\n // Create a command for inserting paragraphs from the code editor\n this.aceEditor.commands.addCommand({\n name: 'insertParagraph',\n bindKey: {\n win: 'Ctrl-\\\\',\n mac: 'Command-\\\\',\n },\n exec: () => {\n if (insertParagraph(this.view.state, this.view.dispatch)) {\n this.view.focus();\n }\n },\n });\n\n // Line-by-line execution\n this.aceEditor.commands.addCommand({\n name: 'executeSelection',\n bindKey: {\n win: 'Ctrl-Enter',\n mac: 'Ctrl-Enter|Command-Enter',\n },\n exec: () => {\n if (this.chunk && this.aceEditor) {\n // Record the position prior to execution\n const pos = this.aceEditor.getCursorPosition();\n\n // Execute the selection\n this.chunk.executeSelection();\n\n // If the cursor stayed on the last line, step out of the code block\n // if we're not at the end of the doc (this is a no-op when not on the\n // last line, and mirrors the behavior when stepping past the end of\n // chunks in the code editor)\n if (pos.row === this.aceEditor.getCursorPosition().row) {\n this.arrowMaybeEscape('line', 1);\n }\n }\n },\n });\n\n // If an attribute editor function was supplied, bind it to F4\n if (this.options.attrEditFn) {\n this.aceEditor.commands.addCommand({\n name: 'editAttributes',\n bindKey: 'F4',\n exec: () => {\n this.options.attrEditFn!(this.view.state, this.view.dispatch, this.view);\n },\n });\n }\n\n // Apply editor mode\n if (this.mode) {\n this.chunk.setMode(this.mode);\n }\n\n // Disconnect font metrics system after render loop\n (this.aceEditor.renderer as any).on('afterRender', () => {\n // Update known rendered width\n if (this.chunk) {\n this.renderedWidth = this.chunk.element.offsetWidth;\n }\n\n window.setTimeout(() => {\n if (this.aceEditor) {\n const metrics = (this.aceEditor.renderer as any).$fontMetrics;\n if (metrics && metrics.$observer) {\n metrics.$observer.disconnect();\n }\n }\n }, 0);\n });\n\n // Hook up the container to the render queue\n const editingRoot = editingRootNode(this.view.state.selection)!;\n const container = this.view.nodeDOM(editingRoot.pos) as HTMLElement;\n if (container.parentElement) {\n this.renderQueue.setContainer(container);\n }\n\n // Forward selection, if we have one (this can be set while the editor is\n // waiting to render)\n if (this.queuedSelection) {\n this.setSelection(this.queuedSelection.anchor, this.queuedSelection.head);\n this.queuedSelection = null;\n }\n\n // Subscribe to resize event; will reflow the editor to wrap properly at the\n // new width\n this.subscriptions.push(\n this.events.subscribe(ResizeEvent, () => {\n this.debounceResize();\n }),\n );\n\n // Subscribe to scroll event; invalidates the row we're scrolled to so\n // scrollback will be triggered if necessary (after e.g., typing after\n // scrolling offscreen)\n this.subscriptions.push(\n this.events.subscribe(ScrollEvent, () => {\n this.scrollRow = -1;\n }),\n );\n\n // Keep track of mouse state so we can avoid e.g., autoscrolling while the\n // mouse is down\n this.dom.addEventListener(\"mousedown\", (evt) => {\n this.mouseDown = true;\n });\n this.dom.addEventListener(\"mouseup\", (evt) => {\n this.mouseDown = false;\n });\n this.dom.addEventListener(\"mouseleave\", (evt) => {\n // Treat mouse exit as an up since it will cause us to miss the up event\n this.mouseDown = false;\n });\n }\n\n /**\n * Debounced version of editor resize; ensures we don't aggressively resize\n * while size is still changing.\n */\n private debounceResize() {\n // Clear any previously running resize timer\n if (this.resizeTimer !== 0) {\n window.clearTimeout(this.resizeTimer);\n }\n\n // Create a new resize timer\n this.resizeTimer = window.setTimeout(() => {\n if (this.chunk && this.aceEditor) {\n // If the width we last rendered is different than our current width,\n // trigger an Ace resize event (causes editor to reflow wrapped text)\n if (this.renderedWidth !== this.chunk.element.offsetWidth) {\n this.aceEditor.resize();\n }\n }\n this.resizeTimer = 0;\n }, 500);\n }\n\n private updateMode() {\n // get lang\n const lang = this.options.lang(this.node, this.getContents());\n\n if (lang !== null && this.mode !== lang) {\n if (this.chunk) {\n this.chunk.setMode(lang);\n }\n this.mode = lang;\n }\n }\n\n private backspaceMaybeDeleteNode() {\n // if the node is empty and we execute a backspace then delete the node\n if (this.node.childCount === 0) {\n // if there is an input rule we just executed then use this to undo it\n if (undoInputRule(this.view.state)) {\n undoInputRule(this.view.state, this.view.dispatch);\n this.view.focus();\n } else {\n const tr = this.view.state.tr;\n tr.delete(this.getPos(), this.getPos() + this.node.nodeSize);\n tr.setSelection(TextSelection.near(tr.doc.resolve(this.getPos()), -1));\n this.view.dispatch(tr);\n this.view.focus();\n }\n } else if (this.aceEditor) {\n this.aceEditor.execCommand('backspace');\n }\n }\n\n // Checks to see whether an arrow key should escape the editor or not. If so,\n // sends the focus to the right node; if not, executes the given Ace command\n // (to perform the arrow key's usual action)\n private arrowMaybeEscape(unit: string, dir: number, command?: string) {\n if (!this.aceEditor || !this.editSession) {\n return;\n }\n\n const pos = this.aceEditor.getCursorPosition();\n const lastrow = this.editSession.getLength() - 1;\n if (this.getExpanded() && // special handing of keys for collapsed\n (!this.aceEditor.getSelection().isEmpty() ||\n pos.row !== (dir < 0 ? 0 : lastrow) ||\n (unit === 'char' && pos.column !== (dir < 0 ? 0 : this.editSession.getDocument().getLine(pos.row).length)))\n ) {\n // this movement is happening inside the editor itself. don't escape\n // the editor; just execute the underlying command\n if (command) {\n this.aceEditor.execCommand(command);\n }\n return;\n }\n\n // the cursor is about to leave the editor region; flag this to avoid side\n // effects\n this.escaping = true;\n\n // ensure we are focused\n this.view.focus();\n\n // handle arrow key\n handleArrowToAdjacentNode(this.getPos(), dir, this.view.state, this.view.dispatch);\n\n // set focus\n this.view.focus();\n this.escaping = false;\n }\n\n private getContents(): string {\n if (this.editSession) {\n return this.editSession.getValue();\n } else {\n return this.dom.innerText;\n }\n }\n\n /**\n * Ensures that the Ace cursor is visible in the scrollable region of the document.\n */\n private scrollCursorIntoView(): void {\n // No need to try to enforce cursor position if we're already scrolled to\n // this row\n if (this.editSession && this.editSession.getSelection().getCursor().row === this.scrollRow) {\n return;\n }\n\n // Ensure we still have focus before proceeding\n if (this.dom.contains(document.activeElement)) {\n\n // Find the element containing the rendered virtual cursor \n const cursor = this.dom.querySelector(\".ace_cursor\");\n if (cursor === null) {\n return;\n }\n\n // Ace doesn't actually move the cursor but uses CSS translations to\n // make it appear in the right place, so we need to use the somewhat\n // expensive getBoundingClientRect call to get a resolved position.\n // (The alternative would be parse the translate: transform(10px 20px))\n // call from the style property.)\n const editingRoot = editingRootNode(this.view.state.selection)!;\n const container = this.view.nodeDOM(editingRoot.pos) as HTMLElement;\n const containerRect = container.getBoundingClientRect();\n const cursorRect = cursor.getBoundingClientRect();\n\n // Scrolling down?\n const down = cursorRect.bottom + 10 - containerRect.bottom;\n if (down > 0) {\n container.scrollTop += down;\n } else {\n // Scrolling up?\n const up = containerRect.top + 10 - cursorRect.top;\n if (up > 0) {\n container.scrollTop -= up;\n }\n }\n\n // Update cached scroll row so we don't unnecessarily redo these\n // computations\n if (this.editSession) {\n this.scrollRow = this.editSession.getSelection().getCursor().row;\n }\n }\n }\n}\n\nfunction computeChange(oldVal: string, newVal: string) {\n if (oldVal === newVal) {\n return null;\n }\n let start = 0;\n let oldEnd = oldVal.length;\n let newEnd = newVal.length;\n while (start < oldEnd && oldVal.charCodeAt(start) === newVal.charCodeAt(start)) {\n ++start;\n }\n while (oldEnd > start && newEnd > start && oldVal.charCodeAt(oldEnd - 1) === newVal.charCodeAt(newEnd - 1)) {\n oldEnd--;\n newEnd--;\n }\n return {\n from: start,\n to: oldEnd,\n text: newVal.slice(start, newEnd),\n };\n}\n\nfunction arrowHandler(dir: 'up' | 'down' | 'left' | 'right', nodeTypes: string[]) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n if (state.selection.empty && !(state.selection instanceof GapCursor) && view && view.endOfTextblock(dir)) {\n const side = dir === 'left' || dir === 'up' ? -1 : 1;\n const $head = state.selection.$head;\n const nextPos = Selection.near(state.doc.resolve(side > 0 ? $head.after() : $head.before()), side);\n if (nextPos.$head && nodeTypes.includes(nextPos.$head.parent.type.name)) {\n // check for e.g. math where you can advance across embedded newlines\n if ((dir === 'up' || dir === 'down') && verticalArrowCanAdvanceWithinTextBlock(state.selection, dir)) {\n return false;\n }\n if (dispatch) {\n dispatch(state.tr.setSelection(nextPos));\n }\n return true;\n }\n }\n return false;\n };\n}\n","/*\n * cursor.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction, NodeSelection, Selection } from 'prosemirror-state';\nimport { GapCursor } from 'prosemirror-gapcursor';\n\nexport function handleArrowToAdjacentNode(\n nodePos: number,\n dir: number,\n state: EditorState,\n dispatch?: (tr: Transaction) => void,\n): boolean {\n // resolve the node and position\n const node = state.doc.nodeAt(nodePos);\n if (!node) {\n return false;\n }\n const $pos = state.doc.resolve(nodePos);\n\n // helpers to figure out the nature of prev/next nodes\n const prevNodeSelectable = () => {\n return $pos.nodeBefore && $pos.nodeBefore.type.spec.selectable;\n };\n const nextNodeSelectable = () => {\n const nextNode = state.doc.nodeAt(nodePos + node.nodeSize);\n return nextNode?.type.spec.selectable;\n };\n const prevNodeTextBlock = () => {\n return $pos.nodeBefore && $pos.nodeBefore.isTextblock;\n };\n const nextNodeTextBlock = () => {\n const nextNode = state.doc.nodeAt(nodePos + node.nodeSize);\n return nextNode?.isTextblock;\n };\n const prevNodeCode = () => {\n return $pos.nodeBefore && !!$pos.nodeBefore.type.spec.code;\n };\n const nextNodeCode = () => {\n const nextNode = state.doc.nodeAt(nodePos + node.nodeSize);\n return !!nextNode?.type.spec.code;\n };\n\n // see if we can get a new selection\n const tr = state.tr;\n let selection: Selection | undefined;\n\n // if we are going backwards and there is no previous position, then return a gap cursor\n if (dir < 0 && !$pos.nodeBefore) {\n selection = new GapCursor(tr.doc.resolve(nodePos), tr.doc.resolve(nodePos));\n\n // if we are going forwards and there is no next position, then return a gap cursor\n } else if (dir > 0 && !$pos.nodeAfter) {\n const cursorPos = nodePos + node.nodeSize;\n selection = new GapCursor(tr.doc.resolve(cursorPos), tr.doc.resolve(cursorPos));\n\n // if we are going backwards and the previous node can take node selections then select it\n } else if (dir < 0 && prevNodeSelectable()) {\n const prevNodePos = nodePos - $pos.nodeBefore!.nodeSize;\n selection = NodeSelection.create(tr.doc, prevNodePos);\n\n // if we are going forwards and the next node can take node selections then select it\n } else if (dir >= 0 && nextNodeSelectable()) {\n const nextNodePos = nodePos + node.nodeSize;\n selection = NodeSelection.create(tr.doc, nextNodePos);\n\n // if we are going backwards and the previous node is not a text block then create a gap cursor\n } else if (dir < 0 && (!prevNodeTextBlock() || prevNodeCode())) {\n selection = new GapCursor(tr.doc.resolve(nodePos), tr.doc.resolve(nodePos));\n\n // if we are going forwards and the next node is not a text block then create a gap cursor\n } else if (dir >= 0 && (!nextNodeTextBlock() || nextNodeCode())) {\n const endPos = nodePos + node.nodeSize;\n selection = new GapCursor(tr.doc.resolve(endPos), tr.doc.resolve(endPos));\n\n // otherwise use text selection handling (handles forward/backward text selections)\n } else {\n const targetPos = nodePos + (dir < 0 ? 0 : node.nodeSize);\n const targetNode = tr.doc.nodeAt(targetPos);\n if (targetNode) {\n selection = Selection.near(tr.doc.resolve(targetPos), dir);\n }\n }\n\n if (selection) {\n if (dispatch) {\n tr.setSelection(selection);\n dispatch(tr);\n }\n return true;\n } else {\n return false;\n }\n}\n","/*\n * ace-render-queue.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { AceNodeView } from './ace';\nimport { EditorEvents } from '../../api/events';\nimport { ScrollEvent, UpdateEvent } from '../../api/event-types';\n\n/**\n * Represents a queue of Ace editor instances that are rendered asynchronously.\n */\nexport class AceRenderQueue {\n private readonly renderQueue: AceNodeView[] = [];\n\n private renderCompleted: boolean = false;\n private renderTimer: number = 0;\n private updateTimer: number = 0;\n private container?: HTMLElement;\n private needsSort: boolean = true;\n private bypass: number = 5;\n private observer?: IntersectionObserver;\n private visible: boolean = true;\n private readonly subscriptions: VoidFunction[] = [];\n\n constructor(private events: EditorEvents) {\n // Begin listening for scroll and update events so we can manage the queue\n // accordingly\n this.subscriptions.push(\n events.subscribe(ScrollEvent, () => {\n this.onScroll();\n }),\n );\n this.subscriptions.push(\n events.subscribe(UpdateEvent, () => {\n this.onUpdate();\n }),\n );\n }\n\n /**\n * Sets (or replaces) the scroll container hosting the render queue. The\n * scroll container is used to prioritize the queue (i.e. objects in the\n * viewport or close to it are to be given more priority).\n *\n * @param container The HTML element of the scroll container\n */\n public setContainer(container: HTMLElement) {\n // Skip if we're already looking at this container\n if (this.container === container) {\n return;\n }\n\n // Clean up observer on any previous container\n if (this.observer) {\n this.observer.disconnect();\n }\n\n // Save reference to container\n this.container = container;\n\n // Create intersection observer to ensure that we don't needlessly churn\n // through renders while offscreen.\n this.observer = new IntersectionObserver(\n (entries: IntersectionObserverEntry[]) => {\n for (const entry of entries) {\n if (entry.isIntersecting && !this.visible) {\n // We just became visible; process the render queue now.\n this.visible = true;\n this.processRenderQueue();\n }\n if (!entry.isIntersecting && this.visible) {\n // We just lost visibility; end processing of the render queue. (Note\n // that we only do this when connected to the DOM as another reason\n // the element can become invisible is ProseMirror swapping it out\n // internally.)\n if (this.container?.parentElement) {\n this.visible = false;\n this.cancelTimer();\n }\n }\n }\n },\n {\n root: null,\n },\n );\n\n // Begin observing intersection events in container\n this.observer.observe(container);\n }\n\n /**\n * Invoke when the editor surface is scrolled\n */\n private onScroll() {\n // Whenever a scroll event occurs, we need to re-sort the queue so that\n // objects in or closest to the viewport are given priority.\n this.needsSort = true;\n\n // If we don't think we're visible but we're scrolling and have height,\n // then we are in fact visible. (This catches a case where the\n // intsersection observer created below doesn't fire for visiblity\n // changes.)\n if (!this.visible && this.container && this.container.offsetHeight > 0) {\n this.visible = true;\n this.processRenderQueue();\n }\n }\n\n /**\n * Invoke when the document has changed\n */\n private onUpdate() {\n // Debounce update timer. This timer is used to prevent the CPU intensive\n // editor rendering from happening while the user is actively updating the\n // document.\n if (this.updateTimer !== 0) {\n window.clearTimeout(this.updateTimer);\n }\n this.updateTimer = window.setTimeout(() => {\n this.updateTimer = 0;\n // Process queue immediately if we have one\n this.scheduleRender(0);\n }, 1000);\n }\n\n /**\n * Indicates whether the render queue has a scroll container defined\n */\n public hasContainer(): boolean {\n if (this.container) {\n return true;\n }\n return false;\n }\n\n /**\n * Indicates whether the rendering is finished.\n */\n public isRenderCompleted(): boolean {\n return this.renderCompleted;\n }\n\n /**\n * Adds a node view to the render queue\n */\n public add(view: AceNodeView) {\n // We allow the first few code blocks to render synchronously instead of\n // being dumped into the queue for later processing. This slightly increases\n // startup time but prevents the flicker that would otherwise occur as\n // editors render one by one.\n if (this.bypass > 0) {\n this.bypass--;\n view.initEditor();\n return;\n }\n\n this.renderQueue.push(view);\n\n // Defer/debounce rendering of editors until event loop finishes\n if (this.renderTimer === 0) {\n this.scheduleRender(0);\n }\n }\n\n /**\n * Processes the queue of editor instances that need to be rendered.\n */\n private processRenderQueue() {\n // No work to do if queue is empty\n if (this.renderQueue.length === 0) {\n return;\n }\n\n // Don't render while hidden; it wastes resources plus can result in\n // incorrect sizing calculations\n if (!this.visible) {\n return;\n }\n\n // Don't render while the user is actively updating the document (it makes\n // the interface sluggish)\n if (this.updateTimer !== 0) {\n return;\n }\n\n // Compute offset for sorting (based on scroll position)\n let offset = 0;\n if (this.container) {\n offset = this.container.scrollTop;\n }\n\n // Sort the queue if required\n if (this.needsSort) {\n // Sort the render queue based on distance from the top of the viewport\n this.renderQueue.sort((a, b) => {\n return Math.abs(a.dom.offsetTop - offset) - Math.abs(b.dom.offsetTop - offset);\n });\n\n // Clear flag so we don't sort the queue on every render\n this.needsSort = false;\n }\n\n // Pop the next view (editor instance) to be rendered off the stack.\n // Fast-forward past instances that no longer have a position; these can\n // accumulate when NodeViews are added to the render queue but replaced\n // (by a document rebuild) before they have a chance to render.\n let view: AceNodeView | undefined;\n while ((view === null || view === undefined || view.getPos() === undefined) &&\n this.renderQueue.length > 0) {\n view = this.renderQueue.shift();\n }\n\n // Render this view\n if (view) {\n view.initEditor();\n }\n\n if (this.renderQueue.length > 0) {\n // There are still remaining editors to be rendered, so process again on\n // the next event loop.\n //\n // If these editors are near the viewport, render them as soon as\n // possible; otherwise, let the render proceed at a slower pace to\n // increase responsiveness.\n let delayMs = 1000;\n if (this.container) {\n const distance = Math.abs(this.renderQueue[0].dom.offsetTop - offset);\n if (distance < this.container.offsetHeight * 2) {\n // Container is near the viewport, so render it ASAP\n delayMs = 0;\n }\n }\n this.scheduleRender(delayMs);\n } else {\n // No remaining editors; we're done.\n this.renderCompleted = true;\n this.destroy();\n }\n }\n\n /**\n * Cancels the timer that is responsible for triggering the processing of the\n * next unit in the render queue.\n */\n private cancelTimer() {\n if (this.renderTimer !== 0) {\n window.clearTimeout(this.renderTimer);\n this.renderTimer = 0;\n }\n }\n\n /**\n * Reschedules a pending render, or schedules a new one.\n */\n private scheduleRender(delayMs: number) {\n this.cancelTimer();\n this.renderTimer = window.setTimeout(() => {\n this.processRenderQueue();\n this.renderTimer = 0;\n }, delayMs);\n }\n\n /**\n * Cleans up the render queue instance\n */\n private destroy() {\n // Cancel any pending renders\n this.cancelTimer();\n\n // Clear any pending update timer\n if (this.updateTimer !== 0) {\n window.clearTimeout(this.updateTimer);\n }\n\n // Remove event subscriptions\n this.subscriptions.forEach(unsub => unsub());\n\n // Clean up resize observer\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n}\n","/*\n * ace-placeholder.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\n/**\n * Represents a placeholder (preview) rendering of an Ace editor. Since Ace\n * editors are somewhat expensive to draw, this placeholder is used in place\n * of a real editor instance to make code visible and allow for correct height\n * computations.\n */\nexport class AcePlaceholder {\n private readonly element: HTMLElement;\n\n constructor(content: string) {\n const ele = document.createElement('pre');\n ele.innerText = content;\n ele.className = 'ace_editor';\n this.element = ele;\n }\n\n public getElement() {\n return this.element;\n }\n}\n","/*\n * ace-node-views.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { GapCursor } from 'prosemirror-gapcursor';\nimport { AceNodeView } from './ace';\nimport { EditorView } from 'prosemirror-view';\n\n/**\n * Track all Ace node view instances to implement additional behavior\n * (e.g. gap cursor for clicks between editor instances)\n */\n\nexport class AceNodeViews {\n private nodeViews: AceNodeView[];\n\n constructor() {\n this.nodeViews = [];\n }\n public add(nodeView: AceNodeView) {\n this.nodeViews.push(nodeView);\n }\n\n public remove(nodeView: AceNodeView) {\n const index = this.nodeViews.indexOf(nodeView);\n if (index >= 0) {\n this.nodeViews.splice(index, 1);\n }\n }\n\n public activeNodeView() : AceNodeView | undefined {\n return this.nodeViews.find(view => view.isFocused());\n }\n\n public handleClick(view: EditorView, event: Event): boolean {\n // alias to mouseEvent\n const mouseEvent = event as MouseEvent;\n\n // see if the click is between 2 contiguously located node views\n for (const nodeView of this.nodeViews) {\n // gap cursor we might detect\n let gapCursor: GapCursor | null = null;\n\n // get the position\n const pos = nodeView.getPos();\n const $pos = view.state.doc.resolve(pos);\n\n // if the previous node is code, see if the click is between the 2 nodes\n if ($pos.nodeBefore && $pos.nodeBefore.type.spec.code) {\n // get our bounding rect\n const dom = nodeView.dom;\n const nodeViewRect = dom.getBoundingClientRect();\n\n // get the previous node's bounding rect\n const prevNodePos = pos - $pos.nodeBefore!.nodeSize;\n const prevNodeView = this.nodeViews.find(nv => nv.getPos() === prevNodePos);\n if (prevNodeView) {\n const prevNodeRect = prevNodeView.dom.getBoundingClientRect();\n\n // check for a click between the two nodes\n const mouseY = mouseEvent.clientY;\n if (mouseY > prevNodeRect.top + prevNodeRect.height && mouseY < nodeViewRect.top) {\n gapCursor = new GapCursor($pos, $pos);\n }\n }\n\n // if there is no previous node and the click is above us then gap cursor above\n // (only do this if the cursor is within 150 pixels of the left edge)\n } else if (\n !$pos.nodeBefore &&\n $pos.depth === 1 &&\n mouseEvent.clientY < nodeView.dom.getBoundingClientRect().top &&\n Math.abs(mouseEvent.clientX - nodeView.dom.getBoundingClientRect().left) < 150\n ) {\n gapCursor = new GapCursor($pos, $pos);\n }\n\n // return gapCursor if we found one\n if (gapCursor) {\n const tr = view.state.tr;\n\n // notify the node views that we are setting a gap cursor\n this.nodeViews.forEach(ndView => ndView.setGapCursorPending(true));\n\n // ensure the view is focused\n view.focus();\n\n // set the selection\n tr.setSelection(gapCursor);\n view.dispatch(tr);\n\n // notify the node views that we are done setting the gap cursor\n this.nodeViews.forEach(ndView => ndView.setGapCursorPending(false));\n\n // prevent default event handling\n event.preventDefault();\n event.stopImmediatePropagation();\n return true;\n }\n }\n\n return false;\n }\n}\n","/*\n * attr_edit.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, Node as ProsemirrorNode } from 'prosemirror-model';\nimport { findChildren } from 'prosemirror-utils';\nimport { Plugin, PluginKey, Transaction, EditorState, Selection } from 'prosemirror-state';\nimport { DecorationSet, Decoration, WidgetDecorationSpec } from 'prosemirror-view';\n\nimport { EditorUI } from '../../api/ui';\nimport { pandocAttrEnabled, pandocAttrAvailable } from '../../api/pandoc_attr';\nimport { kSetMarkdownTransaction, transactionsAreTypingChange, forChangedNodes } from '../../api/transaction';\n\nimport { PandocExtensions } from '../../api/pandoc';\nimport { Extension } from '../../api/extension';\nimport { hasFencedCodeBlocks } from '../../api/pandoc_format';\nimport { selectionIsWithinRange } from '../../api/selection';\n\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { attrEditDecorationWidget } from '../../api/attr_edit/attr_edit-decoration';\n\nimport { AttrEditCommand, attrEditNodeCommandFn } from './attr_edit-command';\nimport { EditorFormat } from '../../api/format';\n\nexport function attrEditExtension(\n pandocExtensions: PandocExtensions,\n ui: EditorUI,\n format: EditorFormat,\n editors: AttrEditOptions[],\n): Extension {\n const hasAttr = pandocAttrEnabled(pandocExtensions) || hasFencedCodeBlocks(pandocExtensions);\n\n return {\n commands: (_schema: Schema) => {\n if (hasAttr) {\n return [new AttrEditCommand(ui, format, pandocExtensions, editors)];\n } else {\n return [];\n }\n },\n\n plugins: (_schema: Schema) => {\n if (hasAttr) {\n return [new AttrEditDecorationPlugin(ui, pandocExtensions, editors)];\n } else {\n return [];\n }\n },\n };\n}\n\nconst key = new PluginKey('attr_edit_decoration');\n\nclass AttrEditDecorationPlugin extends Plugin {\n constructor(ui: EditorUI, pandocExtensions: PandocExtensions, editors: AttrEditOptions[]) {\n\n const decoratorForNode = (editor: AttrEditOptions, \n selection: Selection, \n node: ProsemirrorNode, \n pos: number) => {\n\n // if we prefer hidden and have no attributes then bail\n const range = { from: pos, to: pos + node.nodeSize };\n if (editor.preferHidden && \n !pandocAttrAvailable(node.attrs, !editor.noKeyvalueTags) && \n !selectionIsWithinRange(selection, range)) {\n return undefined;\n }\n\n // provide some editor defaults\n editor.tags = editor.tags ||\n (editorNode => {\n const attrTags = [];\n if (editorNode.attrs.id) {\n attrTags.push(`#${editorNode.attrs.id}`);\n }\n if (editorNode.attrs.classes && editorNode.attrs.classes.length) {\n attrTags.push(`${editorNode.attrs.classes.map((clz: string) => '.' + clz).join(' ')}`);\n }\n if (!editor.noKeyvalueTags && editorNode.attrs.keyvalue && editorNode.attrs.keyvalue.length) {\n attrTags.push(`${editorNode.attrs.keyvalue.map(\n (kv: [string,string]) => kv[0] + '=\"' + (kv[1] || '1') + '\"').join(' ')}\n `);\n }\n return attrTags;\n });\n editor.offset = editor.offset || { top: 0, right: 0 };\n\n // get editFn\n const editFn = attrEditNodeCommandFn(\n { node, pos }, \n ui, \n pandocExtensions, \n editors\n );\n\n // attr_edit controls\n return attrEditDecorationWidget({\n pos,\n tags: editor.tags(node),\n editFn,\n ui,\n offset: editor.offset,\n preferHidden: editor.preferHidden\n });\n \n };\n\n function decoratorsForDoc(state: EditorState) {\n const decorations: Decoration[] = [];\n const nodeTypes = editors.map(ed => ed.type(state.schema));\n findChildren(state.doc, node => nodeTypes.includes(node.type), true).forEach(attrNode => {\n const editor = editors.find(ed => ed.type(state.schema) === attrNode.node.type)!;\n if (!editor.noDecorator) {\n const decorator = decoratorForNode(editor, state.selection, attrNode.node, attrNode.pos);\n if (decorator) {\n decorations.push(decorator);\n }\n \n }\n });\n return DecorationSet.create(state.doc, decorations);\n }\n \n super({\n key,\n state: {\n init: (_config: { [key: string]: any }, state: EditorState) => {\n return decoratorsForDoc(state);\n },\n apply: (tr: Transaction, set: DecorationSet, oldState: EditorState, newState: EditorState) => {\n\n // replacing the entire editor triggers decorations\n if (tr.getMeta(kSetMarkdownTransaction)) {\n return decoratorsForDoc(newState);\n }\n\n // get schema and nodetypes\n const schema = newState.schema;\n const nodeTypes = editors.map(ed => ed.type(schema));\n\n // map \n set = set.map(tr.mapping, tr.doc);\n\n // typing change, return existing decorations\n if (transactionsAreTypingChange([tr])) {\n return set;\n }\n\n // selection change, might need to toggle some decorations on/off\n if (tr.selectionSet) {\n \n // look through each decorator, if it has preferHidden, it's node has no attributes,\n // and it's no longer in the selection then remove it\n const preferHiddenDecorators = set.find(undefined, undefined, spec => !!spec.preferHidden);\n for (const dec of preferHiddenDecorators) {\n const node = newState.doc.nodeAt(dec.from);\n if (node && !pandocAttrAvailable(node.attrs)) {\n if (!selectionIsWithinRange(tr.selection, \n { from: dec.from, to: dec.from + node.nodeSize })) {\n set = set.remove([dec]);\n }\n }\n }\n \n // now look for nodes above us with preferHidden and add decorators for them\n const $head = tr.selection.$head;\n for (let i=1; i<=$head.depth; i++) {\n const parentWithAttrs = { node: $head.node(i), pos: $head.before(i) };\n if (!nodeTypes.includes(parentWithAttrs.node.type)) {\n continue;\n }\n const { pos, node } = parentWithAttrs;\n const editor = editors.find(ed => ed.type(schema) === parentWithAttrs.node.type)!;\n if (editor?.preferHidden && set.find(pos, pos).length === 0) {\n const decorator = decoratorForNode(editor, tr.selection, node, pos);\n if (decorator) {\n set = set.add(tr.doc, [decorator]);\n }\n }\n }\n }\n\n // doc didn't change, return existing decorations\n if (!tr.docChanged && !tr.storedMarksSet) {\n return set;\n }\n \n // scan for added/modified nodes that have attr_edit decorations\n forChangedNodes(\n oldState,\n newState,\n node => nodeTypes.includes(node.type),\n (node, pos) => {\n // remove existing decorations for changed nodes\n const removeDecorations = set.find(pos, pos, (spec: WidgetDecorationSpec) => {\n return !!spec.key && spec.key.startsWith(\"tags:\");\n });\n if (removeDecorations.length > 0) {\n set = set.remove(removeDecorations);\n }\n\n // get editor and screen on noDecorator\n const editor = editors.find(ed => ed.type(schema) === node.type)!;\n if (!editor.noDecorator) {\n const decorator = decoratorForNode(editor, newState.selection, node, pos);\n if (decorator) {\n set = set.add(tr.doc, [decorator]);\n }\n }\n },\n );\n \n // return the updated set\n return set;\n }\n },\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n },\n });\n }\n}\n\n\n","/*\n * attr_edit-command.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState, Transaction, NodeSelection } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { Mark, Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { findParentNodeOfType, NodeWithPos } from 'prosemirror-utils';\n\nimport { EditorUI } from '../../api/ui';\nimport { pandocAttrInSpec } from '../../api/pandoc_attr';\nimport { getSelectionMarkRange } from '../../api/mark';\nimport { EditorCommandId, ProsemirrorCommand } from '../../api/command';\n\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { pandocAutoIdentifier, gfmAutoIdentifier } from '../../api/pandoc_id';\nimport { PandocExtensions } from '../../api/pandoc';\nimport { fragmentText } from '../../api/fragment';\nimport { kEditAttrShortcut } from '../../api/attr_edit/attr_edit-decoration';\nimport { EditorFormat } from '../../api/format';\nimport { editMathAttributesEnabled, editMathAttributes } from '../../marks/math/math-commands';\n\nexport class AttrEditCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI, format: EditorFormat, pandocExtensions: PandocExtensions, editors: AttrEditOptions[]) {\n super(EditorCommandId.AttrEdit, [kEditAttrShortcut], attrEditCommandFn(ui, format, pandocExtensions, editors));\n }\n}\n\nexport function attrEditCommandFn(\n ui: EditorUI, \n format: EditorFormat,\n pandocExtensions: PandocExtensions, \n editors: AttrEditOptions[]\n) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n \n // give math attributes first crack (in case it's inside a node with attributes)\n if (editMathAttributesEnabled(format, state)) {\n return editMathAttributes(ui)(state, dispatch, view);\n }\n \n // see if there is an active mark with attrs or a parent node with attrs\n const marks = state.storedMarks || state.selection.$head.marks();\n const mark = marks.find((m: Mark) => pandocAttrInSpec(m.type.spec));\n\n let node: ProsemirrorNode | null = null;\n let pos: number = 0;\n // node selection of node with attributes\n if (state.selection instanceof NodeSelection && pandocAttrInSpec(state.selection.node.type.spec)) {\n node = state.selection.node;\n pos = state.selection.$anchor.pos;\n } else {\n // selection inside node with editable attributes\n const nodeTypes = editors.map(editor => editor.type(state.schema));\n const parentWithAttrs = findParentNodeOfType(nodeTypes)(state.selection);\n if (parentWithAttrs) {\n node = parentWithAttrs.node;\n pos = parentWithAttrs.pos;\n }\n }\n\n // return false (disabled) for no targets\n if (!mark && !node) {\n return false;\n }\n\n // if this is a node and we have a custom attribute editor then just delegate to that\n if (node) {\n const editor = editors.find(ed => ed.type(state.schema) === node!.type)!;\n if (editor && editor.editFn) {\n return editor.editFn()(state, dispatch, view);\n }\n }\n\n // edit attributes\n async function asyncEditAttrs() {\n if (dispatch) {\n if (mark) {\n await editMarkAttrs(mark, state, dispatch, ui);\n } else {\n await editNodeAttrs(pos, state, dispatch, ui, pandocExtensions);\n }\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditAttrs();\n\n // return true\n return true;\n };\n}\n\nexport function attrEditNodeCommandFn(nodeWithPos: NodeWithPos, \n ui: EditorUI, \n pandocExtensions: PandocExtensions, \n editors: AttrEditOptions[]) {\n \n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\n\n // alias\n const { node, pos } = nodeWithPos;\n\n // registered editor\n const editor = editors.find(ed => ed.type(state.schema) === node!.type)!;\n if (editor && editor.editFn) {\n return editor.editFn()(state, dispatch, view);\n }\n\n // generic editor\n async function asyncEditAttrs() {\n if (dispatch) {\n await editNodeAttrs(pos, state, dispatch, ui, pandocExtensions);\n if (view) {\n view.focus();\n }\n }\n }\n asyncEditAttrs();\n\n // return true\n return true;\n };\n}\n\nasync function editMarkAttrs(\n mark: Mark,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n ui: EditorUI,\n): Promise {\n const attrs = mark.attrs;\n const markType = mark.type;\n const result = await ui.dialogs.editAttr({ ...attrs });\n if (result) {\n const tr = state.tr;\n const range = getSelectionMarkRange(state.selection, markType);\n tr.removeMark(range.from, range.to, markType);\n tr.addMark(\n range.from,\n range.to,\n markType.create({\n ...attrs,\n ...result.attr,\n }),\n );\n dispatch(tr);\n }\n}\n\nasync function editNodeAttrs(\n pos: number,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n ui: EditorUI,\n pandocExtensions: PandocExtensions,\n): Promise {\n const node = state.doc.nodeAt(pos);\n if (node) {\n const attrs = node.attrs;\n const result = await ui.dialogs.editAttr({ ...attrs }, idHint(node, pandocExtensions));\n if (result) {\n const tr = state.tr;\n const targetNode = tr.doc.nodeAt(pos);\n if (targetNode) {\n tr.setNodeMarkup(pos, targetNode.type, {\n ...attrs,\n ...result.attr,\n }),\n dispatch(tr);\n }\n }\n }\n}\n\nfunction idHint(node: ProsemirrorNode, pandocExtensions: PandocExtensions) {\n if (node.type === node.type.schema.nodes.heading) {\n const unemoji = pandocExtensions.gfm_auto_identifiers;\n const text = fragmentText(node.content, unemoji);\n\n if (pandocExtensions.gfm_auto_identifiers) {\n return gfmAutoIdentifier(text, pandocExtensions.ascii_identifiers);\n } else {\n return pandocAutoIdentifier(text, pandocExtensions.ascii_identifiers);\n }\n } else {\n return undefined;\n }\n}\n","/*\n * editor-theme.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nexport interface EditorTheme {\n darkMode: boolean;\n solarizedMode: boolean;\n cursorColor: string;\n selectionColor: string;\n nodeSelectionColor: string;\n backgroundColor: string;\n metadataBackgroundColor: string;\n chunkBackgroundColor: string;\n spanBackgroundColor: string;\n divBackgroundColor: string;\n commentColor: string;\n commentBackgroundColor: string;\n gutterBackgroundColor: string;\n gutterTextColor: string;\n textColor: string;\n lightTextColor: string;\n placeholderTextColor: string;\n invisibleTextColor: string;\n linkTextColor: string;\n surfaceWidgetTextColor: string;\n markupTextColor: string;\n findTextBackgroundColor: string;\n findTextBorderColor: string;\n borderBackgroundColor: string;\n blockBorderColor: string;\n focusOutlineColor: string;\n paneBorderColor: string;\n fixedWidthFont: string;\n fixedWidthFontSizePt: number;\n proportionalFont: string;\n proportionalFontSizePt: number;\n code: CodeTheme;\n}\n\nexport interface CodeTheme {\n keywordColor: string;\n atomColor: string;\n numberColor: string;\n variableColor: string;\n defColor: string;\n operatorColor: string;\n commentColor: string;\n stringColor: string;\n metaColor: string;\n builtinColor: string;\n bracketColor: string;\n tagColor: string;\n attributeColor: string;\n hrColor: string;\n linkColor: string;\n errorColor: string;\n}\n\nexport function defaultTheme(): EditorTheme {\n return {\n darkMode: false,\n solarizedMode: false,\n cursorColor: 'black',\n selectionColor: '#8cf',\n nodeSelectionColor: 'rgb(102,155,243)',\n backgroundColor: 'white',\n metadataBackgroundColor: 'rgb(255, 255, 255)',\n chunkBackgroundColor: 'rgb(251,251,251)',\n spanBackgroundColor: '#fff8dc',\n divBackgroundColor: 'rgb(243, 243, 243)',\n commentColor: '#3c4c72',\n commentBackgroundColor: '#FFECCB',\n gutterBackgroundColor: '#f0f0f0',\n gutterTextColor: '#333',\n textColor: 'black',\n surfaceWidgetTextColor: 'rgba(0,0,0,0.5)',\n lightTextColor: 'rgb(60, 76, 114)',\n linkTextColor: '#106ba3',\n placeholderTextColor: 'gray',\n invisibleTextColor: 'rgb(191, 191, 191)',\n markupTextColor: 'rgb(185, 6, 144)',\n findTextBackgroundColor: 'rgb(250, 250, 255)',\n findTextBorderColor: 'rgb(200, 200, 250)',\n borderBackgroundColor: '#ddd',\n blockBorderColor: '#ddd',\n focusOutlineColor: '#5d84cd',\n paneBorderColor: 'silver',\n fixedWidthFont: 'monospace, monospace',\n fixedWidthFontSizePt: 9,\n proportionalFont: '\"Lucida Sans\", \"DejaVu Sans\", \"Lucida Grande\", \"Segoe UI\", Verdana, Helvetica, sans-serif',\n proportionalFontSizePt: 10,\n code: {\n keywordColor: 'rgb(0, 0, 255)',\n atomColor: 'rgb(88, 92, 246)',\n numberColor: 'rgb(0, 0, 205)',\n variableColor: 'rgb(0, 0, 0)',\n defColor: 'rgb(0, 0, 0)',\n operatorColor: 'rgb(104, 118, 135)',\n commentColor: 'rgb(76, 136, 107)',\n stringColor: 'rgb(3, 106, 7)',\n metaColor: 'rgb(0, 0, 0)',\n builtinColor: 'rgb(0, 0, 0)',\n bracketColor: 'rgb(104, 118, 135)',\n tagColor: 'rgb(0, 22, 142)',\n attributeColor: 'rgb(0, 0, 0)',\n hrColor: 'rgb(0, 0, 0)',\n linkColor: 'rgb(0, 0, 255)',\n errorColor: 'rgb(197, 6, 11)',\n },\n };\n}\n\nexport function applyTheme(theme: EditorTheme) {\n // merge w/ defaults\n const defaults = defaultTheme();\n theme = {\n ...defaults,\n ...theme,\n code: {\n ...defaults.code,\n ...theme.code,\n },\n };\n\n // generate theme css\n const themeCss = `\n .pm-default-theme .pm-background-color {\n background-color: ${defaults.backgroundColor} !important;\n }\n .pm-default-theme .pm-text-color {\n color: ${defaults.textColor} !important;\n }\n .pm-default-theme .pm-border-background-color {\n background-color: ${defaults.borderBackgroundColor} !important;\n }\n .pm-default-theme .pm-input-text {\n border-color: ${defaults.paneBorderColor} !important\n }\n .pm-default-theme .pm-block-border-color {\n border-color: ${defaults.blockBorderColor} !important;\n }\n .pm-default-theme .pm-input-outline-button {\n color: ${defaults.textColor};\n border-color: ${defaults.textColor};\n background-color: ${defaults.backgroundColor};\n }\n .pm-default-theme .pm-selected-navigation-tree-item {\n background-color: ${defaults.findTextBackgroundColor} !important;\n border-color: ${defaults.findTextBorderColor} !important;\n }\n .pm-default-theme .pm-navigation-tree-item {\n border-color: ${defaults.backgroundColor} !important;\n }\n .pm-default-theme .pm-block-border-color {\n border-color: ${defaults.blockBorderColor} !important;\n }\n .pm-default-theme .pm-focus-outline-color {\n border-color: ${defaults.focusOutlineColor} !important;\n }\n .pm-default-theme .pm-input-button {\n border-color: ${defaults.borderBackgroundColor};\n background-color: ${defaults.backgroundColor};\n }\n .pm-default-theme .pm-placeholder-text-color {\n color: ${defaults.placeholderTextColor} !important;\n }\n .pm-default-theme .pm-background-color *::selection {\n background-color: ${defaults.selectionColor} !important;\n }\n .pm-default-theme .pm-find-text,\n .pm-default-theme .pm-list-item-selected,\n .pm-default-theme .pm-grid-item-selected {\n background-color: ${defaults.findTextBackgroundColor} !important;\n box-shadow: 0 0 0 1px ${defaults.findTextBorderColor}; \n border-radius: 3px;\n }\n .pm-default-theme .pm-rstudio-button {\n border-color: DarkGray !important;\n }\n .pm-cursor-color {\n caret-color: ${theme.cursorColor}\n }\n .pm-background-color {\n background-color: ${theme.backgroundColor} !important;\n }\n .pm-metadata-background-color {\n background-color: ${theme.metadataBackgroundColor} !important;\n }\n .pm-chunk-background-color {\n background-color: ${theme.chunkBackgroundColor} !important;\n }\n .pm-span-background-color {\n background-color: ${theme.spanBackgroundColor} !important;\n }\n .pm-div-background-color {\n background-color: ${theme.divBackgroundColor} !important;\n }\n .pm-nbsp-background-color {\n background-color: ${theme.spanBackgroundColor} !important;\n }\n .pm-comment-color {\n color: ${theme.commentColor} !important;\n }\n .pm-comment-background-color {\n background-color: ${theme.commentBackgroundColor} !important;\n }\n .pm-text-color {\n color: ${theme.textColor} !important;\n }\n .pm-surface-widget-text-color {\n color: ${theme.surfaceWidgetTextColor} !important;\n }\n .pm-light-text-color {\n color: ${theme.lightTextColor} !important;\n }\n .pm-placeholder-text-color {\n color: ${theme.placeholderTextColor} !important;\n }\n .pm-invisible-text-color {\n color: ${theme.invisibleTextColor} !important;\n }\n .pm-link-text-color {\n color: ${theme.linkTextColor} !important;\n }\n .pm-markup-text-color {\n color: ${theme.markupTextColor} !important;\n }\n .pm-find-text,\n .pm-list-item-selected,\n .pm-grid-item-selected {\n background-color: ${theme.findTextBackgroundColor} !important;\n box-shadow: 0 0 0 1px ${theme.findTextBorderColor}; \n border-radius: 3px;\n }\n .pm-selected-text {\n background-color: ${theme.selectionColor} !important;\n }\n .pm-selected-list-item {\n background-color: ${theme.findTextBackgroundColor} !important;\n border: 1px solid ${theme.findTextBorderColor} !important;\n border-radius: 3px;\n }\n .pm-dark-mode .pm-selected-list-item {\n background-color: ${theme.chunkBackgroundColor} !important;\n border: 1px solid transparent !important;\n }\n .pm-navigation-tree-item {\n border: 1px solid ${theme.backgroundColor} !important;\n border-radius: 3px;\n margin-left: 2px;\n margin-right: 2px;\n }\n .pm-selected-navigation-tree-item {\n background-color: ${theme.findTextBackgroundColor} !important;\n border: 1px solid ${theme.findTextBorderColor} !important;\n border-radius: 3px;\n margin-left: 2px;\n margin-right: 2px;\n }\n .pm-border-background-color {\n background-color: ${theme.borderBackgroundColor}!important;\n }\n .pm-block-border-color {\n border-color: ${theme.blockBorderColor} !important;\n }\n .pm-focus-outline-color {\n border-color: ${theme.focusOutlineColor} !important;\n }\n .pm-pane-border-color {\n border-color: ${theme.paneBorderColor} !important;\n }\n .pm-div .pm-div {\n border-color: ${theme.focusOutlineColor} !important;\n }\n .pm-raw-block-border {\n border-color: ${theme.markupTextColor} !important;\n }\n .pm-popup {\n box-shadow: 0 1px 3px ${theme.blockBorderColor} !important;\n }\n .pm-selected-node-outline-color,\n .ProseMirror-selectednode {\n outline-color: ${theme.nodeSelectionColor} !important;\n }\n .pm-selected-node-border-color {\n border-color: ${theme.nodeSelectionColor} !important;\n }\n .pm-dark-mode .pm-selected-node-outline-color,\n .pm-dark-mode .ProseMirror-selectednode {\n outline-color: ${theme.nodeSelectionColor} !important;\n }\n .pm-dark-mode .pm-selected-node-border-color {\n border-color: ${theme.nodeSelectionColor} !important;\n }\n .pm-background-color *::selection {\n background-color: ${theme.selectionColor} !important;\n }\n .pm-background-color *::-moz-selection {\n background-color: ${theme.selectionColor} !important;\n }\n .pm-fixedwidth-font {\n font-family: ${theme.fixedWidthFont} !important;\n font-size: ${theme.fixedWidthFontSizePt}pt !important;\n }\n .pm-proportional-font {\n font-family: ${theme.proportionalFont} !important;\n font-size: ${theme.proportionalFontSizePt}pt !important;\n }\n .pm-emoji-font {\n font-family: ${theme.fixedWidthFont} !important;\n }\n .pm-input-text {\n border-color: ${theme.paneBorderColor};\n }\n .pm-input-button {\n border-color: ${theme.borderBackgroundColor};\n background-color: ${theme.backgroundColor};\n }\n .pm-input-outline-button {\n color: ${theme.textColor};\n border-color: ${theme.textColor};\n background-color: ${theme.backgroundColor};\n }\n .pm-ace-first-line-meta .ace_text-layer .ace_line_group:first-child,\n .pm-ace-first-line-meta .ace_text-layer .ace_line_group:first-child span {\n color: ${theme.lightTextColor} !important;\n }\n .pm-ace-collapsed.pm-ace-focused {\n border-color: ${theme.paneBorderColor} !important;\n }\n .ProseMirror-gapcursor:after {\n border-top: 1px solid ${theme.textColor};\n }\n `;\n\n // set style\n setStyleElement('pm-editor-theme-styles-id', themeCss);\n}\n\nexport function applyPadding(padding: string) {\n const paddingCss = `\n .pm-editing-root-node {\n padding-left: ${padding} !important;\n padding-right: ${padding} !important;\n }\n `;\n setStyleElement('pm-editor-padding-styles-id', paddingCss);\n}\n\nfunction setStyleElement(id: string, css: string) {\n // get access to style element (create if necessary)\n let styleEl = window.document.getElementById(id);\n if (styleEl === null) {\n styleEl = window.document.createElement('style');\n styleEl.setAttribute('id', id);\n styleEl.setAttribute('type', 'text/css');\n window.document.head.appendChild(styleEl);\n }\n\n // set css\n styleEl.innerHTML = css;\n}\n","/*\n * editor-images.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorUIImages } from '../api/ui-images';\n\nimport copyImage from './images/copy.png';\nimport propertiesImage from './images/properties.png';\nimport propertiesDecoImage from './images/properties_deco.png';\nimport propertiesDecoDarkImage from './images/properties_deco_dark.png';\nimport removelinkImage from './images/removelink.png';\nimport runchunkImage from './images/runchunk.png';\nimport runprevchunksImage from './images/runprevchunks.png';\nimport searchImage from './images/search.png';\nimport searchProgressImage from './images/search_progress.gif';\n\nimport omniInsertGenericImage from './images/omni_insert/generic.png';\nimport heading1Image from './images/omni_insert/heading1.png';\nimport heading1DarkImage from './images/omni_insert/heading1_dark.png';\nimport heading2Image from './images/omni_insert/heading2.png';\nimport heading2DarkImage from './images/omni_insert/heading2_dark.png';\nimport heading3Image from './images/omni_insert/heading3.png';\nimport heading3DarkImage from './images/omni_insert/heading3_dark.png';\nimport heading4Image from './images/omni_insert/heading4.png';\nimport heading4DarkImage from './images/omni_insert/heading4_dark.png';\nimport bulletListImage from './images/omni_insert/bullet_list.png';\nimport bulletListDarkImage from './images/omni_insert/bullet_list_dark.png';\nimport orderedListImage from './images/omni_insert/ordered_list.png';\nimport orderedListDarkImage from './images/omni_insert/ordered_list_dark.png';\nimport blockquoteImage from './images/omni_insert/blockquote.png';\nimport blockquoteDarkImage from './images/omni_insert/blockquote_dark.png';\nimport mathInlineImage from './images/omni_insert/math_inline.png';\nimport mathInlineDarkImage from './images/omni_insert/math_inline_dark.png';\nimport mathDisplayImage from './images/omni_insert/math_display.png';\nimport mathDisplayDarkImage from './images/omni_insert/math_display_dark.png';\nimport htmlBlockImage from './images/omni_insert/html_block.png';\nimport htmlBlockDarkImage from './images/omni_insert/html_block_dark.png';\nimport lineBlockImage from './images/omni_insert/line_block.png';\nimport lineBlockDarkImage from './images/omni_insert/line_block_dark.png';\nimport emojiImage from './images/omni_insert/emoji.png';\nimport emojiDarkImage from './images/omni_insert/emoji_dark.png';\nimport commentImage from './images/omni_insert/comment.png';\nimport commentDarkImage from './images/omni_insert/comment_dark.png';\nimport divImage from './images/omni_insert/div.png';\nimport divDarkImage from './images/omni_insert/div_dark.png';\nimport codeBlockImage from './images/omni_insert/code_block.png';\nimport codeBlockDarkImage from './images/omni_insert/code_block_dark.png';\nimport footnoteImage from './images/omni_insert/footnote.png';\nimport footnoteDarkImage from './images/omni_insert/footnote_dark.png';\nimport citationImage from './images/omni_insert/citation.png';\nimport citationDarkImage from './images/omni_insert/citation_dark.png';\nimport crossReferenceImage from './images/omni_insert/cross_reference.png';\nimport crossReferenceDarkImage from './images/omni_insert/cross_reference_dark.png';\nimport symbolImage from './images/omni_insert/symbol.png';\nimport symbolDarkImage from './images/omni_insert/symbol_dark.png';\nimport tableImage from './images/omni_insert/table.png';\nimport tableDarkImage from './images/omni_insert/table_dark.png';\nimport definitionListImage from './images/omni_insert/definition_list.png';\nimport definitionListDarkImage from './images/omni_insert/definition_list_dark.png';\nimport horizontalRuleImage from './images/omni_insert/horizontal_rule.png';\nimport horizontalRuleDarkImage from './images/omni_insert/horizontal_rule_dark.png';\nimport imgImage from './images/omni_insert/image.png';\nimport imgDarkImage from './images/omni_insert/image_dark.png';\nimport linkImage from './images/omni_insert/link.png';\nimport linkDarkImage from './images/omni_insert/link_dark.png';\nimport paragraphImage from './images/omni_insert/paragraph.png';\nimport paragraphDarkImage from './images/omni_insert/paragraph_dark.png';\nimport rawBlockImage from './images/omni_insert/raw_block.png';\nimport rawBlockDarkImage from './images/omni_insert/raw_block_dark.png';\nimport rawInlineImage from './images/omni_insert/raw_inline.png';\nimport rawInlineDarkImage from './images/omni_insert/raw_inline_dark.png';\nimport texBlockImage from './images/omni_insert/tex_block.png';\nimport texBlockDarkImage from './images/omni_insert/tex_block_dark.png';\nimport yamlBlockImage from './images/omni_insert/yaml_block.png';\nimport yamlBlockDarkImage from './images/omni_insert/yaml_block_dark.png';\nimport pythonChunkImage from './images/omni_insert/python_chunk.png';\nimport sqlChunkImage from './images/omni_insert/sql_chunk.png';\nimport d3ChunkImage from './images/omni_insert/d3_chunk.png';\nimport stanChunkImage from './images/omni_insert/stan_chunk.png';\nimport bashChunkImage from './images/omni_insert/bash_chunk.png';\nimport bashChunkDarkImage from './images/omni_insert/bash_chunk_dark.png';\nimport rChunkImage from './images/omni_insert/r_chunk.png';\nimport rChunkDarkImage from './images/omni_insert/r_chunk_dark.png';\nimport rcppChunkImage from './images/omni_insert/rcpp_chunk.png';\nimport rcppChunkDarkImage from './images/omni_insert/rcpp_chunk_dark.png';\nimport tabsetImage from './images/omni_insert/tabset.png';\nimport tabsetDarkImage from './images/omni_insert/tabset_dark.png';\nimport slideColumns from './images/omni_insert/slide_columns.png';\nimport slideColumnsDark from './images/omni_insert/slide_columns_dark.png';\nimport slidePause from './images/omni_insert/slide_pause.png';\nimport slidePauseDark from './images/omni_insert/slide_pause_dark.png';\nimport slideNotes from './images/omni_insert/slide_notes.png';\nimport slideNotesDark from './images/omni_insert/slide_notes_dark.png';\n\nimport articleImage from './images/citations/article.png';\nimport articleDarkImage from './images/citations/article_dark.png';\nimport bookImage from './images/citations/book.png';\nimport bookDarkImage from './images/citations/book_dark.png';\nimport broadcastImage from './images/citations/broadcast.png';\nimport broadcastDarkImage from './images/citations/broadcast_dark.png';\nimport dataImage from './images/citations/data.png';\nimport dataDarkImage from './images/citations/data_dark.png';\nimport entryImage from './images/citations/entry.png';\nimport entryDarkImage from './images/citations/entry_dark.png';\nimport imageImage from './images/citations/image.png';\nimport imageDarkImage from './images/citations/image_dark.png';\nimport legalImage from './images/citations/legal.png';\nimport legalDarkImage from './images/citations/legal_dark.png';\nimport mapImage from './images/citations/map.png';\nimport mapDarkImage from './images/citations/map_dark.png';\nimport movieImage from './images/citations/movie.png';\nimport movieDarkImage from './images/citations/movie_dark.png';\nimport otherImage from './images/citations/other.png';\nimport otherDarkImage from './images/citations/other_dark.png';\nimport songImage from './images/citations/song.png';\nimport songDarkImage from './images/citations/song_dark.png';\nimport webImage from './images/citations/web.png';\nimport webDarkImage from './images/citations/web_dark.png';\nimport zoteroOverlayImage from './images/citations/zotero-overlay.png';\nimport localSourcesImage from './images/citations/insert/local-sources.png';\nimport packageImage from './images/citations/insert/packages.png';\nimport bibliographyImage from './images/citations/insert/bibliography.png';\nimport bibliographyFolderImage from './images/citations/insert/bibliography-folder.png';\nimport zoteroRootImage from './images/citations/insert/zotero-root.png';\nimport zoteroLibraryImage from './images/citations/insert/zotero-library.png';\nimport zoteroCollectionImage from './images/citations/insert/zotero-collection.png';\nimport doiImage from './images/citations/insert/doi.png';\nimport crossRefImage from './images/citations/insert/crossref.png';\nimport pubmedImage from './images/citations/insert/pubmed.png';\nimport dataciteImage from './images/citations/insert/datacite.png';\n\nimport equationXRefImage from './images/xref/equation.png';\nimport equationXRefDarkImage from './images/xref/equation_dark.png';\nimport sectionXRefImage from './images/xref/section.png';\nimport sectionXRefDarkImage from './images/xref/section_dark.png';\nimport listingXRefImage from './images/xref/listing.png';\nimport listingXRefDarkImage from './images/xref/listing.png';\nimport tableXRefImage from './images/xref/table.png';\nimport tableXRefDarkImage from './images/xref/table_dark.png';\nimport figureXRefImage from './images/xref/figure.png';\nimport figureXRefDarkImage from './images/xref/figure_dark.png';\nimport theoremXRefImage from './images/xref/theorem.png';\nimport theoremXRefDarkImage from './images/xref/theorem_dark.png';\n\nimport allXRefInsertImage from './images/xref/insert/all.png';\nimport equationXRefInsertImage from './images/xref/insert/equation.png';\nimport sectionXRefInsertImage from './images/xref/insert/section.png';\nimport listingXRefInsertImage from './images/xref/insert/listing.png';\nimport tableXRefInsertImage from './images/xref/insert/table.png';\nimport figureXRefInsertImage from './images/xref/insert/figure.png';\nimport theoremXRefInsertImage from './images/xref/insert/theorem.png';\n\nimport tagDelete from './images/widgets/tag-delete.png';\nimport tagEdit from './images/widgets/tag-edit.png';\n\nexport function defaultEditorUIImages(): EditorUIImages {\n return {\n copy: copyImage,\n properties: propertiesImage,\n properties_deco: propertiesDecoImage,\n properties_deco_dark: propertiesDecoDarkImage,\n removelink: removelinkImage,\n runchunk: runchunkImage,\n runprevchunks: runprevchunksImage,\n search: searchImage,\n search_progress: searchProgressImage,\n omni_insert: {\n generic: omniInsertGenericImage,\n heading1: heading1Image,\n heading1_dark: heading1DarkImage,\n heading2: heading2Image,\n heading2_dark: heading2DarkImage,\n heading3: heading3Image,\n heading3_dark: heading3DarkImage,\n heading4: heading4Image,\n heading4_dark: heading4DarkImage,\n bullet_list: bulletListImage,\n bullet_list_dark: bulletListDarkImage,\n ordered_list: orderedListImage,\n ordered_list_dark: orderedListDarkImage,\n blockquote: blockquoteImage,\n blockquote_dark: blockquoteDarkImage,\n math_inline: mathInlineImage,\n math_inline_dark: mathInlineDarkImage,\n math_display: mathDisplayImage,\n math_display_dark: mathDisplayDarkImage,\n html_block: htmlBlockImage,\n html_block_dark: htmlBlockDarkImage,\n line_block: lineBlockImage,\n line_block_dark: lineBlockDarkImage,\n emoji: emojiImage,\n emoji_dark: emojiDarkImage,\n comment: commentImage,\n comment_dark: commentDarkImage,\n div: divImage,\n div_dark: divDarkImage,\n code_block: codeBlockImage,\n code_block_dark: codeBlockDarkImage,\n footnote: footnoteImage,\n footnote_dark: footnoteDarkImage,\n citation: citationImage,\n citation_dark: citationDarkImage,\n cross_reference: crossReferenceImage,\n cross_reference_dark: crossReferenceDarkImage,\n symbol: symbolImage,\n symbol_dark: symbolDarkImage,\n table: tableImage,\n table_dark: tableDarkImage,\n definition_list: definitionListImage,\n definition_list_dark: definitionListDarkImage,\n horizontal_rule: horizontalRuleImage,\n horizontal_rule_dark: horizontalRuleDarkImage,\n image: imgImage,\n image_dark: imgDarkImage,\n link: linkImage,\n link_dark: linkDarkImage,\n paragraph: paragraphImage,\n paragraph_dark: paragraphDarkImage,\n raw_block: rawBlockImage,\n raw_block_dark: rawBlockDarkImage,\n raw_inline: rawInlineImage,\n raw_inline_dark: rawInlineDarkImage,\n tex_block: texBlockImage,\n tex_block_dark: texBlockDarkImage,\n yaml_block: yamlBlockImage,\n yaml_block_dark: yamlBlockDarkImage,\n python_chunk: pythonChunkImage,\n sql_chunk: sqlChunkImage,\n d3_chunk: d3ChunkImage,\n stan_chunk: stanChunkImage,\n bash_chunk: bashChunkImage,\n bash_chunk_dark: bashChunkDarkImage,\n r_chunk: rChunkImage,\n r_chunk_dark: rChunkDarkImage,\n rcpp_chunk: rcppChunkImage,\n rcpp_chunk_dark: rcppChunkDarkImage,\n tabset: tabsetImage,\n tabset_dark: tabsetDarkImage,\n slide_columns: slideColumns,\n slide_columns_dark: slideColumnsDark,\n slide_notes: slideNotes,\n slide_notes_dark: slideNotesDark,\n slide_pause: slidePause,\n slide_pause_dark: slidePauseDark\n },\n citations: {\n article: articleImage,\n article_dark: articleDarkImage,\n book: bookImage,\n book_dark: bookDarkImage,\n broadcast: broadcastImage,\n broadcast_dark: broadcastDarkImage,\n data: dataImage,\n data_dark: dataDarkImage,\n entry: entryImage,\n entry_dark: entryDarkImage,\n image: imageImage,\n image_dark: imageDarkImage,\n legal: legalImage,\n legal_dark: legalDarkImage,\n map: mapImage,\n map_dark: mapDarkImage,\n movie: movieImage,\n movie_dark: movieDarkImage,\n other: otherImage,\n other_dark: otherDarkImage,\n song: songImage,\n song_dark: songDarkImage,\n web: webImage,\n web_dark: webDarkImage,\n zoteroOverlay: zoteroOverlayImage,\n local_sources: localSourcesImage,\n packages: packageImage,\n bibligraphy: bibliographyImage,\n bibligraphy_folder: bibliographyFolderImage,\n zotero_library: zoteroLibraryImage,\n zotero_collection: zoteroCollectionImage,\n zotero_root: zoteroRootImage,\n doi: doiImage,\n crossref: crossRefImage,\n pubmed: pubmedImage,\n datacite: dataciteImage,\n },\n xrefs: {\n section: sectionXRefImage,\n section_dark: sectionXRefDarkImage,\n figure: figureXRefImage,\n figure_dark: figureXRefDarkImage,\n table: tableXRefImage,\n table_dark: tableXRefDarkImage,\n listing: listingXRefImage,\n listing_dark: listingXRefDarkImage,\n equation: equationXRefImage,\n equation_dark: equationXRefDarkImage,\n theorem: theoremXRefImage,\n theorem_dark: theoremXRefDarkImage,\n type_all: allXRefInsertImage,\n type_section: sectionXRefInsertImage,\n type_equation: equationXRefInsertImage,\n type_figure: figureXRefInsertImage,\n type_table: tableXRefInsertImage,\n type_listing: listingXRefInsertImage,\n type_theorem: theoremXRefInsertImage\n },\n widgets: {\n tag_delete: tagDelete,\n tag_edit: tagEdit,\n },\n };\n}\n","/*\n * editor-menus.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorMenuItem, EditorUI } from '../api/ui';\nimport { tableMenu } from '../api/table';\nimport { EditorCommandId, EditorCommand } from '../api/command';\n\nexport interface EditorMenus {\n format: EditorMenuItem[];\n insert: EditorMenuItem[];\n table: EditorMenuItem[];\n}\n\nexport function editorMenus(ui: EditorUI, commands: EditorCommand[]) {\n return {\n format: formatMenu(ui, commands),\n insert: insertMenu(ui, commands),\n table: tableMenu(true, ui),\n };\n}\n\nfunction formatMenu(ui: EditorUI, commands: EditorCommand[]) {\n return [\n { command: EditorCommandId.Strong },\n { command: EditorCommandId.Em },\n { command: EditorCommandId.Underline },\n { command: EditorCommandId.Code },\n {\n text: ui.context.translateText('Text'),\n subMenu: {\n items: [\n { command: EditorCommandId.Strikeout },\n { command: EditorCommandId.Superscript },\n { command: EditorCommandId.Subscript },\n { command: EditorCommandId.Smallcaps },\n ],\n },\n },\n { separator: true },\n {\n text: ui.context.translateText('Bullets & Numbering'),\n subMenu: {\n items: [\n { command: EditorCommandId.BulletList },\n { command: EditorCommandId.OrderedList },\n { separator: true },\n { command: EditorCommandId.TightList },\n { separator: true },\n { command: EditorCommandId.ListItemCheck },\n { command: EditorCommandId.ListItemCheckToggle },\n { separator: true },\n { command: EditorCommandId.ListItemSink },\n { command: EditorCommandId.ListItemLift },\n { separator: true },\n { command: EditorCommandId.EditListProperties },\n ],\n },\n },\n { separator: true },\n { command: codeBlockCommand(commands) },\n { command: EditorCommandId.Blockquote },\n { command: EditorCommandId.LineBlock },\n { separator: haveAnyOf(commands, EditorCommandId.Div, EditorCommandId.Span) },\n { command: EditorCommandId.Div },\n { command: EditorCommandId.Span },\n { separator: true },\n {\n text: ui.context.translateText('Raw'),\n subMenu: {\n items: [\n { command: EditorCommandId.HTMLInline },\n { command: EditorCommandId.HTMLBlock },\n { separator: true },\n { command: EditorCommandId.TexInline },\n { command: EditorCommandId.TexBlock },\n { separator: true },\n { command: EditorCommandId.RawInline },\n { command: EditorCommandId.RawBlock },\n ],\n },\n },\n { separator: true },\n { command: EditorCommandId.ClearFormatting },\n { separator: true },\n { command: EditorCommandId.AttrEdit },\n ];\n}\n\nfunction insertMenu(ui: EditorUI, commands: EditorCommand[]) {\n return [\n { command: EditorCommandId.OmniInsert },\n ...(haveAnyOf(commands, EditorCommandId.RCodeChunk, EditorCommandId.PythonCodeChunk)\n ? [\n { separator: true },\n {\n text: ui.context.translateText('Code Chunk'),\n subMenu: {\n items: [\n { command: EditorCommandId.RCodeChunk },\n { separator: true },\n { command: EditorCommandId.PythonCodeChunk },\n { command: EditorCommandId.BashCodeChunk },\n { command: EditorCommandId.RcppCodeChunk },\n { command: EditorCommandId.SQLCodeChunk },\n { command: EditorCommandId.D3CodeChunk },\n { command: EditorCommandId.StanCodeChunk },\n ],\n },\n },\n ]\n : []),\n { separator: true },\n { command: EditorCommandId.Table },\n { command: EditorCommandId.Image },\n { command: EditorCommandId.Link },\n { command: EditorCommandId.Shortcode },\n ...(haveAnyOf(commands, EditorCommandId.Citation, EditorCommandId.CrossReference, EditorCommandId.Footnote)\n ? [\n { separator: true },\n { command: EditorCommandId.Citation },\n { command: EditorCommandId.CrossReference },\n { command: EditorCommandId.Footnote },\n ] : []),\n ...(haveAnyOf(commands, EditorCommandId.InsertSlideNotes, EditorCommandId.InsertSlidePause, EditorCommandId.InsertSlideColumns)\n ? [\n { separator: true },\n { command: EditorCommandId.InsertSlideColumns },\n { command: EditorCommandId.InsertSlidePause },\n { command: EditorCommandId.InsertSlideNotes }\n ] : []),\n { separator: true },\n ...(haveAnyOf(commands, EditorCommandId.InlineMath, EditorCommandId.DisplayMath)\n ? [\n {\n text: ui.context.translateText('LaTeX Math'),\n subMenu: {\n items: [\n { command: EditorCommandId.InlineMath },\n { command: EditorCommandId.DisplayMath },\n ],\n },\n },\n ]\n : []),\n ...(haveAnyOf(commands, EditorCommandId.DefinitionList)\n ? [\n {\n text: ui.context.translateText('Definition'),\n subMenu: {\n items: [\n { command: EditorCommandId.DefinitionList },\n { separator: true },\n { command: EditorCommandId.DefinitionTerm },\n { command: EditorCommandId.DefinitionDescription },\n ],\n },\n },\n ]\n : []),\n {\n text: ui.context.translateText('Special Characters'),\n subMenu: {\n items: [\n { command: EditorCommandId.Emoji },\n { command: EditorCommandId.Symbol },\n { separator: true },\n { command: EditorCommandId.EnDash },\n { command: EditorCommandId.EmDash },\n { separator: true },\n { command: EditorCommandId.NonBreakingSpace },\n { separator: true },\n { command: EditorCommandId.HardLineBreak },\n ],\n },\n },\n { separator: true },\n { command: EditorCommandId.ParagraphInsert },\n { command: EditorCommandId.InsertDiv },\n { command: EditorCommandId.HorizontalRule },\n ...(haveAnyOf(commands, EditorCommandId.Tabset)\n ? [\n { separator: true },\n { command: EditorCommandId.Tabset },\n { command: EditorCommandId.Callout },\n ] : []),\n { separator: true },\n { command: EditorCommandId.CodeBlockFormat },\n { command: EditorCommandId.YamlMetadata },\n { separator: true },\n { command: EditorCommandId.HTMLComment },\n ];\n}\n\n\nfunction haveReferenceMenu(commands: EditorCommand[]) {\n return haveAnyOf(commands, \n EditorCommandId.Citation,\n EditorCommandId.CrossReference,\n EditorCommandId.Footnote\n );\n}\n\nfunction haveAnyOf(commands: EditorCommand[], ...ids: EditorCommandId[]) {\n for (const command of commands) {\n if (ids.includes(command.id)) {\n return true;\n }\n }\n return false;\n}\n\nfunction codeBlockCommand(commands: EditorCommand[]) {\n return haveAnyOf(commands, EditorCommandId.CodeBlockFormat)\n ? EditorCommandId.CodeBlockFormat\n : EditorCommandId.CodeBlock;\n}\n","/*\n * table.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorCommandId } from './command';\nimport { EditorUI } from './ui';\n\nexport interface TableCapabilities {\n captions: boolean;\n headerOptional: boolean;\n multiline: boolean;\n}\n\nexport function tableMenu(insert: boolean, ui: EditorUI) {\n return [\n ...(insert \n ? [{ command: EditorCommandId.TableInsertTable }, \n { separator: true }\n ] \n : []\n ),\n { command: EditorCommandId.TableAddRowBefore },\n { command: EditorCommandId.TableAddRowAfter },\n { separator: true },\n { command: EditorCommandId.TableAddColumnBefore },\n { command: EditorCommandId.TableAddColumnAfter },\n { separator: true },\n { command: EditorCommandId.TableDeleteRow },\n { command: EditorCommandId.TableDeleteColumn },\n { separator: true },\n { command: EditorCommandId.TableDeleteTable },\n { separator: true },\n {\n text: ui.context.translateText('Align Column'),\n subMenu: {\n items: [\n { command: EditorCommandId.TableAlignColumnLeft },\n { command: EditorCommandId.TableAlignColumnCenter },\n { command: EditorCommandId.TableAlignColumnRight },\n { separator: true },\n { command: EditorCommandId.TableAlignColumnDefault },\n ],\n },\n },\n { separator: true },\n { command: EditorCommandId.TableToggleHeader },\n { command: EditorCommandId.TableToggleCaption },\n ];\n}\n","/*\n * editor-schema.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { Schema, NodeSpec, MarkSpec, Node as ProsemirrorNode } from 'prosemirror-model';\n\nimport { ExtensionManager } from './editor-extensions';\nimport { PandocNode } from '../api/node';\nimport { PandocMark } from '../api/mark';\n\nexport function editorSchema(extensions: ExtensionManager): Schema {\n // build in doc node + nodes from extensions\n const nodes: { [name: string]: NodeSpec } = {\n doc: {\n attrs: {\n initial: { default: false },\n },\n content: 'body notes',\n },\n\n body: {\n content: 'block+',\n isolating: true,\n parseDOM: [{ tag: 'div[class*=\"body\"]' }],\n toDOM() {\n return [\n 'div',\n { class: 'body pm-cursor-color pm-text-color pm-background-color pm-editing-root-node' },\n ['div', { class: 'pm-content' }, 0],\n ];\n },\n },\n\n notes: {\n content: 'note*',\n parseDOM: [{ tag: 'div[class*=\"notes\"]' }],\n toDOM() {\n return [\n 'div',\n { class: 'notes pm-cursor-color pm-text-color pm-background-color pm-editing-root-node' },\n ['div', { class: 'pm-content' }, 0],\n ];\n },\n },\n\n note: {\n content: 'block+',\n attrs: {\n ref: {},\n number: { default: 1 },\n },\n isolating: true,\n parseDOM: [\n {\n tag: 'div[class*=\"note\"]',\n getAttrs(dom: Node | string) {\n const el = dom as Element;\n return {\n ref: el.getAttribute('data-ref'),\n };\n },\n },\n ],\n toDOM(node: ProsemirrorNode) {\n return [\n 'div',\n { 'data-ref': node.attrs.ref, class: 'note pm-footnote-body', 'data-number': node.attrs.number },\n 0,\n ];\n },\n },\n };\n extensions.pandocNodes().forEach((node: PandocNode) => {\n nodes[node.name] = node.spec;\n });\n\n // marks from extensions\n const marks: { [name: string]: MarkSpec } = {};\n extensions.pandocMarks().forEach((mark: PandocMark) => {\n marks[mark.name] = mark.spec;\n });\n\n // allow code to exclude marks that don't support input rules\n // (e.g. marks that denote a special escape sequences from markdown,\n // like raw_tex, raw_html, shortcodes, xrefs, math, etc.)\n if (marks.code) {\n const excludeInCode = extensions\n .pandocMarks()\n .filter(mark => mark.noInputRules && mark.name !== 'code')\n .map(mark => mark.name)\n .join(' ');\n marks.code.excludes = excludeInCode;\n }\n\n // return schema\n return new Schema({\n nodes,\n marks,\n });\n}\n","/*\n * presentation.ts\n *\n * Copyright (C) 2022 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorState } from 'prosemirror-state';\n\nimport { findTopLevelBodyNodes } from './node';\nimport { titleFromState } from './yaml';\n\nexport interface PresentationEditorLocation {\n items: PresentationEditorLocationItem[];\n auto_slide_level: number;\n}\n\nexport const kPresentationEditorLocationTitle = \"title\";\nexport const kPresentationEditorLocationHeading = \"heading\";\nexport const kPresentationEditorLocationHr = \"hr\";\nexport const kPresentationEditorLocationCursor = \"cursor\";\n\nexport interface PresentationEditorLocationItem {\n type: string;\n level: number;\n // extra field we use internally for navigation\n pos: number;\n}\n\nexport function getPresentationEditorLocation(state: EditorState) : PresentationEditorLocation {\n \n // not the cursor position\n const cursorPos = state.selection.from;\n\n // build list of items\n let autoSlideLevel = Number.MAX_VALUE;\n const items: PresentationEditorLocationItem[] = [];\n\n // get top level headings and horizontal rules\n const schema = state.schema;\n const bodyNodes = findTopLevelBodyNodes(state.doc, node => true);\n\n // bail if empty\n if (bodyNodes.length === 0) {\n return { items, auto_slide_level: 0 };\n }\n\n // start with title if we have one. note that pandoc will make the title slide\n // first no matter where it appears in the document, so we do the same here\n const title = titleFromState(state);\n if (title) {\n items.push({ \n type: kPresentationEditorLocationTitle, \n level: 0,\n pos: bodyNodes[0].pos\n });\n }\n\n // get top level headings and horizontal rules\n \n let pendingAutoSlideLevel = 0;\n let foundCursor = false;\n for (const nodeWithPos of bodyNodes) {\n // if node is past the selection then add the cursor token\n if (!foundCursor && (nodeWithPos.pos > cursorPos)) {\n foundCursor = true;\n items.push({\n type: kPresentationEditorLocationCursor,\n level: 0,\n pos: nodeWithPos.pos\n });\n }\n // add the node with the requisite type\n const node = nodeWithPos.node;\n if (node.type === schema.nodes.heading) {\n const level = node.attrs.level || 0;\n // track pending auto slide level\n if (level < autoSlideLevel) {\n pendingAutoSlideLevel = level;\n } else{\n pendingAutoSlideLevel= 0;\n }\n items.push({\n type: kPresentationEditorLocationHeading,\n level,\n pos: nodeWithPos.pos\n });\n } else if (node.type === schema.nodes.horizontal_rule) {\n items.push({\n type: kPresentationEditorLocationHr,\n level: 0,\n pos: nodeWithPos.pos\n });\n pendingAutoSlideLevel= 0;\n } else if (pendingAutoSlideLevel > 0) {\n autoSlideLevel = pendingAutoSlideLevel;\n pendingAutoSlideLevel = 0;\n }\n }\n\n // last chance to collect pending auto slide level\n if (pendingAutoSlideLevel > 0){\n autoSlideLevel = pendingAutoSlideLevel;\n }\n \n // didn't find an auto slide level\n if (autoSlideLevel === Number.MAX_VALUE) {\n autoSlideLevel = 0;\n }\n \n // return the items\n return { items, auto_slide_level: autoSlideLevel };\n}\n\nexport function positionForPresentationEditorLocation(\n state: EditorState, \n location: PresentationEditorLocation\n) : number {\n // get the positions of the editor's current state (filter out cursor)\n const editorItems = getPresentationEditorLocation(state).items\n .filter(item => item.type !== kPresentationEditorLocationCursor);\n \n // get the index of the cursor passed in the location\n const cursorIdx = location.items.findIndex(\n item => item.type === kPresentationEditorLocationCursor)\n ;\n\n // go one slide before the cursor\n if (cursorIdx >= 0) {\n const locationItem = editorItems[cursorIdx];\n return locationItem.pos;\n }\n\n // default if we can't find a location\n return -1;\n}\n"]} \ No newline at end of file overalldiffered=1 (not bit-by-bit identical) overall=1