@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.
Files changed (376) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/Components/NcActionButton.cjs +1 -1
  3. package/dist/Components/NcActionButton.mjs +1 -1
  4. package/dist/Components/NcActionButtonGroup.cjs +1 -1
  5. package/dist/Components/NcActionButtonGroup.mjs +1 -1
  6. package/dist/Components/NcActionInput.cjs +1 -1
  7. package/dist/Components/NcActionInput.mjs +1 -1
  8. package/dist/Components/NcActionLink.cjs +2 -2
  9. package/dist/Components/NcActionLink.cjs.map +1 -1
  10. package/dist/Components/NcActionLink.mjs +2 -2
  11. package/dist/Components/NcActionLink.mjs.map +1 -1
  12. package/dist/Components/NcActionTextEditable.cjs +1 -1
  13. package/dist/Components/NcActionTextEditable.mjs +1 -1
  14. package/dist/Components/NcActions.cjs +1 -1
  15. package/dist/Components/NcActions.mjs +1 -1
  16. package/dist/Components/NcAppContent.cjs +1 -1
  17. package/dist/Components/NcAppContent.mjs +1 -1
  18. package/dist/Components/NcAppNavigation.cjs +1 -1
  19. package/dist/Components/NcAppNavigation.mjs +1 -1
  20. package/dist/Components/NcAppNavigationCaption.cjs +1 -1
  21. package/dist/Components/NcAppNavigationCaption.mjs +1 -1
  22. package/dist/Components/NcAppNavigationItem.cjs +1 -1
  23. package/dist/Components/NcAppNavigationItem.mjs +1 -1
  24. package/dist/Components/NcAppNavigationNew.cjs +1 -1
  25. package/dist/Components/NcAppNavigationNew.mjs +1 -1
  26. package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
  27. package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
  28. package/dist/Components/NcAppNavigationSearch.cjs +1 -1
  29. package/dist/Components/NcAppNavigationSearch.mjs +1 -1
  30. package/dist/Components/NcAppNavigationSettings.cjs +1 -1
  31. package/dist/Components/NcAppNavigationSettings.mjs +1 -1
  32. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  33. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  34. package/dist/Components/NcAppSettingsDialog.cjs +1 -1
  35. package/dist/Components/NcAppSettingsDialog.mjs +1 -1
  36. package/dist/Components/NcAppSidebar.cjs +1 -1
  37. package/dist/Components/NcAppSidebar.mjs +1 -1
  38. package/dist/Components/NcAssistantButton.cjs +1 -1
  39. package/dist/Components/NcAssistantButton.mjs +1 -1
  40. package/dist/Components/NcAvatar.cjs +1 -1
  41. package/dist/Components/NcAvatar.mjs +1 -1
  42. package/dist/Components/NcBreadcrumb.cjs +1 -1
  43. package/dist/Components/NcBreadcrumb.mjs +1 -1
  44. package/dist/Components/NcBreadcrumbs.cjs +1 -1
  45. package/dist/Components/NcBreadcrumbs.mjs +1 -1
  46. package/dist/Components/NcButton.cjs +1 -1
  47. package/dist/Components/NcButton.mjs +1 -1
  48. package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
  49. package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
  50. package/dist/Components/NcChip.cjs +2 -2
  51. package/dist/Components/NcChip.mjs +2 -2
  52. package/dist/Components/NcCollectionList.cjs +1 -1
  53. package/dist/Components/NcCollectionList.mjs +1 -1
  54. package/dist/Components/NcColorPicker.cjs +1 -1
  55. package/dist/Components/NcColorPicker.mjs +1 -1
  56. package/dist/Components/NcContent.cjs +1 -1
  57. package/dist/Components/NcContent.mjs +1 -1
  58. package/dist/Components/NcDashboardWidget.cjs +1 -1
  59. package/dist/Components/NcDashboardWidget.mjs +1 -1
  60. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  61. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  62. package/dist/Components/NcDateTimePicker.cjs +3 -3
  63. package/dist/Components/NcDateTimePicker.mjs +3 -3
  64. package/dist/Components/NcDateTimePickerNative.cjs +1 -1
  65. package/dist/Components/NcDateTimePickerNative.mjs +1 -1
  66. package/dist/Components/NcDialog.cjs +1 -1
  67. package/dist/Components/NcDialog.mjs +1 -1
  68. package/dist/Components/NcDialogButton.cjs +1 -1
  69. package/dist/Components/NcDialogButton.mjs +1 -1
  70. package/dist/Components/NcEmojiPicker.cjs +1 -1
  71. package/dist/Components/NcEmojiPicker.mjs +1 -1
  72. package/dist/Components/NcFilePicker.cjs +1 -1
  73. package/dist/Components/NcFilePicker.mjs +1 -1
  74. package/dist/Components/NcHeaderButton.cjs +1 -1
  75. package/dist/Components/NcHeaderButton.mjs +1 -1
  76. package/dist/Components/NcHeaderMenu.cjs +1 -1
  77. package/dist/Components/NcHeaderMenu.mjs +1 -1
  78. package/dist/Components/NcInputField.cjs +1 -1
  79. package/dist/Components/NcInputField.mjs +1 -1
  80. package/dist/Components/NcListItem.cjs +1 -1
  81. package/dist/Components/NcListItem.mjs +1 -1
  82. package/dist/Components/NcListItemIcon.cjs +1 -1
  83. package/dist/Components/NcListItemIcon.mjs +1 -1
  84. package/dist/Components/NcModal.cjs +3 -3
  85. package/dist/Components/NcModal.mjs +3 -3
  86. package/dist/Components/NcPasswordField.cjs +1 -1
  87. package/dist/Components/NcPasswordField.mjs +1 -1
  88. package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
  89. package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
  90. package/dist/Components/NcRichContenteditable.cjs +2 -2
  91. package/dist/Components/NcRichContenteditable.mjs +2 -2
  92. package/dist/Components/NcRichText.cjs +2 -2
  93. package/dist/Components/NcRichText.mjs +3 -3
  94. package/dist/Components/NcSelect.cjs +1 -1
  95. package/dist/Components/NcSelect.mjs +1 -1
  96. package/dist/Components/NcSelectTags.cjs +1 -1
  97. package/dist/Components/NcSelectTags.mjs +1 -1
  98. package/dist/Components/NcSelectUsers.cjs +1 -1
  99. package/dist/Components/NcSelectUsers.mjs +1 -1
  100. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  101. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  102. package/dist/Components/NcTextField.cjs +1 -1
  103. package/dist/Components/NcTextField.mjs +1 -1
  104. package/dist/Components/NcTimezonePicker.cjs +1 -1
  105. package/dist/Components/NcTimezonePicker.mjs +1 -1
  106. package/dist/Components/NcUserBubble.cjs +1 -1
  107. package/dist/Components/NcUserBubble.mjs +1 -1
  108. package/dist/Functions/emoji.cjs +1 -1
  109. package/dist/Functions/emoji.mjs +1 -1
  110. package/dist/Functions/reference.cjs +1 -1
  111. package/dist/Functions/reference.mjs +1 -1
  112. package/dist/Mixins/richEditor.cjs +1 -1
  113. package/dist/Mixins/richEditor.mjs +1 -1
  114. package/dist/assets/{NcActionButton-CG4V9b5b.css → NcActionButton-CjKx3679.css} +18 -18
  115. package/dist/assets/{NcActionButtonGroup-CRXLyFpx.css → NcActionButtonGroup-DqR0weTf.css} +8 -8
  116. package/dist/assets/{NcActionInput-B-c5cOfM.css → NcActionInput-CPu4Btyq.css} +65 -65
  117. package/dist/assets/{NcActionLink-BtpJIbvI.css → NcActionLink-Bt-73iBm.css} +13 -13
  118. package/dist/assets/{NcActionTextEditable-BCmDMuUg.css → NcActionTextEditable-AuLw5QVP.css} +65 -65
  119. package/dist/assets/{NcActions-CVw1SmBu.css → NcActions-CuFJSslC.css} +11 -11
  120. package/dist/assets/{NcAppNavigation-Dbpqdigp.css → NcAppNavigation-mcR7I0Bd.css} +12 -12
  121. package/dist/assets/{NcAppSettingsDialog-N2RJYgHo.css → NcAppSettingsDialog-x8dImUGK.css} +11 -11
  122. package/dist/assets/{NcBreadcrumbs-DahxPGJY.css → NcBreadcrumbs-Dt1zdHzR.css} +6 -6
  123. package/dist/assets/{NcButton-8Y8d_1Z_.css → NcButton-C5JW43jM.css} +46 -46
  124. package/dist/assets/{NcCheckboxRadioSwitch-BACLOhMO.css → NcCheckboxRadioSwitch-BojbloxL.css} +38 -38
  125. package/dist/assets/{NcDateTimePicker-BzP7Sn12.css → NcDateTimePicker-DrfMaKM7.css} +8 -8
  126. package/dist/assets/{NcPasswordField-CiN_phAQ.css → NcPasswordField-vrT0oftw.css} +2 -2
  127. package/dist/assets/{NcRelatedResourcesPanel-BgMc8bue.css → NcRelatedResourcesPanel-CTpqdDL9.css} +3 -3
  128. package/dist/assets/{NcRichContenteditable-3tL9zHn2.css → NcRichContenteditable-DwS6PNCv.css} +11 -11
  129. package/dist/assets/{NcRichText-CAhzDSty.css → NcRichText-Cp_5tfBy.css} +91 -98
  130. package/dist/assets/autolink-KPdaBewQ.css +25 -0
  131. package/dist/chunks/{NcActionButton-C5Dqge0c.cjs → NcActionButton-CiYel4_C.cjs} +3 -3
  132. package/dist/chunks/NcActionButton-CiYel4_C.cjs.map +1 -0
  133. package/dist/chunks/{NcActionButton-1gSJfFUC.mjs → NcActionButton-K4jUGMlW.mjs} +3 -3
  134. package/dist/chunks/NcActionButton-K4jUGMlW.mjs.map +1 -0
  135. package/dist/chunks/{NcActionButtonGroup-eZxqibUd.mjs → NcActionButtonGroup-B95wg_Q6.mjs} +3 -3
  136. package/dist/chunks/NcActionButtonGroup-B95wg_Q6.mjs.map +1 -0
  137. package/dist/chunks/{NcActionButtonGroup-CpZDTAQo.cjs → NcActionButtonGroup-CFGCmzTM.cjs} +3 -3
  138. package/dist/chunks/NcActionButtonGroup-CFGCmzTM.cjs.map +1 -0
  139. package/dist/chunks/{NcActionInput-UPwE2Dky.mjs → NcActionInput-B_9GOTi6.mjs} +5 -5
  140. package/dist/chunks/NcActionInput-B_9GOTi6.mjs.map +1 -0
  141. package/dist/chunks/{NcActionInput-eAmBylEO.cjs → NcActionInput-D3w0eGfB.cjs} +5 -5
  142. package/dist/chunks/NcActionInput-D3w0eGfB.cjs.map +1 -0
  143. package/dist/chunks/{NcActionTextEditable-RFLtWxrl.cjs → NcActionTextEditable-BqJ5wONY.cjs} +3 -3
  144. package/dist/chunks/NcActionTextEditable-BqJ5wONY.cjs.map +1 -0
  145. package/dist/chunks/{NcActionTextEditable-CIsAP-pp.mjs → NcActionTextEditable-YqvZGY07.mjs} +3 -3
  146. package/dist/chunks/NcActionTextEditable-YqvZGY07.mjs.map +1 -0
  147. package/dist/chunks/{NcActions-BSDvtMJD.cjs → NcActions-0fAYsGbh.cjs} +4 -4
  148. package/dist/chunks/NcActions-0fAYsGbh.cjs.map +1 -0
  149. package/dist/chunks/{NcActions-BcLis_nr.mjs → NcActions-Ca_2vj8f.mjs} +4 -4
  150. package/dist/chunks/NcActions-Ca_2vj8f.mjs.map +1 -0
  151. package/dist/chunks/{NcAppContent-DLGtJosF.cjs → NcAppContent-B95Sj4-X.cjs} +2 -2
  152. package/dist/chunks/{NcAppContent-DLGtJosF.cjs.map → NcAppContent-B95Sj4-X.cjs.map} +1 -1
  153. package/dist/chunks/{NcAppContent-CeVqX0gV.mjs → NcAppContent-HZ-Lp090.mjs} +2 -2
  154. package/dist/chunks/{NcAppContent-CeVqX0gV.mjs.map → NcAppContent-HZ-Lp090.mjs.map} +1 -1
  155. package/dist/chunks/{NcAppNavigation-D2Ds_2Dm.cjs → NcAppNavigation-BDxzq-ai.cjs} +17 -7
  156. package/dist/chunks/NcAppNavigation-BDxzq-ai.cjs.map +1 -0
  157. package/dist/chunks/{NcAppNavigation-BfzJA6cb.mjs → NcAppNavigation-BPqJExo6.mjs} +17 -7
  158. package/dist/chunks/NcAppNavigation-BPqJExo6.mjs.map +1 -0
  159. package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs → NcAppNavigationCaption-Bt51pgle.mjs} +2 -2
  160. package/dist/chunks/{NcAppNavigationCaption-3YHrxAYS.mjs.map → NcAppNavigationCaption-Bt51pgle.mjs.map} +1 -1
  161. package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs → NcAppNavigationCaption-CQZ7ZrEO.cjs} +2 -2
  162. package/dist/chunks/{NcAppNavigationCaption-BDSDmQuu.cjs.map → NcAppNavigationCaption-CQZ7ZrEO.cjs.map} +1 -1
  163. package/dist/chunks/{NcAppNavigationItem-Dc5Vdhb1.cjs → NcAppNavigationItem-BBZ1SsqQ.cjs} +5 -5
  164. package/dist/chunks/{NcAppNavigationItem-Dc5Vdhb1.cjs.map → NcAppNavigationItem-BBZ1SsqQ.cjs.map} +1 -1
  165. package/dist/chunks/{NcAppNavigationItem-D30ztZfZ.mjs → NcAppNavigationItem-DcKt7SjF.mjs} +5 -5
  166. package/dist/chunks/{NcAppNavigationItem-D30ztZfZ.mjs.map → NcAppNavigationItem-DcKt7SjF.mjs.map} +1 -1
  167. package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs → NcAppNavigationNew-B5ikLvxM.mjs} +2 -2
  168. package/dist/chunks/{NcAppNavigationNew-Ce_TheyK.mjs.map → NcAppNavigationNew-B5ikLvxM.mjs.map} +1 -1
  169. package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs → NcAppNavigationNew-DljLy9CQ.cjs} +2 -2
  170. package/dist/chunks/{NcAppNavigationNew-D7FwWc52.cjs.map → NcAppNavigationNew-DljLy9CQ.cjs.map} +1 -1
  171. package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs → NcAppNavigationNewItem-BqhwbJsJ.mjs} +2 -2
  172. package/dist/chunks/{NcAppNavigationNewItem-BskLwwWH.mjs.map → NcAppNavigationNewItem-BqhwbJsJ.mjs.map} +1 -1
  173. package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs → NcAppNavigationNewItem-C6gqVpBt.cjs} +2 -2
  174. package/dist/chunks/{NcAppNavigationNewItem-Cjody3t9.cjs.map → NcAppNavigationNewItem-C6gqVpBt.cjs.map} +1 -1
  175. package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs → NcAppNavigationSearch-B6u1Ln1_.mjs} +2 -2
  176. package/dist/chunks/{NcAppNavigationSearch-CkcBGG0H.mjs.map → NcAppNavigationSearch-B6u1Ln1_.mjs.map} +1 -1
  177. package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs → NcAppNavigationSearch-CliHANzA.cjs} +2 -2
  178. package/dist/chunks/{NcAppNavigationSearch-CwO9XhWM.cjs.map → NcAppNavigationSearch-CliHANzA.cjs.map} +1 -1
  179. package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs → NcAppNavigationSettings-BfysBg80.mjs} +2 -2
  180. package/dist/chunks/{NcAppNavigationSettings-BjyBA5Mj.mjs.map → NcAppNavigationSettings-BfysBg80.mjs.map} +1 -1
  181. package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs → NcAppNavigationSettings-ClcR05vZ.cjs} +2 -2
  182. package/dist/chunks/{NcAppNavigationSettings-CrLS3Smo.cjs.map → NcAppNavigationSettings-ClcR05vZ.cjs.map} +1 -1
  183. package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs → NcAppNavigationToggle-CLPYPwyi.cjs} +2 -2
  184. package/dist/chunks/{NcAppNavigationToggle-DPjOENSf.cjs.map → NcAppNavigationToggle-CLPYPwyi.cjs.map} +1 -1
  185. package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs → NcAppNavigationToggle-DtJjJGQ5.mjs} +2 -2
  186. package/dist/chunks/{NcAppNavigationToggle-zzG9M53D.mjs.map → NcAppNavigationToggle-DtJjJGQ5.mjs.map} +1 -1
  187. package/dist/chunks/{NcAppSettingsDialog-Ckf6dRRJ.cjs → NcAppSettingsDialog-C2-LWcDG.cjs} +4 -4
  188. package/dist/chunks/{NcAppSettingsDialog-vBeCGFqk.mjs.map → NcAppSettingsDialog-C2-LWcDG.cjs.map} +1 -1
  189. package/dist/chunks/{NcAppSettingsDialog-vBeCGFqk.mjs → NcAppSettingsDialog-D0M18YFD.mjs} +4 -4
  190. package/dist/chunks/{NcAppSettingsDialog-Ckf6dRRJ.cjs.map → NcAppSettingsDialog-D0M18YFD.mjs.map} +1 -1
  191. package/dist/chunks/{NcAppSidebar-CPHVBBe0.cjs → NcAppSidebar-BYHXZjYR.cjs} +4 -4
  192. package/dist/chunks/{NcAppSidebar-CPHVBBe0.cjs.map → NcAppSidebar-BYHXZjYR.cjs.map} +1 -1
  193. package/dist/chunks/{NcAppSidebar-Cx0PlofZ.mjs → NcAppSidebar-Bljse39J.mjs} +4 -4
  194. package/dist/chunks/{NcAppSidebar-Cx0PlofZ.mjs.map → NcAppSidebar-Bljse39J.mjs.map} +1 -1
  195. package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs → NcAssistantButton-BdUkhzq1.mjs} +2 -2
  196. package/dist/chunks/{NcAssistantButton-D1Miejvu.mjs.map → NcAssistantButton-BdUkhzq1.mjs.map} +1 -1
  197. package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs → NcAssistantButton-mPenTfuv.cjs} +2 -2
  198. package/dist/chunks/{NcAssistantButton-Bl0F4iDe.cjs.map → NcAssistantButton-mPenTfuv.cjs.map} +1 -1
  199. package/dist/chunks/{NcAvatar-DC2fiCH-.mjs → NcAvatar-CGnqUtoy.mjs} +6 -6
  200. package/dist/chunks/{NcAvatar-DC2fiCH-.mjs.map → NcAvatar-CGnqUtoy.mjs.map} +1 -1
  201. package/dist/chunks/{NcAvatar-ffZLZnH_.cjs → NcAvatar-DP8TpFfy.cjs} +6 -6
  202. package/dist/chunks/{NcAvatar-ffZLZnH_.cjs.map → NcAvatar-DP8TpFfy.cjs.map} +1 -1
  203. package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs → NcBreadcrumb-DH2FV6QI.mjs} +3 -3
  204. package/dist/chunks/{NcBreadcrumb-VwnF27KB.mjs.map → NcBreadcrumb-DH2FV6QI.mjs.map} +1 -1
  205. package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs → NcBreadcrumb-hK0W8qx4.cjs} +3 -3
  206. package/dist/chunks/{NcBreadcrumb-AZMsaVbs.cjs.map → NcBreadcrumb-hK0W8qx4.cjs.map} +1 -1
  207. package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs → NcBreadcrumbs-DrYYSHAS.mjs} +7 -7
  208. package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs.map → NcBreadcrumbs-DrYYSHAS.mjs.map} +1 -1
  209. package/dist/chunks/{NcBreadcrumbs-CpU2Nbqu.cjs → NcBreadcrumbs-pDN1N49I.cjs} +7 -7
  210. package/dist/chunks/{NcBreadcrumbs-CpXJ-OQ1.mjs.map → NcBreadcrumbs-pDN1N49I.cjs.map} +1 -1
  211. package/dist/chunks/{NcButton-BaZAY-tN.mjs → NcButton-BgppWSl9.mjs} +12 -4
  212. package/dist/chunks/NcButton-BgppWSl9.mjs.map +1 -0
  213. package/dist/chunks/{NcButton-Dszi1Apb.cjs → NcButton-DaWD-X8V.cjs} +12 -4
  214. package/dist/chunks/NcButton-DaWD-X8V.cjs.map +1 -0
  215. package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs → NcCheckboxRadioSwitch-BQeglWXd.cjs} +8 -17
  216. package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs.map → NcCheckboxRadioSwitch-BQeglWXd.cjs.map} +1 -1
  217. package/dist/chunks/{NcCheckboxRadioSwitch-DJmw98x9.mjs → NcCheckboxRadioSwitch-D4IV4zWy.mjs} +8 -17
  218. package/dist/chunks/{NcCheckboxRadioSwitch-NOpZzkFR.cjs.map → NcCheckboxRadioSwitch-D4IV4zWy.mjs.map} +1 -1
  219. package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs → NcCollectionList-BbmBJ4ET.mjs} +6 -6
  220. package/dist/chunks/{NcCollectionList-U0EoWgeN.mjs.map → NcCollectionList-BbmBJ4ET.mjs.map} +1 -1
  221. package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs → NcCollectionList-DgLrYZ6o.cjs} +6 -6
  222. package/dist/chunks/{NcCollectionList-DUQPwfcY.cjs.map → NcCollectionList-DgLrYZ6o.cjs.map} +1 -1
  223. package/dist/chunks/{NcColorPicker-BfApfazi.mjs → NcColorPicker-Bzzw1uKu.mjs} +2 -2
  224. package/dist/chunks/{NcColorPicker-BfApfazi.mjs.map → NcColorPicker-Bzzw1uKu.mjs.map} +1 -1
  225. package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs → NcColorPicker-DNpKf7gx.cjs} +2 -2
  226. package/dist/chunks/{NcColorPicker-CpIQU_eH.cjs.map → NcColorPicker-DNpKf7gx.cjs.map} +1 -1
  227. package/dist/chunks/{NcContent-MiRvygrj.cjs → NcContent-CMjQ3dfw.cjs} +2 -2
  228. package/dist/chunks/{NcContent-MiRvygrj.cjs.map → NcContent-CMjQ3dfw.cjs.map} +1 -1
  229. package/dist/chunks/{NcContent-DFOsZ6pm.mjs → NcContent-DpGM2KRx.mjs} +2 -2
  230. package/dist/chunks/{NcContent-DFOsZ6pm.mjs.map → NcContent-DpGM2KRx.mjs.map} +1 -1
  231. package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs → NcDashboardWidget-DuoTxAyf.cjs} +3 -3
  232. package/dist/chunks/{NcDashboardWidget-BP9C-mPR.cjs.map → NcDashboardWidget-DuoTxAyf.cjs.map} +1 -1
  233. package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs → NcDashboardWidget-NOuL4APU.mjs} +3 -3
  234. package/dist/chunks/{NcDashboardWidget-Cp3DMHz7.mjs.map → NcDashboardWidget-NOuL4APU.mjs.map} +1 -1
  235. package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs → NcDashboardWidgetItem-BFsKgWo2.cjs} +4 -4
  236. package/dist/chunks/{NcDashboardWidgetItem-hwkr1yWB.cjs.map → NcDashboardWidgetItem-BFsKgWo2.cjs.map} +1 -1
  237. package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs → NcDashboardWidgetItem-CBW263ij.mjs} +4 -4
  238. package/dist/chunks/{NcDashboardWidgetItem-BCjppWNJ.mjs.map → NcDashboardWidgetItem-CBW263ij.mjs.map} +1 -1
  239. package/dist/chunks/{NcDialog-CDFWleNp.mjs → NcDialog-BCCBuI6f.mjs} +2 -2
  240. package/dist/chunks/{NcDialog-CDFWleNp.mjs.map → NcDialog-BCCBuI6f.mjs.map} +1 -1
  241. package/dist/chunks/{NcDialog-gV238gzy.cjs → NcDialog-x3G0Nuve.cjs} +2 -2
  242. package/dist/chunks/{NcDialog-gV238gzy.cjs.map → NcDialog-x3G0Nuve.cjs.map} +1 -1
  243. package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs → NcDialogButton-DBtmgcol.cjs} +2 -2
  244. package/dist/chunks/{NcDialogButton-BDYsOgo1.cjs.map → NcDialogButton-DBtmgcol.cjs.map} +1 -1
  245. package/dist/chunks/{NcDialogButton-tB5RGMME.mjs → NcDialogButton-DpA4mqr-.mjs} +2 -2
  246. package/dist/chunks/{NcDialogButton-tB5RGMME.mjs.map → NcDialogButton-DpA4mqr-.mjs.map} +1 -1
  247. package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs → NcEmojiPicker-C4jCrwQY.mjs} +5 -5
  248. package/dist/chunks/{NcEmojiPicker-Cw593Jp6.mjs.map → NcEmojiPicker-C4jCrwQY.mjs.map} +1 -1
  249. package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs → NcEmojiPicker-DefnK492.cjs} +5 -5
  250. package/dist/chunks/{NcEmojiPicker-CRRgA7eR.cjs.map → NcEmojiPicker-DefnK492.cjs.map} +1 -1
  251. package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs → NcFilePicker-BYWr-vcP.cjs} +3 -3
  252. package/dist/chunks/{NcFilePicker-Ct_uwON0.cjs.map → NcFilePicker-BYWr-vcP.cjs.map} +1 -1
  253. package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs → NcFilePicker-DCPi6JGg.mjs} +3 -3
  254. package/dist/chunks/{NcFilePicker-CDHKrfPj.mjs.map → NcFilePicker-DCPi6JGg.mjs.map} +1 -1
  255. package/dist/chunks/NcFormBox-DRGVpFeZ.cjs.map +1 -1
  256. package/dist/chunks/NcFormBox-DtoCXLMx.mjs.map +1 -1
  257. package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs → NcHeaderButton-DXdY8gct.mjs} +2 -2
  258. package/dist/chunks/{NcHeaderButton-BI15lyn_.mjs.map → NcHeaderButton-DXdY8gct.mjs.map} +1 -1
  259. package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs → NcHeaderButton-iEtQ74pa.cjs} +2 -2
  260. package/dist/chunks/{NcHeaderButton-KtkQRinp.cjs.map → NcHeaderButton-iEtQ74pa.cjs.map} +1 -1
  261. package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs → NcHeaderMenu-BZnnbLTo.mjs} +2 -2
  262. package/dist/chunks/{NcHeaderMenu-B2gYavD4.mjs.map → NcHeaderMenu-BZnnbLTo.mjs.map} +1 -1
  263. package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs → NcHeaderMenu-efsSG80P.cjs} +2 -2
  264. package/dist/chunks/{NcHeaderMenu-Bl4_eT2K.cjs.map → NcHeaderMenu-efsSG80P.cjs.map} +1 -1
  265. package/dist/chunks/{NcInputConfirmCancel-Ckda9G9Z.cjs → NcInputConfirmCancel-CTvNhtqM.cjs} +2 -2
  266. package/dist/chunks/{NcInputConfirmCancel-Ckda9G9Z.cjs.map → NcInputConfirmCancel-CTvNhtqM.cjs.map} +1 -1
  267. package/dist/chunks/{NcInputConfirmCancel-BvYpvopv.mjs → NcInputConfirmCancel-LAJSyhOn.mjs} +2 -2
  268. package/dist/chunks/{NcInputConfirmCancel-BvYpvopv.mjs.map → NcInputConfirmCancel-LAJSyhOn.mjs.map} +1 -1
  269. package/dist/chunks/{NcInputField-DDgBZ427.cjs → NcInputField-DX2Jz57P.cjs} +2 -2
  270. package/dist/chunks/{NcInputField-DDgBZ427.cjs.map → NcInputField-DX2Jz57P.cjs.map} +1 -1
  271. package/dist/chunks/{NcInputField-Cfm1bJR4.mjs → NcInputField-j5EyU7QH.mjs} +2 -2
  272. package/dist/chunks/{NcInputField-Cfm1bJR4.mjs.map → NcInputField-j5EyU7QH.mjs.map} +1 -1
  273. package/dist/chunks/{NcListItem-BLbG7272.cjs → NcListItem-C14yh4-n.cjs} +2 -2
  274. package/dist/chunks/{NcListItem-BLbG7272.cjs.map → NcListItem-C14yh4-n.cjs.map} +1 -1
  275. package/dist/chunks/{NcListItem-RKTfRg06.mjs → NcListItem-D0JDzXkL.mjs} +2 -2
  276. package/dist/chunks/{NcListItem-RKTfRg06.mjs.map → NcListItem-D0JDzXkL.mjs.map} +1 -1
  277. package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs → NcListItemIcon-BccR3hro.cjs} +2 -2
  278. package/dist/chunks/{NcListItemIcon-CQzyGLEI.cjs.map → NcListItemIcon-BccR3hro.cjs.map} +1 -1
  279. package/dist/chunks/{NcListItemIcon-D49wESTI.mjs → NcListItemIcon-D35XZDGI.mjs} +2 -2
  280. package/dist/chunks/{NcListItemIcon-D49wESTI.mjs.map → NcListItemIcon-D35XZDGI.mjs.map} +1 -1
  281. package/dist/chunks/{NcPasswordField-DNuolayr.cjs → NcPasswordField-BkY96Kt0.cjs} +7 -8
  282. package/dist/chunks/NcPasswordField-BkY96Kt0.cjs.map +1 -0
  283. package/dist/chunks/{NcPasswordField-lE4m20vf.mjs → NcPasswordField-HQK5d_nv.mjs} +7 -8
  284. package/dist/chunks/NcPasswordField-HQK5d_nv.mjs.map +1 -0
  285. package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs → NcRelatedResourcesPanel-BdmY-Mly.mjs} +7 -7
  286. package/dist/chunks/{NcRelatedResourcesPanel-C2sLodV8.mjs.map → NcRelatedResourcesPanel-BdmY-Mly.mjs.map} +1 -1
  287. package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs → NcRelatedResourcesPanel-BmpOFhV1.cjs} +7 -7
  288. package/dist/chunks/{NcRelatedResourcesPanel-Dge9WXUM.cjs.map → NcRelatedResourcesPanel-BmpOFhV1.cjs.map} +1 -1
  289. package/dist/chunks/{NcRichContenteditable-SA1zbfkk.mjs → NcRichContenteditable-BcTSkyeW.mjs} +19 -17
  290. package/dist/chunks/NcRichContenteditable-BcTSkyeW.mjs.map +1 -0
  291. package/dist/chunks/{NcRichContenteditable-Bh-mMIQz.cjs → NcRichContenteditable-QnLNsBkB.cjs} +19 -17
  292. package/dist/chunks/NcRichContenteditable-QnLNsBkB.cjs.map +1 -0
  293. package/dist/chunks/{NcRichText-B1Fyj7k8.cjs → NcRichText-CiRdCF_B.cjs} +230 -305
  294. package/dist/chunks/NcRichText-CiRdCF_B.cjs.map +1 -0
  295. package/dist/chunks/{NcRichText-rNfwY_Oc.mjs → NcRichText-DZgAb6-3.mjs} +229 -303
  296. package/dist/chunks/NcRichText-DZgAb6-3.mjs.map +1 -0
  297. package/dist/chunks/{NcSelect-1P3nA044.cjs → NcSelect-DVXAVRT_.cjs} +2 -2
  298. package/dist/chunks/{NcSelect-1P3nA044.cjs.map → NcSelect-DVXAVRT_.cjs.map} +1 -1
  299. package/dist/chunks/{NcSelect-CbWXsDdZ.mjs → NcSelect-FwcxH76q.mjs} +2 -2
  300. package/dist/chunks/{NcSelect-CbWXsDdZ.mjs.map → NcSelect-FwcxH76q.mjs.map} +1 -1
  301. package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs → NcSelectTags-BNFcTbHy.cjs} +2 -2
  302. package/dist/chunks/{NcSelectTags-D0fZXXmB.cjs.map → NcSelectTags-BNFcTbHy.cjs.map} +1 -1
  303. package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs → NcSelectTags-yZfa_z_z.mjs} +2 -2
  304. package/dist/chunks/{NcSelectTags-CqVn5iU9.mjs.map → NcSelectTags-yZfa_z_z.mjs.map} +1 -1
  305. package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs → NcSelectUsers-5r-vvEVy.mjs} +3 -3
  306. package/dist/chunks/{NcSelectUsers-DGnn4yBW.mjs.map → NcSelectUsers-5r-vvEVy.mjs.map} +1 -1
  307. package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs → NcSelectUsers-fp6nf6ic.cjs} +3 -3
  308. package/dist/chunks/{NcSelectUsers-BuehmXvD.cjs.map → NcSelectUsers-fp6nf6ic.cjs.map} +1 -1
  309. package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs → NcSettingsSelectGroup-CUM0vkbN.mjs} +2 -2
  310. package/dist/chunks/{NcSettingsSelectGroup-BaSHNm1x.mjs.map → NcSettingsSelectGroup-CUM0vkbN.mjs.map} +1 -1
  311. package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs → NcSettingsSelectGroup-D5EWVZ7k.cjs} +2 -2
  312. package/dist/chunks/{NcSettingsSelectGroup-CUQtMkR1.cjs.map → NcSettingsSelectGroup-D5EWVZ7k.cjs.map} +1 -1
  313. package/dist/chunks/{NcTextField-CkW-dl88.cjs → NcTextField-B2tcddKo.cjs} +2 -2
  314. package/dist/chunks/{NcTextField-CkW-dl88.cjs.map → NcTextField-B2tcddKo.cjs.map} +1 -1
  315. package/dist/chunks/{NcTextField-DZHP0Dfw.mjs → NcTextField-ByDOTNvC.mjs} +2 -2
  316. package/dist/chunks/{NcTextField-DZHP0Dfw.mjs.map → NcTextField-ByDOTNvC.mjs.map} +1 -1
  317. package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs → NcTimezonePicker-CeQXCjIR.cjs} +2 -2
  318. package/dist/chunks/{NcTimezonePicker-CI4FEzzK.cjs.map → NcTimezonePicker-CeQXCjIR.cjs.map} +1 -1
  319. package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs → NcTimezonePicker-Cok_NaVd.mjs} +2 -2
  320. package/dist/chunks/{NcTimezonePicker-w7XtRhLb.mjs.map → NcTimezonePicker-Cok_NaVd.mjs.map} +1 -1
  321. package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs → NcUserBubble-CIcwErdM.cjs} +2 -2
  322. package/dist/chunks/{NcUserBubble-DTcWIk4G.cjs.map → NcUserBubble-CIcwErdM.cjs.map} +1 -1
  323. package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs → NcUserBubble-Csw7PXyG.mjs} +2 -2
  324. package/dist/chunks/{NcUserBubble-CIOqCO9S.mjs.map → NcUserBubble-Csw7PXyG.mjs.map} +1 -1
  325. package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs → ScopeComponent-B6luC3XR.mjs} +2 -2
  326. package/dist/chunks/{ScopeComponent-DvT_N_X8.mjs.map → ScopeComponent-B6luC3XR.mjs.map} +1 -1
  327. package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs → ScopeComponent-Co-1SOFK.cjs} +2 -2
  328. package/dist/chunks/{ScopeComponent-CjjPkFe1.cjs.map → ScopeComponent-Co-1SOFK.cjs.map} +1 -1
  329. package/dist/chunks/{autolink-D2pIbi92.mjs → autolink-CeB9uxD9.mjs} +56 -21
  330. package/dist/chunks/autolink-CeB9uxD9.mjs.map +1 -0
  331. package/dist/chunks/{autolink-BPlRHRHR.cjs → autolink-VQMuzjxl.cjs} +57 -22
  332. package/dist/chunks/autolink-VQMuzjxl.cjs.map +1 -0
  333. package/dist/chunks/{emoji-BgZdRy3v.mjs → emoji-Dtn2mDf7.mjs} +2 -2
  334. package/dist/chunks/emoji-Dtn2mDf7.mjs.map +1 -0
  335. package/dist/chunks/{emoji-CEwczMT5.cjs → emoji-aWWWqkrJ.cjs} +2 -2
  336. package/dist/chunks/emoji-aWWWqkrJ.cjs.map +1 -0
  337. package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs → getAvatarUrl-4HsuXa3l.cjs} +2 -2
  338. package/dist/chunks/{getAvatarUrl-Du9Y3cPO.cjs.map → getAvatarUrl-4HsuXa3l.cjs.map} +1 -1
  339. package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs → getAvatarUrl-BGOeDmNO.mjs} +2 -2
  340. package/dist/chunks/{getAvatarUrl-IhLacDEr.mjs.map → getAvatarUrl-BGOeDmNO.mjs.map} +1 -1
  341. package/dist/chunks/{index-TmAR7I2T.mjs → index-BCqXu_og.mjs} +2 -2
  342. package/dist/chunks/{index-TmAR7I2T.mjs.map → index-BCqXu_og.mjs.map} +1 -1
  343. package/dist/chunks/{index-CgkN1xho.cjs → index-phHwkniW.cjs} +2 -2
  344. package/dist/chunks/{index-CgkN1xho.cjs.map → index-phHwkniW.cjs.map} +1 -1
  345. package/dist/chunks/{referencePickerModal-hGj81_Th.cjs → referencePickerModal-BOCqzVJk.cjs} +6 -6
  346. package/dist/chunks/{referencePickerModal-hGj81_Th.cjs.map → referencePickerModal-BOCqzVJk.cjs.map} +1 -1
  347. package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs → referencePickerModal-BQExd0w6.mjs} +6 -6
  348. package/dist/chunks/{referencePickerModal-DD_GM6xV.mjs.map → referencePickerModal-BQExd0w6.mjs.map} +1 -1
  349. package/dist/index.cjs +50 -50
  350. package/dist/index.mjs +52 -52
  351. package/dist/vendor.LICENSE.txt +2 -6
  352. package/package.json +14 -14
  353. package/dist/chunks/NcActionButton-1gSJfFUC.mjs.map +0 -1
  354. package/dist/chunks/NcActionButton-C5Dqge0c.cjs.map +0 -1
  355. package/dist/chunks/NcActionButtonGroup-CpZDTAQo.cjs.map +0 -1
  356. package/dist/chunks/NcActionButtonGroup-eZxqibUd.mjs.map +0 -1
  357. package/dist/chunks/NcActionInput-UPwE2Dky.mjs.map +0 -1
  358. package/dist/chunks/NcActionInput-eAmBylEO.cjs.map +0 -1
  359. package/dist/chunks/NcActionTextEditable-CIsAP-pp.mjs.map +0 -1
  360. package/dist/chunks/NcActionTextEditable-RFLtWxrl.cjs.map +0 -1
  361. package/dist/chunks/NcActions-BSDvtMJD.cjs.map +0 -1
  362. package/dist/chunks/NcActions-BcLis_nr.mjs.map +0 -1
  363. package/dist/chunks/NcAppNavigation-BfzJA6cb.mjs.map +0 -1
  364. package/dist/chunks/NcAppNavigation-D2Ds_2Dm.cjs.map +0 -1
  365. package/dist/chunks/NcButton-BaZAY-tN.mjs.map +0 -1
  366. package/dist/chunks/NcButton-Dszi1Apb.cjs.map +0 -1
  367. package/dist/chunks/NcPasswordField-DNuolayr.cjs.map +0 -1
  368. package/dist/chunks/NcPasswordField-lE4m20vf.mjs.map +0 -1
  369. package/dist/chunks/NcRichContenteditable-Bh-mMIQz.cjs.map +0 -1
  370. package/dist/chunks/NcRichContenteditable-SA1zbfkk.mjs.map +0 -1
  371. package/dist/chunks/NcRichText-B1Fyj7k8.cjs.map +0 -1
  372. package/dist/chunks/NcRichText-rNfwY_Oc.mjs.map +0 -1
  373. package/dist/chunks/autolink-BPlRHRHR.cjs.map +0 -1
  374. package/dist/chunks/autolink-D2pIbi92.mjs.map +0 -1
  375. package/dist/chunks/emoji-BgZdRy3v.mjs.map +0 -1
  376. package/dist/chunks/emoji-CEwczMT5.cjs.map +0 -1
