~/f/rstudio/RPMS.2017 ~/f/rstudio ~/f/rstudio RPMS.2017/rstudio-1.4.1106-0.0.x86_64.rpm RPMS/rstudio-1.4.1106-0.0.x86_64.rpm differ: byte 225, line 1 Comparing rstudio-1.4.1106-0.0.x86_64.rpm to rstudio-1.4.1106-0.0.x86_64.rpm comparing the rpm tags of rstudio --- old-rpm-tags +++ new-rpm-tags @@ -1539,7 +1539,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 6f7eb23c966fb8636f54d78d226a365e8002e09db2ad45f4138762695e34910c 0 -/usr/libexec/rstudio/www/js/panmirror/panmirror_quantum.js.map 18e25f7358156a7d2cc512334db730b8c390d5220a164111758037e141a4e008 0 +/usr/libexec/rstudio/www/js/panmirror/panmirror_quantum.js.map a1453b1cda74f8b3cbe47babbb4c7e7a02369bf0c4ab27f98d5d5e7529196c0a 0 /usr/libexec/rstudio/www/js/panmirror/prosemirror-dev-tools.min.js 9824b68839f97d36106f1149625e3267deee661ba469f556f6378e8686f031b9 0 /usr/libexec/rstudio/www/js/text.min.js c4a439dde03ebbabb987cb548737f63b091c31beefb5ba9fdca7ebcbc6bfb72f 0 /usr/libexec/rstudio/www/js/workers 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 2021-04-06 00:00:00.000000000 +0000 +++ new//usr/libexec/rstudio/www/js/panmirror/panmirror_quantum.js.map 2021-04-06 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/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/mark.ts","src/api/text.ts","src/api/list.ts","src/api/command.ts","src/api/location.ts","src/api/ui.ts","src/api/util.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/api/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/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/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/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-bibliography_entry.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/api/widgets/checkbox-input.tsx","src/marks/span.ts","src/marks/xref/xref.ts","src/marks/xref/xref-completion.tsx","src/marks/xref/xref-popup.tsx","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/div.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/behaviors/attr_edit/attr_edit-decoration.tsx","src/editor/editor-theme.ts","src/editor/editor-images.ts","src/editor/editor-menus.ts","src/api/table.ts","src/editor/editor-schema.ts"],"names":["_f9dd","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","find_1","completion_1","spelling_interactive_1","spelling_realtime_1","pandoc_converter_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","unparsed_meta","loc","tr_1","i_1","getMarkdownTr","canonical","location","pandocConverter","toProsemirror","result","isInitialDoc","plugins","updateState","getEditingLocation","pos","nodeSize","dispatch","applyFixups","fixup_1","FixupContext","Load","emitEvent","StateChangeEvent","tr","getMarkdownCode","prototype","attrs","initial","getMarkdown","__generator","code","outline_1","getEditingOutlineLocation","getHTML","getTitle","getSelection","navigation_id","navigationIdForSelection","setEditingLocation","outlineLocation","previousLocation","getOutline","getFindReplace","selectCurrent","selectFirst","selectNext","selectPrevious","replace","getSpellingDoc","pandocMarks","spelling","spellingInvalidateAllWords","invalidateAllWords","spellingInvalidateWord","word","invalidateWord","extensionFixups","getSelectedText","replaceSelection","marks","selection","$from","replaceSelectionWith","trSetSel","setSelection","sel","getYamlFrontMatter","nodes","yaml_metadata","yaml_1","yamlFrontMatter","applyYamlFrontMatter","yaml","focus","blur","insertChunk","chunkPlaceholder","rowOffset","colOffset","navigate","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","storedMarksSet","getMeta","transaction_1","kFixupTransaction","UpdateEvent","outline_2","previousOutline","OutlineChangeEvent","DispatchEvent","eventType","detail","emit","editor_extensions_1","pandocExtensions","navigation","registerCompletionExtension","register","omni_insert_1","omniInsertExtension","omniInserters","markFilter","registerRealtimeSpelling","registerPlugins","realtimeSpellingPlugin","baseKeysPlugin","baseKeys","appendTransactionsPlugin","appendTransactions","hooks","Plugin","inputRulesPlugin","input_rule_1","markInputRuleFilter","plugin","inputRules","rules","handleTextInput","props","from","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","fromProsemirror","outlineNode","reverse","find","node","_super","DOMParser","fromSchema","parse","parseSlice","preserveWhitespace","kInvalidCiteKeyChars","createUniqueCiteId","existingIds","baseId","charCodeAt","char","asciiOnlyBaseId","includes","proposedId","count","safeBaseId","String","fromCharCode","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","URL","DOI","doi_1","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","kPandocAttrId","kPandocAttrClasses","kPandocAttrKeyvalue","separator","convertedText","inQuotes","ch","trim","line","parts","kWidthAttrib","kHeightAttrib","kStyleAttrib","kCodeBlockText","kSpanAttr","kSpanChildren","pandocAttrSpec","pandocAttrFrom","pandocAttr","pandocAttrInSpec","spec","tok","c","pandocAttrToDomAttr","marker","domAttr","el","forceAttrs","excludedNames","includedNames","hasAttribute","getAttribute","filter","val","resolveCurrent","remainder","partitioned","partition","base","extension_1","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","isArray","mapValue","mapToken","mappedTok","tokenHasChildren","imageAttributesAvailable","link_attributes","raw_html","output","entry","kRawBlockFormat","stringifyTokens","unemoji","elem","Str","Space","SoftBreak","LineBreak","kLinkChildren","Span","Quoted","kQuoteType","stringifyMath","Code","kCodeText","forEachToken","mapTokens","tokenTextEscaped","marksByPriority","markWriters","aPriority","priority","QuoteType","DoubleQuote","quotesForType","kSingleQuotes","SingleQuote","kSingleQuoteRegEx","RegExp","begin","end","kDoubleQuotes","fancyQuotesToSimple","Inline","MathType","typeset","math","isConnected","then","timerId_1","setInterval","clearInterval","kMathType","clipboardTextParser","$context","_i","codeViews","codeViewType","codeView","createFromPastePattern","test","textNode","codeNode","nodeType","createAndFill","Slice","Fragment","n","p","canInsertNode","canInsertNodeAtPos","asSelection","$pos","d","depth","canReplaceWith","findTopLevelBodyNodes","predicate","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","matchPandocFormatComment","pandocFormatConfigFromYamlInCode","firstYamlBlock","object_1","findValue","yamlMarkdownOptions","yamlFormatConfig","readPandocFormatConfig","mdExtensions","formatConfig","pandocFormatConfigFromCommentInCode","keyValueRegEx","field","fields","keyValueMatch","variables_1","source","obj","toString","mode","asString","rmd_extensions","doctype","str","references","references_location","references_prefix","prefix","toLowerCase","asBoolean","parseExtensions","re","enabled","exec","splitPandocFormatString","optionsPos","indexOf","commonmarkExtensions","rawHTML","format_1","kHugoDocType","kMarkdownGithubFormat","kGfmFormat","kCommonmarkFormat","kCommonmarkXFormat","yamlMetadataNodes","pandocFormatConfigFromYamlInDoc","foundFirstRawInline","config","pandocFormatConfigFromCommentInDoc","warnings","baseName","formatOptions","variant","validOptionNames","fullName","includeTexMathDollars","invalidFormat","invalidOptions","pandocMode","kMarkdownMmdFormat","kMarkdownStrictFormat","kMarkdownVariants","listExtensions","option","pandocFormatWith","hasFencedCodeBlocks","backtick_code_blocks","fenced_code_blocks","isYamlMetadataNode","kYamlMetadataTitleRegex","firstYaml","firstYamlNode","yamlText","updatedYaml","replaceRangeWith","updatedYamlNode","insert","titleFromYamlMetadataNode","titleMatch","yamlMetadataNameValueRegex","valueMatch","parseYaml","kFirstYamlBlockRegex","yamlCode","js_yaml_1","safeLoad","onWarning","log_1","logException","stripYamlDelimeters","yamlParsed","safeDump","object","some","ignoreKey","homeKey","editingNode","head","coordsAtPos","beginDocPos","isOnPreviousLine","setTextSelection","endKey","node_1","editingRootNode","start","endDocPos","top","bottom","arrowBodyNodeBoundary","dir","endOfTextblock","selection_1","selectionIsBodyTopLevel","side","$head","nextRootNode","editingRootNodeClosestToPos","nextPos","currentRootNode","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","endTopLevelBodyNodeBoundary","undoInputRule","x","commandMap","baseKey","unshift","values","_e","isTextblock","cursorOffset","parentOffset","nodeText","prosemirror_gapcursor_1","selectionIsWithinRange","range","anchor","nodeWithPos","selectionHasRange","parentNode","GapCursor","NodeSelection","selectionIsEmptyParagraph","slice_1","kPasteTransaction","kSetMarkdownTransaction","kNavigationTransaction","kInsertSymbolTransaction","kInsertCompletionTransaction","MarkTransaction","addMark","mark","removeStoredMark","insertText","transactionsDocChanged","transactions","transaction","transactionsChangeSet","oldState","newState","transactions_1","changeSet","addSteps","mapping","maps","complete","oldSize","old","childCount","curSize","cur","outer","scan","offset","child","sameMarkup","nodesBetween","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","outlineNodes","bodyNodes","bodyNode","bullet_list","ordered_list","list_item","listItemNode","rmd_chunk","rmdChunkNode","isOutlineNode","kYamlMetadataOutlineItemType","itemsWithPos","getDocumentOutline","item","active","position","kRmdchunkOutlineItemType","chunk","rmd_1","rmdChunkEngineAndLabel","kHeadingOutlineItemType","foundActive","items","getOutlineNodes","findParentNodeOfType","table","activeRmdChunk","rmdNode","rmdChunk","previousRmdChunks","chunks","rmdChunkNodes_1","lines","trimLeft","meta","matchLang","lang","idx","canInsertRmdChunk","insertRmdChunk","toggleBlockType","paragraph","list_1","precedingListItemInsertPos","offsetChars","reduce","rmdText","util_1","uuidv4","prevListItemPos","precedingListItemInsert","selPos","activeChunk","localeCompare","sensitivity","kEvalFalseRegEx","haveTableCellsWithInlineRcode","table_cell","table_header","cell","rangeHasMark","markedNode","markedRange","mark_1","getMarkRange","textBetween","text_1","link","startIndex","startPos","endIndex","isInSet","endPos","markIsActive","empty","storedMarks","markItem","markType","findChildrenByMark","removeMark","validLength","nd","markRange","detectAndApplyMarks","mergedTextNodes","_node","_pos","allowsMarkType","refText","lastIndex","textNodes","nodeIndex","isText","str1","str2","ListType","extendStatics","__extends","b","setPrototypeOf","__proto__","__","constructor","assign","prosemirror_schema_list_1","ui_1","ProsemirrorCommand","omniInsert","MarkCommand","toggleMarkType","NodeCommand","BlockCommand","blockType","toggleType","WrapCommand","wrapType","toggleWrap","scrollIntoView","InsertCharacterCommand","codeRange","defaultToggleMark","pandocAttrAvailable","wrapIn","listType","itemType","blockRange","$to","parentList","isList","validContent","setNodeMarkup","tight","listSpacing","kListSpacingTight","exitNode","sameParent","$anchor","allowKey","endCaptionPos","above","after","abs","dom_1","outlineItemSimillarToNode","outlineItem","docOutlneNode","nodeA","nodeB","scrollTop","docOutlineLocationNode","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","parentDiv","findParentNodeOfTypeClosestToPos","resultPos","before","resultNode","nodeDOM","scroller","zenscroll_1","createScroller","containerEl","duration","onDone","intoView","HTMLElement","editingRoot","xref_1","navigateToId","navigateToHref","href","navigateToXRef","xref","xrefPosition","xrefPos","prevPos","max","dest","parentElement","navigateToPos","NavigationType","navigateTo","Pos","Id","Href","navigateToHeading","XRef","raw_1","xrefKey","suffix","colonPos","xrefTypeAndId","xrefInfo","id_1","locator_1","xrefPositionLocators","markType_1","hasXRef","h2","headingLocator","h3","h4","h5","h6","fig","nodeTypes","rmdChunkHasXRef","tab","kTexFormat","cnj","thereomLocator","def","engine","pattern","pandocAsciify","newch","chars","len","asciify","gfmAutoIdentifier","editRawBlockCommand","raw_block","setBlockType","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","_attrib","setProperty","replaceClassWithStyle","contains","remove","removeAttribute","children_1","children","EditorChangeType","diff_match_patch_1","diffChars","timeout","dmp","diff_match_patch","Diff_Timeout","diff_main","diff","DIFF_INSERT","Insert","DIFF_EQUAL","DIFF_DELETE","regexp","getAttrs","InputRule","Function","textStart","delete","markInputRule","delimiterMarkInputRule","prefixMask","delim","contentPattern","textEnd","maskOffset","noInputRules","marksWithNoInputRules","marksInRange_1","maskedMarkTypes","maskedMarkTypes_1","conditionalWrappingInputRule","wrappingRule","wrappingInputRule","joinPredicate","wrapSentencesTransform","sentence","hardBreak","hardBreakPos","wrapSentences","titleFromState","yamlNodes_2","yamlMetadataTitlePlugin","init","_config","foundTitle","titleLine","yamlNode","hasOutlineIdsTransaction","Set","usedIds","outlineId","setMeta","GoToPreviousSection","goToSectionCommand","editorOutline","transactionsHaveChange","transactionsAffectOutline","outline","target","navigation_1","sequence","Map","rootOutlineItem","defaultLevel","typename","sequenceLast","getState","FindPlugin","instance","DecorationSet","updating","update","prevState","clearResultObserver","isResultSelected","term","resultElement","resultObserver","resultObserverTimer","updateResults","decorations","selectResult","afterSelection","matchesTerm","selectedText","wrap","searchTo","decorationSet","withResultUpdates","searchFrom","nextDecoration","lastDecoration","tr_3","decoration","tr_4","selectionMarks","marksAcross","replaceAll","replaced","hasTerm","tr_5","clear","kAddToHistoryTransaction","resultDecorations","search","findRegEx","Decoration","inline","class","TextSelection","watchForSelectedResult","MutationObserver","records","observer","ele","isResultNode","scrollToSelectedResult","observe","childList","window","setTimeout","disconnect","clearTimeout","querySelector","scrollElement","nextParent","offsetParent","caseSensitive","findPlugin","inclusive","parseDOM","toDOM","readers","writer","writeInlines","OmniInsertCommand","inputRuleFilter","completionHandlers","omni_insert_completion_1","omniInsertCompletionHandler","OmniInsert","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","isOmniInsertCommandActive","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","excludeWord","classifier","findBeginWord","findEndWord","beginPos","classifyCharacter","currentPos","advanceToWord","endWordPos","wordText","words","breakWords","hasNext","next","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","spellingDecorations","cursor","cursorDecos","realtimeSpellingKey","contextmenu","spellingSuggestionContextMenuHandler","focusUnsubscribe","updateSpelling","excludeCursor","checkWord","wordCheck","menuItems","clientX","clientY","schema_1","deco","from_1","to_1","word_2","suggestionList","suggestion","pandocPreprocessors","pandocPostprocessors","pandocTokensFilters","pandocBlockReaders","pandocInlineHTMLReaders","original","autoIds","gfm_auto_identifiers","adjustedFormat","preprocessor","blockCapsuleFilters","pandoc_capsule_1","pandocMarkdownWithBlockCapsules","pandoc_to_prosemirror_1","pandocToProsemirror","ast","tokensFilters","blockReaders","inlineHTMLReaders","postprocessor","pandocOptions","referenceLocation","disabledTableTypes","disabledFormatOptions","atxHeaders","dpi","column","parseInt","wrapOptions","astToMarkdown","ext","newFormat","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","parser","closeNode","addNode","openMark","closeMark","writeText","hasInlineHTMLWriter","writeTokens","logUnrecognized","isNodeOpen","Null","blocks","prevTok","lineBreaks","columnBreaks","sentenceBreaks","targetAst","heading_ids","hasShortcutHeadingLinks","equalsIgnoreCase","autoIdentifier","ascii_identifiers","headingIds","has","toLocaleLowerCase","Link","astBlocks","Header","pandocAttrReadAST","heading_1","kHeadingAttr","kHeadingLevel","kHeadingChildren","resolveHeadingIds","lineWrapping","targetTokens","writeToken","blockCapsule","writeNode","reader","getChildren","this_1","block","blockReaders_1","blockReader","nodeType_2","openNode","Error","code_block","kCodeBlockAttr","readers_1","stack","Mark","none","unrecognizedTokens","merged","info","isInline","addToSet","removeFromSet","openNoteNode","note","maybeMerge","sameSet","pandocFromProsemirror","apiVersion","nodeWriters","notesNode","PandocWriter","writeNodes","notes","initEscapeCharacters","write","writeSpaces","spaceAfter","output_1","spaceBefore","outputText","trimRight","writeArray","writeAttr","preventEscapeCharacters","flushTextRun","textRun_1","smart","manualEscapeCharacters","writeNote","Note","noteBody","fragment","currentChild","childIndex","markedNodes","nextNode","activeMarks","md","fragment_1","fragmentText","escapeSymbols","escaped","escapeCharacters","RawInline","withOption","fill","tex_math_single_backslash","allEscapeCharacters","emjojiMark","emoji","emojihint","paragraph_1","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","trailing_p_1","empty_mark_1","escape_mark_1","code_block_input_1","manager","ExtensionManager","paste_text_1","bottom_padding_1","insert_symbol_plugin_symbol_1","insert_special_characters_1","nbsp_1","remove_section_1","footnote_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","tokensFilter","inlineHTMLReader","blockCapsuleFilter","pandocReaders","collectFrom","pandocMarkWriters","pandocNodeWriters","pandocNodes","code_view","views","attrEditors","collect","appendMarkTransactions","appendMarkTransaction","collector","visitor","results","flatMap","quote","group","Plain","insertParagraph","HeadingCommand","headingCommandFn","heading1OmniInsert","heading1","heading1_dark","heading2OmniInsert","headingOmniInsert","heading2","heading2_dark","heading3","heading4OmniInsert","heading4","heading4_dark","headingName","pandocAttrSupported","pandocAttrParseDom","header_attributes","mmd_header_identifiers","headingAttrs","headingAttr","data-link","partMatch","cut","writeBookdownH1","Heading1","Heading5","Heading6","textblockTypeInputRule","kHeadingLevels","pandocAttrParseText","emptyHeadingPlaceholderPlugin","CodeBlockFormat","codeBlockFormatCommandFn","languages","code_block_dark","fenced_code_attributes","potentialLang","codeBlockProps","dialogs","editCodeBlock","applyProps","newProps","propsWithLangClass","codeBlock","tags","right","editFn","codeNodeSpec","hasAttr","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","tightFn","listItemType","autoJoin","toggleList","TightListCommand","CheckedListItemNodeView","getPos","disabled","editable","ev","contentDOM","checkedListItemCommandFn","itemNode","setItemChecked","checkedListItemToggleCommandFn","check","baseInputRule","fragmentWithCheck","raw_inline","mappedTokens","lastWasChecked","writeListItemInlines","example","childAttrs","childWithChecked","writePandocListItem","figure","imageAttributes","src","decodeURI","readPandocTitle","alt","requireHTML","writeRawMarkdown","linkTo","writeFigure","writeLink","imageInlineHTMLReader","isImage","image_util_1","inlineHTMLIsImage","imageAttrsFromHTML","imageDOMOutputSpec","imageDOMAttributes","parseFromString","imageCommand","editorUI","img","imgDimensions","selectionIsImageNode","pandocImageHandler","imagePandocOutputWriter","imageNodeAttrsSpec","imageAttr","imageAttrsFromDOM","Image","attr_edit","noDecorator","_schema","imageTextSelectionPlugin","imageEventsPlugin","imagePropsWithSizes","linkMark","Figure","editImage","units","isNaturalHeight","newImage","imageProps","insertAndSelectNode","partitionedKeyvalue","sizeWithUnit","ensureContainerWidth","imagePos","findParentNodeClosestToPos","domAtPos","resizeContainer","elementInnerDimensions","resizeEl","definition_list","convertImagesToFigure","imagesToFiguresTransform","linkAttrs","getMarkAttrs","mappedImagePos","writerHasProhibitedFigureParent","contentElement","kRawBlockContent","html_1","isSingleLineHTML","fixupContext","appendTransaction","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","imageContainerWidth","noImplicitFigures","emptyFigcaption","selectionInFigcaption","hide","display","minHeight","margin","widthWithUnit","heightWithUnit","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","setPointerCapture","pageX","movedX","startX","movedY","pageY","startY","startWidth","startHeight","onPointerUp","havePointerEvents","releasePointerCapture","pointerId","onPointerMove","onPointerDown","resizeHandle","cssFloat","marginRight","marginLeft","liftStyle","liftImgStyle","widthProp","heightProp","kAlignAttrib","verticalAlign","onDestroyed","observer_1","subtree","button","imageEl","optionEl","widthChars","atEnd","selectFigureCaption","selectFigure","Selection","near","verticalArrowCanAdvanceWithinTextBlock","isWithinEmptyCaption","parentIndex","previousNode","parentTextBlock","figureSelection","nodePos","arrowHandler","ArrowRight","clipboardEvent","clipboardData","types","getData","clipboardUris","uris","handleImageUris","dragEvent","dataTransfer","coordinates","posAtCoords","uriList","droppedUris","imageUris","uri","handlePaste","imagePaste","Content","horizontal_rule_dark","horizontal_rule","HorizontalRule","insertNode","hrOmniInsert","br","ShiftEnter","atom","selectable","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","clipboard_1","autoLink","headingLink","linkEnd","matchText","copy","fromArray","linkText_1","attrs_1","matchedHeading_1","headingText","headingPos","linkPos","tooltip_1","button_1","linkCmd","removeLinkCmd","kMaxLinkWidth","React","LinkPopup","maxLinkWidth","openURL","clipboard","linkText","isSupported","LinkButton","showCopyButton","ImageButton","on","grav","show","tabIndex","onKeyDown","forwardRef","specKey","dismissOnEdit","makeLinksAccessible","onCmdClick","_oldState","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","gapCursor","prosemirror_dropcursor_1","dropCursor","$divPos","createGapCursor","mouseEvent","clickPos","$clickPos_1","inside","divNode","stopImmediatePropagation","kFormattingMarks","markName","setStoredMarks","definition_list_term","definition_list_description","nodeRange","targetLiftDepth","liftTarget","lift","clearFormatting","enDash","ellipsis","emDash","hasAttrId","attrNode","mk","markRange_1","scannedRanges","extensionIfPandocAttrEnabled","requiresTrailingP","insertTrailingP","insertTrailingPTransform","firstChild","fencedAttributes","langAttrib","codeBlockInputRuleEnter","canApplyCodeBlockInputRule","pasteTextPlugin","bodyEl","bodyElement","toY","scrollHeight","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","editorRect","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","description","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","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","startTex","InsertInlineLatexCommand","TexInline","setTexSelectionAfterInsert","raw_inline_1","mark_highlight_1","markHighlightDecorations","latexHighlightingPlugin","splitInvalidatedMarks","texInputRule","braces","highlighter","decorationsForDoc","removeDecorations","addDecorations","markDecorations","rehighlightParent_1","braceLevel","isLetter","inBraces","inBrackets","bracketLevel","rawhtmlMark","endLoc","startLoc","isHTMLTag","close","void","isVoidTag","endTag","tagStartLoc","inSingleQuote","inDoubleQuote","rawHtmlInputRule","isRawHTMLFormat","writeInlineHTML","writeInlneHTML","isSingleTag","data-type","spellcheck","delimiterForType","kMathContent","delimter","mathText","delimiter","InlineMath","DisplayMath","Display","kInlineMathRegex","mathLength","startMath","math_commands_1","InsertInlineMathCommand","InsertDisplayMathCommand","singleLineDisplayMath","math_transaction_1","mathAppendMarkTransaction","math_highlight_1","mathHighlightPlugin","math_popup_1","MathPopupPlugin","math_view_1","mathViewPlugins","allowNewline","insertMathCommand","math_display_dark","math_display","displayMathOmniInsert","para","maths_1","mathRange","mathAttr","selectionIsWithin","lodash_debounce_1","updatePopup","updatePopupTimer","resizeUnsubscribe","mousemove","lastRenderedMath","$mousePos","equationPreview","rangeEndCoords","rangeStartCoords","editingElStyle","styles","inlineMath","error","autoscollPopup","popupBox","mathBottom","editorEl","mathText_1","mathjaxDiv","isActiveTab","_transactions","prevMathRange","delta","verticalArrowHandler","lodash_uniqby_1","bibliography_1","csl_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","provider","load","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","kCitationIdRegex","citeText","idMark","BibliographyManager","zotero","prefixMatch","Cite","closeCite","parentText","beginBracketPos","cite_commands_1","InsertCitationCommand","bibliographyManager","kFindInTextCiteRegex","kFindFullCiteRegex","citeIdDashInputRule","citationDoiCompletionHandler","citationCompletionHandler","cite_highlight_1","citeHighlightPlugin","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","kLocalBiliographyProviderKey","sourcesForProvider","sourcesForProviderCollection","collectionKey","localSources","bibFile","localProviders","providerName","prov","dataProviderBibTeX","generateBibTeX","bibDB_1","toBibTeX","warningMessage","warningProvider","findIdInLocalBibliography","searchProviderCollection","searchProvider","searchSources","limit","searchIndex","kSearchOptions","$or","bibliographiesRelative","bibliographyFilesFromDoc","yamlBlocks","path_1","expandPaths","resourcePath","parsedYamls","refBlockParsedYamls","parsedYaml","lastReferenceParsedYaml","referenceBlockFromYaml","getBibliography","bibliographiesAbsolute","refBlock","etag","bibliography","updateIndex","collections","collectionKeys","itemsForCollection","project_biblios","kPermissableFileExtensions","projectBiblio","getExtension","bibliographyFilesFromDocument","BibliographyDataProviderLocal","bibliographyValues","valueFromYamlText","ensureBibliographyFileForDoc","biblioNode","createBiblographyYamlNode","firstBlock","yamlWithBib","joinPaths","root","rootPath","paths","fileName","lastDot","changeExtension","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","cslDateToEDTFDate","options_1","optionKey","options_2","rangeArray","given","bibDBFieldName","required","optional","eitheror","shouldIncludeField","bibObject","pmNode","csl_text_1","cslTextToProsemirrorNode","nodes_1","BibLatexExporter","bibDB","traditionalNames","cslToBibDB","bibtex_1","bibDbToBibTeX","crossref_1","ensureValidCSLType","cslTypes","crossRefTypeToCSLType","sanitizeForCiteproc","sanitizeProperties","property","license","abstract","cslFromDoc","cslParsedYamls","part","partStr","_f","_g","_h","_j","_k","_l","_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","number","codePointAt","characterMap","characters_1","ungrouped","latex","thisNodeMarks","closing","closeTags","lastNodeMarks","closeTag","formatting_1","FormattingTags","open","opening","formattedText","verbatim","doNotEscape","names","formattedNames","bookauthor","language_1","lanagugeMappings","series","swedish","thai","BibTextTypes","phdthesis","unpublished","inproceedings","techreport","fieldsRequired","fieldsOptional","booklet","fieldsEitherOr","character","decimal","731","780","__rest","kZoteroProviderKey","_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","managerEntries","loadedEntries_1","cite_bibliography_entry_1","entryForSource","kCitationCompleteScope","citationCompletions","_state","tokenWithoutEndPunctuation","searchAllSources","insertCitation","CompletionWarningHeaderView","BibliographySourceView","kCiteCompletionWidth","authorsFormatter","issuedDateFormatter","CompletionItemView","imageAdornment","htmlTitle","bibliography_provider_zotero_1","completion_detailed_1","cslEntry","CompletionItemDetailedView","subTitle","bibMgr","citeId","citationHTML","getDocumentPath","JSON","stringify","previewHtml","finalHtml","rootDiv","classNames","ensureSafeLinkIsPresent","url","urlForCitation","CitePopup","Citation","alreadyInCite","includeWrapper","wrapperText","preCiteIdRange","endOfWrapper","initialSelectionKey","selectionKey","setCitationDefaultInText","intextCitationStyle","bibliographySources","bibliographySources_1","citeIdText","performInsertCitations","initiallySelectedNodeKey","doiSourcePanel","crossrefSourcePanel","crossref","pubmedSourcePanel","pubmed","bibliographySourcePanel","InsertCitationPanel","onOk","requiresProgress","bibliographySourceProviders","sourceProvider","isSlowGeneratingBibliographySource","showProgress","toBibliographySource","hideProgress","onCancel","cancel","configuration","insertCitationConfiguration","setInsertCitationConfiguration","treeNode","citationsToAdd","defaultNode","selectedPanelProvider","statusMessage","placeHolderMessage","existingBibliographyFile","createBibliographyFile","citationDefaultInText","setInsertCitationPanelState","insertCitationPanelState","updatedState","displayedCitations","panelRef","defaultResults","insert_citation_source_panel_1","CitationSourceListStatus","streamTimerId","panelProvider","panelForNode","selectedNode","setSelectedPanelProvider","refreshSearchCallback","typeAheadSearch","existingCitationIds","searchResult","citationProps","panelHeight","mergedCitationsToAdd","onSearchTermChanged","memoizedTypeaheadSearch","onExecuteSearch","searchCanceled","inProgress","progressMessage","onAddCitation","newCitations","deleteCitation","filteredCitations","totalCitationCount","panelToDisplay","navigation_tree_1","NavigationTree","treeSourceData","suggestedPanel","tag_input_1","TagInput","displayText","isEditable","isIdEditable","targetSource","currentlySelectedCitation","onTagValidate","insert_citation_bibliography_picker_1","CitationBibliographyPicker","onCreateBibliographyFileNameChanged","biblographyFile","dialog_buttons_1","DialogButtons","nodeForKey","childNode","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","itemCount","itemSize","showSelection","preventFocus","indentLevel","indentStyle","nodeList","allNodes","increment","containsChild","existingSource","imageForType","finalId","rootImageForProvider","zotero_root","bibligraphy","toTree","containers","folderImage","treeMap","currentNode","hasParent","rootNodes","zotero_collection","bibligraphy_folder","folderImageForProvider","local_sources","providerNodes","collectionKeyForNode","useBetterBibTex","zoteroOverlay","toCitationListEntries","_searchTerm","_selectedNode","_existingCitationIds","insert_citation_source_panel_typeahead_search_1","CitationSourceTypeheadSearchPanel","onSelectedIndexChanged","onConfirm","listContainer","searchBoxRef","focusSearch","insert_citation_source_panel_list_1","CitationSourceList","focusPrevious","insert_citation_source_panel_list_item_1","CitationSourcePanelListItem","currentCitation","handleListKeyDown","handleIncrementIndex","itemsPerPage","onBlur","onRemoveCitation","showSeparator","itemProvider","search_progress","citationListData","citationEntry","maxIdLength","e_1","matchExistingSourceCitationListEntry","toCitationListEntry","errorForStatus","insert_citation_source_panel_list_item_detailed_1","pasted","performSearch","lastSearch","initialFocusSet","CitationSourcePanelListItemDetailed","alreadyAdded","doiServer","dedupeCitationIds_1","citationEntries","works","work","coercedCSL","crossrefWork","crossrefWorkTitle","pubMedResult","docs","pubmed_1","pubTypes","doiResult","sanitizedCSL","noResultsMessage","sortFirstAuthor","pubDate","creators","creator","fetchCSL","dataciteResult","familyName","publicationYear","span","getSelectionMarkRange","native_spans","data-span","all_symbols_escapable","stripRefBackslashTransform","potentialXRef","bookdownXRefUI","xref_popup_1","xrefPopupPlugin","xref_completion_1","xrefCompletionHandler","insertRef","cross_reference_dark","cross_reference","FuseIndex","xrefCompletions","xrefView","xrefs","fuse","createIndex","typeQuery","colonLoc","isCaseSensitive","shouldSort","withSavedDocument","refs","kXRefTypes","generic","h1","xrefs_1","xref_2","xrefForId","kMaxWidth","file","InsertHTMLCommentCommand","HTMLComment","raw_html_comment","comment_dark","comment","data-format","isComment","kHTMLCommentMarkRegEx","removeInvalidatedMarks","commentMarkAttribs","detectAndCreateShortcodes","shortcode_1","kShortcodeRegEx","shortcode","noSpelling","excludes","markTr_1","kShortcodePattern","writePandocNote","noteNode","footnote","footnoteOmniInsert","References","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","RawBlockCommand","rawAttribute","textTrimmed","isSingleLineTex","readPandocRawBlock","isSingleChildParagraph","isParagraphWrappingMultilineRaw","rawTok","FormatRawBlockCommand","HTMLBlock","kHTMLFormat","Blocks","html_block_dark","html_block","TexBlock","tex_block_dark","tex_block","YamlMetadata","yaml_block_dark","yaml_block","yaml_metadata_capsule_1","yamlMetadataBlockCapsuleFilter","YamlMetadataCommand","yaml_metadata_title_1","RmdChunkCommand","Chunks","RChunkCommand","r_chunk_dark","r_chunk","PythonChunkCommand","python_chunk","BashChunkCommand","bash_chunk_dark","bash_chunk","d3_chunk","D3ChunkCommand","StanChunkCommand","StanCodeChunk","stan_chunk","md_index","firstLineMeta","lineNumbers","lineNumberFormatter","lineNumber","lineCount","bookdownTheorems","kBookdownDocType","rmd_chunk_capsule_1","rmdChunkBlockCapsuleFilter","RcppChunkCommand","SQLChunkCommand","rmd_chunk_image_1","RmdChunkImagePreviewPlugin","uiContext","imagePreviewDecorations","isRmdChunkNode","firstLine","widthMatch","width_1","stripQuotes","alignCenter_1","imagePath_1","unsubscribe","watchResource","kBlockCapsuleTextRegEx","kBlockCapsuleType","isFullDivSelection","createDiv","editDiv","defining","data-div","divCommand","Div","indexAfter","canApplyDivInputRule","attribMatch","attrProps","InsertDiv","LineBlock","line_block","line_block_dark","table_captions","grid_tables","multiline_tables","table_nodes_1","tableNode","tableCaptionNode","tableCellNode","tableHeaderNode","tableRowNode","TableInsertTable","table_commands_1","insertTable","insertTableOmniInsert","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","multiline","ModEnter","table_container","table_caption","numRows","rows","cells","cellType","tableCaption","tableContainer","selectionPos","cols","inactive","caption","Lists","table_dark","deleteTable","columns","rect","selectedRect","addRow","alignments_1","rowNode","cellPos","cellOffset","cellNode","align","colIndex","TableToggleHeaderCommand","TableToggleHeader","toggleHeader","isInTable","TableToggleCaption","tr_2","left_1","right_1","selectionCell","tableStart","TableMap","CellSelection","rectBetween","$anchorCell","$headCell","tableGroup","getFromDOM","textAlign","kDefaultCellClasses","Table","table_pandoc_1","readPandocTable","writePandocTableContainer","table_capsule_1","tableBlockCapsuleFilter","colgroup","childElementCount","colpercents","firstRow","colWidth","colWidths","table_columns_1","tableColumnWidths","writePandocTable","writePandocTableCaption","table_row","writePandocTableNodes","writePandocTableHeaderNodes","alignments","AlignLeft","Left","AlignRight","AlignCenter","AlignDefault","tableToken","ColWidth","columnPercents","parseRow","row","captionBlock","lastChild","widths","ColWidthDefault","headerCut","tableColumnAlignments","colwidth","defaultWidth","totalWidth","tables_1","kTableBlockCapsuleType","capsuleText","DefinitionList","definition","unparsedTable_1","TableDeleteColumn","subMenu","TableAlignColumnLeft","menuVisible","sliceHasNode","fixupTableWidths","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","ace_placeholder_1","ace_node_views_1","acePlugins","aceRenderQueue","ace_render_queue_1","AceRenderQueue","aceNodeViews","AceNodeViews","AceNodeView","handleClick","editorOptions","gapCursorPending","selectionMarker","queuedSelection","subscriptions","renderedWidth","scrollRow","mouseDown","preview","AcePlaceholder","getElement","updateMode","onEditorDispatch","initEditor","renderQueue","unsub","_decos","editSession","getDocument","computeChange","AceRange","fromPoints","indexToPosition","findMarkers","removeMarker","findPluginState","markerFrom","markerTo","aceEditor","escaping","require","Range","setSelectionRange","QueuedSelection","pending","_mutation","forwardSelection","asProseMirrorSelection","session","getRange","positionToIndex","highlightSelectionAcross","addMarker","getContents","replaceWith","offsetTop","viewTop","viewBottom","scrollCursorIntoView","clearSelection","getSession","valueChanged","cursorDirty","addCommand","bindKey","arrowMaybeEscape","backspaceMaybeDeleteNode","undo","redo","win","mac","getCursorPosition","executeSelection","renderer","metrics","$fontMetrics","$observer","setContainer","debounceResize","evt","resizeTimer","setMode","execCommand","getLength","innerText","getCursor","containerRect","cursorRect","down","up","oldEnd","oldVal","newEnd","newVal","nodeBefore","nodeAfter","cursorPos","prevNodePos","nextNodePos","nextNodeTextBlock","nextNodeCode","targetPos","renderCompleted","updateTimer","needsSort","bypass","visible","onUpdate","IntersectionObserver","entries_1","processRenderQueue","isIntersecting","cancelTimer","onScroll","scheduleRender","isRenderCompleted","renderTimer","delayMs","nodeView","prevNodePos_1","nv","ndView","setGapCursorPending","AttrEditCommand","editors","editMarkAttrs","editAttr","attr_edit_1","kEditAttrShortcut","properties_deco_dark","properties_deco","ed","parentWithAttrs","editorNode","attrTags","rightPaddingOffset","attrsEl","attrsNode","offsetParentStyle","AttrEditDecorationPlugin","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","heading3_dark","bullet_list_dark","ordered_list_dark","blockquote","blockquote_dark","math_inline","math_inline_dark","emoji_dark","div_dark","citation_dark","paragraph_dark","raw_block_dark","sql_chunk","rcpp_chunk_dark","book_dark_png_1","formatMenu","Underline","ListItemCheck","ListItemCheckToggle","EditListProperties","Blockquote","haveAnyOf","HTMLInline","ClearFormatting","AttrEdit","RCodeChunk","PythonCodeChunk","BashCodeChunk","RcppCodeChunk","SQLCodeChunk","D3CodeChunk","DefinitionTerm","DefinitionDescription","ParagraphInsert","commands_1","editorMenus","TableDeleteTable"],"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,MAC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AAK,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,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,KACL,KAAK,UACH,UACA,KAEF,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,UACH,KACAA,EAAA,IAEF,WACE,SACA,KAEF,KAAK,UACH,UACA,KAEF,KAAK,UACH,KACAA,EAAA,UAEJ,KAAI,UACF,OACK,IACL,wBAKJ,KAAO,aAhjBT,KAAA,0UAwBgBxj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,OAAAj6E,EAGJ,MADFma,MAGI,MAAAA,MAEM,MAANA,MAEE,2BAKa,6FAWf,uCAGMA,iEAMS,CAAAxb,OAAC,YACNf,EAAA,+EAiGdsxB,EAAM3qB,EAAU6G,MAAK2S,SAAU9Z,WAC/Bu7C,SAActwB,KACdwwB,UAAW97B,eACHsL,cAEG3qB,EAAAsX,gBACOypB,UAAA,MAAA,SAAAr+B,EAAAuL,EAAAsY,EAAA9K,SACZ/Y,EAAO1C,OAAS6G,MAAS2S,wBACnB+Y,OAAUt1B,EAAAy3B,eAAAkhD,EAAA34E,CAAAyF,IAAA4U,EAAA5U,EAAA6jB,EAAA9K,GAAA,OAChB/Y,EAAOoE,UAAAmgB,MAAAtoB,EAAAoC,EAAApC,OAAA4qB,EAAAxoB,EAAAwoB,wBAgCT9rB,EAAAo4E,oBAIO,MAAA,IACU,MAAnBp4E,EAAIyU,OAAA4jE,EAAe,UACjB,WAEAr4E,EAAAyV,UAAgB4iE,EAAAD,EAAA,yCAKd,YA+CNt2D,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,SACAlP,SAAAkP,EAAAkC,eDkMUs0D,CAAArkE,UAGSA,KAAWzD,EAAA,GACrB+nE,MAAA/n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GX,CAAAp8F,WAAM,YACJxY,EAASC,gBAAAu0G,+BACTx0G,EAAWC,gBAAAq0G,iCACX,YACKt0G,EAAAC,gBAAA40G,yBACH70G,EAAOC,gBAAAy7G,+BACL,cACSz7G,gBAAAwyH,8BACT,mBAAUhlF,cAAO,sLAKhB,CAAAj1B,WAAA,GACL,CAAS1M,QAAA9L,EAAAC,gBAAAo1G,wCAIL,cACSp1G,gBAAA03G,8BACT13G,gBAAA63G,qEAKAt7G,EAAA,aAAA,CAAAW,OAAA,UACKjB,EAAAE,EAAA,6BACFmG,SACL,mCAGFyP,QAAA,4BAII,iCAEEsQ,IAAA,+CAMN,MACE,CAAAsnB,MAAO,+EACL,CACA,MAAE,CAAAA,MAAA,cAA4B,oEAMtCuB,MAAW,WACH,MAAK,OAI+B,CAAAvB,MAAA,gFACjC,CACE,2BAMG,WAKX,CACH53B,QAAW,gBAIFogC,IAAA,GACJkiD,OAAA,CAAA13F,QAAA,4BAtFT0lB,IAAA","sourcesContent":["/*\n * index.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 // 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, 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 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 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, rowOffset: number, colOffset: number) {\n const insertCmd = insertRmdChunk(chunkPlaceholder, rowOffset, colOffset);\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, 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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\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\n let asciiOnlyBaseId = '';\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 }\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 editRawInline: RawFormatEditorFn;\n editRawBlock: RawFormatEditorFn;\n insertTable: InsertTableFn;\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 LinkEditorFn = (\n link: LinkProps,\n targets: LinkTargets,\n capabilities: LinkCapabilities,\n) => Promise;\n\nexport type ImageEditorFn = (\n image: ImageProps,\n dims: ImageDimensions | null,\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 RawFormatEditorFn = (raw: RawFormatProps, outputFormats: string[]) => Promise;\n\nexport type InsertTableFn = (capabilities: TableCapabilities) => Promise;\n\nexport type InsertCiteFn = (props: InsertCiteProps) => 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 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 alt?: 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}\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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) {\n return !!attrs.id || (attrs.classes && attrs.classes.length > 0) || (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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 // 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 type PandocOutputOption = 'writeSpaces';\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorUI } from './ui';\nimport { PandocToken } from './pandoc';\n\nexport const kMathType = 0;\nexport const kMathContent = 1;\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","/*\n * code.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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, Slice } 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';\nimport { ExecuteRmdChunkFn } from './rmd';\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 const mdExtensions = isRmd ? findValue('md_extensions', yaml?.output) : undefined;\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 ];\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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) {\n try {\n const yamlParsed = yaml.safeLoad(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.safeDump(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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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';\n\nexport type EditorExtendedDocType = 'bookdown' | 'hugo';\n","/*\n * object.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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\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 ].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 // 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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}\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, rowOffset = 0, colOffset = 0) {\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 // compute offset\n const lines = chunkPlaceholder.split(/\\r?\\n/);\n const lineChars = lines.slice(0, rowOffset).reduce((count, line) => count + line.length + 1, 1);\n const offsetChars = lineChars + colOffset;\n\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 const selPos = tr.selection.from - rmdNode.nodeSize - 1 + offsetChars - 1;\n setTextSelection(selPos)(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 // 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 // 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 };\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 * mark.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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 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 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 const length = validLength(text);\n if (length > -1 && length !== text.length) {\n if (removeMark) {\n removeMark(markRange.from + length, markRange.to);\n } else {\n tr.removeMark(markRange.from + length, markRange.to, markType);\n }\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 return str1.localeCompare(str2, undefined, { sensitivity: 'accent' }) === 0;\n}\n","/*\n * list.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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}\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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\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\n // outline\n GoToNextSection = 'AE827BDA-96F8-4E84-8030-298D98386765',\n GoToPreviousSection = 'E6AA728C-2B75-4939-9123-0F082837ACDF',\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 predicate = (n: ProsemirrorNode) => pandocAttrAvailable(n.attrs);\n const node = findParentNode(predicate)(state.selection);\n if (node) {\n pandocAttr = pandocAttrFrom(node.node.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 = {}): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!canInsertNode(state, nodeType)) {\n return false;\n }\n\n if (dispatch) {\n dispatch(state.tr.replaceSelectionWith(nodeType.create(attrs)));\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","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 * ui.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { EditorRmdChunk } from './rmd';\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}\n\nexport interface EditorUIChunks {\n // create a code chunk editor\n createChunkEditor: (type: string, index: number, callbacks: EditorUIChunkCallbacks) => ChunkEditor;\n}\n\nexport interface ChunkEditor {\n editor: unknown;\n setMode(mode: string): void;\n executeSelection(): void;\n element: HTMLElement;\n destroy(): void;\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 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 * util.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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","/*\n * dom.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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, 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, xref: string, animate = true): Navigation | null {\n const xrefPos = xrefPosition(view.state.doc, xref);\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\n\nexport interface XRefServer {\n indexForFile: (file: string) => Promise;\n xrefForId: (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 function xrefKey(xref: XRef) {\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\nexport function xrefPosition(doc: ProsemirrorNode, xref: string): number {\n // -1 if not found\n let xrefPos = -1;\n\n // get type and id\n const xrefInfo = xrefTypeAndId(xref);\n if (xrefInfo) {\n const { type, id } = xrefInfo;\n const locator = xrefPositionLocators[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 xrefTypeAndId(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 xrefPositionLocators: { [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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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 {\n chars.push(ch);\n }\n }\n\n // return string\n return String.fromCharCode(...chars);\n}\n","/*\n * raw.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 const attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs;\n const tr = state.tr;\n if (match[1]) {\n const textStart = start + match[0].indexOf(match[1]);\n const textEnd = textStart + match[1].length;\n if (textEnd < end) {\n tr.delete(textEnd, end);\n }\n if (textStart > start) {\n tr.delete(start, textStart);\n }\n end = start + match[1].length;\n }\n const mark = markType.create(attrs);\n tr.addMark(start, end, 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 // don't break bookdown text references\n const textContent = paragraph.node.textContent;\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 titleFromYamlMetadataNode,\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\nfunction titleFromState(state: EditorState) {\n const yamlNodes = yamlMetadataNodes(state.doc);\n for (const yaml of yamlNodes) {\n const title = titleFromYamlMetadataNode(yaml.node);\n if (title) {\n return title;\n }\n }\n return '';\n}\n","/*\n * oultine.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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'], goToSectionCommand('next')),\n new ProsemirrorCommand(EditorCommandId.GoToPreviousSection, ['Mod-PageUp'], goToSectionCommand('previous')),\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 goToSectionCommand(dir: 'next' | 'previous') {\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 (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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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, '\\\\$&') : 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 tr.replaceSelectionWith(state.schema.text(text, selectionMarks), false);\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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, emptyNodePlaceholderPlugin } 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 // if this is a dismiss of an omni_insert mark then the command\n // isn't part of 'natural' typing into the document, so remove it\n } else if (isOmniInsertCommandActive(view.state.selection)) {\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: 5,\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 Headings = 'Headings',\n Chunks = 'Chunks',\n Lists = 'Lists',\n Math = 'Math',\n References = 'References',\n Content = 'Content',\n Blocks = 'Blocks',\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) {\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) {\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\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 // 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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 checkWord: (word: string) => boolean;\n suggestionList: (word: string) => string[];\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { EditorUISpelling, kCharClassWord } 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 operaitons 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 firs 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, true, range.from, 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 });\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 // 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 while (words.hasNext()) {\n const word = words.next()!;\n const wordText = state.doc.textBetween(word.start, word.end);\n const wordCheck = spellcheckerWord(wordText);\n if (!spelling.checkWord(wordCheck)) {\n const attrs: DecorationAttrs = {};\n const spec: { [key: string]: any } = {\n word: wordCheck,\n };\n if (excludeCursor && state.selection.head > word.start && state.selection.head <= word.end) {\n spec.cursor = true;\n } else {\n attrs.class = kSpellingErrorClass;\n }\n decorations.push(Decoration.inline(word.start, word.end, attrs, spec));\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 prevetn 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 // prevent default handling\n event.stopPropagation();\n event.preventDefault();\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 // get word\n const { from, to } = deco[0];\n const word = spellcheckerWord(view.state.doc.textBetween(from, to));\n\n // get suggetions\n const kMaxSuggetions = 5;\n const suggestions = ui.spelling.suggestionList(word);\n\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 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 if (ui.spelling.isWordIgnored(word)) {\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 {\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';\n\nexport type PandocLineWrapping = 'none' | 'column' | 'sentence';\n\nexport interface PandocToProsemirrorResult {\n doc: ProsemirrorNode;\n line_wrapping: PandocLineWrapping;\n unrecognized: string[];\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). we also\n // 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 ['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, 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, 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 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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 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 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\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 }\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 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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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} 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\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 }\n\n // we explicitly don't want fancy quotes in the editor\n textRun = fancyQuotesToSimple(textRun);\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 (mark.type.isInSet(next.marks)) {\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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';\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 { acePlugins } 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 ]);\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, 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 plugins.push(...acePlugins(codeViews, context));\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 text = fancyQuotesToSimple(text);\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { EditorUI } from '../api/ui';\nimport { OmniInsertGroup } from '../api/omni_insert';\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\nclass InsertParagraphCommand extends ProsemirrorCommand {\n constructor() {\n super(EditorCommandId.ParagraphInsert, [], insertParagraph);\n }\n}\n\nexport default extension;\n","/*\n * paragraph.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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","/*\n * heading.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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: 5,\n right: 10,\n },\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('Top level 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}\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('Smaller 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]): OmniInsert {\n return {\n name: headingName(ui, level),\n description,\n group: OmniInsertGroup.Headings,\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 && node.attrs.classes.length) {\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { kPlatformMac } from '../../api/platform';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { conditionalWrappingInputRule } from '../../api/input_rule';\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 } = 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 };\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 kPlatformMac ? ['Shift-Mod-8'] : [],\n schema.nodes.bullet_list,\n schema.nodes.list_item,\n bulletListOmniInsert(ui),\n ui.prefs,\n ),\n new ListCommand(\n EditorCommandId.OrderedList,\n kPlatformMac ? ['Shift-Mod-7'] : [],\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 };\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.Lists,\n priority: 5,\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.Lists,\n priority: 4,\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from 'prosemirror-model';\nimport { EditorState, Transaction } 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';\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\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 // 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 dispatch(tr);\n }\n}\n","/*\n * list-checked.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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 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 node.forEach(item => {\n if (options.tight && item.childCount > 1) {\n options.tight = false;\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 } = 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, imageAttr),\n }),\n },\n ],\n\n commands: (_schema: Schema) => {\n return [\n new ProsemirrorCommand(\n EditorCommandId.Image,\n ['Shift-Mod-i'],\n imageCommand(ui, imageAttr),\n imageOmniInsert(ui),\n ),\n ];\n },\n\n plugins: (schema: Schema) => {\n return [\n imageTextSelectionPlugin(),\n imageEventsPlugin(ui),\n ...imageNodeViewPlugins('image', ui, 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 alt: '',\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.alt = 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.alt);\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 alt = node.attrs.alt || node.textContent;\n if (alt) {\n attr.alt = alt;\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 alt: { 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 alt: 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, 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, imageAttributes);\n }\n\n return true;\n };\n}\n\nfunction imageOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from '../../api/pandoc_attr';\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 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 alt: nodeType === schema.nodes.figure ? node.textContent : node.attrs.alt,\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 // edit the image\n const result = await editorUI.dialogs.editImage(image, dims, imageAttributes);\n if (result) {\n // figures treat 'alt' as their content (the caption), but since captions support\n // inline formatting (and the dialog doesn't) we only want to update the\n // content if the alt/caption actually changed (as it will blow away formatting)\n if (type === ImageType.Figure && image.alt !== result.alt) {\n if (result.alt) {\n content = Fragment.from(view.state.schema.text(result.alt));\n } else {\n content = Fragment.empty;\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } = 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, imageAttr),\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, 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.alt ? Fragment.from(schema.text(attrs.alt)) : 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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, 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 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 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.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 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, this.view, this.editorUI);\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from '../../api/pandoc_attr';\nimport { EditorUIImages } from '../../api/ui-images';\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): 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 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 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 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 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 whitelist in 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 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 * widgets.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 ui.context.clipboardImage().then(image => {\n if (image) {\n handleImageUris(view, view.state.selection.from, event, [image], ui);\n }\n event.preventDefault();\n return true;\n });\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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),\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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\nfunction 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 markInputRule(/(?:\\[)([^\\]]+)(?:\\]\\()([^)]+)(?:\\))$/, schema.marks.link, filter, (match: string[]) => ({\n href: match[2],\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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';\n\nimport './cursor.css';\nimport { ResolvedPos } from 'prosemirror-model';\nimport { isList } from '../api/list';\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 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 } \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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { isSingleLineTex } from '../api/tex';\nimport { OmniInsert, OmniInsertGroup } from '../api/omni_insert';\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 {\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 } 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 should be read as inline tex\n } else if (format === kTexFormat && isSingleLineTex(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\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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.meta + '}\\n' + parts.code + '```\\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 ];\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 rowOffset = 1,\n colOffset = 0,\n selectionOffset?: number,\n ) {\n super(id, keymap, insertRmdChunk(placeholder, rowOffset, colOffset), {\n name: `${lang} ${ui.context.translateText('Code Chunk')}`,\n description: `${ui.context.translateText('Executable')} ${lang} ${ui.context.translateText('chunk')}`,\n group: OmniInsertGroup.Chunks,\n priority,\n selectionOffset: selectionOffset || colOffset || placeholder.length,\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 );\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 );\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 0,\n 16,\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!, 0, 9);\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 0,\n 17,\n );\n }\n}\n\nexport default extension;\n","/*\n * rmd_chunk-image.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 >]*```+|[\\W\\w]*?\\n[\\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 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 * div.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeOfType, ContentNodeWithPos, findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';\nimport { wrapIn } from 'prosemirror-commands';\nimport { GapCursor } from 'prosemirror-gapcursor';\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} 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';\n\nimport './div-styles.css';\n\nconst DIV_ATTR = 0;\nconst DIV_CHILDREN = 1;\n\nconst extension = (context: ExtensionContext) : Extension | null => {\n const { pandocExtensions, 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 return [\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.Blocks,\n priority: 1,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.div_dark! : ui.images.omni_insert?.div!),\n }),\n ];\n },\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 await editDiv(ui, state, dispatch, div!);\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 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 const tr = state.tr;\n if (result.action === 'edit') {\n tr.setNodeMarkup(div.pos, div.node.type, result.attr);\n dispatch(tr);\n } else if (result.action === 'remove') {\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 dispatch(tr);\n }\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\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 * line_block.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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('writeSpaces', 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from 'prosemirror-state';\nimport { Transform } from 'prosemirror-transform';\nimport { tableEditing, columnResizing, goToNextCell, deleteColumn, deleteRow } from 'prosemirror-tables';\n\nimport { findChildrenByType } from 'prosemirror-utils';\n\nimport { EditorUI } from '../../api/ui';\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { PandocExtensions } from '../../api/pandoc';\nimport { BaseKey } from '../../api/basekeys';\nimport { ProsemirrorCommand, EditorCommandId, exitNode } from '../../api/command';\nimport { TableCapabilities } from '../../api/table';\nimport { trTransform } from '../../api/transaction';\nimport { PandocCapabilities } from '../../api/pandoc_capabilities';\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 ) {\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.TableInsertTable,\n ['Alt-Mod-t'],\n insertTable(capabilities, ui),\n insertTableOmniInsert(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: goToNextCell(1) },\n { key: BaseKey.ShiftTab, command: goToNextCell(-1) },\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\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 const colpercents = table.node.attrs.colpercents;\n if (colpercents) {\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 = [colpercents[c] * containerWidth];\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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 doc types\n if (!format.docTypes.includes(kHugoDocType)) {\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { createImageButton } from '../../api/widgets/widgets';\nimport { EditorUI, ChunkEditor } from '../../api/ui';\nimport { EditorOptions } from '../../api/options';\nimport { EditorEvents } from '../../api/events';\nimport { kPlatformMac } from '../../api/platform';\nimport { rmdChunk, previousExecutableRmdChunks, mergeRmdChunks } from '../../api/rmd';\nimport { ExtensionContext } 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';\n\nconst plugin = new PluginKey('ace');\n\nexport function acePlugins(codeViews: { [key: string]: CodeViewOptions }, context: ExtensionContext): Plugin[] {\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 return [\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}\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 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 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 // 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 const top = ele.offsetTop + this.dom.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.node.attrs.md_index, {\n getPos: () => this.getPos(),\n scrollIntoView: ele => this.scrollIntoView(ele),\n scrollCursorIntoView: () => this.scrollCursorIntoView(),\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 });\n this.aceEditor.commands.addCommand({\n name: 'rightEscape',\n bindKey: 'Right',\n exec: () => {\n this.arrowMaybeEscape('char', 1, 'gotoright');\n },\n });\n this.aceEditor.commands.addCommand({\n name: 'upEscape',\n bindKey: 'Up',\n exec: () => {\n this.arrowMaybeEscape('line', -1, 'golineup');\n },\n });\n this.aceEditor.commands.addCommand({\n name: 'downEscape',\n bindKey: 'Down',\n exec: () => {\n this.arrowMaybeEscape('line', 1, 'golinedown');\n },\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 const pos = this.aceEditor.getCursorPosition();\n const lastrow = this.editSession.getLength() - 1;\n if (\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { EditorUI } from '../../api/ui';\nimport { pandocAttrEnabled } from '../../api/pandoc_attr';\n\nimport { AttrEditCommand } from './attr_edit-command';\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { PandocExtensions } from '../../api/pandoc';\nimport { AttrEditDecorationPlugin } from './attr_edit-decoration';\nimport { Extension } from '../../api/extension';\nimport { hasFencedCodeBlocks } from '../../api/pandoc_format';\n\nexport const kEditAttrShortcut = 'F4';\n\nexport function attrEditExtension(\n pandocExtensions: PandocExtensions,\n ui: EditorUI,\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, 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","/*\n * attr_edit-command.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { kEditAttrShortcut } from './attr_edit';\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { pandocAutoIdentifier, gfmAutoIdentifier } from '../../api/pandoc_id';\nimport { PandocExtensions } from '../../api/pandoc';\nimport { fragmentText } from '../../api/fragment';\n\nexport class AttrEditCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI, pandocExtensions: PandocExtensions, editors: AttrEditOptions[]) {\n super(EditorCommandId.AttrEdit, [kEditAttrShortcut], attrEditCommandFn(ui, pandocExtensions, editors));\n }\n}\n\nexport function attrEditCommandFn(\n ui: EditorUI, \n pandocExtensions: PandocExtensions, \n editors: AttrEditOptions[]\n) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\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(node!, 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(node!, 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 node: ProsemirrorNode,\n pos: number,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n ui: EditorUI,\n pandocExtensions: PandocExtensions,\n): Promise {\n const attrs = node.attrs;\n const result = await ui.dialogs.editAttr({ ...attrs }, idHint(node, pandocExtensions));\n if (result) {\n dispatch(\n state.tr.setNodeMarkup(pos, node.type, {\n ...attrs,\n ...result.attr,\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 * attr_edit-decoration.tsx\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { DecorationSet, EditorView, Decoration } from 'prosemirror-view';\n\nimport * as React from 'react';\n\nimport { EditorUI } from '../../api/ui';\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { ImageButton } from '../../api/widgets/button';\nimport { CommandFn } from '../../api/command';\nimport { AttrProps } from '../../api/ui-dialogs';\nimport { WidgetProps, reactRenderForEditorView } from '../../api/widgets/react';\nimport { PandocExtensions } from '../../api/pandoc';\n\nimport { kEditAttrShortcut } from './attr_edit';\nimport { attrEditNodeCommandFn } from './attr_edit-command';\n\nimport './attr_edit-decoration.css';\n\ninterface AttrEditDecorationProps extends WidgetProps {\n tags: string[];\n attrs: AttrProps;\n editFn: CommandFn;\n view: EditorView;\n ui: EditorUI;\n}\n\nconst AttrEditDecoration: React.FC = props => {\n const buttonTitle = `${props.ui.context.translateText('Edit Attributes')} (${kEditAttrShortcut})`;\n\n const onClick = () => {\n props.editFn(props.view.state, props.view.dispatch, props.view);\n };\n\n return (\n
\n {props.tags.length\n ? props.tags.map(tag => {\n return (\n \n {tag}\n \n );\n })\n : null}\n {props.editFn(props.view.state) ? (\n \n ) : null}\n
\n );\n};\n\nconst key = new PluginKey('attr_edit_decoration');\n\nexport class AttrEditDecorationPlugin extends Plugin {\n constructor(ui: EditorUI, pandocExtensions: PandocExtensions, editors: AttrEditOptions[]) {\n super({\n key,\n state: {\n init: (_config: { [key: string]: any }) => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, _oldState: EditorState, newState: EditorState) => {\n // node types\n const schema = newState.schema;\n const nodeTypes = editors.map(ed => ed.type(schema));\n\n // decorations to return\n const decorations: Decoration[] = [];\n\n // start from current selection\n const $head = tr.selection.$head;\n\n for (let i=1; i<=$head.depth; i++) {\n\n const parentWithAttrs = { node: $head.node(i), pos: $head.before(i) };\n if (!nodeTypes.includes(parentWithAttrs.node.type)) {\n continue;\n }\n\n // get editor\n const editor = editors.find(ed => ed.type(schema) === parentWithAttrs.node.type)!;\n\n // screen for noDecorator\n if (editor.noDecorator) {\n continue;\n }\n\n // provide some editor defaults\n editor.tags =\n 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 return attrTags;\n });\n editor.offset = editor.offset || { top: 0, right: 0 };\n\n // get editFn\n const editFn = (editorUI: EditorUI) => attrEditNodeCommandFn(parentWithAttrs, editorUI, pandocExtensions, editors);\n\n // get attrs/tags\n const node = parentWithAttrs.node;\n const attrs = node.attrs;\n const tags = editor.tags(node);\n\n // attr_edit controls\n const attrEditDecoration = Decoration.widget(\n parentWithAttrs.pos,\n (view: EditorView, getPos: () => number) => {\n // does the offsetParent have any right padding we need to offset for?\n // we normally use right: 5px for positioning but that is relative to\n // the edge of the offsetParent. However, some offset parents (e.g. a\n // td or a nested div) have their own internal padding to account for\n // so we look for it here\n let rightPaddingOffset = 0;\n const attrsNode = view.nodeDOM(getPos());\n if (attrsNode) {\n const attrsEl = attrsNode as HTMLElement;\n if (attrsEl.offsetParent) {\n const offsetParentStyle = window.getComputedStyle(attrsEl.offsetParent);\n rightPaddingOffset = -parseInt(offsetParentStyle.paddingRight!, 10) || 0;\n }\n }\n\n // cacculate position offsets\n const baseOffset = editor.offset || { top: 0, right: 0 };\n const xOffset = baseOffset.right + rightPaddingOffset;\n const yOffset = baseOffset.top + 6;\n const cssProps: React.CSSProperties = {\n transform: `translate(${xOffset}px,-${yOffset}px)`,\n };\n\n // create attr edit react component\n const attrEdit = (\n \n );\n\n // create decorator and render attr editor into it\n const decoration = window.document.createElement('div');\n reactRenderForEditorView(attrEdit, decoration, view);\n\n return decoration;\n },\n {\n // re-use existing instance for same tags\n key: `tags:${tags.join('/')}`,\n ignoreSelection: true,\n stopEvent: () => {\n return true;\n },\n },\n );\n\n decorations.push(attrEditDecoration);\n }\n\n \n // return decorations\n return DecorationSet.create(tr.doc, decorations);\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n },\n });\n }\n}\n","/*\n * editor-theme.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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 .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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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 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 },\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 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 widgets: {\n tag_delete: tagDelete,\n tag_edit: tagEdit,\n },\n };\n}\n","/*\n * editor-menus.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\nimport { Editor } from './editor';\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.Citation },\n { command: EditorCommandId.CrossReference },\n { command: EditorCommandId.Footnote },\n { separator: true },\n { command: EditorCommandId.Image },\n { command: EditorCommandId.Link },\n { command: EditorCommandId.HorizontalRule },\n ...(haveAnyOf(commands, EditorCommandId.DefinitionList)\n ? [\n { separator: true },\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 { separator: true },\n { command: EditorCommandId.InlineMath },\n { command: EditorCommandId.DisplayMath },\n { separator: true },\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.CodeBlockFormat },\n { command: EditorCommandId.InsertDiv },\n { command: EditorCommandId.YamlMetadata },\n { separator: true },\n { command: EditorCommandId.Shortcode },\n { separator: true },\n { command: EditorCommandId.HTMLComment },\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 ? [{ command: EditorCommandId.TableInsertTable }] : []),\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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"]} \ 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/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/mark.ts","src/api/text.ts","src/api/list.ts","src/api/command.ts","src/api/location.ts","src/api/ui.ts","src/api/util.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/api/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/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/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/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-bibliography_entry.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/api/widgets/checkbox-input.tsx","src/marks/span.ts","src/marks/xref/xref.ts","src/marks/xref/xref-completion.tsx","src/marks/xref/xref-popup.tsx","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/div.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/behaviors/attr_edit/attr_edit-decoration.tsx","src/editor/editor-theme.ts","src/editor/editor-images.ts","src/editor/editor-menus.ts","src/api/table.ts","src/editor/editor-schema.ts"],"names":["_c944","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","find_1","completion_1","spelling_interactive_1","spelling_realtime_1","pandoc_converter_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","unparsed_meta","loc","tr_1","i_1","getMarkdownTr","canonical","location","pandocConverter","toProsemirror","result","isInitialDoc","plugins","updateState","getEditingLocation","pos","nodeSize","dispatch","applyFixups","fixup_1","FixupContext","Load","emitEvent","StateChangeEvent","tr","getMarkdownCode","prototype","attrs","initial","getMarkdown","__generator","code","outline_1","getEditingOutlineLocation","getHTML","getTitle","getSelection","navigation_id","navigationIdForSelection","setEditingLocation","outlineLocation","previousLocation","getOutline","getFindReplace","selectCurrent","selectFirst","selectNext","selectPrevious","replace","getSpellingDoc","pandocMarks","spelling","spellingInvalidateAllWords","invalidateAllWords","spellingInvalidateWord","word","invalidateWord","extensionFixups","getSelectedText","replaceSelection","marks","selection","$from","replaceSelectionWith","trSetSel","setSelection","sel","getYamlFrontMatter","nodes","yaml_metadata","yaml_1","yamlFrontMatter","applyYamlFrontMatter","yaml","focus","blur","insertChunk","chunkPlaceholder","rowOffset","colOffset","navigate","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","storedMarksSet","getMeta","transaction_1","kFixupTransaction","UpdateEvent","outline_2","previousOutline","OutlineChangeEvent","DispatchEvent","eventType","detail","emit","editor_extensions_1","pandocExtensions","navigation","registerCompletionExtension","register","omni_insert_1","omniInsertExtension","omniInserters","markFilter","registerRealtimeSpelling","registerPlugins","realtimeSpellingPlugin","baseKeysPlugin","baseKeys","appendTransactionsPlugin","appendTransactions","hooks","Plugin","inputRulesPlugin","input_rule_1","markInputRuleFilter","plugin","inputRules","rules","handleTextInput","props","from","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","fromProsemirror","outlineNode","reverse","find","node","_super","DOMParser","fromSchema","parse","parseSlice","preserveWhitespace","kInvalidCiteKeyChars","createUniqueCiteId","existingIds","baseId","charCodeAt","char","asciiOnlyBaseId","includes","proposedId","count","safeBaseId","String","fromCharCode","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","URL","DOI","doi_1","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","kPandocAttrId","kPandocAttrClasses","kPandocAttrKeyvalue","separator","convertedText","inQuotes","ch","trim","line","parts","kWidthAttrib","kHeightAttrib","kStyleAttrib","kCodeBlockText","kSpanAttr","kSpanChildren","pandocAttrSpec","pandocAttrFrom","pandocAttr","pandocAttrInSpec","spec","tok","c","pandocAttrToDomAttr","marker","domAttr","el","forceAttrs","excludedNames","includedNames","hasAttribute","getAttribute","filter","val","resolveCurrent","remainder","partitioned","partition","base","extension_1","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","isArray","mapValue","mapToken","mappedTok","tokenHasChildren","imageAttributesAvailable","link_attributes","raw_html","output","entry","kRawBlockFormat","stringifyTokens","unemoji","elem","Str","Space","SoftBreak","LineBreak","kLinkChildren","Span","Quoted","kQuoteType","stringifyMath","Code","kCodeText","forEachToken","mapTokens","tokenTextEscaped","marksByPriority","markWriters","aPriority","priority","QuoteType","DoubleQuote","quotesForType","kSingleQuotes","SingleQuote","kSingleQuoteRegEx","RegExp","begin","end","kDoubleQuotes","fancyQuotesToSimple","Inline","MathType","typeset","math","isConnected","then","timerId_1","setInterval","clearInterval","kMathType","clipboardTextParser","$context","_i","codeViews","codeViewType","codeView","createFromPastePattern","test","textNode","codeNode","nodeType","createAndFill","Slice","Fragment","n","p","canInsertNode","canInsertNodeAtPos","asSelection","$pos","d","depth","canReplaceWith","findTopLevelBodyNodes","predicate","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","matchPandocFormatComment","pandocFormatConfigFromYamlInCode","firstYamlBlock","object_1","findValue","yamlMarkdownOptions","yamlFormatConfig","readPandocFormatConfig","mdExtensions","formatConfig","pandocFormatConfigFromCommentInCode","keyValueRegEx","field","fields","keyValueMatch","variables_1","source","obj","toString","mode","asString","rmd_extensions","doctype","str","references","references_location","references_prefix","prefix","toLowerCase","asBoolean","parseExtensions","re","enabled","exec","splitPandocFormatString","optionsPos","indexOf","commonmarkExtensions","rawHTML","format_1","kHugoDocType","kMarkdownGithubFormat","kGfmFormat","kCommonmarkFormat","kCommonmarkXFormat","yamlMetadataNodes","pandocFormatConfigFromYamlInDoc","foundFirstRawInline","config","pandocFormatConfigFromCommentInDoc","warnings","baseName","formatOptions","variant","validOptionNames","fullName","includeTexMathDollars","invalidFormat","invalidOptions","pandocMode","kMarkdownMmdFormat","kMarkdownStrictFormat","kMarkdownVariants","listExtensions","option","pandocFormatWith","hasFencedCodeBlocks","backtick_code_blocks","fenced_code_blocks","isYamlMetadataNode","kYamlMetadataTitleRegex","firstYaml","firstYamlNode","yamlText","updatedYaml","replaceRangeWith","updatedYamlNode","insert","titleFromYamlMetadataNode","titleMatch","yamlMetadataNameValueRegex","valueMatch","parseYaml","kFirstYamlBlockRegex","yamlCode","js_yaml_1","safeLoad","onWarning","log_1","logException","stripYamlDelimeters","yamlParsed","safeDump","object","some","ignoreKey","homeKey","editingNode","head","coordsAtPos","beginDocPos","isOnPreviousLine","setTextSelection","endKey","node_1","editingRootNode","start","endDocPos","top","bottom","arrowBodyNodeBoundary","dir","endOfTextblock","selection_1","selectionIsBodyTopLevel","side","$head","nextRootNode","editingRootNodeClosestToPos","nextPos","currentRootNode","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","endTopLevelBodyNodeBoundary","undoInputRule","x","commandMap","baseKey","unshift","values","_e","isTextblock","cursorOffset","parentOffset","nodeText","prosemirror_gapcursor_1","selectionIsWithinRange","range","anchor","nodeWithPos","selectionHasRange","parentNode","GapCursor","NodeSelection","selectionIsEmptyParagraph","slice_1","kPasteTransaction","kSetMarkdownTransaction","kNavigationTransaction","kInsertSymbolTransaction","kInsertCompletionTransaction","MarkTransaction","addMark","mark","removeStoredMark","insertText","transactionsDocChanged","transactions","transaction","transactionsChangeSet","oldState","newState","transactions_1","changeSet","addSteps","mapping","maps","complete","oldSize","old","childCount","curSize","cur","outer","scan","offset","child","sameMarkup","nodesBetween","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","outlineNodes","bodyNodes","bodyNode","bullet_list","ordered_list","list_item","listItemNode","rmd_chunk","rmdChunkNode","isOutlineNode","kYamlMetadataOutlineItemType","itemsWithPos","getDocumentOutline","item","active","position","kRmdchunkOutlineItemType","chunk","rmd_1","rmdChunkEngineAndLabel","kHeadingOutlineItemType","foundActive","items","getOutlineNodes","findParentNodeOfType","table","activeRmdChunk","rmdNode","rmdChunk","previousRmdChunks","chunks","rmdChunkNodes_1","lines","trimLeft","meta","matchLang","lang","idx","canInsertRmdChunk","insertRmdChunk","toggleBlockType","paragraph","list_1","precedingListItemInsertPos","offsetChars","reduce","rmdText","util_1","uuidv4","prevListItemPos","precedingListItemInsert","selPos","activeChunk","localeCompare","sensitivity","kEvalFalseRegEx","haveTableCellsWithInlineRcode","table_cell","table_header","cell","rangeHasMark","markedNode","markedRange","mark_1","getMarkRange","textBetween","text_1","link","startIndex","startPos","endIndex","isInSet","endPos","markIsActive","empty","storedMarks","markItem","markType","findChildrenByMark","removeMark","validLength","nd","markRange","detectAndApplyMarks","mergedTextNodes","_node","_pos","allowsMarkType","refText","lastIndex","textNodes","nodeIndex","isText","str1","str2","ListType","extendStatics","__extends","b","setPrototypeOf","__proto__","__","constructor","assign","prosemirror_schema_list_1","ui_1","ProsemirrorCommand","omniInsert","MarkCommand","toggleMarkType","NodeCommand","BlockCommand","blockType","toggleType","WrapCommand","wrapType","toggleWrap","scrollIntoView","InsertCharacterCommand","codeRange","defaultToggleMark","pandocAttrAvailable","wrapIn","listType","itemType","blockRange","$to","parentList","isList","validContent","setNodeMarkup","tight","listSpacing","kListSpacingTight","exitNode","sameParent","$anchor","allowKey","endCaptionPos","above","after","abs","dom_1","outlineItemSimillarToNode","outlineItem","docOutlneNode","nodeA","nodeB","scrollTop","docOutlineLocationNode","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","parentDiv","findParentNodeOfTypeClosestToPos","resultPos","before","resultNode","nodeDOM","scroller","zenscroll_1","createScroller","containerEl","duration","onDone","intoView","HTMLElement","editingRoot","xref_1","navigateToId","navigateToHref","href","navigateToXRef","xref","xrefPosition","xrefPos","prevPos","max","dest","parentElement","navigateToPos","NavigationType","navigateTo","Pos","Id","Href","navigateToHeading","XRef","raw_1","xrefKey","suffix","colonPos","xrefTypeAndId","xrefInfo","id_1","locator_1","xrefPositionLocators","markType_1","hasXRef","h2","headingLocator","h3","h4","h5","h6","fig","nodeTypes","rmdChunkHasXRef","tab","kTexFormat","cnj","thereomLocator","def","engine","pattern","pandocAsciify","newch","chars","len","asciify","gfmAutoIdentifier","editRawBlockCommand","raw_block","setBlockType","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","_attrib","setProperty","replaceClassWithStyle","contains","remove","removeAttribute","children_1","children","EditorChangeType","diff_match_patch_1","diffChars","timeout","dmp","diff_match_patch","Diff_Timeout","diff_main","diff","DIFF_INSERT","Insert","DIFF_EQUAL","DIFF_DELETE","regexp","getAttrs","InputRule","Function","textStart","delete","markInputRule","delimiterMarkInputRule","prefixMask","delim","contentPattern","textEnd","maskOffset","noInputRules","marksWithNoInputRules","marksInRange_1","maskedMarkTypes","maskedMarkTypes_1","conditionalWrappingInputRule","wrappingRule","wrappingInputRule","joinPredicate","wrapSentencesTransform","sentence","hardBreak","hardBreakPos","wrapSentences","titleFromState","yamlNodes_2","yamlMetadataTitlePlugin","init","_config","foundTitle","titleLine","yamlNode","hasOutlineIdsTransaction","Set","usedIds","outlineId","setMeta","GoToPreviousSection","goToSectionCommand","editorOutline","transactionsHaveChange","transactionsAffectOutline","outline","target","navigation_1","sequence","Map","rootOutlineItem","defaultLevel","typename","sequenceLast","getState","FindPlugin","instance","DecorationSet","updating","update","prevState","clearResultObserver","isResultSelected","term","resultElement","resultObserver","resultObserverTimer","updateResults","decorations","selectResult","afterSelection","matchesTerm","selectedText","wrap","searchTo","decorationSet","withResultUpdates","searchFrom","nextDecoration","lastDecoration","tr_3","decoration","tr_4","selectionMarks","marksAcross","replaceAll","replaced","hasTerm","tr_5","clear","kAddToHistoryTransaction","resultDecorations","search","findRegEx","Decoration","inline","class","TextSelection","watchForSelectedResult","MutationObserver","records","observer","ele","isResultNode","scrollToSelectedResult","observe","childList","window","setTimeout","disconnect","clearTimeout","querySelector","scrollElement","nextParent","offsetParent","caseSensitive","findPlugin","inclusive","parseDOM","toDOM","readers","writer","writeInlines","OmniInsertCommand","inputRuleFilter","completionHandlers","omni_insert_completion_1","omniInsertCompletionHandler","OmniInsert","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","isOmniInsertCommandActive","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","excludeWord","classifier","findBeginWord","findEndWord","beginPos","classifyCharacter","currentPos","advanceToWord","endWordPos","wordText","words","breakWords","hasNext","next","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","spellingDecorations","cursor","cursorDecos","realtimeSpellingKey","contextmenu","spellingSuggestionContextMenuHandler","focusUnsubscribe","updateSpelling","excludeCursor","checkWord","wordCheck","menuItems","clientX","clientY","schema_1","deco","from_1","to_1","word_2","suggestionList","suggestion","pandocPreprocessors","pandocPostprocessors","pandocTokensFilters","pandocBlockReaders","pandocInlineHTMLReaders","original","autoIds","gfm_auto_identifiers","adjustedFormat","preprocessor","blockCapsuleFilters","pandoc_capsule_1","pandocMarkdownWithBlockCapsules","pandoc_to_prosemirror_1","pandocToProsemirror","ast","tokensFilters","blockReaders","inlineHTMLReaders","postprocessor","pandocOptions","referenceLocation","disabledTableTypes","disabledFormatOptions","atxHeaders","dpi","column","parseInt","wrapOptions","astToMarkdown","ext","newFormat","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","parser","closeNode","addNode","openMark","closeMark","writeText","hasInlineHTMLWriter","writeTokens","logUnrecognized","isNodeOpen","Null","blocks","prevTok","lineBreaks","columnBreaks","sentenceBreaks","targetAst","heading_ids","hasShortcutHeadingLinks","equalsIgnoreCase","autoIdentifier","ascii_identifiers","headingIds","has","toLocaleLowerCase","Link","astBlocks","Header","pandocAttrReadAST","heading_1","kHeadingAttr","kHeadingLevel","kHeadingChildren","resolveHeadingIds","lineWrapping","targetTokens","writeToken","blockCapsule","writeNode","reader","getChildren","this_1","block","blockReaders_1","blockReader","nodeType_2","openNode","Error","code_block","kCodeBlockAttr","readers_1","stack","Mark","none","unrecognizedTokens","merged","info","isInline","addToSet","removeFromSet","openNoteNode","note","maybeMerge","sameSet","pandocFromProsemirror","apiVersion","nodeWriters","notesNode","PandocWriter","writeNodes","notes","initEscapeCharacters","write","writeSpaces","spaceAfter","output_1","spaceBefore","outputText","trimRight","writeArray","writeAttr","preventEscapeCharacters","flushTextRun","textRun_1","smart","manualEscapeCharacters","writeNote","Note","noteBody","fragment","currentChild","childIndex","markedNodes","nextNode","activeMarks","md","fragment_1","fragmentText","escapeSymbols","escaped","escapeCharacters","RawInline","withOption","fill","tex_math_single_backslash","allEscapeCharacters","emjojiMark","emoji","emojihint","paragraph_1","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","trailing_p_1","empty_mark_1","escape_mark_1","code_block_input_1","manager","ExtensionManager","paste_text_1","bottom_padding_1","insert_symbol_plugin_symbol_1","insert_special_characters_1","nbsp_1","remove_section_1","footnote_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","tokensFilter","inlineHTMLReader","blockCapsuleFilter","pandocReaders","collectFrom","pandocMarkWriters","pandocNodeWriters","pandocNodes","code_view","views","attrEditors","collect","appendMarkTransactions","appendMarkTransaction","collector","visitor","results","flatMap","quote","group","Plain","insertParagraph","HeadingCommand","headingCommandFn","heading1OmniInsert","heading1","heading1_dark","heading2OmniInsert","headingOmniInsert","heading2","heading2_dark","heading3","heading4OmniInsert","heading4","heading4_dark","headingName","pandocAttrSupported","pandocAttrParseDom","header_attributes","mmd_header_identifiers","headingAttrs","headingAttr","data-link","partMatch","cut","writeBookdownH1","Heading1","Heading5","Heading6","textblockTypeInputRule","kHeadingLevels","pandocAttrParseText","emptyHeadingPlaceholderPlugin","CodeBlockFormat","codeBlockFormatCommandFn","languages","code_block_dark","fenced_code_attributes","potentialLang","codeBlockProps","dialogs","editCodeBlock","applyProps","newProps","propsWithLangClass","codeBlock","tags","right","editFn","codeNodeSpec","hasAttr","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","tightFn","listItemType","autoJoin","toggleList","TightListCommand","CheckedListItemNodeView","getPos","disabled","editable","ev","contentDOM","checkedListItemCommandFn","itemNode","setItemChecked","checkedListItemToggleCommandFn","check","baseInputRule","fragmentWithCheck","raw_inline","mappedTokens","lastWasChecked","writeListItemInlines","example","childAttrs","childWithChecked","writePandocListItem","figure","imageAttributes","src","decodeURI","readPandocTitle","alt","requireHTML","writeRawMarkdown","linkTo","writeFigure","writeLink","imageInlineHTMLReader","isImage","image_util_1","inlineHTMLIsImage","imageAttrsFromHTML","imageDOMOutputSpec","imageDOMAttributes","parseFromString","imageCommand","editorUI","img","imgDimensions","selectionIsImageNode","pandocImageHandler","imagePandocOutputWriter","imageNodeAttrsSpec","imageAttr","imageAttrsFromDOM","Image","attr_edit","noDecorator","_schema","imageTextSelectionPlugin","imageEventsPlugin","imagePropsWithSizes","linkMark","Figure","editImage","units","isNaturalHeight","newImage","imageProps","insertAndSelectNode","partitionedKeyvalue","sizeWithUnit","ensureContainerWidth","imagePos","findParentNodeClosestToPos","domAtPos","resizeContainer","elementInnerDimensions","resizeEl","definition_list","convertImagesToFigure","imagesToFiguresTransform","linkAttrs","getMarkAttrs","mappedImagePos","writerHasProhibitedFigureParent","contentElement","kRawBlockContent","html_1","isSingleLineHTML","fixupContext","appendTransaction","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","imageContainerWidth","noImplicitFigures","emptyFigcaption","selectionInFigcaption","hide","display","minHeight","margin","widthWithUnit","heightWithUnit","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","setPointerCapture","pageX","movedX","startX","movedY","pageY","startY","startWidth","startHeight","onPointerUp","havePointerEvents","releasePointerCapture","pointerId","onPointerMove","onPointerDown","resizeHandle","cssFloat","marginRight","marginLeft","liftStyle","liftImgStyle","widthProp","heightProp","kAlignAttrib","verticalAlign","onDestroyed","observer_1","subtree","button","imageEl","optionEl","widthChars","atEnd","selectFigureCaption","selectFigure","Selection","near","verticalArrowCanAdvanceWithinTextBlock","isWithinEmptyCaption","parentIndex","previousNode","parentTextBlock","figureSelection","nodePos","arrowHandler","ArrowRight","clipboardEvent","clipboardData","types","getData","clipboardUris","uris","handleImageUris","dragEvent","dataTransfer","coordinates","posAtCoords","uriList","droppedUris","imageUris","uri","handlePaste","imagePaste","Content","horizontal_rule_dark","horizontal_rule","HorizontalRule","insertNode","hrOmniInsert","br","ShiftEnter","atom","selectable","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","clipboard_1","autoLink","headingLink","linkEnd","matchText","copy","fromArray","linkText_1","attrs_1","matchedHeading_1","headingText","headingPos","linkPos","tooltip_1","button_1","linkCmd","removeLinkCmd","kMaxLinkWidth","React","LinkPopup","maxLinkWidth","openURL","clipboard","linkText","isSupported","LinkButton","showCopyButton","ImageButton","on","grav","show","tabIndex","onKeyDown","forwardRef","specKey","dismissOnEdit","makeLinksAccessible","onCmdClick","_oldState","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","gapCursor","prosemirror_dropcursor_1","dropCursor","$divPos","createGapCursor","mouseEvent","clickPos","$clickPos_1","inside","divNode","stopImmediatePropagation","kFormattingMarks","markName","setStoredMarks","definition_list_term","definition_list_description","nodeRange","targetLiftDepth","liftTarget","lift","clearFormatting","enDash","ellipsis","emDash","hasAttrId","attrNode","mk","markRange_1","scannedRanges","extensionIfPandocAttrEnabled","requiresTrailingP","insertTrailingP","insertTrailingPTransform","firstChild","fencedAttributes","langAttrib","codeBlockInputRuleEnter","canApplyCodeBlockInputRule","pasteTextPlugin","bodyEl","bodyElement","toY","scrollHeight","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","editorRect","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","description","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","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","startTex","InsertInlineLatexCommand","TexInline","setTexSelectionAfterInsert","raw_inline_1","mark_highlight_1","markHighlightDecorations","latexHighlightingPlugin","splitInvalidatedMarks","texInputRule","braces","highlighter","decorationsForDoc","removeDecorations","addDecorations","markDecorations","rehighlightParent_1","braceLevel","isLetter","inBraces","inBrackets","bracketLevel","rawhtmlMark","endLoc","startLoc","isHTMLTag","close","void","isVoidTag","endTag","tagStartLoc","inSingleQuote","inDoubleQuote","rawHtmlInputRule","isRawHTMLFormat","writeInlineHTML","writeInlneHTML","isSingleTag","data-type","spellcheck","delimiterForType","kMathContent","delimter","mathText","delimiter","InlineMath","DisplayMath","Display","kInlineMathRegex","mathLength","startMath","math_commands_1","InsertInlineMathCommand","InsertDisplayMathCommand","singleLineDisplayMath","math_transaction_1","mathAppendMarkTransaction","math_highlight_1","mathHighlightPlugin","math_popup_1","MathPopupPlugin","math_view_1","mathViewPlugins","allowNewline","insertMathCommand","math_display_dark","math_display","displayMathOmniInsert","para","maths_1","mathRange","mathAttr","selectionIsWithin","lodash_debounce_1","updatePopup","updatePopupTimer","resizeUnsubscribe","mousemove","lastRenderedMath","$mousePos","equationPreview","rangeEndCoords","rangeStartCoords","editingElStyle","styles","inlineMath","error","autoscollPopup","popupBox","mathBottom","editorEl","mathText_1","mathjaxDiv","isActiveTab","_transactions","prevMathRange","delta","verticalArrowHandler","lodash_uniqby_1","bibliography_1","csl_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","provider","load","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","kCitationIdRegex","citeText","idMark","BibliographyManager","zotero","prefixMatch","Cite","closeCite","parentText","beginBracketPos","cite_commands_1","InsertCitationCommand","bibliographyManager","kFindInTextCiteRegex","kFindFullCiteRegex","citeIdDashInputRule","citationDoiCompletionHandler","citationCompletionHandler","cite_highlight_1","citeHighlightPlugin","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","kLocalBiliographyProviderKey","sourcesForProvider","sourcesForProviderCollection","collectionKey","localSources","bibFile","localProviders","providerName","prov","dataProviderBibTeX","generateBibTeX","bibDB_1","toBibTeX","warningMessage","warningProvider","findIdInLocalBibliography","searchProviderCollection","searchProvider","searchSources","limit","searchIndex","kSearchOptions","$or","bibliographiesRelative","bibliographyFilesFromDoc","yamlBlocks","path_1","expandPaths","resourcePath","parsedYamls","refBlockParsedYamls","parsedYaml","lastReferenceParsedYaml","referenceBlockFromYaml","getBibliography","bibliographiesAbsolute","refBlock","etag","bibliography","updateIndex","collections","collectionKeys","itemsForCollection","project_biblios","kPermissableFileExtensions","projectBiblio","getExtension","bibliographyFilesFromDocument","BibliographyDataProviderLocal","bibliographyValues","valueFromYamlText","ensureBibliographyFileForDoc","biblioNode","createBiblographyYamlNode","firstBlock","yamlWithBib","joinPaths","root","rootPath","paths","fileName","lastDot","changeExtension","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","cslDateToEDTFDate","options_1","optionKey","options_2","rangeArray","given","bibDBFieldName","required","optional","eitheror","shouldIncludeField","bibObject","pmNode","csl_text_1","cslTextToProsemirrorNode","nodes_1","BibLatexExporter","bibDB","traditionalNames","cslToBibDB","bibtex_1","bibDbToBibTeX","crossref_1","ensureValidCSLType","cslTypes","crossRefTypeToCSLType","sanitizeForCiteproc","sanitizeProperties","property","license","abstract","cslFromDoc","cslParsedYamls","part","partStr","_f","_g","_h","_j","_k","_l","_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","number","codePointAt","characterMap","characters_1","ungrouped","latex","thisNodeMarks","closing","closeTags","lastNodeMarks","closeTag","formatting_1","FormattingTags","open","opening","formattedText","verbatim","doNotEscape","names","formattedNames","bookauthor","language_1","lanagugeMappings","series","swedish","thai","BibTextTypes","phdthesis","unpublished","inproceedings","techreport","fieldsRequired","fieldsOptional","booklet","fieldsEitherOr","character","decimal","731","780","__rest","kZoteroProviderKey","_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","managerEntries","loadedEntries_1","cite_bibliography_entry_1","entryForSource","kCitationCompleteScope","citationCompletions","_state","tokenWithoutEndPunctuation","searchAllSources","insertCitation","CompletionWarningHeaderView","BibliographySourceView","kCiteCompletionWidth","authorsFormatter","issuedDateFormatter","CompletionItemView","imageAdornment","htmlTitle","bibliography_provider_zotero_1","completion_detailed_1","cslEntry","CompletionItemDetailedView","subTitle","bibMgr","citeId","citationHTML","getDocumentPath","JSON","stringify","previewHtml","finalHtml","rootDiv","classNames","ensureSafeLinkIsPresent","url","urlForCitation","CitePopup","Citation","alreadyInCite","includeWrapper","wrapperText","preCiteIdRange","endOfWrapper","initialSelectionKey","selectionKey","setCitationDefaultInText","intextCitationStyle","bibliographySources","bibliographySources_1","citeIdText","performInsertCitations","initiallySelectedNodeKey","doiSourcePanel","crossrefSourcePanel","crossref","pubmedSourcePanel","pubmed","bibliographySourcePanel","InsertCitationPanel","onOk","requiresProgress","bibliographySourceProviders","sourceProvider","isSlowGeneratingBibliographySource","showProgress","toBibliographySource","hideProgress","onCancel","cancel","configuration","insertCitationConfiguration","setInsertCitationConfiguration","treeNode","citationsToAdd","defaultNode","selectedPanelProvider","statusMessage","placeHolderMessage","existingBibliographyFile","createBibliographyFile","citationDefaultInText","setInsertCitationPanelState","insertCitationPanelState","updatedState","displayedCitations","panelRef","defaultResults","insert_citation_source_panel_1","CitationSourceListStatus","streamTimerId","panelProvider","panelForNode","selectedNode","setSelectedPanelProvider","refreshSearchCallback","typeAheadSearch","existingCitationIds","searchResult","citationProps","panelHeight","mergedCitationsToAdd","onSearchTermChanged","memoizedTypeaheadSearch","onExecuteSearch","searchCanceled","inProgress","progressMessage","onAddCitation","newCitations","deleteCitation","filteredCitations","totalCitationCount","panelToDisplay","navigation_tree_1","NavigationTree","treeSourceData","suggestedPanel","tag_input_1","TagInput","displayText","isEditable","isIdEditable","targetSource","currentlySelectedCitation","onTagValidate","insert_citation_bibliography_picker_1","CitationBibliographyPicker","onCreateBibliographyFileNameChanged","biblographyFile","dialog_buttons_1","DialogButtons","nodeForKey","childNode","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","itemCount","itemSize","showSelection","preventFocus","indentLevel","indentStyle","nodeList","allNodes","increment","containsChild","existingSource","imageForType","finalId","rootImageForProvider","zotero_root","bibligraphy","toTree","containers","folderImage","treeMap","currentNode","hasParent","rootNodes","zotero_collection","bibligraphy_folder","folderImageForProvider","local_sources","providerNodes","collectionKeyForNode","useBetterBibTex","zoteroOverlay","toCitationListEntries","_searchTerm","_selectedNode","_existingCitationIds","insert_citation_source_panel_typeahead_search_1","CitationSourceTypeheadSearchPanel","onSelectedIndexChanged","onConfirm","listContainer","searchBoxRef","focusSearch","insert_citation_source_panel_list_1","CitationSourceList","focusPrevious","insert_citation_source_panel_list_item_1","CitationSourcePanelListItem","currentCitation","handleListKeyDown","handleIncrementIndex","itemsPerPage","onBlur","onRemoveCitation","showSeparator","itemProvider","search_progress","citationListData","citationEntry","maxIdLength","e_1","matchExistingSourceCitationListEntry","toCitationListEntry","errorForStatus","insert_citation_source_panel_list_item_detailed_1","pasted","performSearch","lastSearch","initialFocusSet","CitationSourcePanelListItemDetailed","alreadyAdded","doiServer","dedupeCitationIds_1","citationEntries","works","work","coercedCSL","crossrefWork","crossrefWorkTitle","pubMedResult","docs","pubmed_1","pubTypes","doiResult","sanitizedCSL","noResultsMessage","sortFirstAuthor","pubDate","creators","creator","fetchCSL","dataciteResult","familyName","publicationYear","span","getSelectionMarkRange","native_spans","data-span","all_symbols_escapable","stripRefBackslashTransform","potentialXRef","bookdownXRefUI","xref_popup_1","xrefPopupPlugin","xref_completion_1","xrefCompletionHandler","insertRef","cross_reference_dark","cross_reference","FuseIndex","xrefCompletions","xrefView","xrefs","fuse","createIndex","typeQuery","colonLoc","isCaseSensitive","shouldSort","withSavedDocument","refs","kXRefTypes","generic","h1","xrefs_1","xref_2","xrefForId","kMaxWidth","file","InsertHTMLCommentCommand","HTMLComment","raw_html_comment","comment_dark","comment","data-format","isComment","kHTMLCommentMarkRegEx","removeInvalidatedMarks","commentMarkAttribs","detectAndCreateShortcodes","shortcode_1","kShortcodeRegEx","shortcode","noSpelling","excludes","markTr_1","kShortcodePattern","writePandocNote","noteNode","footnote","footnoteOmniInsert","References","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","RawBlockCommand","rawAttribute","textTrimmed","isSingleLineTex","readPandocRawBlock","isSingleChildParagraph","isParagraphWrappingMultilineRaw","rawTok","FormatRawBlockCommand","HTMLBlock","kHTMLFormat","Blocks","html_block_dark","html_block","TexBlock","tex_block_dark","tex_block","YamlMetadata","yaml_block_dark","yaml_block","yaml_metadata_capsule_1","yamlMetadataBlockCapsuleFilter","YamlMetadataCommand","yaml_metadata_title_1","RmdChunkCommand","Chunks","RChunkCommand","r_chunk_dark","r_chunk","PythonChunkCommand","python_chunk","BashChunkCommand","bash_chunk_dark","bash_chunk","d3_chunk","D3ChunkCommand","StanChunkCommand","StanCodeChunk","stan_chunk","md_index","firstLineMeta","lineNumbers","lineNumberFormatter","lineNumber","lineCount","bookdownTheorems","kBookdownDocType","rmd_chunk_capsule_1","rmdChunkBlockCapsuleFilter","RcppChunkCommand","SQLChunkCommand","rmd_chunk_image_1","RmdChunkImagePreviewPlugin","uiContext","imagePreviewDecorations","isRmdChunkNode","firstLine","widthMatch","width_1","stripQuotes","alignCenter_1","imagePath_1","unsubscribe","watchResource","kBlockCapsuleTextRegEx","kBlockCapsuleType","isFullDivSelection","createDiv","editDiv","defining","data-div","divCommand","Div","indexAfter","canApplyDivInputRule","attribMatch","attrProps","InsertDiv","LineBlock","line_block","line_block_dark","table_captions","grid_tables","multiline_tables","table_nodes_1","tableNode","tableCaptionNode","tableCellNode","tableHeaderNode","tableRowNode","TableInsertTable","table_commands_1","insertTable","insertTableOmniInsert","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","multiline","ModEnter","table_container","table_caption","numRows","rows","cells","cellType","tableCaption","tableContainer","selectionPos","cols","inactive","caption","Lists","table_dark","deleteTable","columns","rect","selectedRect","addRow","alignments_1","rowNode","cellPos","cellOffset","cellNode","align","colIndex","TableToggleHeaderCommand","TableToggleHeader","toggleHeader","isInTable","TableToggleCaption","tr_2","left_1","right_1","selectionCell","tableStart","TableMap","CellSelection","rectBetween","$anchorCell","$headCell","tableGroup","getFromDOM","textAlign","kDefaultCellClasses","Table","table_pandoc_1","readPandocTable","writePandocTableContainer","table_capsule_1","tableBlockCapsuleFilter","colgroup","childElementCount","colpercents","firstRow","colWidth","colWidths","table_columns_1","tableColumnWidths","writePandocTable","writePandocTableCaption","table_row","writePandocTableNodes","writePandocTableHeaderNodes","alignments","AlignLeft","Left","AlignRight","AlignCenter","AlignDefault","tableToken","ColWidth","columnPercents","parseRow","row","captionBlock","lastChild","widths","ColWidthDefault","headerCut","tableColumnAlignments","colwidth","defaultWidth","totalWidth","tables_1","kTableBlockCapsuleType","capsuleText","DefinitionList","definition","unparsedTable_1","TableDeleteColumn","subMenu","TableAlignColumnLeft","menuVisible","sliceHasNode","fixupTableWidths","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","ace_placeholder_1","ace_node_views_1","acePlugins","aceRenderQueue","ace_render_queue_1","AceRenderQueue","aceNodeViews","AceNodeViews","AceNodeView","handleClick","editorOptions","gapCursorPending","selectionMarker","queuedSelection","subscriptions","renderedWidth","scrollRow","mouseDown","preview","AcePlaceholder","getElement","updateMode","onEditorDispatch","initEditor","renderQueue","unsub","_decos","editSession","getDocument","computeChange","AceRange","fromPoints","indexToPosition","findMarkers","removeMarker","findPluginState","markerFrom","markerTo","aceEditor","escaping","require","Range","setSelectionRange","QueuedSelection","pending","_mutation","forwardSelection","asProseMirrorSelection","session","getRange","positionToIndex","highlightSelectionAcross","addMarker","getContents","replaceWith","offsetTop","viewTop","viewBottom","scrollCursorIntoView","clearSelection","getSession","valueChanged","cursorDirty","addCommand","bindKey","arrowMaybeEscape","backspaceMaybeDeleteNode","undo","redo","win","mac","getCursorPosition","executeSelection","renderer","metrics","$fontMetrics","$observer","setContainer","debounceResize","evt","resizeTimer","setMode","execCommand","getLength","innerText","getCursor","containerRect","cursorRect","down","up","oldEnd","oldVal","newEnd","newVal","nodeBefore","nodeAfter","cursorPos","prevNodePos","nextNodePos","nextNodeTextBlock","nextNodeCode","targetPos","renderCompleted","updateTimer","needsSort","bypass","visible","onUpdate","IntersectionObserver","entries_1","processRenderQueue","isIntersecting","cancelTimer","onScroll","scheduleRender","isRenderCompleted","renderTimer","delayMs","nodeView","prevNodePos_1","nv","ndView","setGapCursorPending","AttrEditCommand","editors","editMarkAttrs","editAttr","attr_edit_1","kEditAttrShortcut","properties_deco_dark","properties_deco","ed","parentWithAttrs","editorNode","attrTags","rightPaddingOffset","attrsEl","attrsNode","offsetParentStyle","AttrEditDecorationPlugin","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","heading3_dark","bullet_list_dark","ordered_list_dark","blockquote","blockquote_dark","math_inline","math_inline_dark","emoji_dark","div_dark","citation_dark","paragraph_dark","raw_block_dark","sql_chunk","rcpp_chunk_dark","book_dark_png_1","formatMenu","Underline","ListItemCheck","ListItemCheckToggle","EditListProperties","Blockquote","haveAnyOf","HTMLInline","ClearFormatting","AttrEdit","RCodeChunk","PythonCodeChunk","BashCodeChunk","RcppCodeChunk","SQLCodeChunk","D3CodeChunk","DefinitionTerm","DefinitionDescription","ParagraphInsert","commands_1","editorMenus","TableDeleteTable"],"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,IAI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K,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,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,KACL,KAAK,UACH,UACA,KAEF,KAAK,KACHA,EAAQ,IACR,MAEF,KAAK,UACH,KACAA,EAAA,IAEF,WACE,SACA,KAEF,KAAK,UACH,UACA,KAEF,KAAK,UACH,KACAA,EAAA,UAEJ,KAAI,UACF,OACK,IAC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MAAAA,GAAA,MAAAA,IAAA6/D,IAAAC,EAClC,OAAAj6E,EAGJ,MADFma,MAGI,MAAAA,MAEM,MAANA,MAEE,2BAKa,6FAWf,uCAGMA,iEAMS,CAAAxb,OAAC,YACNf,EAAA,+EAiGdsxB,EAAM3qB,EAAU6G,MAAK2S,SAAU9Z,WAC/Bu7C,SAActwB,KACdwwB,UAAW97B,eACHsL,cAEG3qB,EAAAsX,gBACOypB,UAAA,MAAA,SAAAr+B,EAAAuL,EAAAsY,EAAA9K,SACZ/Y,EAAO1C,OAAS6G,MAAS2S,wBACnB+Y,OAAUt1B,EAAAy3B,eAAAkhD,EAAA34E,CAAAyF,IAAA4U,EAAA5U,EAAA6jB,EAAA9K,GAAA,OAChB/Y,EAAOoE,UAAAmgB,MAAAtoB,EAAAoC,EAAApC,OAAA4qB,EAAAxoB,EAAAwoB,wBAgCT9rB,EAAAo4E,oBAIO,MAAA,IACU,MAAnBp4E,EAAIyU,OAAA4jE,EAAe,UACjB,WAEAr4E,EAAAyV,UAAgB4iE,EAAAD,EAAA,yCAKd,YA+CNt2D,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,SACAlP,SAAAkP,EAAAkC,eDkMUs0D,CAAAr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BAAA,GAAA,UAEtB9zG,EAASC,gBAAA20G,gEAGX,CAAAp8F,WAAM,YACJxY,EAASC,gBAAAu0G,+BACTx0G,EAAWC,gBAAAq0G,iCACX,YACKt0G,EAAAC,gBAAA40G,yBACH70G,EAAOC,gBAAAy7G,+BACL,cACSz7G,gBAAAwyH,8BACT,mBAAUhlF,cAAO,sLAKhB,CAAAj1B,WAAA,GACL,CAAS1M,QAAA9L,EAAAC,gBAAAo1G,wCAIL,cACSp1G,gBAAA03G,8BACT13G,gBAAA63G,qEAKAt7G,EAAA,aAAA,CAAAW,OAAA,UACKjB,EAAAE,EAAA,6BACFmG,SACL,mCAGFyP,QAAA,4BAII,iCAEEsQ,IAAA,+CAMN,MACE,CAAAsnB,MAAO,+EACL,CACA,MAAE,CAAAA,MAAA,cAA4B,oEAMtCuB,MAAW,WACH,MAAK,OAI+B,CAAAvB,MAAA,gFACjC,CACE,2BAMG,WAKX,CACH53B,QAAW,gBAIFogC,IAAA,GACJkiD,OAAA,CAAA13F,QAAA,4BAtFT0lB,IAAA","sourcesContent":["/*\n * index.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 // 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, 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 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 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, rowOffset: number, colOffset: number) {\n const insertCmd = insertRmdChunk(chunkPlaceholder, rowOffset, colOffset);\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, 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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\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\n let asciiOnlyBaseId = '';\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 }\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 editRawInline: RawFormatEditorFn;\n editRawBlock: RawFormatEditorFn;\n insertTable: InsertTableFn;\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 LinkEditorFn = (\n link: LinkProps,\n targets: LinkTargets,\n capabilities: LinkCapabilities,\n) => Promise;\n\nexport type ImageEditorFn = (\n image: ImageProps,\n dims: ImageDimensions | null,\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 RawFormatEditorFn = (raw: RawFormatProps, outputFormats: string[]) => Promise;\n\nexport type InsertTableFn = (capabilities: TableCapabilities) => Promise;\n\nexport type InsertCiteFn = (props: InsertCiteProps) => 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 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 alt?: 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}\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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) {\n return !!attrs.id || (attrs.classes && attrs.classes.length > 0) || (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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 // 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 type PandocOutputOption = 'writeSpaces';\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the\n * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.\n *\n */\n\nimport { EditorUI } from './ui';\nimport { PandocToken } from './pandoc';\n\nexport const kMathType = 0;\nexport const kMathContent = 1;\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","/*\n * code.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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, Slice } 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';\nimport { ExecuteRmdChunkFn } from './rmd';\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 const mdExtensions = isRmd ? findValue('md_extensions', yaml?.output) : undefined;\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 ];\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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) {\n try {\n const yamlParsed = yaml.safeLoad(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.safeDump(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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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';\n\nexport type EditorExtendedDocType = 'bookdown' | 'hugo';\n","/*\n * object.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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\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 ].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 // 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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}\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, rowOffset = 0, colOffset = 0) {\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 // compute offset\n const lines = chunkPlaceholder.split(/\\r?\\n/);\n const lineChars = lines.slice(0, rowOffset).reduce((count, line) => count + line.length + 1, 1);\n const offsetChars = lineChars + colOffset;\n\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 const selPos = tr.selection.from - rmdNode.nodeSize - 1 + offsetChars - 1;\n setTextSelection(selPos)(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 // 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 // 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 };\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 * mark.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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 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 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 const length = validLength(text);\n if (length > -1 && length !== text.length) {\n if (removeMark) {\n removeMark(markRange.from + length, markRange.to);\n } else {\n tr.removeMark(markRange.from + length, markRange.to, markType);\n }\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 return str1.localeCompare(str2, undefined, { sensitivity: 'accent' }) === 0;\n}\n","/*\n * list.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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}\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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\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\n // outline\n GoToNextSection = 'AE827BDA-96F8-4E84-8030-298D98386765',\n GoToPreviousSection = 'E6AA728C-2B75-4939-9123-0F082837ACDF',\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 predicate = (n: ProsemirrorNode) => pandocAttrAvailable(n.attrs);\n const node = findParentNode(predicate)(state.selection);\n if (node) {\n pandocAttr = pandocAttrFrom(node.node.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 = {}): CommandFn {\n return (state: EditorState, dispatch?: (tr: Transaction) => void) => {\n if (!canInsertNode(state, nodeType)) {\n return false;\n }\n\n if (dispatch) {\n dispatch(state.tr.replaceSelectionWith(nodeType.create(attrs)));\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","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 * ui.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { EditorRmdChunk } from './rmd';\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}\n\nexport interface EditorUIChunks {\n // create a code chunk editor\n createChunkEditor: (type: string, index: number, callbacks: EditorUIChunkCallbacks) => ChunkEditor;\n}\n\nexport interface ChunkEditor {\n editor: unknown;\n setMode(mode: string): void;\n executeSelection(): void;\n element: HTMLElement;\n destroy(): void;\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 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 * util.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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","/*\n * dom.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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, 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, xref: string, animate = true): Navigation | null {\n const xrefPos = xrefPosition(view.state.doc, xref);\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\n\nexport interface XRefServer {\n indexForFile: (file: string) => Promise;\n xrefForId: (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 function xrefKey(xref: XRef) {\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\nexport function xrefPosition(doc: ProsemirrorNode, xref: string): number {\n // -1 if not found\n let xrefPos = -1;\n\n // get type and id\n const xrefInfo = xrefTypeAndId(xref);\n if (xrefInfo) {\n const { type, id } = xrefInfo;\n const locator = xrefPositionLocators[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 xrefTypeAndId(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 xrefPositionLocators: { [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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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 {\n chars.push(ch);\n }\n }\n\n // return string\n return String.fromCharCode(...chars);\n}\n","/*\n * raw.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 const attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs;\n const tr = state.tr;\n if (match[1]) {\n const textStart = start + match[0].indexOf(match[1]);\n const textEnd = textStart + match[1].length;\n if (textEnd < end) {\n tr.delete(textEnd, end);\n }\n if (textStart > start) {\n tr.delete(start, textStart);\n }\n end = start + match[1].length;\n }\n const mark = markType.create(attrs);\n tr.addMark(start, end, 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 // don't break bookdown text references\n const textContent = paragraph.node.textContent;\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 titleFromYamlMetadataNode,\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\nfunction titleFromState(state: EditorState) {\n const yamlNodes = yamlMetadataNodes(state.doc);\n for (const yaml of yamlNodes) {\n const title = titleFromYamlMetadataNode(yaml.node);\n if (title) {\n return title;\n }\n }\n return '';\n}\n","/*\n * oultine.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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'], goToSectionCommand('next')),\n new ProsemirrorCommand(EditorCommandId.GoToPreviousSection, ['Mod-PageUp'], goToSectionCommand('previous')),\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 goToSectionCommand(dir: 'next' | 'previous') {\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 (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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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, '\\\\$&') : 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 tr.replaceSelectionWith(state.schema.text(text, selectionMarks), false);\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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, emptyNodePlaceholderPlugin } 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 // if this is a dismiss of an omni_insert mark then the command\n // isn't part of 'natural' typing into the document, so remove it\n } else if (isOmniInsertCommandActive(view.state.selection)) {\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: 5,\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 Headings = 'Headings',\n Chunks = 'Chunks',\n Lists = 'Lists',\n Math = 'Math',\n References = 'References',\n Content = 'Content',\n Blocks = 'Blocks',\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) {\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) {\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\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 // 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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 checkWord: (word: string) => boolean;\n suggestionList: (word: string) => string[];\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { EditorUISpelling, kCharClassWord } 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 operaitons 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 firs 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, true, range.from, 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 });\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 // 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 while (words.hasNext()) {\n const word = words.next()!;\n const wordText = state.doc.textBetween(word.start, word.end);\n const wordCheck = spellcheckerWord(wordText);\n if (!spelling.checkWord(wordCheck)) {\n const attrs: DecorationAttrs = {};\n const spec: { [key: string]: any } = {\n word: wordCheck,\n };\n if (excludeCursor && state.selection.head > word.start && state.selection.head <= word.end) {\n spec.cursor = true;\n } else {\n attrs.class = kSpellingErrorClass;\n }\n decorations.push(Decoration.inline(word.start, word.end, attrs, spec));\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 prevetn 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 // prevent default handling\n event.stopPropagation();\n event.preventDefault();\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 // get word\n const { from, to } = deco[0];\n const word = spellcheckerWord(view.state.doc.textBetween(from, to));\n\n // get suggetions\n const kMaxSuggetions = 5;\n const suggestions = ui.spelling.suggestionList(word);\n\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 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 if (ui.spelling.isWordIgnored(word)) {\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 {\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';\n\nexport type PandocLineWrapping = 'none' | 'column' | 'sentence';\n\nexport interface PandocToProsemirrorResult {\n doc: ProsemirrorNode;\n line_wrapping: PandocLineWrapping;\n unrecognized: string[];\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). we also\n // 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 ['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, 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, 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 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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 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 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\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 }\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 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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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} 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\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 }\n\n // we explicitly don't want fancy quotes in the editor\n textRun = fancyQuotesToSimple(textRun);\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 (mark.type.isInSet(next.marks)) {\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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';\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 { acePlugins } 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 ]);\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, 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 plugins.push(...acePlugins(codeViews, context));\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 text = fancyQuotesToSimple(text);\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { EditorUI } from '../api/ui';\nimport { OmniInsertGroup } from '../api/omni_insert';\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\nclass InsertParagraphCommand extends ProsemirrorCommand {\n constructor() {\n super(EditorCommandId.ParagraphInsert, [], insertParagraph);\n }\n}\n\nexport default extension;\n","/*\n * paragraph.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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","/*\n * heading.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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: 5,\n right: 10,\n },\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('Top level 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}\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('Smaller 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]): OmniInsert {\n return {\n name: headingName(ui, level),\n description,\n group: OmniInsertGroup.Headings,\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 && node.attrs.classes.length) {\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { kPlatformMac } from '../../api/platform';\nimport { OmniInsertGroup } from '../../api/omni_insert';\nimport { conditionalWrappingInputRule } from '../../api/input_rule';\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 } = 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 };\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 kPlatformMac ? ['Shift-Mod-8'] : [],\n schema.nodes.bullet_list,\n schema.nodes.list_item,\n bulletListOmniInsert(ui),\n ui.prefs,\n ),\n new ListCommand(\n EditorCommandId.OrderedList,\n kPlatformMac ? ['Shift-Mod-7'] : [],\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 };\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.Lists,\n priority: 5,\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.Lists,\n priority: 4,\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from 'prosemirror-model';\nimport { EditorState, Transaction } 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';\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\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 // 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 dispatch(tr);\n }\n}\n","/*\n * list-checked.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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 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 node.forEach(item => {\n if (options.tight && item.childCount > 1) {\n options.tight = false;\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 } = 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, imageAttr),\n }),\n },\n ],\n\n commands: (_schema: Schema) => {\n return [\n new ProsemirrorCommand(\n EditorCommandId.Image,\n ['Shift-Mod-i'],\n imageCommand(ui, imageAttr),\n imageOmniInsert(ui),\n ),\n ];\n },\n\n plugins: (schema: Schema) => {\n return [\n imageTextSelectionPlugin(),\n imageEventsPlugin(ui),\n ...imageNodeViewPlugins('image', ui, 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 alt: '',\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.alt = 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.alt);\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 alt = node.attrs.alt || node.textContent;\n if (alt) {\n attr.alt = alt;\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 alt: { 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 alt: 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, 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, imageAttributes);\n }\n\n return true;\n };\n}\n\nfunction imageOmniInsert(ui: EditorUI) {\n return {\n name: ui.context.translateText('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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from '../../api/pandoc_attr';\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 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 alt: nodeType === schema.nodes.figure ? node.textContent : node.attrs.alt,\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 // edit the image\n const result = await editorUI.dialogs.editImage(image, dims, imageAttributes);\n if (result) {\n // figures treat 'alt' as their content (the caption), but since captions support\n // inline formatting (and the dialog doesn't) we only want to update the\n // content if the alt/caption actually changed (as it will blow away formatting)\n if (type === ImageType.Figure && image.alt !== result.alt) {\n if (result.alt) {\n content = Fragment.from(view.state.schema.text(result.alt));\n } else {\n content = Fragment.empty;\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } = 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, imageAttr),\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, 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.alt ? Fragment.from(schema.text(attrs.alt)) : 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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, 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 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 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.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 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, this.view, this.editorUI);\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from '../../api/pandoc_attr';\nimport { EditorUIImages } from '../../api/ui-images';\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): 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 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 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 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 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 whitelist in 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 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 * widgets.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 ui.context.clipboardImage().then(image => {\n if (image) {\n handleImageUris(view, view.state.selection.from, event, [image], ui);\n }\n event.preventDefault();\n return true;\n });\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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),\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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\nfunction 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 markInputRule(/(?:\\[)([^\\]]+)(?:\\]\\()([^)]+)(?:\\))$/, schema.marks.link, filter, (match: string[]) => ({\n href: match[2],\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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';\n\nimport './cursor.css';\nimport { ResolvedPos } from 'prosemirror-model';\nimport { isList } from '../api/list';\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 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 } \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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { isSingleLineTex } from '../api/tex';\nimport { OmniInsert, OmniInsertGroup } from '../api/omni_insert';\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 {\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 } 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 should be read as inline tex\n } else if (format === kTexFormat && isSingleLineTex(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\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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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.meta + '}\\n' + parts.code + '```\\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 ];\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 rowOffset = 1,\n colOffset = 0,\n selectionOffset?: number,\n ) {\n super(id, keymap, insertRmdChunk(placeholder, rowOffset, colOffset), {\n name: `${lang} ${ui.context.translateText('Code Chunk')}`,\n description: `${ui.context.translateText('Executable')} ${lang} ${ui.context.translateText('chunk')}`,\n group: OmniInsertGroup.Chunks,\n priority,\n selectionOffset: selectionOffset || colOffset || placeholder.length,\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 );\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 );\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 0,\n 16,\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!, 0, 9);\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 0,\n 17,\n );\n }\n}\n\nexport default extension;\n","/*\n * rmd_chunk-image.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 >]*```+|[\\W\\w]*?\\n[\\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 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 * div.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from 'prosemirror-state';\nimport { EditorView } from 'prosemirror-view';\nimport { findParentNodeOfType, ContentNodeWithPos, findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';\nimport { wrapIn } from 'prosemirror-commands';\nimport { GapCursor } from 'prosemirror-gapcursor';\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} 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';\n\nimport './div-styles.css';\n\nconst DIV_ATTR = 0;\nconst DIV_CHILDREN = 1;\n\nconst extension = (context: ExtensionContext) : Extension | null => {\n const { pandocExtensions, 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 return [\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.Blocks,\n priority: 1,\n image: () => (ui.prefs.darkMode() ? ui.images.omni_insert?.div_dark! : ui.images.omni_insert?.div!),\n }),\n ];\n },\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 await editDiv(ui, state, dispatch, div!);\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 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 const tr = state.tr;\n if (result.action === 'edit') {\n tr.setNodeMarkup(div.pos, div.node.type, result.attr);\n dispatch(tr);\n } else if (result.action === 'remove') {\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 dispatch(tr);\n }\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\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 * line_block.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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('writeSpaces', 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } from 'prosemirror-state';\nimport { Transform } from 'prosemirror-transform';\nimport { tableEditing, columnResizing, goToNextCell, deleteColumn, deleteRow } from 'prosemirror-tables';\n\nimport { findChildrenByType } from 'prosemirror-utils';\n\nimport { EditorUI } from '../../api/ui';\nimport { Extension, ExtensionContext } from '../../api/extension';\nimport { PandocExtensions } from '../../api/pandoc';\nimport { BaseKey } from '../../api/basekeys';\nimport { ProsemirrorCommand, EditorCommandId, exitNode } from '../../api/command';\nimport { TableCapabilities } from '../../api/table';\nimport { trTransform } from '../../api/transaction';\nimport { PandocCapabilities } from '../../api/pandoc_capabilities';\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 ) {\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.TableInsertTable,\n ['Alt-Mod-t'],\n insertTable(capabilities, ui),\n insertTableOmniInsert(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: goToNextCell(1) },\n { key: BaseKey.ShiftTab, command: goToNextCell(-1) },\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\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 const colpercents = table.node.attrs.colpercents;\n if (colpercents) {\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 = [colpercents[c] * containerWidth];\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 } 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 doc types\n if (!format.docTypes.includes(kHugoDocType)) {\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { createImageButton } from '../../api/widgets/widgets';\nimport { EditorUI, ChunkEditor } from '../../api/ui';\nimport { EditorOptions } from '../../api/options';\nimport { EditorEvents } from '../../api/events';\nimport { kPlatformMac } from '../../api/platform';\nimport { rmdChunk, previousExecutableRmdChunks, mergeRmdChunks } from '../../api/rmd';\nimport { ExtensionContext } 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';\n\nconst plugin = new PluginKey('ace');\n\nexport function acePlugins(codeViews: { [key: string]: CodeViewOptions }, context: ExtensionContext): Plugin[] {\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 return [\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}\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 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 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 // 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 const top = ele.offsetTop + this.dom.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.node.attrs.md_index, {\n getPos: () => this.getPos(),\n scrollIntoView: ele => this.scrollIntoView(ele),\n scrollCursorIntoView: () => this.scrollCursorIntoView(),\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 });\n this.aceEditor.commands.addCommand({\n name: 'rightEscape',\n bindKey: 'Right',\n exec: () => {\n this.arrowMaybeEscape('char', 1, 'gotoright');\n },\n });\n this.aceEditor.commands.addCommand({\n name: 'upEscape',\n bindKey: 'Up',\n exec: () => {\n this.arrowMaybeEscape('line', -1, 'golineup');\n },\n });\n this.aceEditor.commands.addCommand({\n name: 'downEscape',\n bindKey: 'Down',\n exec: () => {\n this.arrowMaybeEscape('line', 1, 'golinedown');\n },\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 const pos = this.aceEditor.getCursorPosition();\n const lastrow = this.editSession.getLength() - 1;\n if (\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { EditorUI } from '../../api/ui';\nimport { pandocAttrEnabled } from '../../api/pandoc_attr';\n\nimport { AttrEditCommand } from './attr_edit-command';\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { PandocExtensions } from '../../api/pandoc';\nimport { AttrEditDecorationPlugin } from './attr_edit-decoration';\nimport { Extension } from '../../api/extension';\nimport { hasFencedCodeBlocks } from '../../api/pandoc_format';\n\nexport const kEditAttrShortcut = 'F4';\n\nexport function attrEditExtension(\n pandocExtensions: PandocExtensions,\n ui: EditorUI,\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, 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","/*\n * attr_edit-command.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { kEditAttrShortcut } from './attr_edit';\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { pandocAutoIdentifier, gfmAutoIdentifier } from '../../api/pandoc_id';\nimport { PandocExtensions } from '../../api/pandoc';\nimport { fragmentText } from '../../api/fragment';\n\nexport class AttrEditCommand extends ProsemirrorCommand {\n constructor(ui: EditorUI, pandocExtensions: PandocExtensions, editors: AttrEditOptions[]) {\n super(EditorCommandId.AttrEdit, [kEditAttrShortcut], attrEditCommandFn(ui, pandocExtensions, editors));\n }\n}\n\nexport function attrEditCommandFn(\n ui: EditorUI, \n pandocExtensions: PandocExtensions, \n editors: AttrEditOptions[]\n) {\n return (state: EditorState, dispatch?: (tr: Transaction) => void, view?: EditorView) => {\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(node!, 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(node!, 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 node: ProsemirrorNode,\n pos: number,\n state: EditorState,\n dispatch: (tr: Transaction) => void,\n ui: EditorUI,\n pandocExtensions: PandocExtensions,\n): Promise {\n const attrs = node.attrs;\n const result = await ui.dialogs.editAttr({ ...attrs }, idHint(node, pandocExtensions));\n if (result) {\n dispatch(\n state.tr.setNodeMarkup(pos, node.type, {\n ...attrs,\n ...result.attr,\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 * attr_edit-decoration.tsx\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 { DecorationSet, EditorView, Decoration } from 'prosemirror-view';\n\nimport * as React from 'react';\n\nimport { EditorUI } from '../../api/ui';\nimport { AttrEditOptions } from '../../api/attr_edit';\nimport { ImageButton } from '../../api/widgets/button';\nimport { CommandFn } from '../../api/command';\nimport { AttrProps } from '../../api/ui-dialogs';\nimport { WidgetProps, reactRenderForEditorView } from '../../api/widgets/react';\nimport { PandocExtensions } from '../../api/pandoc';\n\nimport { kEditAttrShortcut } from './attr_edit';\nimport { attrEditNodeCommandFn } from './attr_edit-command';\n\nimport './attr_edit-decoration.css';\n\ninterface AttrEditDecorationProps extends WidgetProps {\n tags: string[];\n attrs: AttrProps;\n editFn: CommandFn;\n view: EditorView;\n ui: EditorUI;\n}\n\nconst AttrEditDecoration: React.FC = props => {\n const buttonTitle = `${props.ui.context.translateText('Edit Attributes')} (${kEditAttrShortcut})`;\n\n const onClick = () => {\n props.editFn(props.view.state, props.view.dispatch, props.view);\n };\n\n return (\n
\n {props.tags.length\n ? props.tags.map(tag => {\n return (\n \n {tag}\n \n );\n })\n : null}\n {props.editFn(props.view.state) ? (\n \n ) : null}\n
\n );\n};\n\nconst key = new PluginKey('attr_edit_decoration');\n\nexport class AttrEditDecorationPlugin extends Plugin {\n constructor(ui: EditorUI, pandocExtensions: PandocExtensions, editors: AttrEditOptions[]) {\n super({\n key,\n state: {\n init: (_config: { [key: string]: any }) => {\n return DecorationSet.empty;\n },\n apply: (tr: Transaction, old: DecorationSet, _oldState: EditorState, newState: EditorState) => {\n // node types\n const schema = newState.schema;\n const nodeTypes = editors.map(ed => ed.type(schema));\n\n // decorations to return\n const decorations: Decoration[] = [];\n\n // start from current selection\n const $head = tr.selection.$head;\n\n for (let i=1; i<=$head.depth; i++) {\n\n const parentWithAttrs = { node: $head.node(i), pos: $head.before(i) };\n if (!nodeTypes.includes(parentWithAttrs.node.type)) {\n continue;\n }\n\n // get editor\n const editor = editors.find(ed => ed.type(schema) === parentWithAttrs.node.type)!;\n\n // screen for noDecorator\n if (editor.noDecorator) {\n continue;\n }\n\n // provide some editor defaults\n editor.tags =\n 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 return attrTags;\n });\n editor.offset = editor.offset || { top: 0, right: 0 };\n\n // get editFn\n const editFn = (editorUI: EditorUI) => attrEditNodeCommandFn(parentWithAttrs, editorUI, pandocExtensions, editors);\n\n // get attrs/tags\n const node = parentWithAttrs.node;\n const attrs = node.attrs;\n const tags = editor.tags(node);\n\n // attr_edit controls\n const attrEditDecoration = Decoration.widget(\n parentWithAttrs.pos,\n (view: EditorView, getPos: () => number) => {\n // does the offsetParent have any right padding we need to offset for?\n // we normally use right: 5px for positioning but that is relative to\n // the edge of the offsetParent. However, some offset parents (e.g. a\n // td or a nested div) have their own internal padding to account for\n // so we look for it here\n let rightPaddingOffset = 0;\n const attrsNode = view.nodeDOM(getPos());\n if (attrsNode) {\n const attrsEl = attrsNode as HTMLElement;\n if (attrsEl.offsetParent) {\n const offsetParentStyle = window.getComputedStyle(attrsEl.offsetParent);\n rightPaddingOffset = -parseInt(offsetParentStyle.paddingRight!, 10) || 0;\n }\n }\n\n // cacculate position offsets\n const baseOffset = editor.offset || { top: 0, right: 0 };\n const xOffset = baseOffset.right + rightPaddingOffset;\n const yOffset = baseOffset.top + 6;\n const cssProps: React.CSSProperties = {\n transform: `translate(${xOffset}px,-${yOffset}px)`,\n };\n\n // create attr edit react component\n const attrEdit = (\n \n );\n\n // create decorator and render attr editor into it\n const decoration = window.document.createElement('div');\n reactRenderForEditorView(attrEdit, decoration, view);\n\n return decoration;\n },\n {\n // re-use existing instance for same tags\n key: `tags:${tags.join('/')}`,\n ignoreSelection: true,\n stopEvent: () => {\n return true;\n },\n },\n );\n\n decorations.push(attrEditDecoration);\n }\n\n \n // return decorations\n return DecorationSet.create(tr.doc, decorations);\n },\n },\n props: {\n decorations: (state: EditorState) => {\n return key.getState(state);\n },\n },\n });\n }\n}\n","/*\n * editor-theme.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR 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 .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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\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 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 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 },\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 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 widgets: {\n tag_delete: tagDelete,\n tag_edit: tagEdit,\n },\n };\n}\n","/*\n * editor-menus.ts\n *\n * Copyright (C) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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';\nimport { Editor } from './editor';\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.Citation },\n { command: EditorCommandId.CrossReference },\n { command: EditorCommandId.Footnote },\n { separator: true },\n { command: EditorCommandId.Image },\n { command: EditorCommandId.Link },\n { command: EditorCommandId.HorizontalRule },\n ...(haveAnyOf(commands, EditorCommandId.DefinitionList)\n ? [\n { separator: true },\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 { separator: true },\n { command: EditorCommandId.InlineMath },\n { command: EditorCommandId.DisplayMath },\n { separator: true },\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.CodeBlockFormat },\n { command: EditorCommandId.InsertDiv },\n { command: EditorCommandId.YamlMetadata },\n { separator: true },\n { command: EditorCommandId.Shortcode },\n { separator: true },\n { command: EditorCommandId.HTMLComment },\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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 ? [{ command: EditorCommandId.TableInsertTable }] : []),\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) 2021 by RStudio, PBC\n *\n * Unless you have received this program directly from RStudio pursuant\n * to the terms of a commercial license agreement with RStudio, then\n * this program is licensed to you under the terms of version 3 of the\n * GNU Affero General Public License. This program is distributed WITHOUT\n * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,\n * MERCHANTABILITY OR FITNESS FOR A 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"]} \ No newline at end of file overalldiffered=1 (not bit-by-bit identical) overall=1