@nextcloud/vue 8.37.0 → 8.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/Components/NcActionButton.cjs +1 -1
- package/dist/Components/NcActionButton.mjs +1 -1
- package/dist/Components/NcActionButtonGroup.cjs +1 -1
- package/dist/Components/NcActionButtonGroup.mjs +1 -1
- package/dist/Components/NcActionInput.cjs +1 -1
- package/dist/Components/NcActionInput.mjs +1 -1
- package/dist/Components/NcActionLink.cjs +2 -2
- package/dist/Components/NcActionLink.cjs.map +1 -1
- package/dist/Components/NcActionLink.mjs +2 -2
- package/dist/Components/NcActionLink.mjs.map +1 -1
- package/dist/Components/NcActionTextEditable.cjs +1 -1
- package/dist/Components/NcActionTextEditable.mjs +1 -1
- package/dist/Components/NcActions.cjs +1 -1
- package/dist/Components/NcActions.mjs +1 -1
- package/dist/Components/NcAppContent.cjs +1 -1
- package/dist/Components/NcAppContent.mjs +1 -1
- package/dist/Components/NcAppNavigation.cjs +1 -1
- package/dist/Components/NcAppNavigation.mjs +1 -1
- package/dist/Components/NcAppNavigationCaption.cjs +1 -1
- package/dist/Components/NcAppNavigationCaption.mjs +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +1 -1
- package/dist/Components/NcAppNavigationNew.cjs +1 -1
- package/dist/Components/NcAppNavigationNew.mjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
- package/dist/Components/NcAppNavigationSearch.cjs +1 -1
- package/dist/Components/NcAppNavigationSearch.mjs +1 -1
- package/dist/Components/NcAppNavigationSettings.cjs +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +1 -1
- package/dist/Components/NcAppNavigationToggle.cjs +1 -1
- package/dist/Components/NcAppNavigationToggle.mjs +1 -1
- package/dist/Components/NcAppSettingsDialog.cjs +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +1 -1
- package/dist/Components/NcAppSidebar.cjs +1 -1
- package/dist/Components/NcAppSidebar.mjs +1 -1
- package/dist/Components/NcAssistantButton.cjs +1 -1
- package/dist/Components/NcAssistantButton.mjs +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +1 -1
- package/dist/Components/NcBreadcrumb.mjs +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +1 -1
- package/dist/Components/NcButton.cjs +1 -1
- package/dist/Components/NcButton.mjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
- package/dist/Components/NcChip.cjs +2 -2
- package/dist/Components/NcChip.mjs +2 -2
- package/dist/Components/NcCollectionList.cjs +1 -1
- package/dist/Components/NcCollectionList.mjs +1 -1
- package/dist/Components/NcColorPicker.cjs +1 -1
- package/dist/Components/NcColorPicker.mjs +1 -1
- package/dist/Components/NcContent.cjs +1 -1
- package/dist/Components/NcContent.mjs +1 -1
- package/dist/Components/NcDashboardWidget.cjs +1 -1
- package/dist/Components/NcDashboardWidget.mjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
- package/dist/Components/NcDateTimePicker.cjs +3 -3
- package/dist/Components/NcDateTimePicker.mjs +3 -3
- package/dist/Components/NcDateTimePickerNative.cjs +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +1 -1
- package/dist/Components/NcDialog.cjs +1 -1
- package/dist/Components/NcDialog.mjs +1 -1
- package/dist/Components/NcDialogButton.cjs +1 -1
- package/dist/Components/NcDialogButton.mjs +1 -1
- package/dist/Components/NcEmojiPicker.cjs +1 -1
- package/dist/Components/NcEmojiPicker.mjs +1 -1
- package/dist/Components/NcFilePicker.cjs +1 -1
- package/dist/Components/NcFilePicker.mjs +1 -1
- package/dist/Components/NcHeaderButton.cjs +1 -1
- package/dist/Components/NcHeaderButton.mjs +1 -1
- package/dist/Components/NcHeaderMenu.cjs +1 -1
- package/dist/Components/NcHeaderMenu.mjs +1 -1
- package/dist/Components/NcInputField.cjs +1 -1
- package/dist/Components/NcInputField.mjs +1 -1
- package/dist/Components/NcListItem.cjs +1 -1
- package/dist/Components/NcListItem.mjs +1 -1
- package/dist/Components/NcListItemIcon.cjs +1 -1
- package/dist/Components/NcListItemIcon.mjs +1 -1
- package/dist/Components/NcModal.cjs +3 -3
- package/dist/Components/NcModal.mjs +3 -3
- package/dist/Components/NcPasswordField.cjs +1 -1
- package/dist/Components/NcPasswordField.mjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
- package/dist/Components/NcRichContenteditable.cjs +2 -2
- package/dist/Components/NcRichContenteditable.mjs +2 -2
- package/dist/Components/NcRichText.cjs +2 -2
- package/dist/Components/NcRichText.mjs +3 -3
- package/dist/Components/NcSelect.cjs +1 -1
- package/dist/Components/NcSelect.mjs +1 -1
- package/dist/Components/NcSelectTags.cjs +1 -1
- package/dist/Components/NcSelectTags.mjs +1 -1
- package/dist/Components/NcSelectUsers.cjs +1 -1
- package/dist/Components/NcSelectUsers.mjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
- package/dist/Components/NcTextField.cjs +1 -1
- package/dist/Components/NcTextField.mjs +1 -1
- package/dist/Components/NcTimezonePicker.cjs +1 -1
- package/dist/Components/NcTimezonePicker.mjs +1 -1
- package/dist/Components/NcUserBubble.cjs +1 -1
- package/dist/Components/NcUserBubble.mjs +1 -1
- package/dist/Functions/emoji.cjs +1 -1
- package/dist/Functions/emoji.mjs +1 -1
- package/dist/Functions/reference.cjs +1 -1
- package/dist/Functions/reference.mjs +1 -1
- package/dist/Mixins/richEditor.cjs +1 -1
- package/dist/Mixins/richEditor.mjs +1 -1
- package/dist/assets/{NcActionButton-CG4V9b5b.css → NcActionButton-CjKx3679.css} +18 -18
- package/dist/assets/{NcActionButtonGroup-CRXLyFpx.css → NcActionButtonGroup-DqR0weTf.css} +8 -8
- package/dist/assets/{NcActionInput-B-c5cOfM.css → NcActionInput-CPu4Btyq.css} +65 -65
- package/dist/assets/{NcActionLink-BtpJIbvI.css → NcActionLink-Bt-73iBm.css} +13 -13
- package/dist/assets/{NcActionTextEditable-BCmDMuUg.css → NcActionTextEditable-AuLw5QVP.css} +65 -65
- package/dist/assets/{NcActions-CVw1SmBu.css → NcActions-CuFJSslC.css} +11 -11
- package/dist/assets/{NcAppNavigation-Dbpqdigp.css → NcAppNavigation-mcR7I0Bd.css} +12 -12
- package/dist/assets/{NcAppSettingsDialog-N2RJYgHo.css → NcAppSettingsDialog-x8dImUGK.css} +11 -11
- package/dist/assets/{NcBreadcrumbs-DahxPGJY.css → NcBreadcrumbs-Dt1zdHzR.css} +6 -6
- package/dist/assets/{NcButton-8Y8d_1Z_.css → NcButton-C5JW43jM.css} +46 -46
- package/dist/assets/{NcCheckboxRadioSwitch-BACLOhMO.css → NcCheckboxRadioSwitch-BojbloxL.css} +38 -38
- package/dist/assets/{NcDateTimePicker-BzP7Sn12.css → NcDateTimePicker-DrfMaKM7.css} +8 -8
- package/dist/assets/{NcPasswordField-CiN_phAQ.css → NcPasswordField-vrT0oftw.css} +2 -2
- package/dist/assets/{NcRelatedResourcesPanel-BgMc8bue.css → NcRelatedResourcesPanel-CTpqdDL9.css} +3 -3
- package/dist/assets/{NcRichContenteditable-3tL9zHn2.css → NcRichContenteditable-DwS6PNCv.css} +11 -11
- package/dist/assets/{NcRichText-CAhzDSty.css → NcRichText-Cp_5tfBy.css} +91 -98
- package/dist/assets/autolink-KPdaBewQ.css +25 -0
- package/dist/chunks/{NcActionButton-C5Dqge0c.cjs → NcActionButton-CiYel4_C.cjs} +3 -3
- package/dist/chunks/NcActionButton-CiYel4_C.cjs.map +1 -0
- package/dist/chunks/{NcActionButton-1gSJfFUC.mjs → NcActionButton-K4jUGMlW.mjs} +3 -3
- package/dist/chunks/NcActionButton-K4jUGMlW.mjs.map +1 -0
- package/dist/chunks/{NcActionButtonGroup-eZxqibUd.mjs → NcActionButtonGroup-B95wg_Q6.mjs} +3 -3
- package/dist/chunks/NcActionButtonGroup-B95wg_Q6.mjs.map +1 -0
- package/dist/chunks/{NcActionButtonGroup-CpZDTAQo.cjs → NcActionButtonGroup-CFGCmzTM.cjs} +3 -3
- package/dist/chunks/NcActionButtonGroup-CFGCmzTM.cjs.map +1 -0
- package/dist/chunks/{NcActionInput-UPwE2Dky.mjs → NcActionInput-B_9GOTi6.mjs} +5 -5
- package/dist/chunks/NcActionInput-B_9GOTi6.mjs.map +1 -0
- package/dist/chunks/{NcActionInput-eAmBylEO.cjs → NcActionInput-D3w0eGfB.cjs} +5 -5
- package/dist/chunks/NcActionInput-D3w0eGfB.cjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-RFLtWxrl.cjs → NcActionTextEditable-BqJ5wONY.cjs} +3 -3
- package/dist/chunks/NcActionTextEditable-BqJ5wONY.cjs.map +1 -0
- package/dist/chunks/{NcActionTextEditable-CIsAP-pp.mjs → NcActionTextEditable-YqvZGY07.mjs} +3 -3
- package/dist/chunks/NcActionTextEditable-YqvZGY07.mjs.map +1 -0
- package/dist/chunks/{NcActions-BSDvtMJD.cjs → NcActions-0fAYsGbh.cjs} +4 -4
- package/dist/chunks/NcActions-0fAYsGbh.cjs.map +1 -0
- package/dist/chunks/{NcActions-BcLis_nr.mjs → NcActions-Ca_2vj8f.mjs} +4 -4
- package/dist/chunks/NcActions-Ca_2vj8f.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-DLGtJosF.cjs → NcAppContent-B95Sj4-X.cjs} +2 -2
- package/dist/chunks/{NcAppContent-DLGtJosF.cjs.map → NcAppContent-B95Sj4-X.cjs.map} +1 -1
- package/dist/chunks/{NcAppContent-CeVqX0gV.mjs → NcAppContent-HZ-Lp090.mjs} +2 -2
- package/dist/chunks/{NcAppContent-CeVqX0gV.mjs.map → NcAppContent-HZ-Lp090.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-D2Ds_2Dm.cjs → NcAppNavigation-BDxzq-ai.cjs} +17 -7
- package/dist/chunks/NcAppNavigation-BDxzq-ai.cjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-BfzJA6cb.mjs → NcAppNavigation-BPqJExo6.mjs} +17 -7
- package/dist/chunks/NcAppNavigation-BPqJExo6.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs → NcAppNavigationCaption-Bt51pgle.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs.map → NcAppNavigationCaption-Bt51pgle.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs → NcAppNavigationCaption-CQZ7ZrEO.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs.map → NcAppNavigationCaption-CQZ7ZrEO.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-Dc5Vdhb1.cjs → NcAppNavigationItem-BBZ1SsqQ.cjs} +5 -5
- package/dist/chunks/{NcAppNavigationItem-Dc5Vdhb1.cjs.map → NcAppNavigationItem-BBZ1SsqQ.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-D30ztZfZ.mjs → NcAppNavigationItem-DcKt7SjF.mjs} +5 -5
- package/dist/chunks/{NcAppNavigationItem-D30ztZfZ.mjs.map → NcAppNavigationItem-DcKt7SjF.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs → NcAppNavigationNew-B5ikLvxM.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs.map → NcAppNavigationNew-B5ikLvxM.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs → NcAppNavigationNew-DljLy9CQ.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs.map → NcAppNavigationNew-DljLy9CQ.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs → NcAppNavigationNewItem-BqhwbJsJ.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs.map → NcAppNavigationNewItem-BqhwbJsJ.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs → NcAppNavigationNewItem-C6gqVpBt.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs.map → NcAppNavigationNewItem-C6gqVpBt.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs → NcAppNavigationSearch-B6u1Ln1_.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs.map → NcAppNavigationSearch-B6u1Ln1_.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs → NcAppNavigationSearch-CliHANzA.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs.map → NcAppNavigationSearch-CliHANzA.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs → NcAppNavigationSettings-BfysBg80.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs.map → NcAppNavigationSettings-BfysBg80.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs → NcAppNavigationSettings-ClcR05vZ.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs.map → NcAppNavigationSettings-ClcR05vZ.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs → NcAppNavigationToggle-CLPYPwyi.cjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs.map → NcAppNavigationToggle-CLPYPwyi.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs → NcAppNavigationToggle-DtJjJGQ5.mjs} +2 -2
- package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs.map → NcAppNavigationToggle-DtJjJGQ5.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-Ckf6dRRJ.cjs → NcAppSettingsDialog-C2-LWcDG.cjs} +4 -4
- package/dist/chunks/{NcAppSettingsDialog-vBeCGFqk.mjs.map → NcAppSettingsDialog-C2-LWcDG.cjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-vBeCGFqk.mjs → NcAppSettingsDialog-D0M18YFD.mjs} +4 -4
- package/dist/chunks/{NcAppSettingsDialog-Ckf6dRRJ.cjs.map → NcAppSettingsDialog-D0M18YFD.mjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-CPHVBBe0.cjs → NcAppSidebar-BYHXZjYR.cjs} +4 -4
- package/dist/chunks/{NcAppSidebar-CPHVBBe0.cjs.map → NcAppSidebar-BYHXZjYR.cjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-Cx0PlofZ.mjs → NcAppSidebar-Bljse39J.mjs} +4 -4
- package/dist/chunks/{NcAppSidebar-Cx0PlofZ.mjs.map → NcAppSidebar-Bljse39J.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs → NcAssistantButton-BdUkhzq1.mjs} +2 -2
- package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs.map → NcAssistantButton-BdUkhzq1.mjs.map} +1 -1
- package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs → NcAssistantButton-mPenTfuv.cjs} +2 -2
- package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs.map → NcAssistantButton-mPenTfuv.cjs.map} +1 -1
- package/dist/chunks/{NcAvatar-DC2fiCH-.mjs → NcAvatar-CGnqUtoy.mjs} +6 -6
- package/dist/chunks/{NcAvatar-DC2fiCH-.mjs.map → NcAvatar-CGnqUtoy.mjs.map} +1 -1
- package/dist/chunks/{NcAvatar-ffZLZnH_.cjs → NcAvatar-DP8TpFfy.cjs} +6 -6
- package/dist/chunks/{NcAvatar-ffZLZnH_.cjs.map → NcAvatar-DP8TpFfy.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs → NcBreadcrumb-DH2FV6QI.mjs} +3 -3
- package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs.map → NcBreadcrumb-DH2FV6QI.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs → NcBreadcrumb-hK0W8qx4.cjs} +3 -3
- package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs.map → NcBreadcrumb-hK0W8qx4.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs → NcBreadcrumbs-DrYYSHAS.mjs} +7 -7
- package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs.map → NcBreadcrumbs-DrYYSHAS.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs → NcBreadcrumbs-pDN1N49I.cjs} +7 -7
- package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs.map → NcBreadcrumbs-pDN1N49I.cjs.map} +1 -1
- package/dist/chunks/{NcButton-BaZAY-tN.mjs → NcButton-BgppWSl9.mjs} +12 -4
- package/dist/chunks/NcButton-BgppWSl9.mjs.map +1 -0
- package/dist/chunks/{NcButton-Dszi1Apb.cjs → NcButton-DaWD-X8V.cjs} +12 -4
- package/dist/chunks/NcButton-DaWD-X8V.cjs.map +1 -0
- package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs → NcCheckboxRadioSwitch-BQeglWXd.cjs} +8 -17
- package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs.map → NcCheckboxRadioSwitch-BQeglWXd.cjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs → NcCheckboxRadioSwitch-D4IV4zWy.mjs} +8 -17
- package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs.map → NcCheckboxRadioSwitch-D4IV4zWy.mjs.map} +1 -1
- package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs → NcCollectionList-BbmBJ4ET.mjs} +6 -6
- package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs.map → NcCollectionList-BbmBJ4ET.mjs.map} +1 -1
- package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs → NcCollectionList-DgLrYZ6o.cjs} +6 -6
- package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs.map → NcCollectionList-DgLrYZ6o.cjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-BfApfazi.mjs → NcColorPicker-Bzzw1uKu.mjs} +2 -2
- package/dist/chunks/{NcColorPicker-BfApfazi.mjs.map → NcColorPicker-Bzzw1uKu.mjs.map} +1 -1
- package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs → NcColorPicker-DNpKf7gx.cjs} +2 -2
- package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs.map → NcColorPicker-DNpKf7gx.cjs.map} +1 -1
- package/dist/chunks/{NcContent-MiRvygrj.cjs → NcContent-CMjQ3dfw.cjs} +2 -2
- package/dist/chunks/{NcContent-MiRvygrj.cjs.map → NcContent-CMjQ3dfw.cjs.map} +1 -1
- package/dist/chunks/{NcContent-DFOsZ6pm.mjs → NcContent-DpGM2KRx.mjs} +2 -2
- package/dist/chunks/{NcContent-DFOsZ6pm.mjs.map → NcContent-DpGM2KRx.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs → NcDashboardWidget-DuoTxAyf.cjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs.map → NcDashboardWidget-DuoTxAyf.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs → NcDashboardWidget-NOuL4APU.mjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs.map → NcDashboardWidget-NOuL4APU.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs → NcDashboardWidgetItem-BFsKgWo2.cjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs.map → NcDashboardWidgetItem-BFsKgWo2.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs → NcDashboardWidgetItem-CBW263ij.mjs} +4 -4
- package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs.map → NcDashboardWidgetItem-CBW263ij.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-CDFWleNp.mjs → NcDialog-BCCBuI6f.mjs} +2 -2
- package/dist/chunks/{NcDialog-CDFWleNp.mjs.map → NcDialog-BCCBuI6f.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-gV238gzy.cjs → NcDialog-x3G0Nuve.cjs} +2 -2
- package/dist/chunks/{NcDialog-gV238gzy.cjs.map → NcDialog-x3G0Nuve.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs → NcDialogButton-DBtmgcol.cjs} +2 -2
- package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs.map → NcDialogButton-DBtmgcol.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-tB5RGMME.mjs → NcDialogButton-DpA4mqr-.mjs} +2 -2
- package/dist/chunks/{NcDialogButton-tB5RGMME.mjs.map → NcDialogButton-DpA4mqr-.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs → NcEmojiPicker-C4jCrwQY.mjs} +5 -5
- package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs.map → NcEmojiPicker-C4jCrwQY.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs → NcEmojiPicker-DefnK492.cjs} +5 -5
- package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs.map → NcEmojiPicker-DefnK492.cjs.map} +1 -1
- package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs → NcFilePicker-BYWr-vcP.cjs} +3 -3
- package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs.map → NcFilePicker-BYWr-vcP.cjs.map} +1 -1
- package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs → NcFilePicker-DCPi6JGg.mjs} +3 -3
- package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs.map → NcFilePicker-DCPi6JGg.mjs.map} +1 -1
- package/dist/chunks/NcFormBox-DRGVpFeZ.cjs.map +1 -1
- package/dist/chunks/NcFormBox-DtoCXLMx.mjs.map +1 -1
- package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs → NcHeaderButton-DXdY8gct.mjs} +2 -2
- package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs.map → NcHeaderButton-DXdY8gct.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs → NcHeaderButton-iEtQ74pa.cjs} +2 -2
- package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs.map → NcHeaderButton-iEtQ74pa.cjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs → NcHeaderMenu-BZnnbLTo.mjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs.map → NcHeaderMenu-BZnnbLTo.mjs.map} +1 -1
- package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs → NcHeaderMenu-efsSG80P.cjs} +2 -2
- package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs.map → NcHeaderMenu-efsSG80P.cjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-Ckda9G9Z.cjs → NcInputConfirmCancel-CTvNhtqM.cjs} +2 -2
- package/dist/chunks/{NcInputConfirmCancel-Ckda9G9Z.cjs.map → NcInputConfirmCancel-CTvNhtqM.cjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-BvYpvopv.mjs → NcInputConfirmCancel-LAJSyhOn.mjs} +2 -2
- package/dist/chunks/{NcInputConfirmCancel-BvYpvopv.mjs.map → NcInputConfirmCancel-LAJSyhOn.mjs.map} +1 -1
- package/dist/chunks/{NcInputField-DDgBZ427.cjs → NcInputField-DX2Jz57P.cjs} +2 -2
- package/dist/chunks/{NcInputField-DDgBZ427.cjs.map → NcInputField-DX2Jz57P.cjs.map} +1 -1
- package/dist/chunks/{NcInputField-Cfm1bJR4.mjs → NcInputField-j5EyU7QH.mjs} +2 -2
- package/dist/chunks/{NcInputField-Cfm1bJR4.mjs.map → NcInputField-j5EyU7QH.mjs.map} +1 -1
- package/dist/chunks/{NcListItem-BLbG7272.cjs → NcListItem-C14yh4-n.cjs} +2 -2
- package/dist/chunks/{NcListItem-BLbG7272.cjs.map → NcListItem-C14yh4-n.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-RKTfRg06.mjs → NcListItem-D0JDzXkL.mjs} +2 -2
- package/dist/chunks/{NcListItem-RKTfRg06.mjs.map → NcListItem-D0JDzXkL.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs → NcListItemIcon-BccR3hro.cjs} +2 -2
- package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs.map → NcListItemIcon-BccR3hro.cjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-D49wESTI.mjs → NcListItemIcon-D35XZDGI.mjs} +2 -2
- package/dist/chunks/{NcListItemIcon-D49wESTI.mjs.map → NcListItemIcon-D35XZDGI.mjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-DNuolayr.cjs → NcPasswordField-BkY96Kt0.cjs} +7 -8
- package/dist/chunks/NcPasswordField-BkY96Kt0.cjs.map +1 -0
- package/dist/chunks/{NcPasswordField-lE4m20vf.mjs → NcPasswordField-HQK5d_nv.mjs} +7 -8
- package/dist/chunks/NcPasswordField-HQK5d_nv.mjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs → NcRelatedResourcesPanel-BdmY-Mly.mjs} +7 -7
- package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs.map → NcRelatedResourcesPanel-BdmY-Mly.mjs.map} +1 -1
- package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs → NcRelatedResourcesPanel-BmpOFhV1.cjs} +7 -7
- package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs.map → NcRelatedResourcesPanel-BmpOFhV1.cjs.map} +1 -1
- package/dist/chunks/{NcRichContenteditable-SA1zbfkk.mjs → NcRichContenteditable-BcTSkyeW.mjs} +19 -17
- package/dist/chunks/NcRichContenteditable-BcTSkyeW.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-Bh-mMIQz.cjs → NcRichContenteditable-QnLNsBkB.cjs} +19 -17
- package/dist/chunks/NcRichContenteditable-QnLNsBkB.cjs.map +1 -0
- package/dist/chunks/{NcRichText-B1Fyj7k8.cjs → NcRichText-CiRdCF_B.cjs} +230 -305
- package/dist/chunks/NcRichText-CiRdCF_B.cjs.map +1 -0
- package/dist/chunks/{NcRichText-rNfwY_Oc.mjs → NcRichText-DZgAb6-3.mjs} +229 -303
- package/dist/chunks/NcRichText-DZgAb6-3.mjs.map +1 -0
- package/dist/chunks/{NcSelect-1P3nA044.cjs → NcSelect-DVXAVRT_.cjs} +2 -2
- package/dist/chunks/{NcSelect-1P3nA044.cjs.map → NcSelect-DVXAVRT_.cjs.map} +1 -1
- package/dist/chunks/{NcSelect-CbWXsDdZ.mjs → NcSelect-FwcxH76q.mjs} +2 -2
- package/dist/chunks/{NcSelect-CbWXsDdZ.mjs.map → NcSelect-FwcxH76q.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs → NcSelectTags-BNFcTbHy.cjs} +2 -2
- package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs.map → NcSelectTags-BNFcTbHy.cjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs → NcSelectTags-yZfa_z_z.mjs} +2 -2
- package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs.map → NcSelectTags-yZfa_z_z.mjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs → NcSelectUsers-5r-vvEVy.mjs} +3 -3
- package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs.map → NcSelectUsers-5r-vvEVy.mjs.map} +1 -1
- package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs → NcSelectUsers-fp6nf6ic.cjs} +3 -3
- package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs.map → NcSelectUsers-fp6nf6ic.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs → NcSettingsSelectGroup-CUM0vkbN.mjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs.map → NcSettingsSelectGroup-CUM0vkbN.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs → NcSettingsSelectGroup-D5EWVZ7k.cjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs.map → NcSettingsSelectGroup-D5EWVZ7k.cjs.map} +1 -1
- package/dist/chunks/{NcTextField-CkW-dl88.cjs → NcTextField-B2tcddKo.cjs} +2 -2
- package/dist/chunks/{NcTextField-CkW-dl88.cjs.map → NcTextField-B2tcddKo.cjs.map} +1 -1
- package/dist/chunks/{NcTextField-DZHP0Dfw.mjs → NcTextField-ByDOTNvC.mjs} +2 -2
- package/dist/chunks/{NcTextField-DZHP0Dfw.mjs.map → NcTextField-ByDOTNvC.mjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs → NcTimezonePicker-CeQXCjIR.cjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs.map → NcTimezonePicker-CeQXCjIR.cjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs → NcTimezonePicker-Cok_NaVd.mjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs.map → NcTimezonePicker-Cok_NaVd.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs → NcUserBubble-CIcwErdM.cjs} +2 -2
- package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs.map → NcUserBubble-CIcwErdM.cjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs → NcUserBubble-Csw7PXyG.mjs} +2 -2
- package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs.map → NcUserBubble-Csw7PXyG.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs → ScopeComponent-B6luC3XR.mjs} +2 -2
- package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs.map → ScopeComponent-B6luC3XR.mjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs → ScopeComponent-Co-1SOFK.cjs} +2 -2
- package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs.map → ScopeComponent-Co-1SOFK.cjs.map} +1 -1
- package/dist/chunks/{autolink-D2pIbi92.mjs → autolink-CeB9uxD9.mjs} +56 -21
- package/dist/chunks/autolink-CeB9uxD9.mjs.map +1 -0
- package/dist/chunks/{autolink-BPlRHRHR.cjs → autolink-VQMuzjxl.cjs} +57 -22
- package/dist/chunks/autolink-VQMuzjxl.cjs.map +1 -0
- package/dist/chunks/{emoji-BgZdRy3v.mjs → emoji-Dtn2mDf7.mjs} +2 -2
- package/dist/chunks/emoji-Dtn2mDf7.mjs.map +1 -0
- package/dist/chunks/{emoji-CEwczMT5.cjs → emoji-aWWWqkrJ.cjs} +2 -2
- package/dist/chunks/emoji-aWWWqkrJ.cjs.map +1 -0
- package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs → getAvatarUrl-4HsuXa3l.cjs} +2 -2
- package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs.map → getAvatarUrl-4HsuXa3l.cjs.map} +1 -1
- package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs → getAvatarUrl-BGOeDmNO.mjs} +2 -2
- package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs.map → getAvatarUrl-BGOeDmNO.mjs.map} +1 -1
- package/dist/chunks/{index-TmAR7I2T.mjs → index-BCqXu_og.mjs} +2 -2
- package/dist/chunks/{index-TmAR7I2T.mjs.map → index-BCqXu_og.mjs.map} +1 -1
- package/dist/chunks/{index-CgkN1xho.cjs → index-phHwkniW.cjs} +2 -2
- package/dist/chunks/{index-CgkN1xho.cjs.map → index-phHwkniW.cjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-hGj81_Th.cjs → referencePickerModal-BOCqzVJk.cjs} +6 -6
- package/dist/chunks/{referencePickerModal-hGj81_Th.cjs.map → referencePickerModal-BOCqzVJk.cjs.map} +1 -1
- package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs → referencePickerModal-BQExd0w6.mjs} +6 -6
- package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs.map → referencePickerModal-BQExd0w6.mjs.map} +1 -1
- package/dist/index.cjs +50 -50
- package/dist/index.mjs +52 -52
- package/dist/vendor.LICENSE.txt +2 -6
- package/package.json +14 -14
- package/dist/chunks/NcActionButton-1gSJfFUC.mjs.map +0 -1
- package/dist/chunks/NcActionButton-C5Dqge0c.cjs.map +0 -1
- package/dist/chunks/NcActionButtonGroup-CpZDTAQo.cjs.map +0 -1
- package/dist/chunks/NcActionButtonGroup-eZxqibUd.mjs.map +0 -1
- package/dist/chunks/NcActionInput-UPwE2Dky.mjs.map +0 -1
- package/dist/chunks/NcActionInput-eAmBylEO.cjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-CIsAP-pp.mjs.map +0 -1
- package/dist/chunks/NcActionTextEditable-RFLtWxrl.cjs.map +0 -1
- package/dist/chunks/NcActions-BSDvtMJD.cjs.map +0 -1
- package/dist/chunks/NcActions-BcLis_nr.mjs.map +0 -1
- package/dist/chunks/NcAppNavigation-BfzJA6cb.mjs.map +0 -1
- package/dist/chunks/NcAppNavigation-D2Ds_2Dm.cjs.map +0 -1
- package/dist/chunks/NcButton-BaZAY-tN.mjs.map +0 -1
- package/dist/chunks/NcButton-Dszi1Apb.cjs.map +0 -1
- package/dist/chunks/NcPasswordField-DNuolayr.cjs.map +0 -1
- package/dist/chunks/NcPasswordField-lE4m20vf.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-Bh-mMIQz.cjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-SA1zbfkk.mjs.map +0 -1
- package/dist/chunks/NcRichText-B1Fyj7k8.cjs.map +0 -1
- package/dist/chunks/NcRichText-rNfwY_Oc.mjs.map +0 -1
- package/dist/chunks/autolink-BPlRHRHR.cjs.map +0 -1
- package/dist/chunks/autolink-D2pIbi92.mjs.map +0 -1
- package/dist/chunks/emoji-BgZdRy3v.mjs.map +0 -1
- package/dist/chunks/emoji-CEwczMT5.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('../assets/NcRichText-
|
|
1
|
+
require('../assets/NcRichText-Cp_5tfBy.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -22,38 +22,37 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
23
|
mod
|
|
24
24
|
));
|
|
25
|
+
const mdastUtilToString = require("mdast-util-to-string");
|
|
25
26
|
const rehypeExternalLinks = require("rehype-external-links");
|
|
26
27
|
const rehype2react = require("rehype-react");
|
|
27
28
|
const breaks = require("remark-breaks");
|
|
28
29
|
const remarkParse = require("remark-parse");
|
|
29
30
|
const remark2rehype = require("remark-rehype");
|
|
30
|
-
const remarkStringify = require("remark-stringify");
|
|
31
31
|
const remarkUnlinkProtocols = require("remark-unlink-protocols");
|
|
32
32
|
const unified = require("unified");
|
|
33
33
|
const Vue = require("vue");
|
|
34
34
|
const vueRouter = require("vue-router");
|
|
35
|
-
const NcCheckboxRadioSwitch = require("./NcCheckboxRadioSwitch-
|
|
35
|
+
const NcCheckboxRadioSwitch = require("./NcCheckboxRadioSwitch-BQeglWXd.cjs");
|
|
36
36
|
const auth = require("@nextcloud/auth");
|
|
37
37
|
const axios = require("@nextcloud/axios");
|
|
38
38
|
const router = require("@nextcloud/router");
|
|
39
39
|
const _public = require("@nextcloud/sharing/public");
|
|
40
|
-
const referencePickerModal = require("./referencePickerModal-
|
|
40
|
+
const referencePickerModal = require("./referencePickerModal-BOCqzVJk.cjs");
|
|
41
41
|
const logger = require("./logger-3HuiEIF6.cjs");
|
|
42
|
-
const autolink = require("./autolink-
|
|
42
|
+
const autolink = require("./autolink-VQMuzjxl.cjs");
|
|
43
43
|
const _pluginVue2_normalizer = require("./_plugin-vue2_normalizer-V0q-tHlQ.cjs");
|
|
44
|
-
const NcButton = require("./NcButton-
|
|
44
|
+
const NcButton = require("./NcButton-DaWD-X8V.cjs");
|
|
45
45
|
const NcIconSvgWrapper = require("./NcIconSvgWrapper-Bbl4kXZI.cjs");
|
|
46
46
|
const useCopy = require("./useCopy-3m2jDiIN.cjs");
|
|
47
47
|
const GenRandomId = require("./GenRandomId-D7iOvpZS.cjs");
|
|
48
48
|
const unistBuilder = require("unist-builder");
|
|
49
|
-
const
|
|
49
|
+
const unistUtilVisitParents = require("unist-util-visit-parents");
|
|
50
50
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
51
51
|
const rehypeExternalLinks__default = /* @__PURE__ */ _interopDefault(rehypeExternalLinks);
|
|
52
52
|
const rehype2react__default = /* @__PURE__ */ _interopDefault(rehype2react);
|
|
53
53
|
const breaks__default = /* @__PURE__ */ _interopDefault(breaks);
|
|
54
54
|
const remarkParse__default = /* @__PURE__ */ _interopDefault(remarkParse);
|
|
55
55
|
const remark2rehype__default = /* @__PURE__ */ _interopDefault(remark2rehype);
|
|
56
|
-
const remarkStringify__default = /* @__PURE__ */ _interopDefault(remarkStringify);
|
|
57
56
|
const remarkUnlinkProtocols__default = /* @__PURE__ */ _interopDefault(remarkUnlinkProtocols);
|
|
58
57
|
const axios__default = /* @__PURE__ */ _interopDefault(axios);
|
|
59
58
|
const _sfc_main$2 = {
|
|
@@ -288,12 +287,12 @@ function propsFactory(check) {
|
|
|
288
287
|
/** @type {Record<string, unknown>} */
|
|
289
288
|
check
|
|
290
289
|
);
|
|
291
|
-
return castFactory(
|
|
292
|
-
function
|
|
290
|
+
return castFactory(all);
|
|
291
|
+
function all(node) {
|
|
293
292
|
const nodeAsRecord = (
|
|
294
293
|
/** @type {Record<string, unknown>} */
|
|
295
294
|
/** @type {unknown} */
|
|
296
|
-
|
|
295
|
+
node
|
|
297
296
|
);
|
|
298
297
|
let key;
|
|
299
298
|
for (key in check) {
|
|
@@ -304,8 +303,8 @@ function propsFactory(check) {
|
|
|
304
303
|
}
|
|
305
304
|
function typeFactory(check) {
|
|
306
305
|
return castFactory(type);
|
|
307
|
-
function type(
|
|
308
|
-
return
|
|
306
|
+
function type(node) {
|
|
307
|
+
return node && node.type === check;
|
|
309
308
|
}
|
|
310
309
|
}
|
|
311
310
|
function castFactory(testFunction) {
|
|
@@ -327,90 +326,15 @@ function ok() {
|
|
|
327
326
|
function looksLikeANode(value) {
|
|
328
327
|
return value !== null && typeof value === "object" && "type" in value;
|
|
329
328
|
}
|
|
330
|
-
function color(d) {
|
|
331
|
-
return d;
|
|
332
|
-
}
|
|
333
|
-
const empty = [];
|
|
334
|
-
const CONTINUE = true;
|
|
335
|
-
const EXIT = false;
|
|
336
|
-
const SKIP = "skip";
|
|
337
|
-
function visitParents(tree, test, visitor, reverse) {
|
|
338
|
-
let check;
|
|
339
|
-
{
|
|
340
|
-
check = test;
|
|
341
|
-
}
|
|
342
|
-
const is = convert(check);
|
|
343
|
-
const step = 1;
|
|
344
|
-
factory(tree, void 0, [])();
|
|
345
|
-
function factory(node2, index, parents) {
|
|
346
|
-
const value = (
|
|
347
|
-
/** @type {Record<string, unknown>} */
|
|
348
|
-
node2 && typeof node2 === "object" ? node2 : {}
|
|
349
|
-
);
|
|
350
|
-
if (typeof value.type === "string") {
|
|
351
|
-
const name = (
|
|
352
|
-
// `hast`
|
|
353
|
-
typeof value.tagName === "string" ? value.tagName : (
|
|
354
|
-
// `xast`
|
|
355
|
-
typeof value.name === "string" ? value.name : void 0
|
|
356
|
-
)
|
|
357
|
-
);
|
|
358
|
-
Object.defineProperty(visit, "name", {
|
|
359
|
-
value: "node (" + color(node2.type + (name ? "<" + name + ">" : "")) + ")"
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
return visit;
|
|
363
|
-
function visit() {
|
|
364
|
-
let result = empty;
|
|
365
|
-
let subresult;
|
|
366
|
-
let offset;
|
|
367
|
-
let grandparents;
|
|
368
|
-
if (is(node2, index, parents[parents.length - 1] || void 0)) {
|
|
369
|
-
result = toResult(visitor(node2, parents));
|
|
370
|
-
if (result[0] === EXIT) {
|
|
371
|
-
return result;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
if ("children" in node2 && node2.children) {
|
|
375
|
-
const nodeAsParent = (
|
|
376
|
-
/** @type {UnistParent} */
|
|
377
|
-
node2
|
|
378
|
-
);
|
|
379
|
-
if (nodeAsParent.children && result[0] !== SKIP) {
|
|
380
|
-
offset = -1 + step;
|
|
381
|
-
grandparents = parents.concat(nodeAsParent);
|
|
382
|
-
while (offset > -1 && offset < nodeAsParent.children.length) {
|
|
383
|
-
const child = nodeAsParent.children[offset];
|
|
384
|
-
subresult = factory(child, offset, grandparents)();
|
|
385
|
-
if (subresult[0] === EXIT) {
|
|
386
|
-
return subresult;
|
|
387
|
-
}
|
|
388
|
-
offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
return result;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
function toResult(value) {
|
|
397
|
-
if (Array.isArray(value)) {
|
|
398
|
-
return value;
|
|
399
|
-
}
|
|
400
|
-
if (typeof value === "number") {
|
|
401
|
-
return [CONTINUE, value];
|
|
402
|
-
}
|
|
403
|
-
return value === null || value === void 0 ? empty : [value];
|
|
404
|
-
}
|
|
405
329
|
function findAndReplace(tree, list2, options) {
|
|
406
330
|
const settings = options || {};
|
|
407
331
|
const ignored = convert(settings.ignore || []);
|
|
408
332
|
const pairs = toPairs(list2);
|
|
409
333
|
let pairIndex = -1;
|
|
410
334
|
while (++pairIndex < pairs.length) {
|
|
411
|
-
visitParents(tree, "text", visitor);
|
|
335
|
+
unistUtilVisitParents.visitParents(tree, "text", visitor);
|
|
412
336
|
}
|
|
413
|
-
function visitor(
|
|
337
|
+
function visitor(node, parents) {
|
|
414
338
|
let index = -1;
|
|
415
339
|
let grandparent;
|
|
416
340
|
while (++index < parents.length) {
|
|
@@ -426,26 +350,26 @@ function findAndReplace(tree, list2, options) {
|
|
|
426
350
|
grandparent = parent;
|
|
427
351
|
}
|
|
428
352
|
if (grandparent) {
|
|
429
|
-
return handler(
|
|
353
|
+
return handler(node, parents);
|
|
430
354
|
}
|
|
431
355
|
}
|
|
432
|
-
function handler(
|
|
356
|
+
function handler(node, parents) {
|
|
433
357
|
const parent = parents[parents.length - 1];
|
|
434
358
|
const find = pairs[pairIndex][0];
|
|
435
359
|
const replace2 = pairs[pairIndex][1];
|
|
436
360
|
let start = 0;
|
|
437
361
|
const siblings = parent.children;
|
|
438
|
-
const index = siblings.indexOf(
|
|
362
|
+
const index = siblings.indexOf(node);
|
|
439
363
|
let change = false;
|
|
440
364
|
let nodes = [];
|
|
441
365
|
find.lastIndex = 0;
|
|
442
|
-
let match = find.exec(
|
|
366
|
+
let match = find.exec(node.value);
|
|
443
367
|
while (match) {
|
|
444
368
|
const position = match.index;
|
|
445
369
|
const matchObject = {
|
|
446
370
|
index: match.index,
|
|
447
371
|
input: match.input,
|
|
448
|
-
stack: [...parents,
|
|
372
|
+
stack: [...parents, node]
|
|
449
373
|
};
|
|
450
374
|
let value = replace2(...match, matchObject);
|
|
451
375
|
if (typeof value === "string") {
|
|
@@ -457,7 +381,7 @@ function findAndReplace(tree, list2, options) {
|
|
|
457
381
|
if (start !== position) {
|
|
458
382
|
nodes.push({
|
|
459
383
|
type: "text",
|
|
460
|
-
value:
|
|
384
|
+
value: node.value.slice(start, position)
|
|
461
385
|
});
|
|
462
386
|
}
|
|
463
387
|
if (Array.isArray(value)) {
|
|
@@ -471,15 +395,15 @@ function findAndReplace(tree, list2, options) {
|
|
|
471
395
|
if (!find.global) {
|
|
472
396
|
break;
|
|
473
397
|
}
|
|
474
|
-
match = find.exec(
|
|
398
|
+
match = find.exec(node.value);
|
|
475
399
|
}
|
|
476
400
|
if (change) {
|
|
477
|
-
if (start <
|
|
478
|
-
nodes.push({ type: "text", value:
|
|
401
|
+
if (start < node.value.length) {
|
|
402
|
+
nodes.push({ type: "text", value: node.value.slice(start) });
|
|
479
403
|
}
|
|
480
404
|
parent.children.splice(index, 1, ...nodes);
|
|
481
405
|
} else {
|
|
482
|
-
nodes = [
|
|
406
|
+
nodes = [node];
|
|
483
407
|
}
|
|
484
408
|
return index + nodes.length;
|
|
485
409
|
}
|
|
@@ -562,9 +486,9 @@ function exitLiteralAutolinkHttp(token) {
|
|
|
562
486
|
}
|
|
563
487
|
function exitLiteralAutolinkWww(token) {
|
|
564
488
|
this.config.exit.data.call(this, token);
|
|
565
|
-
const
|
|
566
|
-
ok$1(
|
|
567
|
-
|
|
489
|
+
const node = this.stack[this.stack.length - 1];
|
|
490
|
+
ok$1(node.type === "link");
|
|
491
|
+
node.url = "http://" + this.sliceSerialize(token);
|
|
568
492
|
}
|
|
569
493
|
function exitLiteralAutolinkEmail(token) {
|
|
570
494
|
this.config.exit.autolinkEmail.call(this, token);
|
|
@@ -690,10 +614,10 @@ function enterFootnoteDefinitionLabelString() {
|
|
|
690
614
|
}
|
|
691
615
|
function exitFootnoteDefinitionLabelString(token) {
|
|
692
616
|
const label = this.resume();
|
|
693
|
-
const
|
|
694
|
-
ok$1(
|
|
695
|
-
|
|
696
|
-
|
|
617
|
+
const node = this.stack[this.stack.length - 1];
|
|
618
|
+
ok$1(node.type === "footnoteDefinition");
|
|
619
|
+
node.label = label;
|
|
620
|
+
node.identifier = normalizeIdentifier(
|
|
697
621
|
this.sliceSerialize(token)
|
|
698
622
|
).toLowerCase();
|
|
699
623
|
}
|
|
@@ -708,23 +632,23 @@ function enterFootnoteCallString() {
|
|
|
708
632
|
}
|
|
709
633
|
function exitFootnoteCallString(token) {
|
|
710
634
|
const label = this.resume();
|
|
711
|
-
const
|
|
712
|
-
ok$1(
|
|
713
|
-
|
|
714
|
-
|
|
635
|
+
const node = this.stack[this.stack.length - 1];
|
|
636
|
+
ok$1(node.type === "footnoteReference");
|
|
637
|
+
node.label = label;
|
|
638
|
+
node.identifier = normalizeIdentifier(
|
|
715
639
|
this.sliceSerialize(token)
|
|
716
640
|
).toLowerCase();
|
|
717
641
|
}
|
|
718
642
|
function exitFootnoteCall(token) {
|
|
719
643
|
this.exit(token);
|
|
720
644
|
}
|
|
721
|
-
function footnoteReference(
|
|
645
|
+
function footnoteReference(node, _, state, info) {
|
|
722
646
|
const tracker = state.createTracker(info);
|
|
723
647
|
let value = tracker.move("[^");
|
|
724
648
|
const exit2 = state.enter("footnoteReference");
|
|
725
649
|
const subexit = state.enter("reference");
|
|
726
650
|
value += tracker.move(
|
|
727
|
-
state.safe(state.associationId(
|
|
651
|
+
state.safe(state.associationId(node), {
|
|
728
652
|
...tracker.current(),
|
|
729
653
|
before: value,
|
|
730
654
|
after: "]"
|
|
@@ -738,13 +662,13 @@ function footnoteReference(node2, _, state, info) {
|
|
|
738
662
|
function footnoteReferencePeek() {
|
|
739
663
|
return "[";
|
|
740
664
|
}
|
|
741
|
-
function footnoteDefinition(
|
|
665
|
+
function footnoteDefinition(node, _, state, info) {
|
|
742
666
|
const tracker = state.createTracker(info);
|
|
743
667
|
let value = tracker.move("[^");
|
|
744
668
|
const exit2 = state.enter("footnoteDefinition");
|
|
745
669
|
const subexit = state.enter("label");
|
|
746
670
|
value += tracker.move(
|
|
747
|
-
state.safe(state.associationId(
|
|
671
|
+
state.safe(state.associationId(node), {
|
|
748
672
|
...tracker.current(),
|
|
749
673
|
before: value,
|
|
750
674
|
after: "]"
|
|
@@ -752,11 +676,11 @@ function footnoteDefinition(node2, _, state, info) {
|
|
|
752
676
|
);
|
|
753
677
|
subexit();
|
|
754
678
|
value += tracker.move(
|
|
755
|
-
"]:" + (
|
|
679
|
+
"]:" + (node.children && node.children.length > 0 ? " " : "")
|
|
756
680
|
);
|
|
757
681
|
tracker.shift(4);
|
|
758
682
|
value += tracker.move(
|
|
759
|
-
state.indentLines(state.containerFlow(
|
|
683
|
+
state.indentLines(state.containerFlow(node, tracker.current()), map$2)
|
|
760
684
|
);
|
|
761
685
|
exit2();
|
|
762
686
|
return value;
|
|
@@ -801,11 +725,11 @@ function enterStrikethrough(token) {
|
|
|
801
725
|
function exitStrikethrough(token) {
|
|
802
726
|
this.exit(token);
|
|
803
727
|
}
|
|
804
|
-
function handleDelete(
|
|
728
|
+
function handleDelete(node, _, state, info) {
|
|
805
729
|
const tracker = state.createTracker(info);
|
|
806
730
|
const exit2 = state.enter("strikethrough");
|
|
807
731
|
let value = tracker.move("~~");
|
|
808
|
-
value += state.containerPhrasing(
|
|
732
|
+
value += state.containerPhrasing(node, {
|
|
809
733
|
...tracker.current(),
|
|
810
734
|
before: value,
|
|
811
735
|
after: "~"
|
|
@@ -955,13 +879,13 @@ function toAlignment(value) {
|
|
|
955
879
|
const code2 = typeof value === "string" ? value.codePointAt(0) : 0;
|
|
956
880
|
return code2 === 67 || code2 === 99 ? 99 : code2 === 76 || code2 === 108 ? 108 : code2 === 82 || code2 === 114 ? 114 : 0;
|
|
957
881
|
}
|
|
958
|
-
function blockquote(
|
|
882
|
+
function blockquote(node, _, state, info) {
|
|
959
883
|
const exit2 = state.enter("blockquote");
|
|
960
884
|
const tracker = state.createTracker(info);
|
|
961
885
|
tracker.move("> ");
|
|
962
886
|
tracker.shift(2);
|
|
963
887
|
const value = state.indentLines(
|
|
964
|
-
state.containerFlow(
|
|
888
|
+
state.containerFlow(node, tracker.current()),
|
|
965
889
|
map$1
|
|
966
890
|
);
|
|
967
891
|
exit2();
|
|
@@ -1019,12 +943,12 @@ function longestStreak(value, substring) {
|
|
|
1019
943
|
}
|
|
1020
944
|
return max;
|
|
1021
945
|
}
|
|
1022
|
-
function formatCodeAsIndented(
|
|
946
|
+
function formatCodeAsIndented(node, state) {
|
|
1023
947
|
return Boolean(
|
|
1024
|
-
state.options.fences === false &&
|
|
1025
|
-
!
|
|
1026
|
-
/[^ \r\n]/.test(
|
|
1027
|
-
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(
|
|
948
|
+
state.options.fences === false && node.value && // If there’s no info…
|
|
949
|
+
!node.lang && // And there’s a non-whitespace character…
|
|
950
|
+
/[^ \r\n]/.test(node.value) && // And the value doesn’t start or end in a blank…
|
|
951
|
+
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value)
|
|
1028
952
|
);
|
|
1029
953
|
}
|
|
1030
954
|
function checkFence(state) {
|
|
@@ -1036,11 +960,11 @@ function checkFence(state) {
|
|
|
1036
960
|
}
|
|
1037
961
|
return marker;
|
|
1038
962
|
}
|
|
1039
|
-
function code$1(
|
|
963
|
+
function code$1(node, _, state, info) {
|
|
1040
964
|
const marker = checkFence(state);
|
|
1041
|
-
const raw =
|
|
965
|
+
const raw = node.value || "";
|
|
1042
966
|
const suffix = marker === "`" ? "GraveAccent" : "Tilde";
|
|
1043
|
-
if (formatCodeAsIndented(
|
|
967
|
+
if (formatCodeAsIndented(node, state)) {
|
|
1044
968
|
const exit3 = state.enter("codeIndented");
|
|
1045
969
|
const value2 = state.indentLines(raw, map);
|
|
1046
970
|
exit3();
|
|
@@ -1050,10 +974,10 @@ function code$1(node2, _, state, info) {
|
|
|
1050
974
|
const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
|
|
1051
975
|
const exit2 = state.enter("codeFenced");
|
|
1052
976
|
let value = tracker.move(sequence);
|
|
1053
|
-
if (
|
|
977
|
+
if (node.lang) {
|
|
1054
978
|
const subexit = state.enter(`codeFencedLang${suffix}`);
|
|
1055
979
|
value += tracker.move(
|
|
1056
|
-
state.safe(
|
|
980
|
+
state.safe(node.lang, {
|
|
1057
981
|
before: value,
|
|
1058
982
|
after: " ",
|
|
1059
983
|
encode: ["`"],
|
|
@@ -1062,11 +986,11 @@ function code$1(node2, _, state, info) {
|
|
|
1062
986
|
);
|
|
1063
987
|
subexit();
|
|
1064
988
|
}
|
|
1065
|
-
if (
|
|
989
|
+
if (node.lang && node.meta) {
|
|
1066
990
|
const subexit = state.enter(`codeFencedMeta${suffix}`);
|
|
1067
991
|
value += tracker.move(" ");
|
|
1068
992
|
value += tracker.move(
|
|
1069
|
-
state.safe(
|
|
993
|
+
state.safe(node.meta, {
|
|
1070
994
|
before: value,
|
|
1071
995
|
after: "\n",
|
|
1072
996
|
encode: ["`"],
|
|
@@ -1095,7 +1019,7 @@ function checkQuote(state) {
|
|
|
1095
1019
|
}
|
|
1096
1020
|
return marker;
|
|
1097
1021
|
}
|
|
1098
|
-
function definition(
|
|
1022
|
+
function definition(node, _, state, info) {
|
|
1099
1023
|
const quote = checkQuote(state);
|
|
1100
1024
|
const suffix = quote === '"' ? "Quote" : "Apostrophe";
|
|
1101
1025
|
const exit2 = state.enter("definition");
|
|
@@ -1103,7 +1027,7 @@ function definition(node2, _, state, info) {
|
|
|
1103
1027
|
const tracker = state.createTracker(info);
|
|
1104
1028
|
let value = tracker.move("[");
|
|
1105
1029
|
value += tracker.move(
|
|
1106
|
-
state.safe(state.associationId(
|
|
1030
|
+
state.safe(state.associationId(node), {
|
|
1107
1031
|
before: value,
|
|
1108
1032
|
after: "]",
|
|
1109
1033
|
...tracker.current()
|
|
@@ -1113,31 +1037,31 @@ function definition(node2, _, state, info) {
|
|
|
1113
1037
|
subexit();
|
|
1114
1038
|
if (
|
|
1115
1039
|
// If there’s no url, or…
|
|
1116
|
-
!
|
|
1117
|
-
/[\0- \u007F]/.test(
|
|
1040
|
+
!node.url || // If there are control characters or whitespace.
|
|
1041
|
+
/[\0- \u007F]/.test(node.url)
|
|
1118
1042
|
) {
|
|
1119
1043
|
subexit = state.enter("destinationLiteral");
|
|
1120
1044
|
value += tracker.move("<");
|
|
1121
1045
|
value += tracker.move(
|
|
1122
|
-
state.safe(
|
|
1046
|
+
state.safe(node.url, { before: value, after: ">", ...tracker.current() })
|
|
1123
1047
|
);
|
|
1124
1048
|
value += tracker.move(">");
|
|
1125
1049
|
} else {
|
|
1126
1050
|
subexit = state.enter("destinationRaw");
|
|
1127
1051
|
value += tracker.move(
|
|
1128
|
-
state.safe(
|
|
1052
|
+
state.safe(node.url, {
|
|
1129
1053
|
before: value,
|
|
1130
|
-
after:
|
|
1054
|
+
after: node.title ? " " : "\n",
|
|
1131
1055
|
...tracker.current()
|
|
1132
1056
|
})
|
|
1133
1057
|
);
|
|
1134
1058
|
}
|
|
1135
1059
|
subexit();
|
|
1136
|
-
if (
|
|
1060
|
+
if (node.title) {
|
|
1137
1061
|
subexit = state.enter(`title${suffix}`);
|
|
1138
1062
|
value += tracker.move(" " + quote);
|
|
1139
1063
|
value += tracker.move(
|
|
1140
|
-
state.safe(
|
|
1064
|
+
state.safe(node.title, {
|
|
1141
1065
|
before: value,
|
|
1142
1066
|
after: quote,
|
|
1143
1067
|
...tracker.current()
|
|
@@ -1159,13 +1083,13 @@ function checkEmphasis(state) {
|
|
|
1159
1083
|
return marker;
|
|
1160
1084
|
}
|
|
1161
1085
|
emphasis.peek = emphasisPeek;
|
|
1162
|
-
function emphasis(
|
|
1086
|
+
function emphasis(node, _, state, info) {
|
|
1163
1087
|
const marker = checkEmphasis(state);
|
|
1164
1088
|
const exit2 = state.enter("emphasis");
|
|
1165
1089
|
const tracker = state.createTracker(info);
|
|
1166
1090
|
let value = tracker.move(marker);
|
|
1167
1091
|
value += tracker.move(
|
|
1168
|
-
state.containerPhrasing(
|
|
1092
|
+
state.containerPhrasing(node, {
|
|
1169
1093
|
before: value,
|
|
1170
1094
|
after: marker,
|
|
1171
1095
|
...tracker.current()
|
|
@@ -1178,60 +1102,45 @@ function emphasis(node2, _, state, info) {
|
|
|
1178
1102
|
function emphasisPeek(_, _1, state) {
|
|
1179
1103
|
return state.options.emphasis || "*";
|
|
1180
1104
|
}
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
if (includeImageAlt && "alt" in value && value.alt) {
|
|
1194
|
-
return value.alt;
|
|
1195
|
-
}
|
|
1196
|
-
if ("children" in value) {
|
|
1197
|
-
return all(value.children, includeImageAlt, includeHtml);
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
if (Array.isArray(value)) {
|
|
1201
|
-
return all(value, includeImageAlt, includeHtml);
|
|
1105
|
+
function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
|
|
1106
|
+
let reverse;
|
|
1107
|
+
let test;
|
|
1108
|
+
let visitor;
|
|
1109
|
+
if (typeof testOrVisitor === "function" && typeof visitorOrReverse !== "function") {
|
|
1110
|
+
test = void 0;
|
|
1111
|
+
visitor = testOrVisitor;
|
|
1112
|
+
reverse = visitorOrReverse;
|
|
1113
|
+
} else {
|
|
1114
|
+
test = testOrVisitor;
|
|
1115
|
+
visitor = visitorOrReverse;
|
|
1116
|
+
reverse = maybeReverse;
|
|
1202
1117
|
}
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
while (++index < values.length) {
|
|
1209
|
-
result[index] = one(values[index], includeImageAlt, includeHtml);
|
|
1118
|
+
unistUtilVisitParents.visitParents(tree, test, overload, reverse);
|
|
1119
|
+
function overload(node, parents) {
|
|
1120
|
+
const parent = parents[parents.length - 1];
|
|
1121
|
+
const index = parent ? parent.children.indexOf(node) : void 0;
|
|
1122
|
+
return visitor(node, index, parent);
|
|
1210
1123
|
}
|
|
1211
|
-
return result.join("");
|
|
1212
1124
|
}
|
|
1213
|
-
function node
|
|
1214
|
-
return Boolean(value && typeof value === "object");
|
|
1215
|
-
}
|
|
1216
|
-
function formatHeadingAsSetext(node2, state) {
|
|
1125
|
+
function formatHeadingAsSetext(node, state) {
|
|
1217
1126
|
let literalWithBreak = false;
|
|
1218
|
-
|
|
1219
|
-
if ("value" in
|
|
1127
|
+
visit(node, function(node2) {
|
|
1128
|
+
if ("value" in node2 && /\r?\n|\r/.test(node2.value) || node2.type === "break") {
|
|
1220
1129
|
literalWithBreak = true;
|
|
1221
|
-
return
|
|
1130
|
+
return unistUtilVisitParents.EXIT;
|
|
1222
1131
|
}
|
|
1223
1132
|
});
|
|
1224
1133
|
return Boolean(
|
|
1225
|
-
(!
|
|
1134
|
+
(!node.depth || node.depth < 3) && mdastUtilToString.toString(node) && (state.options.setext || literalWithBreak)
|
|
1226
1135
|
);
|
|
1227
1136
|
}
|
|
1228
|
-
function heading(
|
|
1229
|
-
const rank = Math.max(Math.min(6,
|
|
1137
|
+
function heading(node, _, state, info) {
|
|
1138
|
+
const rank = Math.max(Math.min(6, node.depth || 1), 1);
|
|
1230
1139
|
const tracker = state.createTracker(info);
|
|
1231
|
-
if (formatHeadingAsSetext(
|
|
1140
|
+
if (formatHeadingAsSetext(node, state)) {
|
|
1232
1141
|
const exit3 = state.enter("headingSetext");
|
|
1233
1142
|
const subexit2 = state.enter("phrasing");
|
|
1234
|
-
const value2 = state.containerPhrasing(
|
|
1143
|
+
const value2 = state.containerPhrasing(node, {
|
|
1235
1144
|
...tracker.current(),
|
|
1236
1145
|
before: "\n",
|
|
1237
1146
|
after: "\n"
|
|
@@ -1249,7 +1158,7 @@ function heading(node2, _, state, info) {
|
|
|
1249
1158
|
const exit2 = state.enter("headingAtx");
|
|
1250
1159
|
const subexit = state.enter("phrasing");
|
|
1251
1160
|
tracker.move(sequence + " ");
|
|
1252
|
-
let value = state.containerPhrasing(
|
|
1161
|
+
let value = state.containerPhrasing(node, {
|
|
1253
1162
|
before: "# ",
|
|
1254
1163
|
after: "\n",
|
|
1255
1164
|
...tracker.current()
|
|
@@ -1266,14 +1175,14 @@ function heading(node2, _, state, info) {
|
|
|
1266
1175
|
return value;
|
|
1267
1176
|
}
|
|
1268
1177
|
html.peek = htmlPeek;
|
|
1269
|
-
function html(
|
|
1270
|
-
return
|
|
1178
|
+
function html(node) {
|
|
1179
|
+
return node.value || "";
|
|
1271
1180
|
}
|
|
1272
1181
|
function htmlPeek() {
|
|
1273
1182
|
return "<";
|
|
1274
1183
|
}
|
|
1275
1184
|
image.peek = imagePeek;
|
|
1276
|
-
function image(
|
|
1185
|
+
function image(node, _, state, info) {
|
|
1277
1186
|
const quote = checkQuote(state);
|
|
1278
1187
|
const suffix = quote === '"' ? "Quote" : "Apostrophe";
|
|
1279
1188
|
const exit2 = state.enter("image");
|
|
@@ -1281,37 +1190,37 @@ function image(node2, _, state, info) {
|
|
|
1281
1190
|
const tracker = state.createTracker(info);
|
|
1282
1191
|
let value = tracker.move("![");
|
|
1283
1192
|
value += tracker.move(
|
|
1284
|
-
state.safe(
|
|
1193
|
+
state.safe(node.alt, { before: value, after: "]", ...tracker.current() })
|
|
1285
1194
|
);
|
|
1286
1195
|
value += tracker.move("](");
|
|
1287
1196
|
subexit();
|
|
1288
1197
|
if (
|
|
1289
1198
|
// If there’s no url but there is a title…
|
|
1290
|
-
!
|
|
1291
|
-
/[\0- \u007F]/.test(
|
|
1199
|
+
!node.url && node.title || // If there are control characters or whitespace.
|
|
1200
|
+
/[\0- \u007F]/.test(node.url)
|
|
1292
1201
|
) {
|
|
1293
1202
|
subexit = state.enter("destinationLiteral");
|
|
1294
1203
|
value += tracker.move("<");
|
|
1295
1204
|
value += tracker.move(
|
|
1296
|
-
state.safe(
|
|
1205
|
+
state.safe(node.url, { before: value, after: ">", ...tracker.current() })
|
|
1297
1206
|
);
|
|
1298
1207
|
value += tracker.move(">");
|
|
1299
1208
|
} else {
|
|
1300
1209
|
subexit = state.enter("destinationRaw");
|
|
1301
1210
|
value += tracker.move(
|
|
1302
|
-
state.safe(
|
|
1211
|
+
state.safe(node.url, {
|
|
1303
1212
|
before: value,
|
|
1304
|
-
after:
|
|
1213
|
+
after: node.title ? " " : ")",
|
|
1305
1214
|
...tracker.current()
|
|
1306
1215
|
})
|
|
1307
1216
|
);
|
|
1308
1217
|
}
|
|
1309
1218
|
subexit();
|
|
1310
|
-
if (
|
|
1219
|
+
if (node.title) {
|
|
1311
1220
|
subexit = state.enter(`title${suffix}`);
|
|
1312
1221
|
value += tracker.move(" " + quote);
|
|
1313
1222
|
value += tracker.move(
|
|
1314
|
-
state.safe(
|
|
1223
|
+
state.safe(node.title, {
|
|
1315
1224
|
before: value,
|
|
1316
1225
|
after: quote,
|
|
1317
1226
|
...tracker.current()
|
|
@@ -1328,13 +1237,13 @@ function imagePeek() {
|
|
|
1328
1237
|
return "!";
|
|
1329
1238
|
}
|
|
1330
1239
|
imageReference.peek = imageReferencePeek;
|
|
1331
|
-
function imageReference(
|
|
1332
|
-
const type =
|
|
1240
|
+
function imageReference(node, _, state, info) {
|
|
1241
|
+
const type = node.referenceType;
|
|
1333
1242
|
const exit2 = state.enter("imageReference");
|
|
1334
1243
|
let subexit = state.enter("label");
|
|
1335
1244
|
const tracker = state.createTracker(info);
|
|
1336
1245
|
let value = tracker.move("![");
|
|
1337
|
-
const alt = state.safe(
|
|
1246
|
+
const alt = state.safe(node.alt, {
|
|
1338
1247
|
before: value,
|
|
1339
1248
|
after: "]",
|
|
1340
1249
|
...tracker.current()
|
|
@@ -1344,7 +1253,7 @@ function imageReference(node2, _, state, info) {
|
|
|
1344
1253
|
const stack = state.stack;
|
|
1345
1254
|
state.stack = [];
|
|
1346
1255
|
subexit = state.enter("reference");
|
|
1347
|
-
const reference = state.safe(state.associationId(
|
|
1256
|
+
const reference = state.safe(state.associationId(node), {
|
|
1348
1257
|
before: value,
|
|
1349
1258
|
after: "]",
|
|
1350
1259
|
...tracker.current()
|
|
@@ -1365,8 +1274,8 @@ function imageReferencePeek() {
|
|
|
1365
1274
|
return "!";
|
|
1366
1275
|
}
|
|
1367
1276
|
inlineCode.peek = inlineCodePeek;
|
|
1368
|
-
function inlineCode(
|
|
1369
|
-
let value =
|
|
1277
|
+
function inlineCode(node, _, state) {
|
|
1278
|
+
let value = node.value || "";
|
|
1370
1279
|
let sequence = "`";
|
|
1371
1280
|
let index = -1;
|
|
1372
1281
|
while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
|
|
@@ -1393,33 +1302,33 @@ function inlineCode(node2, _, state) {
|
|
|
1393
1302
|
function inlineCodePeek() {
|
|
1394
1303
|
return "`";
|
|
1395
1304
|
}
|
|
1396
|
-
function formatLinkAsAutolink(
|
|
1397
|
-
const raw = toString(
|
|
1305
|
+
function formatLinkAsAutolink(node, state) {
|
|
1306
|
+
const raw = mdastUtilToString.toString(node);
|
|
1398
1307
|
return Boolean(
|
|
1399
1308
|
!state.options.resourceLink && // If there’s a url…
|
|
1400
|
-
|
|
1401
|
-
!
|
|
1402
|
-
|
|
1403
|
-
(raw ===
|
|
1404
|
-
/^[a-z][a-z+.-]+:/i.test(
|
|
1309
|
+
node.url && // And there’s a no title…
|
|
1310
|
+
!node.title && // And the content of `node` is a single text node…
|
|
1311
|
+
node.children && node.children.length === 1 && node.children[0].type === "text" && // And if the url is the same as the content…
|
|
1312
|
+
(raw === node.url || "mailto:" + raw === node.url) && // And that starts w/ a protocol…
|
|
1313
|
+
/^[a-z][a-z+.-]+:/i.test(node.url) && // And that doesn’t contain ASCII control codes (character escapes and
|
|
1405
1314
|
// references don’t work), space, or angle brackets…
|
|
1406
|
-
!/[\0- <>\u007F]/.test(
|
|
1315
|
+
!/[\0- <>\u007F]/.test(node.url)
|
|
1407
1316
|
);
|
|
1408
1317
|
}
|
|
1409
1318
|
link.peek = linkPeek;
|
|
1410
|
-
function link(
|
|
1319
|
+
function link(node, _, state, info) {
|
|
1411
1320
|
const quote = checkQuote(state);
|
|
1412
1321
|
const suffix = quote === '"' ? "Quote" : "Apostrophe";
|
|
1413
1322
|
const tracker = state.createTracker(info);
|
|
1414
1323
|
let exit2;
|
|
1415
1324
|
let subexit;
|
|
1416
|
-
if (formatLinkAsAutolink(
|
|
1325
|
+
if (formatLinkAsAutolink(node, state)) {
|
|
1417
1326
|
const stack = state.stack;
|
|
1418
1327
|
state.stack = [];
|
|
1419
1328
|
exit2 = state.enter("autolink");
|
|
1420
1329
|
let value2 = tracker.move("<");
|
|
1421
1330
|
value2 += tracker.move(
|
|
1422
|
-
state.containerPhrasing(
|
|
1331
|
+
state.containerPhrasing(node, {
|
|
1423
1332
|
before: value2,
|
|
1424
1333
|
after: ">",
|
|
1425
1334
|
...tracker.current()
|
|
@@ -1434,7 +1343,7 @@ function link(node2, _, state, info) {
|
|
|
1434
1343
|
subexit = state.enter("label");
|
|
1435
1344
|
let value = tracker.move("[");
|
|
1436
1345
|
value += tracker.move(
|
|
1437
|
-
state.containerPhrasing(
|
|
1346
|
+
state.containerPhrasing(node, {
|
|
1438
1347
|
before: value,
|
|
1439
1348
|
after: "](",
|
|
1440
1349
|
...tracker.current()
|
|
@@ -1444,31 +1353,31 @@ function link(node2, _, state, info) {
|
|
|
1444
1353
|
subexit();
|
|
1445
1354
|
if (
|
|
1446
1355
|
// If there’s no url but there is a title…
|
|
1447
|
-
!
|
|
1448
|
-
/[\0- \u007F]/.test(
|
|
1356
|
+
!node.url && node.title || // If there are control characters or whitespace.
|
|
1357
|
+
/[\0- \u007F]/.test(node.url)
|
|
1449
1358
|
) {
|
|
1450
1359
|
subexit = state.enter("destinationLiteral");
|
|
1451
1360
|
value += tracker.move("<");
|
|
1452
1361
|
value += tracker.move(
|
|
1453
|
-
state.safe(
|
|
1362
|
+
state.safe(node.url, { before: value, after: ">", ...tracker.current() })
|
|
1454
1363
|
);
|
|
1455
1364
|
value += tracker.move(">");
|
|
1456
1365
|
} else {
|
|
1457
1366
|
subexit = state.enter("destinationRaw");
|
|
1458
1367
|
value += tracker.move(
|
|
1459
|
-
state.safe(
|
|
1368
|
+
state.safe(node.url, {
|
|
1460
1369
|
before: value,
|
|
1461
|
-
after:
|
|
1370
|
+
after: node.title ? " " : ")",
|
|
1462
1371
|
...tracker.current()
|
|
1463
1372
|
})
|
|
1464
1373
|
);
|
|
1465
1374
|
}
|
|
1466
1375
|
subexit();
|
|
1467
|
-
if (
|
|
1376
|
+
if (node.title) {
|
|
1468
1377
|
subexit = state.enter(`title${suffix}`);
|
|
1469
1378
|
value += tracker.move(" " + quote);
|
|
1470
1379
|
value += tracker.move(
|
|
1471
|
-
state.safe(
|
|
1380
|
+
state.safe(node.title, {
|
|
1472
1381
|
before: value,
|
|
1473
1382
|
after: quote,
|
|
1474
1383
|
...tracker.current()
|
|
@@ -1481,17 +1390,17 @@ function link(node2, _, state, info) {
|
|
|
1481
1390
|
exit2();
|
|
1482
1391
|
return value;
|
|
1483
1392
|
}
|
|
1484
|
-
function linkPeek(
|
|
1485
|
-
return formatLinkAsAutolink(
|
|
1393
|
+
function linkPeek(node, _, state) {
|
|
1394
|
+
return formatLinkAsAutolink(node, state) ? "<" : "[";
|
|
1486
1395
|
}
|
|
1487
1396
|
linkReference.peek = linkReferencePeek;
|
|
1488
|
-
function linkReference(
|
|
1489
|
-
const type =
|
|
1397
|
+
function linkReference(node, _, state, info) {
|
|
1398
|
+
const type = node.referenceType;
|
|
1490
1399
|
const exit2 = state.enter("linkReference");
|
|
1491
1400
|
let subexit = state.enter("label");
|
|
1492
1401
|
const tracker = state.createTracker(info);
|
|
1493
1402
|
let value = tracker.move("[");
|
|
1494
|
-
const text2 = state.containerPhrasing(
|
|
1403
|
+
const text2 = state.containerPhrasing(node, {
|
|
1495
1404
|
before: value,
|
|
1496
1405
|
after: "]",
|
|
1497
1406
|
...tracker.current()
|
|
@@ -1501,7 +1410,7 @@ function linkReference(node2, _, state, info) {
|
|
|
1501
1410
|
const stack = state.stack;
|
|
1502
1411
|
state.stack = [];
|
|
1503
1412
|
subexit = state.enter("reference");
|
|
1504
|
-
const reference = state.safe(state.associationId(
|
|
1413
|
+
const reference = state.safe(state.associationId(node), {
|
|
1505
1414
|
before: value,
|
|
1506
1415
|
after: "]",
|
|
1507
1416
|
...tracker.current()
|
|
@@ -1566,14 +1475,14 @@ function checkRule(state) {
|
|
|
1566
1475
|
}
|
|
1567
1476
|
return marker;
|
|
1568
1477
|
}
|
|
1569
|
-
function list(
|
|
1478
|
+
function list(node, parent, state, info) {
|
|
1570
1479
|
const exit2 = state.enter("list");
|
|
1571
1480
|
const bulletCurrent = state.bulletCurrent;
|
|
1572
|
-
let bullet =
|
|
1573
|
-
const bulletOther =
|
|
1481
|
+
let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
|
|
1482
|
+
const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
|
|
1574
1483
|
let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
|
|
1575
|
-
if (!
|
|
1576
|
-
const firstListItem =
|
|
1484
|
+
if (!node.ordered) {
|
|
1485
|
+
const firstListItem = node.children ? node.children[0] : void 0;
|
|
1577
1486
|
if (
|
|
1578
1487
|
// Bullet could be used as a thematic break marker:
|
|
1579
1488
|
(bullet === "*" || bullet === "-") && // Empty first list item:
|
|
@@ -1585,8 +1494,8 @@ function list(node2, parent, state, info) {
|
|
|
1585
1494
|
}
|
|
1586
1495
|
if (checkRule(state) === bullet && firstListItem) {
|
|
1587
1496
|
let index = -1;
|
|
1588
|
-
while (++index <
|
|
1589
|
-
const item =
|
|
1497
|
+
while (++index < node.children.length) {
|
|
1498
|
+
const item = node.children[index];
|
|
1590
1499
|
if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
|
|
1591
1500
|
useDifferentMarker = true;
|
|
1592
1501
|
break;
|
|
@@ -1598,7 +1507,7 @@ function list(node2, parent, state, info) {
|
|
|
1598
1507
|
bullet = bulletOther;
|
|
1599
1508
|
}
|
|
1600
1509
|
state.bulletCurrent = bullet;
|
|
1601
|
-
const value = state.containerFlow(
|
|
1510
|
+
const value = state.containerFlow(node, info);
|
|
1602
1511
|
state.bulletLastUsed = bullet;
|
|
1603
1512
|
state.bulletCurrent = bulletCurrent;
|
|
1604
1513
|
exit2();
|
|
@@ -1613,14 +1522,14 @@ function checkListItemIndent(state) {
|
|
|
1613
1522
|
}
|
|
1614
1523
|
return style;
|
|
1615
1524
|
}
|
|
1616
|
-
function listItem(
|
|
1525
|
+
function listItem(node, parent, state, info) {
|
|
1617
1526
|
const listItemIndent = checkListItemIndent(state);
|
|
1618
1527
|
let bullet = state.bulletCurrent || checkBullet(state);
|
|
1619
1528
|
if (parent && parent.type === "list" && parent.ordered) {
|
|
1620
|
-
bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(
|
|
1529
|
+
bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
|
|
1621
1530
|
}
|
|
1622
1531
|
let size = bullet.length + 1;
|
|
1623
|
-
if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread ||
|
|
1532
|
+
if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) {
|
|
1624
1533
|
size = Math.ceil(size / 4) * 4;
|
|
1625
1534
|
}
|
|
1626
1535
|
const tracker = state.createTracker(info);
|
|
@@ -1628,7 +1537,7 @@ function listItem(node2, parent, state, info) {
|
|
|
1628
1537
|
tracker.shift(size);
|
|
1629
1538
|
const exit2 = state.enter("listItem");
|
|
1630
1539
|
const value = state.indentLines(
|
|
1631
|
-
state.containerFlow(
|
|
1540
|
+
state.containerFlow(node, tracker.current()),
|
|
1632
1541
|
map2
|
|
1633
1542
|
);
|
|
1634
1543
|
exit2();
|
|
@@ -1640,10 +1549,10 @@ function listItem(node2, parent, state, info) {
|
|
|
1640
1549
|
return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
|
|
1641
1550
|
}
|
|
1642
1551
|
}
|
|
1643
|
-
function paragraph(
|
|
1552
|
+
function paragraph(node, _, state, info) {
|
|
1644
1553
|
const exit2 = state.enter("paragraph");
|
|
1645
1554
|
const subexit = state.enter("phrasing");
|
|
1646
|
-
const value = state.containerPhrasing(
|
|
1555
|
+
const value = state.containerPhrasing(node, info);
|
|
1647
1556
|
subexit();
|
|
1648
1557
|
exit2();
|
|
1649
1558
|
return value;
|
|
@@ -1674,12 +1583,12 @@ const phrasing = (
|
|
|
1674
1583
|
"textDirective"
|
|
1675
1584
|
])
|
|
1676
1585
|
);
|
|
1677
|
-
function root(
|
|
1678
|
-
const hasPhrasing =
|
|
1586
|
+
function root(node, _, state, info) {
|
|
1587
|
+
const hasPhrasing = node.children.some(function(d) {
|
|
1679
1588
|
return phrasing(d);
|
|
1680
1589
|
});
|
|
1681
1590
|
const fn = hasPhrasing ? state.containerPhrasing : state.containerFlow;
|
|
1682
|
-
return fn.call(state,
|
|
1591
|
+
return fn.call(state, node, info);
|
|
1683
1592
|
}
|
|
1684
1593
|
function checkStrong(state) {
|
|
1685
1594
|
const marker = state.options.strong || "*";
|
|
@@ -1691,13 +1600,13 @@ function checkStrong(state) {
|
|
|
1691
1600
|
return marker;
|
|
1692
1601
|
}
|
|
1693
1602
|
strong.peek = strongPeek;
|
|
1694
|
-
function strong(
|
|
1603
|
+
function strong(node, _, state, info) {
|
|
1695
1604
|
const marker = checkStrong(state);
|
|
1696
1605
|
const exit2 = state.enter("strong");
|
|
1697
1606
|
const tracker = state.createTracker(info);
|
|
1698
1607
|
let value = tracker.move(marker + marker);
|
|
1699
1608
|
value += tracker.move(
|
|
1700
|
-
state.containerPhrasing(
|
|
1609
|
+
state.containerPhrasing(node, {
|
|
1701
1610
|
before: value,
|
|
1702
1611
|
after: marker,
|
|
1703
1612
|
...tracker.current()
|
|
@@ -1710,8 +1619,8 @@ function strong(node2, _, state, info) {
|
|
|
1710
1619
|
function strongPeek(_, _1, state) {
|
|
1711
1620
|
return state.options.strong || "*";
|
|
1712
1621
|
}
|
|
1713
|
-
function text$1(
|
|
1714
|
-
return state.safe(
|
|
1622
|
+
function text$1(node, _, state, info) {
|
|
1623
|
+
return state.safe(node.value, info);
|
|
1715
1624
|
}
|
|
1716
1625
|
function checkRuleRepetition(state) {
|
|
1717
1626
|
const repetition = state.options.ruleRepetition || 3;
|
|
@@ -1797,9 +1706,9 @@ function exitCodeText(token) {
|
|
|
1797
1706
|
if (this.data.inTable) {
|
|
1798
1707
|
value = value.replace(/\\([\\|])/g, replace);
|
|
1799
1708
|
}
|
|
1800
|
-
const
|
|
1801
|
-
ok$1(
|
|
1802
|
-
|
|
1709
|
+
const node = this.stack[this.stack.length - 1];
|
|
1710
|
+
ok$1(node.type === "inlineCode");
|
|
1711
|
+
node.value = value;
|
|
1803
1712
|
this.exit(token);
|
|
1804
1713
|
}
|
|
1805
1714
|
function replace($0, $1) {
|
|
@@ -1837,18 +1746,18 @@ function gfmTableToMarkdown(options) {
|
|
|
1837
1746
|
tableRow: handleTableRow
|
|
1838
1747
|
}
|
|
1839
1748
|
};
|
|
1840
|
-
function handleTable(
|
|
1841
|
-
return serializeData(handleTableAsData(
|
|
1749
|
+
function handleTable(node, _, state, info) {
|
|
1750
|
+
return serializeData(handleTableAsData(node, state, info), node.align);
|
|
1842
1751
|
}
|
|
1843
|
-
function handleTableRow(
|
|
1844
|
-
const row = handleTableRowAsData(
|
|
1752
|
+
function handleTableRow(node, _, state, info) {
|
|
1753
|
+
const row = handleTableRowAsData(node, state, info);
|
|
1845
1754
|
const value = serializeData([row]);
|
|
1846
1755
|
return value.slice(0, value.indexOf("\n"));
|
|
1847
1756
|
}
|
|
1848
|
-
function handleTableCell(
|
|
1757
|
+
function handleTableCell(node, _, state, info) {
|
|
1849
1758
|
const exit2 = state.enter("tableCell");
|
|
1850
1759
|
const subexit = state.enter("phrasing");
|
|
1851
|
-
const value = state.containerPhrasing(
|
|
1760
|
+
const value = state.containerPhrasing(node, {
|
|
1852
1761
|
...info,
|
|
1853
1762
|
before: around,
|
|
1854
1763
|
after: around
|
|
@@ -1868,8 +1777,8 @@ function gfmTableToMarkdown(options) {
|
|
|
1868
1777
|
stringLength
|
|
1869
1778
|
});
|
|
1870
1779
|
}
|
|
1871
|
-
function handleTableAsData(
|
|
1872
|
-
const children =
|
|
1780
|
+
function handleTableAsData(node, state, info) {
|
|
1781
|
+
const children = node.children;
|
|
1873
1782
|
let index = -1;
|
|
1874
1783
|
const result = [];
|
|
1875
1784
|
const subexit = state.enter("table");
|
|
@@ -1879,19 +1788,19 @@ function gfmTableToMarkdown(options) {
|
|
|
1879
1788
|
subexit();
|
|
1880
1789
|
return result;
|
|
1881
1790
|
}
|
|
1882
|
-
function handleTableRowAsData(
|
|
1883
|
-
const children =
|
|
1791
|
+
function handleTableRowAsData(node, state, info) {
|
|
1792
|
+
const children = node.children;
|
|
1884
1793
|
let index = -1;
|
|
1885
1794
|
const result = [];
|
|
1886
1795
|
const subexit = state.enter("tableRow");
|
|
1887
1796
|
while (++index < children.length) {
|
|
1888
|
-
result[index] = handleTableCell(children[index],
|
|
1797
|
+
result[index] = handleTableCell(children[index], node, state, info);
|
|
1889
1798
|
}
|
|
1890
1799
|
subexit();
|
|
1891
1800
|
return result;
|
|
1892
1801
|
}
|
|
1893
|
-
function inlineCodeWithTable(
|
|
1894
|
-
let value = handle.inlineCode(
|
|
1802
|
+
function inlineCodeWithTable(node, parent, state) {
|
|
1803
|
+
let value = handle.inlineCode(node, parent, state);
|
|
1895
1804
|
if (state.stack.includes("tableCell")) {
|
|
1896
1805
|
value = value.replace(/\|/g, "\\$&");
|
|
1897
1806
|
}
|
|
@@ -1914,16 +1823,16 @@ function gfmTaskListItemToMarkdown() {
|
|
|
1914
1823
|
};
|
|
1915
1824
|
}
|
|
1916
1825
|
function exitCheck(token) {
|
|
1917
|
-
const
|
|
1918
|
-
ok$1(
|
|
1919
|
-
|
|
1826
|
+
const node = this.stack[this.stack.length - 2];
|
|
1827
|
+
ok$1(node.type === "listItem");
|
|
1828
|
+
node.checked = token.type === "taskListCheckValueChecked";
|
|
1920
1829
|
}
|
|
1921
1830
|
function exitParagraphWithTaskListItem(token) {
|
|
1922
1831
|
const parent = this.stack[this.stack.length - 2];
|
|
1923
1832
|
if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
|
|
1924
|
-
const
|
|
1925
|
-
ok$1(
|
|
1926
|
-
const head =
|
|
1833
|
+
const node = this.stack[this.stack.length - 1];
|
|
1834
|
+
ok$1(node.type === "paragraph");
|
|
1835
|
+
const head = node.children[0];
|
|
1927
1836
|
if (head && head.type === "text") {
|
|
1928
1837
|
const siblings = parent.children;
|
|
1929
1838
|
let index = -1;
|
|
@@ -1935,29 +1844,29 @@ function exitParagraphWithTaskListItem(token) {
|
|
|
1935
1844
|
break;
|
|
1936
1845
|
}
|
|
1937
1846
|
}
|
|
1938
|
-
if (firstParaghraph ===
|
|
1847
|
+
if (firstParaghraph === node) {
|
|
1939
1848
|
head.value = head.value.slice(1);
|
|
1940
1849
|
if (head.value.length === 0) {
|
|
1941
|
-
|
|
1942
|
-
} else if (
|
|
1850
|
+
node.children.shift();
|
|
1851
|
+
} else if (node.position && head.position && typeof head.position.start.offset === "number") {
|
|
1943
1852
|
head.position.start.column++;
|
|
1944
1853
|
head.position.start.offset++;
|
|
1945
|
-
|
|
1854
|
+
node.position.start = Object.assign({}, head.position.start);
|
|
1946
1855
|
}
|
|
1947
1856
|
}
|
|
1948
1857
|
}
|
|
1949
1858
|
}
|
|
1950
1859
|
this.exit(token);
|
|
1951
1860
|
}
|
|
1952
|
-
function listItemWithTaskListItem(
|
|
1953
|
-
const head =
|
|
1954
|
-
const checkable = typeof
|
|
1955
|
-
const checkbox = "[" + (
|
|
1861
|
+
function listItemWithTaskListItem(node, parent, state, info) {
|
|
1862
|
+
const head = node.children[0];
|
|
1863
|
+
const checkable = typeof node.checked === "boolean" && head && head.type === "paragraph";
|
|
1864
|
+
const checkbox = "[" + (node.checked ? "x" : " ") + "] ";
|
|
1956
1865
|
const tracker = state.createTracker(info);
|
|
1957
1866
|
if (checkable) {
|
|
1958
1867
|
tracker.move(checkbox);
|
|
1959
1868
|
}
|
|
1960
|
-
let value = handle.listItem(
|
|
1869
|
+
let value = handle.listItem(node, parent, state, {
|
|
1961
1870
|
...info,
|
|
1962
1871
|
...tracker.current()
|
|
1963
1872
|
});
|
|
@@ -2016,18 +1925,18 @@ function splice(list2, start, remove, items) {
|
|
|
2016
1925
|
}
|
|
2017
1926
|
const hasOwnProperty = {}.hasOwnProperty;
|
|
2018
1927
|
function combineExtensions(extensions) {
|
|
2019
|
-
const
|
|
1928
|
+
const all = {};
|
|
2020
1929
|
let index = -1;
|
|
2021
1930
|
while (++index < extensions.length) {
|
|
2022
|
-
syntaxExtension(
|
|
1931
|
+
syntaxExtension(all, extensions[index]);
|
|
2023
1932
|
}
|
|
2024
|
-
return
|
|
1933
|
+
return all;
|
|
2025
1934
|
}
|
|
2026
|
-
function syntaxExtension(
|
|
1935
|
+
function syntaxExtension(all, extension) {
|
|
2027
1936
|
let hook;
|
|
2028
1937
|
for (hook in extension) {
|
|
2029
|
-
const maybe = hasOwnProperty.call(
|
|
2030
|
-
const left = maybe || (
|
|
1938
|
+
const maybe = hasOwnProperty.call(all, hook) ? all[hook] : void 0;
|
|
1939
|
+
const left = maybe || (all[hook] = {});
|
|
2031
1940
|
const right = extension[hook];
|
|
2032
1941
|
let code2;
|
|
2033
1942
|
if (right) {
|
|
@@ -3478,9 +3387,11 @@ var __component__$1 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
3478
3387
|
const NcRichTextCopyButton = __component__$1.exports;
|
|
3479
3388
|
function remarkPlaceholder() {
|
|
3480
3389
|
return function(ast) {
|
|
3481
|
-
|
|
3482
|
-
function visitor(
|
|
3483
|
-
const
|
|
3390
|
+
unistUtilVisitParents.visitParents(ast, (node) => node.type === "text", visitor);
|
|
3391
|
+
function visitor(node, ancestors) {
|
|
3392
|
+
const parent = ancestors.at(-1);
|
|
3393
|
+
const index = parent.children.indexOf(node);
|
|
3394
|
+
const placeholders = node.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
|
|
3484
3395
|
const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
|
|
3485
3396
|
if (!matches) {
|
|
3486
3397
|
return unistBuilder.u("text", entry);
|
|
@@ -3504,10 +3415,9 @@ function prepareTextNode({ h, context }, text2) {
|
|
|
3504
3415
|
return entry;
|
|
3505
3416
|
}
|
|
3506
3417
|
const { component, props } = entry;
|
|
3507
|
-
const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
|
|
3508
3418
|
return h(component, {
|
|
3509
3419
|
props,
|
|
3510
|
-
class:
|
|
3420
|
+
class: "rich-text--component"
|
|
3511
3421
|
});
|
|
3512
3422
|
});
|
|
3513
3423
|
}
|
|
@@ -3517,28 +3427,32 @@ function prepareTextNode({ h, context }, text2) {
|
|
|
3517
3427
|
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
3518
3428
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
3519
3429
|
*/
|
|
3520
|
-
function isCodeNode(
|
|
3521
|
-
return ["code", "inlineCode"].includes(
|
|
3430
|
+
function isCodeNode(node) {
|
|
3431
|
+
return ["code", "inlineCode"].includes(node.type);
|
|
3522
3432
|
}
|
|
3523
3433
|
const remarkStripCode = function() {
|
|
3524
3434
|
return function(tree) {
|
|
3525
|
-
|
|
3435
|
+
unistUtilVisitParents.visitParents(tree, isCodeNode, (node, ancestors) => {
|
|
3436
|
+
const parent = ancestors.at(-1);
|
|
3437
|
+
const index = parent.children.indexOf(node);
|
|
3526
3438
|
parent.children.splice(index, 1, {
|
|
3527
|
-
...
|
|
3439
|
+
...node,
|
|
3528
3440
|
value: ""
|
|
3529
3441
|
});
|
|
3530
|
-
return [
|
|
3442
|
+
return [unistUtilVisitParents.SKIP, index + 1];
|
|
3531
3443
|
});
|
|
3532
3444
|
};
|
|
3533
3445
|
};
|
|
3534
3446
|
function remarkUnescape() {
|
|
3535
3447
|
return function(tree) {
|
|
3536
|
-
|
|
3448
|
+
unistUtilVisitParents.visitParents(tree, (node) => ["text", "code", "inlineCode"].includes(node.type), (node, ancestors) => {
|
|
3449
|
+
const parent = ancestors.at(-1);
|
|
3450
|
+
const index = parent.children.indexOf(node);
|
|
3537
3451
|
parent.children.splice(index, 1, {
|
|
3538
|
-
...
|
|
3539
|
-
value:
|
|
3452
|
+
...node,
|
|
3453
|
+
value: node.value.replace(/</gmi, "<").replace(/>/gmi, ">")
|
|
3540
3454
|
});
|
|
3541
|
-
return [
|
|
3455
|
+
return [unistUtilVisitParents.SKIP, index + 1];
|
|
3542
3456
|
});
|
|
3543
3457
|
};
|
|
3544
3458
|
}
|
|
@@ -3655,8 +3569,8 @@ const _sfc_main = {
|
|
|
3655
3569
|
useExtendedMarkdown: this.useExtendedMarkdown
|
|
3656
3570
|
}).use(remarkUnescape).use(this.useExtendedMarkdown ? remarkGfm : void 0).use(breaks__default.default).use(remarkUnlinkProtocols__default.default, { except: LINK_PROTOCOLS }).use(remark2rehype__default.default, {
|
|
3657
3571
|
handlers: {
|
|
3658
|
-
component(toHast,
|
|
3659
|
-
return toHast(
|
|
3572
|
+
component(toHast, node) {
|
|
3573
|
+
return toHast(node, node.component, { value: node.value });
|
|
3660
3574
|
}
|
|
3661
3575
|
}
|
|
3662
3576
|
}).use(this.useExtendedMarkdown ? rehypeHighlight.value : void 0).use(remarkPlaceholder).use(rehypeExternalLinks__default.default, {
|
|
@@ -3719,6 +3633,15 @@ const _sfc_main = {
|
|
|
3719
3633
|
}
|
|
3720
3634
|
}, children);
|
|
3721
3635
|
}
|
|
3636
|
+
const isAllowedScheme = /^(https?:\/\/|tel:|mailto:)/.test(attrs.attrs.href);
|
|
3637
|
+
if (isAllowedScheme) {
|
|
3638
|
+
attrs.attrs.href = attrs.attrs.href.trim();
|
|
3639
|
+
return h(autolink.NcRichTextExternalLink, attrs, children);
|
|
3640
|
+
} else {
|
|
3641
|
+
delete attrs.attrs.href;
|
|
3642
|
+
delete attrs.attrs.target;
|
|
3643
|
+
return h("span", attrs, children);
|
|
3644
|
+
}
|
|
3722
3645
|
}
|
|
3723
3646
|
return h(tag, attrs, children);
|
|
3724
3647
|
}
|
|
@@ -3765,7 +3688,9 @@ const _sfc_main = {
|
|
|
3765
3688
|
if (!this.useMarkdown && !this.useExtendedMarkdown) {
|
|
3766
3689
|
return text2;
|
|
3767
3690
|
}
|
|
3768
|
-
|
|
3691
|
+
const processor = unified.unified();
|
|
3692
|
+
processor.compiler = (tree) => mdastUtilToString.toString(tree);
|
|
3693
|
+
return processor.use(remarkParse__default.default).use(remarkStripCode).processSync(text2).value;
|
|
3769
3694
|
}
|
|
3770
3695
|
},
|
|
3771
3696
|
render(h) {
|
|
@@ -3780,9 +3705,9 @@ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
|
|
|
3780
3705
|
_sfc_staticRenderFns,
|
|
3781
3706
|
false,
|
|
3782
3707
|
null,
|
|
3783
|
-
"
|
|
3708
|
+
"177dd7c0"
|
|
3784
3709
|
);
|
|
3785
3710
|
const NcRichText = __component__.exports;
|
|
3786
3711
|
exports.NcReferenceList = NcReferenceList;
|
|
3787
3712
|
exports.NcRichText = NcRichText;
|
|
3788
|
-
//# sourceMappingURL=NcRichText-
|
|
3713
|
+
//# sourceMappingURL=NcRichText-CiRdCF_B.cjs.map
|