@@ -1,29 +1,29 @@
1
- import '../assets/NcRichText-CAhzDSty.css';
1
+ import '../assets/NcRichText-Cp_5tfBy.css';
2
+ import { toString } from "mdast-util-to-string";
2
3
  import rehypeExternalLinks from "rehype-external-links";
3
4
  import rehype2react from "rehype-react";
4
5
  import breaks from "remark-breaks";
5
6
  import remarkParse from "remark-parse";
6
7
  import remark2rehype from "remark-rehype";
7
- import remarkStringify from "remark-stringify";
8
8
  import remarkUnlinkProtocols from "remark-unlink-protocols";
9
9
  import { unified } from "unified";
10
10
  import { defineComponent, ref } from "vue";
11
11
  import { RouterLink } from "vue-router";
12
- import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-DJmw98x9.mjs";
12
+ import { N as NcCheckboxRadioSwitch } from "./NcCheckboxRadioSwitch-D4IV4zWy.mjs";
13
13
  import { getCurrentUser } from "@nextcloud/auth";
14
14
  import axios from "@nextcloud/axios";
15
15
  import { generateOcsUrl } from "@nextcloud/router";
16
16
  import { getSharingToken } from "@nextcloud/sharing/public";
17
- import { f as NcReferenceWidget } from "./referencePickerModal-DD_GM6xV.mjs";
17
+ import { f as NcReferenceWidget } from "./referencePickerModal-BQExd0w6.mjs";
18
18
  import { l as logger } from "./logger-D3RVzcfQ.mjs";
19
- import { U as URL_PATTERN, p as parseUrl, r as remarkAutolink, g as getRoute } from "./autolink-D2pIbi92.mjs";
19
+ import { U as URL_PATTERN, p as parseUrl, r as remarkAutolink, g as getRoute, N as NcRichTextExternalLink } from "./autolink-CeB9uxD9.mjs";
20
20
  import { n as normalizeComponent } from "./_plugin-vue2_normalizer-DU4iP6Vu.mjs";
21
- import { N as NcButton } from "./NcButton-BaZAY-tN.mjs";
21
+ import { N as NcButton } from "./NcButton-BgppWSl9.mjs";
22
22
  import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-Bui9PhAS.mjs";
23
23
  import { u as useCopy } from "./useCopy-DDDe5RYH.mjs";
24
24
  import { G as GenRandomId } from "./GenRandomId-F5ebeBB_.mjs";
25
25
  import { u } from "unist-builder";
26
- import { visit, EXIT as EXIT$1, SKIP as SKIP$1 } from "unist-util-visit";
26
+ import { visitParents, EXIT, SKIP } from "unist-util-visit-parents";
27
27
  const _sfc_main$2 = {
28
28
  name: "NcReferenceList",
29
29
  components: {
@@ -256,12 +256,12 @@ function propsFactory(check) {
256
256
  /** @type {Record<string, unknown>} */
257
257
  check
258
258
  );
259
- return castFactory(all2);
260
- function all2(node2) {
259
+ return castFactory(all);
260
+ function all(node) {
261
261
  const nodeAsRecord = (
262
262
  /** @type {Record<string, unknown>} */
263
263
  /** @type {unknown} */
264
- node2
264
+ node
265
265
  );
266
266
  let key;
267
267
  for (key in check) {
@@ -272,8 +272,8 @@ function propsFactory(check) {
272
272
  }
273
273
  function typeFactory(check) {
274
274
  return castFactory(type);
275
- function type(node2) {
276
- return node2 && node2.type === check;
275
+ function type(node) {
276
+ return node && node.type === check;
277
277
  }
278
278
  }
279
279
  function castFactory(testFunction) {
@@ -295,81 +295,6 @@ function ok() {
295
295
  function looksLikeANode(value) {
296
296
  return value !== null && typeof value === "object" && "type" in value;
297
297
  }
298
- function color(d) {
299
- return d;
300
- }
301
- const empty = [];
302
- const CONTINUE = true;
303
- const EXIT = false;
304
- const SKIP = "skip";
305
- function visitParents(tree, test, visitor, reverse) {
306
- let check;
307
- {
308
- check = test;
309
- }
310
- const is = convert(check);
311
- const step = 1;
312
- factory(tree, void 0, [])();
313
- function factory(node2, index, parents) {
314
- const value = (
315
- /** @type {Record<string, unknown>} */
316
- node2 && typeof node2 === "object" ? node2 : {}
317
- );
318
- if (typeof value.type === "string") {
319
- const name = (
320
- // `hast`
321
- typeof value.tagName === "string" ? value.tagName : (
322
- // `xast`
323
- typeof value.name === "string" ? value.name : void 0
324
- )
325
- );
326
- Object.defineProperty(visit2, "name", {
327
- value: "node (" + color(node2.type + (name ? "<" + name + ">" : "")) + ")"
328
- });
329
- }
330
- return visit2;
331
- function visit2() {
332
- let result = empty;
333
- let subresult;
334
- let offset;
335
- let grandparents;
336
- if (is(node2, index, parents[parents.length - 1] || void 0)) {
337
- result = toResult(visitor(node2, parents));
338
- if (result[0] === EXIT) {
339
- return result;
340
- }
341
- }
342
- if ("children" in node2 && node2.children) {
343
- const nodeAsParent = (
344
- /** @type {UnistParent} */
345
- node2
346
- );
347
- if (nodeAsParent.children && result[0] !== SKIP) {
348
- offset = -1 + step;
349
- grandparents = parents.concat(nodeAsParent);
350
- while (offset > -1 && offset < nodeAsParent.children.length) {
351
- const child = nodeAsParent.children[offset];
352
- subresult = factory(child, offset, grandparents)();
353
- if (subresult[0] === EXIT) {
354
- return subresult;
355
- }
356
- offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
357
- }
358
- }
359
- }
360
- return result;
361
- }
362
- }
363
- }
364
- function toResult(value) {
365
- if (Array.isArray(value)) {
366
- return value;
367
- }
368
- if (typeof value === "number") {
369
- return [CONTINUE, value];
370
- }
371
- return value === null || value === void 0 ? empty : [value];
372
- }
373
298
  function findAndReplace(tree, list2, options) {
374
299
  const settings = options || {};
375
300
  const ignored = convert(settings.ignore || []);
@@ -378,7 +303,7 @@ function findAndReplace(tree, list2, options) {
378
303
  while (++pairIndex < pairs.length) {
379
304
  visitParents(tree, "text", visitor);
380
305
  }
381
- function visitor(node2, parents) {
306
+ function visitor(node, parents) {
382
307
  let index = -1;
383
308
  let grandparent;
384
309
  while (++index < parents.length) {
@@ -394,26 +319,26 @@ function findAndReplace(tree, list2, options) {
394
319
  grandparent = parent;
395
320
  }
396
321
  if (grandparent) {
397
- return handler(node2, parents);
322
+ return handler(node, parents);
398
323
  }
399
324
  }
400
- function handler(node2, parents) {
325
+ function handler(node, parents) {
401
326
  const parent = parents[parents.length - 1];
402
327
  const find = pairs[pairIndex][0];
403
328
  const replace2 = pairs[pairIndex][1];
404
329
  let start = 0;
405
330
  const siblings = parent.children;
406
- const index = siblings.indexOf(node2);
331
+ const index = siblings.indexOf(node);
407
332
  let change = false;
408
333
  let nodes = [];
409
334
  find.lastIndex = 0;
410
- let match = find.exec(node2.value);
335
+ let match = find.exec(node.value);
411
336
  while (match) {
412
337
  const position = match.index;
413
338
  const matchObject = {
414
339
  index: match.index,
415
340
  input: match.input,
416
- stack: [...parents, node2]
341
+ stack: [...parents, node]
417
342
  };
418
343
  let value = replace2(...match, matchObject);
419
344
  if (typeof value === "string") {
@@ -425,7 +350,7 @@ function findAndReplace(tree, list2, options) {
425
350
  if (start !== position) {
426
351
  nodes.push({
427
352
  type: "text",
428
- value: node2.value.slice(start, position)
353
+ value: node.value.slice(start, position)
429
354
  });
430
355
  }
431
356
  if (Array.isArray(value)) {
@@ -439,15 +364,15 @@ function findAndReplace(tree, list2, options) {
439
364
  if (!find.global) {
440
365
  break;
441
366
  }
442
- match = find.exec(node2.value);
367
+ match = find.exec(node.value);
443
368
  }
444
369
  if (change) {
445
- if (start < node2.value.length) {
446
- nodes.push({ type: "text", value: node2.value.slice(start) });
370
+ if (start < node.value.length) {
371
+ nodes.push({ type: "text", value: node.value.slice(start) });
447
372
  }
448
373
  parent.children.splice(index, 1, ...nodes);
449
374
  } else {
450
- nodes = [node2];
375
+ nodes = [node];
451
376
  }
452
377
  return index + nodes.length;
453
378
  }
@@ -530,9 +455,9 @@ function exitLiteralAutolinkHttp(token) {
530
455
  }
531
456
  function exitLiteralAutolinkWww(token) {
532
457
  this.config.exit.data.call(this, token);
533
- const node2 = this.stack[this.stack.length - 1];
534
- ok$1(node2.type === "link");
535
- node2.url = "http://" + this.sliceSerialize(token);
458
+ const node = this.stack[this.stack.length - 1];
459
+ ok$1(node.type === "link");
460
+ node.url = "http://" + this.sliceSerialize(token);
536
461
  }
537
462
  function exitLiteralAutolinkEmail(token) {
538
463
  this.config.exit.autolinkEmail.call(this, token);
@@ -658,10 +583,10 @@ function enterFootnoteDefinitionLabelString() {
658
583
  }
659
584
  function exitFootnoteDefinitionLabelString(token) {
660
585
  const label = this.resume();
661
- const node2 = this.stack[this.stack.length - 1];
662
- ok$1(node2.type === "footnoteDefinition");
663
- node2.label = label;
664
- node2.identifier = normalizeIdentifier(
586
+ const node = this.stack[this.stack.length - 1];
587
+ ok$1(node.type === "footnoteDefinition");
588
+ node.label = label;
589
+ node.identifier = normalizeIdentifier(
665
590
  this.sliceSerialize(token)
666
591
  ).toLowerCase();
667
592
  }
@@ -676,23 +601,23 @@ function enterFootnoteCallString() {
676
601
  }
677
602
  function exitFootnoteCallString(token) {
678
603
  const label = this.resume();
679
- const node2 = this.stack[this.stack.length - 1];
680
- ok$1(node2.type === "footnoteReference");
681
- node2.label = label;
682
- node2.identifier = normalizeIdentifier(
604
+ const node = this.stack[this.stack.length - 1];
605
+ ok$1(node.type === "footnoteReference");
606
+ node.label = label;
607
+ node.identifier = normalizeIdentifier(
683
608
  this.sliceSerialize(token)
684
609
  ).toLowerCase();
685
610
  }
686
611
  function exitFootnoteCall(token) {
687
612
  this.exit(token);
688
613
  }
689
- function footnoteReference(node2, _, state, info) {
614
+ function footnoteReference(node, _, state, info) {
690
615
  const tracker = state.createTracker(info);
691
616
  let value = tracker.move("[^");
692
617
  const exit2 = state.enter("footnoteReference");
693
618
  const subexit = state.enter("reference");
694
619
  value += tracker.move(
695
- state.safe(state.associationId(node2), {
620
+ state.safe(state.associationId(node), {
696
621
  ...tracker.current(),
697
622
  before: value,
698
623
  after: "]"
@@ -706,13 +631,13 @@ function footnoteReference(node2, _, state, info) {
706
631
  function footnoteReferencePeek() {
707
632
  return "[";
708
633
  }
709
- function footnoteDefinition(node2, _, state, info) {
634
+ function footnoteDefinition(node, _, state, info) {
710
635
  const tracker = state.createTracker(info);
711
636
  let value = tracker.move("[^");
712
637
  const exit2 = state.enter("footnoteDefinition");
713
638
  const subexit = state.enter("label");
714
639
  value += tracker.move(
715
- state.safe(state.associationId(node2), {
640
+ state.safe(state.associationId(node), {
716
641
  ...tracker.current(),
717
642
  before: value,
718
643
  after: "]"
@@ -720,11 +645,11 @@ function footnoteDefinition(node2, _, state, info) {
720
645
  );
721
646
  subexit();
722
647
  value += tracker.move(
723
- "]:" + (node2.children && node2.children.length > 0 ? " " : "")
648
+ "]:" + (node.children && node.children.length > 0 ? " " : "")
724
649
  );
725
650
  tracker.shift(4);
726
651
  value += tracker.move(
727
- state.indentLines(state.containerFlow(node2, tracker.current()), map$2)
652
+ state.indentLines(state.containerFlow(node, tracker.current()), map$2)
728
653
  );
729
654
  exit2();
730
655
  return value;
@@ -769,11 +694,11 @@ function enterStrikethrough(token) {
769
694
  function exitStrikethrough(token) {
770
695
  this.exit(token);
771
696
  }
772
- function handleDelete(node2, _, state, info) {
697
+ function handleDelete(node, _, state, info) {
773
698
  const tracker = state.createTracker(info);
774
699
  const exit2 = state.enter("strikethrough");
775
700
  let value = tracker.move("~~");
776
- value += state.containerPhrasing(node2, {
701
+ value += state.containerPhrasing(node, {
777
702
  ...tracker.current(),
778
703
  before: value,
779
704
  after: "~"
@@ -923,13 +848,13 @@ function toAlignment(value) {
923
848
  const code2 = typeof value === "string" ? value.codePointAt(0) : 0;
924
849
  return code2 === 67 || code2 === 99 ? 99 : code2 === 76 || code2 === 108 ? 108 : code2 === 82 || code2 === 114 ? 114 : 0;
925
850
  }
926
- function blockquote(node2, _, state, info) {
851
+ function blockquote(node, _, state, info) {
927
852
  const exit2 = state.enter("blockquote");
928
853
  const tracker = state.createTracker(info);
929
854
  tracker.move("> ");
930
855
  tracker.shift(2);
931
856
  const value = state.indentLines(
932
- state.containerFlow(node2, tracker.current()),
857
+ state.containerFlow(node, tracker.current()),
933
858
  map$1
934
859
  );
935
860
  exit2();
@@ -987,12 +912,12 @@ function longestStreak(value, substring) {
987
912
  }
988
913
  return max;
989
914
  }
990
- function formatCodeAsIndented(node2, state) {
915
+ function formatCodeAsIndented(node, state) {
991
916
  return Boolean(
992
- state.options.fences === false && node2.value && // If there’s no info…
993
- !node2.lang && // And there’s a non-whitespace character…
994
- /[^ \r\n]/.test(node2.value) && // And the value doesn’t start or end in a blank…
995
- !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node2.value)
917
+ state.options.fences === false && node.value && // If there’s no info…
918
+ !node.lang && // And there’s a non-whitespace character…
919
+ /[^ \r\n]/.test(node.value) && // And the value doesn’t start or end in a blank…
920
+ !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value)
996
921
  );
997
922
  }
998
923
  function checkFence(state) {
@@ -1004,11 +929,11 @@ function checkFence(state) {
1004
929
  }
1005
930
  return marker;
1006
931
  }
1007
- function code$1(node2, _, state, info) {
932
+ function code$1(node, _, state, info) {
1008
933
  const marker = checkFence(state);
1009
- const raw = node2.value || "";
934
+ const raw = node.value || "";
1010
935
  const suffix = marker === "`" ? "GraveAccent" : "Tilde";
1011
- if (formatCodeAsIndented(node2, state)) {
936
+ if (formatCodeAsIndented(node, state)) {
1012
937
  const exit3 = state.enter("codeIndented");
1013
938
  const value2 = state.indentLines(raw, map);
1014
939
  exit3();
@@ -1018,10 +943,10 @@ function code$1(node2, _, state, info) {
1018
943
  const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
1019
944
  const exit2 = state.enter("codeFenced");
1020
945
  let value = tracker.move(sequence);
1021
- if (node2.lang) {
946
+ if (node.lang) {
1022
947
  const subexit = state.enter(`codeFencedLang${suffix}`);
1023
948
  value += tracker.move(
1024
- state.safe(node2.lang, {
949
+ state.safe(node.lang, {
1025
950
  before: value,
1026
951
  after: " ",
1027
952
  encode: ["`"],
@@ -1030,11 +955,11 @@ function code$1(node2, _, state, info) {
1030
955
  );
1031
956
  subexit();
1032
957
  }
1033
- if (node2.lang && node2.meta) {
958
+ if (node.lang && node.meta) {
1034
959
  const subexit = state.enter(`codeFencedMeta${suffix}`);
1035
960
  value += tracker.move(" ");
1036
961
  value += tracker.move(
1037
- state.safe(node2.meta, {
962
+ state.safe(node.meta, {
1038
963
  before: value,
1039
964
  after: "\n",
1040
965
  encode: ["`"],
@@ -1063,7 +988,7 @@ function checkQuote(state) {
1063
988
  }
1064
989
  return marker;
1065
990
  }
1066
- function definition(node2, _, state, info) {
991
+ function definition(node, _, state, info) {
1067
992
  const quote = checkQuote(state);
1068
993
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1069
994
  const exit2 = state.enter("definition");
@@ -1071,7 +996,7 @@ function definition(node2, _, state, info) {
1071
996
  const tracker = state.createTracker(info);
1072
997
  let value = tracker.move("[");
1073
998
  value += tracker.move(
1074
- state.safe(state.associationId(node2), {
999
+ state.safe(state.associationId(node), {
1075
1000
  before: value,
1076
1001
  after: "]",
1077
1002
  ...tracker.current()
@@ -1081,31 +1006,31 @@ function definition(node2, _, state, info) {
1081
1006
  subexit();
1082
1007
  if (
1083
1008
  // If there’s no url, or…
1084
- !node2.url || // If there are control characters or whitespace.
1085
- /[\0- \u007F]/.test(node2.url)
1009
+ !node.url || // If there are control characters or whitespace.
1010
+ /[\0- \u007F]/.test(node.url)
1086
1011
  ) {
1087
1012
  subexit = state.enter("destinationLiteral");
1088
1013
  value += tracker.move("<");
1089
1014
  value += tracker.move(
1090
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1015
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1091
1016
  );
1092
1017
  value += tracker.move(">");
1093
1018
  } else {
1094
1019
  subexit = state.enter("destinationRaw");
1095
1020
  value += tracker.move(
1096
- state.safe(node2.url, {
1021
+ state.safe(node.url, {
1097
1022
  before: value,
1098
- after: node2.title ? " " : "\n",
1023
+ after: node.title ? " " : "\n",
1099
1024
  ...tracker.current()
1100
1025
  })
1101
1026
  );
1102
1027
  }
1103
1028
  subexit();
1104
- if (node2.title) {
1029
+ if (node.title) {
1105
1030
  subexit = state.enter(`title${suffix}`);
1106
1031
  value += tracker.move(" " + quote);
1107
1032
  value += tracker.move(
1108
- state.safe(node2.title, {
1033
+ state.safe(node.title, {
1109
1034
  before: value,
1110
1035
  after: quote,
1111
1036
  ...tracker.current()
@@ -1127,13 +1052,13 @@ function checkEmphasis(state) {
1127
1052
  return marker;
1128
1053
  }
1129
1054
  emphasis.peek = emphasisPeek;
1130
- function emphasis(node2, _, state, info) {
1055
+ function emphasis(node, _, state, info) {
1131
1056
  const marker = checkEmphasis(state);
1132
1057
  const exit2 = state.enter("emphasis");
1133
1058
  const tracker = state.createTracker(info);
1134
1059
  let value = tracker.move(marker);
1135
1060
  value += tracker.move(
1136
- state.containerPhrasing(node2, {
1061
+ state.containerPhrasing(node, {
1137
1062
  before: value,
1138
1063
  after: marker,
1139
1064
  ...tracker.current()
@@ -1146,60 +1071,45 @@ function emphasis(node2, _, state, info) {
1146
1071
  function emphasisPeek(_, _1, state) {
1147
1072
  return state.options.emphasis || "*";
1148
1073
  }
1149
- const emptyOptions$1 = {};
1150
- function toString(value, options) {
1151
- const settings = emptyOptions$1;
1152
- const includeImageAlt = typeof settings.includeImageAlt === "boolean" ? settings.includeImageAlt : true;
1153
- const includeHtml = typeof settings.includeHtml === "boolean" ? settings.includeHtml : true;
1154
- return one(value, includeImageAlt, includeHtml);
1155
- }
1156
- function one(value, includeImageAlt, includeHtml) {
1157
- if (node(value)) {
1158
- if ("value" in value) {
1159
- return value.type === "html" && !includeHtml ? "" : value.value;
1160
- }
1161
- if (includeImageAlt && "alt" in value && value.alt) {
1162
- return value.alt;
1163
- }
1164
- if ("children" in value) {
1165
- return all(value.children, includeImageAlt, includeHtml);
1166
- }
1167
- }
1168
- if (Array.isArray(value)) {
1169
- return all(value, includeImageAlt, includeHtml);
1074
+ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
1075
+ let reverse;
1076
+ let test;
1077
+ let visitor;
1078
+ if (typeof testOrVisitor === "function" && typeof visitorOrReverse !== "function") {
1079
+ test = void 0;
1080
+ visitor = testOrVisitor;
1081
+ reverse = visitorOrReverse;
1082
+ } else {
1083
+ test = testOrVisitor;
1084
+ visitor = visitorOrReverse;
1085
+ reverse = maybeReverse;
1170
1086
  }
1171
- return "";
1172
- }
1173
- function all(values, includeImageAlt, includeHtml) {
1174
- const result = [];
1175
- let index = -1;
1176
- while (++index < values.length) {
1177
- result[index] = one(values[index], includeImageAlt, includeHtml);
1087
+ visitParents(tree, test, overload, reverse);
1088
+ function overload(node, parents) {
1089
+ const parent = parents[parents.length - 1];
1090
+ const index = parent ? parent.children.indexOf(node) : void 0;
1091
+ return visitor(node, index, parent);
1178
1092
  }
1179
- return result.join("");
1180
1093
  }
1181
- function node(value) {
1182
- return Boolean(value && typeof value === "object");
1183
- }
1184
- function formatHeadingAsSetext(node2, state) {
1094
+ function formatHeadingAsSetext(node, state) {
1185
1095
  let literalWithBreak = false;
1186
- visit(node2, function(node3) {
1187
- if ("value" in node3 && /\r?\n|\r/.test(node3.value) || node3.type === "break") {
1096
+ visit(node, function(node2) {
1097
+ if ("value" in node2 && /\r?\n|\r/.test(node2.value) || node2.type === "break") {
1188
1098
  literalWithBreak = true;
1189
- return EXIT$1;
1099
+ return EXIT;
1190
1100
  }
1191
1101
  });
1192
1102
  return Boolean(
1193
- (!node2.depth || node2.depth < 3) && toString(node2) && (state.options.setext || literalWithBreak)
1103
+ (!node.depth || node.depth < 3) && toString(node) && (state.options.setext || literalWithBreak)
1194
1104
  );
1195
1105
  }
1196
- function heading(node2, _, state, info) {
1197
- const rank = Math.max(Math.min(6, node2.depth || 1), 1);
1106
+ function heading(node, _, state, info) {
1107
+ const rank = Math.max(Math.min(6, node.depth || 1), 1);
1198
1108
  const tracker = state.createTracker(info);
1199
- if (formatHeadingAsSetext(node2, state)) {
1109
+ if (formatHeadingAsSetext(node, state)) {
1200
1110
  const exit3 = state.enter("headingSetext");
1201
1111
  const subexit2 = state.enter("phrasing");
1202
- const value2 = state.containerPhrasing(node2, {
1112
+ const value2 = state.containerPhrasing(node, {
1203
1113
  ...tracker.current(),
1204
1114
  before: "\n",
1205
1115
  after: "\n"
@@ -1217,7 +1127,7 @@ function heading(node2, _, state, info) {
1217
1127
  const exit2 = state.enter("headingAtx");
1218
1128
  const subexit = state.enter("phrasing");
1219
1129
  tracker.move(sequence + " ");
1220
- let value = state.containerPhrasing(node2, {
1130
+ let value = state.containerPhrasing(node, {
1221
1131
  before: "# ",
1222
1132
  after: "\n",
1223
1133
  ...tracker.current()
@@ -1234,14 +1144,14 @@ function heading(node2, _, state, info) {
1234
1144
  return value;
1235
1145
  }
1236
1146
  html.peek = htmlPeek;
1237
- function html(node2) {
1238
- return node2.value || "";
1147
+ function html(node) {
1148
+ return node.value || "";
1239
1149
  }
1240
1150
  function htmlPeek() {
1241
1151
  return "<";
1242
1152
  }
1243
1153
  image.peek = imagePeek;
1244
- function image(node2, _, state, info) {
1154
+ function image(node, _, state, info) {
1245
1155
  const quote = checkQuote(state);
1246
1156
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1247
1157
  const exit2 = state.enter("image");
@@ -1249,37 +1159,37 @@ function image(node2, _, state, info) {
1249
1159
  const tracker = state.createTracker(info);
1250
1160
  let value = tracker.move("![");
1251
1161
  value += tracker.move(
1252
- state.safe(node2.alt, { before: value, after: "]", ...tracker.current() })
1162
+ state.safe(node.alt, { before: value, after: "]", ...tracker.current() })
1253
1163
  );
1254
1164
  value += tracker.move("](");
1255
1165
  subexit();
1256
1166
  if (
1257
1167
  // If there’s no url but there is a title…
1258
- !node2.url && node2.title || // If there are control characters or whitespace.
1259
- /[\0- \u007F]/.test(node2.url)
1168
+ !node.url && node.title || // If there are control characters or whitespace.
1169
+ /[\0- \u007F]/.test(node.url)
1260
1170
  ) {
1261
1171
  subexit = state.enter("destinationLiteral");
1262
1172
  value += tracker.move("<");
1263
1173
  value += tracker.move(
1264
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1174
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1265
1175
  );
1266
1176
  value += tracker.move(">");
1267
1177
  } else {
1268
1178
  subexit = state.enter("destinationRaw");
1269
1179
  value += tracker.move(
1270
- state.safe(node2.url, {
1180
+ state.safe(node.url, {
1271
1181
  before: value,
1272
- after: node2.title ? " " : ")",
1182
+ after: node.title ? " " : ")",
1273
1183
  ...tracker.current()
1274
1184
  })
1275
1185
  );
1276
1186
  }
1277
1187
  subexit();
1278
- if (node2.title) {
1188
+ if (node.title) {
1279
1189
  subexit = state.enter(`title${suffix}`);
1280
1190
  value += tracker.move(" " + quote);
1281
1191
  value += tracker.move(
1282
- state.safe(node2.title, {
1192
+ state.safe(node.title, {
1283
1193
  before: value,
1284
1194
  after: quote,
1285
1195
  ...tracker.current()
@@ -1296,13 +1206,13 @@ function imagePeek() {
1296
1206
  return "!";
1297
1207
  }
1298
1208
  imageReference.peek = imageReferencePeek;
1299
- function imageReference(node2, _, state, info) {
1300
- const type = node2.referenceType;
1209
+ function imageReference(node, _, state, info) {
1210
+ const type = node.referenceType;
1301
1211
  const exit2 = state.enter("imageReference");
1302
1212
  let subexit = state.enter("label");
1303
1213
  const tracker = state.createTracker(info);
1304
1214
  let value = tracker.move("![");
1305
- const alt = state.safe(node2.alt, {
1215
+ const alt = state.safe(node.alt, {
1306
1216
  before: value,
1307
1217
  after: "]",
1308
1218
  ...tracker.current()
@@ -1312,7 +1222,7 @@ function imageReference(node2, _, state, info) {
1312
1222
  const stack = state.stack;
1313
1223
  state.stack = [];
1314
1224
  subexit = state.enter("reference");
1315
- const reference = state.safe(state.associationId(node2), {
1225
+ const reference = state.safe(state.associationId(node), {
1316
1226
  before: value,
1317
1227
  after: "]",
1318
1228
  ...tracker.current()
@@ -1333,8 +1243,8 @@ function imageReferencePeek() {
1333
1243
  return "!";
1334
1244
  }
1335
1245
  inlineCode.peek = inlineCodePeek;
1336
- function inlineCode(node2, _, state) {
1337
- let value = node2.value || "";
1246
+ function inlineCode(node, _, state) {
1247
+ let value = node.value || "";
1338
1248
  let sequence = "`";
1339
1249
  let index = -1;
1340
1250
  while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
@@ -1361,33 +1271,33 @@ function inlineCode(node2, _, state) {
1361
1271
  function inlineCodePeek() {
1362
1272
  return "`";
1363
1273
  }
1364
- function formatLinkAsAutolink(node2, state) {
1365
- const raw = toString(node2);
1274
+ function formatLinkAsAutolink(node, state) {
1275
+ const raw = toString(node);
1366
1276
  return Boolean(
1367
1277
  !state.options.resourceLink && // If there’s a url…
1368
- node2.url && // And there’s a no title…
1369
- !node2.title && // And the content of `node` is a single text node…
1370
- node2.children && node2.children.length === 1 && node2.children[0].type === "text" && // And if the url is the same as the content…
1371
- (raw === node2.url || "mailto:" + raw === node2.url) && // And that starts w/ a protocol…
1372
- /^[a-z][a-z+.-]+:/i.test(node2.url) && // And that doesn’t contain ASCII control codes (character escapes and
1278
+ node.url && // And there’s a no title…
1279
+ !node.title && // And the content of `node` is a single text node…
1280
+ node.children && node.children.length === 1 && node.children[0].type === "text" && // And if the url is the same as the content…
1281
+ (raw === node.url || "mailto:" + raw === node.url) && // And that starts w/ a protocol…
1282
+ /^[a-z][a-z+.-]+:/i.test(node.url) && // And that doesn’t contain ASCII control codes (character escapes and
1373
1283
  // references don’t work), space, or angle brackets…
1374
- !/[\0- <>\u007F]/.test(node2.url)
1284
+ !/[\0- <>\u007F]/.test(node.url)
1375
1285
  );
1376
1286
  }
1377
1287
  link.peek = linkPeek;
1378
- function link(node2, _, state, info) {
1288
+ function link(node, _, state, info) {
1379
1289
  const quote = checkQuote(state);
1380
1290
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1381
1291
  const tracker = state.createTracker(info);
1382
1292
  let exit2;
1383
1293
  let subexit;
1384
- if (formatLinkAsAutolink(node2, state)) {
1294
+ if (formatLinkAsAutolink(node, state)) {
1385
1295
  const stack = state.stack;
1386
1296
  state.stack = [];
1387
1297
  exit2 = state.enter("autolink");
1388
1298
  let value2 = tracker.move("<");
1389
1299
  value2 += tracker.move(
1390
- state.containerPhrasing(node2, {
1300
+ state.containerPhrasing(node, {
1391
1301
  before: value2,
1392
1302
  after: ">",
1393
1303
  ...tracker.current()
@@ -1402,7 +1312,7 @@ function link(node2, _, state, info) {
1402
1312
  subexit = state.enter("label");
1403
1313
  let value = tracker.move("[");
1404
1314
  value += tracker.move(
1405
- state.containerPhrasing(node2, {
1315
+ state.containerPhrasing(node, {
1406
1316
  before: value,
1407
1317
  after: "](",
1408
1318
  ...tracker.current()
@@ -1412,31 +1322,31 @@ function link(node2, _, state, info) {
1412
1322
  subexit();
1413
1323
  if (
1414
1324
  // If there’s no url but there is a title…
1415
- !node2.url && node2.title || // If there are control characters or whitespace.
1416
- /[\0- \u007F]/.test(node2.url)
1325
+ !node.url && node.title || // If there are control characters or whitespace.
1326
+ /[\0- \u007F]/.test(node.url)
1417
1327
  ) {
1418
1328
  subexit = state.enter("destinationLiteral");
1419
1329
  value += tracker.move("<");
1420
1330
  value += tracker.move(
1421
- state.safe(node2.url, { before: value, after: ">", ...tracker.current() })
1331
+ state.safe(node.url, { before: value, after: ">", ...tracker.current() })
1422
1332
  );
1423
1333
  value += tracker.move(">");
1424
1334
  } else {
1425
1335
  subexit = state.enter("destinationRaw");
1426
1336
  value += tracker.move(
1427
- state.safe(node2.url, {
1337
+ state.safe(node.url, {
1428
1338
  before: value,
1429
- after: node2.title ? " " : ")",
1339
+ after: node.title ? " " : ")",
1430
1340
  ...tracker.current()
1431
1341
  })
1432
1342
  );
1433
1343
  }
1434
1344
  subexit();
1435
- if (node2.title) {
1345
+ if (node.title) {
1436
1346
  subexit = state.enter(`title${suffix}`);
1437
1347
  value += tracker.move(" " + quote);
1438
1348
  value += tracker.move(
1439
- state.safe(node2.title, {
1349
+ state.safe(node.title, {
1440
1350
  before: value,
1441
1351
  after: quote,
1442
1352
  ...tracker.current()
@@ -1449,17 +1359,17 @@ function link(node2, _, state, info) {
1449
1359
  exit2();
1450
1360
  return value;
1451
1361
  }
1452
- function linkPeek(node2, _, state) {
1453
- return formatLinkAsAutolink(node2, state) ? "<" : "[";
1362
+ function linkPeek(node, _, state) {
1363
+ return formatLinkAsAutolink(node, state) ? "<" : "[";
1454
1364
  }
1455
1365
  linkReference.peek = linkReferencePeek;
1456
- function linkReference(node2, _, state, info) {
1457
- const type = node2.referenceType;
1366
+ function linkReference(node, _, state, info) {
1367
+ const type = node.referenceType;
1458
1368
  const exit2 = state.enter("linkReference");
1459
1369
  let subexit = state.enter("label");
1460
1370
  const tracker = state.createTracker(info);
1461
1371
  let value = tracker.move("[");
1462
- const text2 = state.containerPhrasing(node2, {
1372
+ const text2 = state.containerPhrasing(node, {
1463
1373
  before: value,
1464
1374
  after: "]",
1465
1375
  ...tracker.current()
@@ -1469,7 +1379,7 @@ function linkReference(node2, _, state, info) {
1469
1379
  const stack = state.stack;
1470
1380
  state.stack = [];
1471
1381
  subexit = state.enter("reference");
1472
- const reference = state.safe(state.associationId(node2), {
1382
+ const reference = state.safe(state.associationId(node), {
1473
1383
  before: value,
1474
1384
  after: "]",
1475
1385
  ...tracker.current()
@@ -1534,14 +1444,14 @@ function checkRule(state) {
1534
1444
  }
1535
1445
  return marker;
1536
1446
  }
1537
- function list(node2, parent, state, info) {
1447
+ function list(node, parent, state, info) {
1538
1448
  const exit2 = state.enter("list");
1539
1449
  const bulletCurrent = state.bulletCurrent;
1540
- let bullet = node2.ordered ? checkBulletOrdered(state) : checkBullet(state);
1541
- const bulletOther = node2.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1450
+ let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
1451
+ const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1542
1452
  let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
1543
- if (!node2.ordered) {
1544
- const firstListItem = node2.children ? node2.children[0] : void 0;
1453
+ if (!node.ordered) {
1454
+ const firstListItem = node.children ? node.children[0] : void 0;
1545
1455
  if (
1546
1456
  // Bullet could be used as a thematic break marker:
1547
1457
  (bullet === "*" || bullet === "-") && // Empty first list item:
@@ -1553,8 +1463,8 @@ function list(node2, parent, state, info) {
1553
1463
  }
1554
1464
  if (checkRule(state) === bullet && firstListItem) {
1555
1465
  let index = -1;
1556
- while (++index < node2.children.length) {
1557
- const item = node2.children[index];
1466
+ while (++index < node.children.length) {
1467
+ const item = node.children[index];
1558
1468
  if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
1559
1469
  useDifferentMarker = true;
1560
1470
  break;
@@ -1566,7 +1476,7 @@ function list(node2, parent, state, info) {
1566
1476
  bullet = bulletOther;
1567
1477
  }
1568
1478
  state.bulletCurrent = bullet;
1569
- const value = state.containerFlow(node2, info);
1479
+ const value = state.containerFlow(node, info);
1570
1480
  state.bulletLastUsed = bullet;
1571
1481
  state.bulletCurrent = bulletCurrent;
1572
1482
  exit2();
@@ -1581,14 +1491,14 @@ function checkListItemIndent(state) {
1581
1491
  }
1582
1492
  return style;
1583
1493
  }
1584
- function listItem(node2, parent, state, info) {
1494
+ function listItem(node, parent, state, info) {
1585
1495
  const listItemIndent = checkListItemIndent(state);
1586
1496
  let bullet = state.bulletCurrent || checkBullet(state);
1587
1497
  if (parent && parent.type === "list" && parent.ordered) {
1588
- bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node2)) + bullet;
1498
+ bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
1589
1499
  }
1590
1500
  let size = bullet.length + 1;
1591
- if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node2.spread)) {
1501
+ if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) {
1592
1502
  size = Math.ceil(size / 4) * 4;
1593
1503
  }
1594
1504
  const tracker = state.createTracker(info);
@@ -1596,7 +1506,7 @@ function listItem(node2, parent, state, info) {
1596
1506
  tracker.shift(size);
1597
1507
  const exit2 = state.enter("listItem");
1598
1508
  const value = state.indentLines(
1599
- state.containerFlow(node2, tracker.current()),
1509
+ state.containerFlow(node, tracker.current()),
1600
1510
  map2
1601
1511
  );
1602
1512
  exit2();
@@ -1608,10 +1518,10 @@ function listItem(node2, parent, state, info) {
1608
1518
  return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
1609
1519
  }
1610
1520
  }
1611
- function paragraph(node2, _, state, info) {
1521
+ function paragraph(node, _, state, info) {
1612
1522
  const exit2 = state.enter("paragraph");
1613
1523
  const subexit = state.enter("phrasing");
1614
- const value = state.containerPhrasing(node2, info);
1524
+ const value = state.containerPhrasing(node, info);
1615
1525
  subexit();
1616
1526
  exit2();
1617
1527
  return value;
@@ -1642,12 +1552,12 @@ const phrasing = (
1642
1552
  "textDirective"
1643
1553
  ])
1644
1554
  );
1645
- function root(node2, _, state, info) {
1646
- const hasPhrasing = node2.children.some(function(d) {
1555
+ function root(node, _, state, info) {
1556
+ const hasPhrasing = node.children.some(function(d) {
1647
1557
  return phrasing(d);
1648
1558
  });
1649
1559
  const fn = hasPhrasing ? state.containerPhrasing : state.containerFlow;
1650
- return fn.call(state, node2, info);
1560
+ return fn.call(state, node, info);
1651
1561
  }
1652
1562
  function checkStrong(state) {
1653
1563
  const marker = state.options.strong || "*";
@@ -1659,13 +1569,13 @@ function checkStrong(state) {
1659
1569
  return marker;
1660
1570
  }
1661
1571
  strong.peek = strongPeek;
1662
- function strong(node2, _, state, info) {
1572
+ function strong(node, _, state, info) {
1663
1573
  const marker = checkStrong(state);
1664
1574
  const exit2 = state.enter("strong");
1665
1575
  const tracker = state.createTracker(info);
1666
1576
  let value = tracker.move(marker + marker);
1667
1577
  value += tracker.move(
1668
- state.containerPhrasing(node2, {
1578
+ state.containerPhrasing(node, {
1669
1579
  before: value,
1670
1580
  after: marker,
1671
1581
  ...tracker.current()
@@ -1678,8 +1588,8 @@ function strong(node2, _, state, info) {
1678
1588
  function strongPeek(_, _1, state) {
1679
1589
  return state.options.strong || "*";
1680
1590
  }
1681
- function text$1(node2, _, state, info) {
1682
- return state.safe(node2.value, info);
1591
+ function text$1(node, _, state, info) {
1592
+ return state.safe(node.value, info);
1683
1593
  }
1684
1594
  function checkRuleRepetition(state) {
1685
1595
  const repetition = state.options.ruleRepetition || 3;
@@ -1765,9 +1675,9 @@ function exitCodeText(token) {
1765
1675
  if (this.data.inTable) {
1766
1676
  value = value.replace(/\\([\\|])/g, replace);
1767
1677
  }
1768
- const node2 = this.stack[this.stack.length - 1];
1769
- ok$1(node2.type === "inlineCode");
1770
- node2.value = value;
1678
+ const node = this.stack[this.stack.length - 1];
1679
+ ok$1(node.type === "inlineCode");
1680
+ node.value = value;
1771
1681
  this.exit(token);
1772
1682
  }
1773
1683
  function replace($0, $1) {
@@ -1805,18 +1715,18 @@ function gfmTableToMarkdown(options) {
1805
1715
  tableRow: handleTableRow
1806
1716
  }
1807
1717
  };
1808
- function handleTable(node2, _, state, info) {
1809
- return serializeData(handleTableAsData(node2, state, info), node2.align);
1718
+ function handleTable(node, _, state, info) {
1719
+ return serializeData(handleTableAsData(node, state, info), node.align);
1810
1720
  }
1811
- function handleTableRow(node2, _, state, info) {
1812
- const row = handleTableRowAsData(node2, state, info);
1721
+ function handleTableRow(node, _, state, info) {
1722
+ const row = handleTableRowAsData(node, state, info);
1813
1723
  const value = serializeData([row]);
1814
1724
  return value.slice(0, value.indexOf("\n"));
1815
1725
  }
1816
- function handleTableCell(node2, _, state, info) {
1726
+ function handleTableCell(node, _, state, info) {
1817
1727
  const exit2 = state.enter("tableCell");
1818
1728
  const subexit = state.enter("phrasing");
1819
- const value = state.containerPhrasing(node2, {
1729
+ const value = state.containerPhrasing(node, {
1820
1730
  ...info,
1821
1731
  before: around,
1822
1732
  after: around
@@ -1836,8 +1746,8 @@ function gfmTableToMarkdown(options) {
1836
1746
  stringLength
1837
1747
  });
1838
1748
  }
1839
- function handleTableAsData(node2, state, info) {
1840
- const children = node2.children;
1749
+ function handleTableAsData(node, state, info) {
1750
+ const children = node.children;
1841
1751
  let index = -1;
1842
1752
  const result = [];
1843
1753
  const subexit = state.enter("table");
@@ -1847,19 +1757,19 @@ function gfmTableToMarkdown(options) {
1847
1757
  subexit();
1848
1758
  return result;
1849
1759
  }
1850
- function handleTableRowAsData(node2, state, info) {
1851
- const children = node2.children;
1760
+ function handleTableRowAsData(node, state, info) {
1761
+ const children = node.children;
1852
1762
  let index = -1;
1853
1763
  const result = [];
1854
1764
  const subexit = state.enter("tableRow");
1855
1765
  while (++index < children.length) {
1856
- result[index] = handleTableCell(children[index], node2, state, info);
1766
+ result[index] = handleTableCell(children[index], node, state, info);
1857
1767
  }
1858
1768
  subexit();
1859
1769
  return result;
1860
1770
  }
1861
- function inlineCodeWithTable(node2, parent, state) {
1862
- let value = handle.inlineCode(node2, parent, state);
1771
+ function inlineCodeWithTable(node, parent, state) {
1772
+ let value = handle.inlineCode(node, parent, state);
1863
1773
  if (state.stack.includes("tableCell")) {
1864
1774
  value = value.replace(/\|/g, "\\$&");
1865
1775
  }
@@ -1882,16 +1792,16 @@ function gfmTaskListItemToMarkdown() {
1882
1792
  };
1883
1793
  }
1884
1794
  function exitCheck(token) {
1885
- const node2 = this.stack[this.stack.length - 2];
1886
- ok$1(node2.type === "listItem");
1887
- node2.checked = token.type === "taskListCheckValueChecked";
1795
+ const node = this.stack[this.stack.length - 2];
1796
+ ok$1(node.type === "listItem");
1797
+ node.checked = token.type === "taskListCheckValueChecked";
1888
1798
  }
1889
1799
  function exitParagraphWithTaskListItem(token) {
1890
1800
  const parent = this.stack[this.stack.length - 2];
1891
1801
  if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
1892
- const node2 = this.stack[this.stack.length - 1];
1893
- ok$1(node2.type === "paragraph");
1894
- const head = node2.children[0];
1802
+ const node = this.stack[this.stack.length - 1];
1803
+ ok$1(node.type === "paragraph");
1804
+ const head = node.children[0];
1895
1805
  if (head && head.type === "text") {
1896
1806
  const siblings = parent.children;
1897
1807
  let index = -1;
@@ -1903,29 +1813,29 @@ function exitParagraphWithTaskListItem(token) {
1903
1813
  break;
1904
1814
  }
1905
1815
  }
1906
- if (firstParaghraph === node2) {
1816
+ if (firstParaghraph === node) {
1907
1817
  head.value = head.value.slice(1);
1908
1818
  if (head.value.length === 0) {
1909
- node2.children.shift();
1910
- } else if (node2.position && head.position && typeof head.position.start.offset === "number") {
1819
+ node.children.shift();
1820
+ } else if (node.position && head.position && typeof head.position.start.offset === "number") {
1911
1821
  head.position.start.column++;
1912
1822
  head.position.start.offset++;
1913
- node2.position.start = Object.assign({}, head.position.start);
1823
+ node.position.start = Object.assign({}, head.position.start);
1914
1824
  }
1915
1825
  }
1916
1826
  }
1917
1827
  }
1918
1828
  this.exit(token);
1919
1829
  }
1920
- function listItemWithTaskListItem(node2, parent, state, info) {
1921
- const head = node2.children[0];
1922
- const checkable = typeof node2.checked === "boolean" && head && head.type === "paragraph";
1923
- const checkbox = "[" + (node2.checked ? "x" : " ") + "] ";
1830
+ function listItemWithTaskListItem(node, parent, state, info) {
1831
+ const head = node.children[0];
1832
+ const checkable = typeof node.checked === "boolean" && head && head.type === "paragraph";
1833
+ const checkbox = "[" + (node.checked ? "x" : " ") + "] ";
1924
1834
  const tracker = state.createTracker(info);
1925
1835
  if (checkable) {
1926
1836
  tracker.move(checkbox);
1927
1837
  }
1928
- let value = handle.listItem(node2, parent, state, {
1838
+ let value = handle.listItem(node, parent, state, {
1929
1839
  ...info,
1930
1840
  ...tracker.current()
1931
1841
  });
@@ -1984,18 +1894,18 @@ function splice(list2, start, remove, items) {
1984
1894
  }
1985
1895
  const hasOwnProperty = {}.hasOwnProperty;
1986
1896
  function combineExtensions(extensions) {
1987
- const all2 = {};
1897
+ const all = {};
1988
1898
  let index = -1;
1989
1899
  while (++index < extensions.length) {
1990
- syntaxExtension(all2, extensions[index]);
1900
+ syntaxExtension(all, extensions[index]);
1991
1901
  }
1992
- return all2;
1902
+ return all;
1993
1903
  }
1994
- function syntaxExtension(all2, extension) {
1904
+ function syntaxExtension(all, extension) {
1995
1905
  let hook;
1996
1906
  for (hook in extension) {
1997
- const maybe = hasOwnProperty.call(all2, hook) ? all2[hook] : void 0;
1998
- const left = maybe || (all2[hook] = {});
1907
+ const maybe = hasOwnProperty.call(all, hook) ? all[hook] : void 0;
1908
+ const left = maybe || (all[hook] = {});
1999
1909
  const right = extension[hook];
2000
1910
  let code2;
2001
1911
  if (right) {
@@ -3446,9 +3356,11 @@ var __component__$1 = /* @__PURE__ */ normalizeComponent(
3446
3356
  const NcRichTextCopyButton = __component__$1.exports;
3447
3357
  function remarkPlaceholder() {
3448
3358
  return function(ast) {
3449
- visit(ast, (node2) => node2.type === "text", visitor);
3450
- function visitor(node2, index, parent) {
3451
- const placeholders = node2.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3359
+ visitParents(ast, (node) => node.type === "text", visitor);
3360
+ function visitor(node, ancestors) {
3361
+ const parent = ancestors.at(-1);
3362
+ const index = parent.children.indexOf(node);
3363
+ const placeholders = node.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3452
3364
  const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
3453
3365
  if (!matches) {
3454
3366
  return u("text", entry);
@@ -3472,10 +3384,9 @@ function prepareTextNode({ h, context }, text2) {
3472
3384
  return entry;
3473
3385
  }
3474
3386
  const { component, props } = entry;
3475
- const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
3476
3387
  return h(component, {
3477
3388
  props,
3478
- class: componentClass
3389
+ class: "rich-text--component"
3479
3390
  });
3480
3391
  });
3481
3392
  }
@@ -3485,28 +3396,32 @@ function prepareTextNode({ h, context }, text2) {
3485
3396
  * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
3486
3397
  * SPDX-License-Identifier: AGPL-3.0-or-later
3487
3398
  */
3488
- function isCodeNode(node2) {
3489
- return ["code", "inlineCode"].includes(node2.type);
3399
+ function isCodeNode(node) {
3400
+ return ["code", "inlineCode"].includes(node.type);
3490
3401
  }
3491
3402
  const remarkStripCode = function() {
3492
3403
  return function(tree) {
3493
- visit(tree, isCodeNode, (node2, index, parent) => {
3404
+ visitParents(tree, isCodeNode, (node, ancestors) => {
3405
+ const parent = ancestors.at(-1);
3406
+ const index = parent.children.indexOf(node);
3494
3407
  parent.children.splice(index, 1, {
3495
- ...node2,
3408
+ ...node,
3496
3409
  value: ""
3497
3410
  });
3498
- return [SKIP$1, index + 1];
3411
+ return [SKIP, index + 1];
3499
3412
  });
3500
3413
  };
3501
3414
  };
3502
3415
  function remarkUnescape() {
3503
3416
  return function(tree) {
3504
- visit(tree, (node2) => ["text", "code", "inlineCode"].includes(node2.type), (node2, index, parent) => {
3417
+ visitParents(tree, (node) => ["text", "code", "inlineCode"].includes(node.type), (node, ancestors) => {
3418
+ const parent = ancestors.at(-1);
3419
+ const index = parent.children.indexOf(node);
3505
3420
  parent.children.splice(index, 1, {
3506
- ...node2,
3507
- value: node2.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3421
+ ...node,
3422
+ value: node.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3508
3423
  });
3509
- return [SKIP$1, index + 1];
3424
+ return [SKIP, index + 1];
3510
3425
  });
3511
3426
  };
3512
3427
  }
@@ -3623,8 +3538,8 @@ const _sfc_main = {
3623
3538
  useExtendedMarkdown: this.useExtendedMarkdown
3624
3539
  }).use(remarkUnescape).use(this.useExtendedMarkdown ? remarkGfm : void 0).use(breaks).use(remarkUnlinkProtocols, { except: LINK_PROTOCOLS }).use(remark2rehype, {
3625
3540
  handlers: {
3626
- component(toHast, node2) {
3627
- return toHast(node2, node2.component, { value: node2.value });
3541
+ component(toHast, node) {
3542
+ return toHast(node, node.component, { value: node.value });
3628
3543
  }
3629
3544
  }
3630
3545
  }).use(this.useExtendedMarkdown ? rehypeHighlight.value : void 0).use(remarkPlaceholder).use(rehypeExternalLinks, {
@@ -3687,6 +3602,15 @@ const _sfc_main = {
3687
3602
  }
3688
3603
  }, children);
3689
3604
  }
3605
+ const isAllowedScheme = /^(https?:\/\/|tel:|mailto:)/.test(attrs.attrs.href);
3606
+ if (isAllowedScheme) {
3607
+ attrs.attrs.href = attrs.attrs.href.trim();
3608
+ return h(NcRichTextExternalLink, attrs, children);
3609
+ } else {
3610
+ delete attrs.attrs.href;
3611
+ delete attrs.attrs.target;
3612
+ return h("span", attrs, children);
3613
+ }
3690
3614
  }
3691
3615
  return h(tag, attrs, children);
3692
3616
  }
@@ -3733,7 +3657,9 @@ const _sfc_main = {
3733
3657
  if (!this.useMarkdown && !this.useExtendedMarkdown) {
3734
3658
  return text2;
3735
3659
  }
3736
- return unified().use(remarkParse).use(remarkStripCode).use(remarkStringify).processSync(text2).value;
3660
+ const processor = unified();
3661
+ processor.compiler = (tree) => toString(tree);
3662
+ return processor.use(remarkParse).use(remarkStripCode).processSync(text2).value;
3737
3663
  }
3738
3664
  },
3739
3665
  render(h) {
@@ -3748,11 +3674,11 @@ var __component__ = /* @__PURE__ */ normalizeComponent(
3748
3674
  _sfc_staticRenderFns,
3749
3675
  false,
3750
3676
  null,
3751
- "1b584119"
3677
+ "177dd7c0"
3752
3678
  );
3753
3679
  const NcRichText = __component__.exports;
3754
3680
  export {
3755
3681
  NcRichText as N,
3756
3682
  NcReferenceList as a
3757
3683
  };
3758
- //# sourceMappingURL=NcRichText-rNfwY_Oc.mjs.map
3684
+ //# sourceMappingURL=NcRichText-DZgAb6-3.mjs.map