wysimark-lite 0.15.5 → 0.15.7

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/dist/index.d.ts CHANGED
@@ -901,6 +901,11 @@ type EditableProps = {
901
901
  };
902
902
  declare function Editable({ editor, value, onChange, throttleInMs, placeholder, className, style, }: EditableProps): react_jsx_runtime.JSX.Element;
903
903
 
904
+ /**
905
+ * Function to escape forward slashes in URLs, but only for plain text URLs (not in markdown links)
906
+ * This is necessary because the markdown parser doesn't handle unescaped forward slashes in URLs correctly
907
+ */
908
+ declare function escapeUrlSlashes(text: string): string;
904
909
  /**
905
910
  * The options passed into the standalone version of Wysimark.
906
911
  */
@@ -923,4 +928,4 @@ type Wysimark = {
923
928
  */
924
929
  declare function createWysimark(containerElement: HTMLElement, options: StandaloneOptions): Wysimark;
925
930
 
926
- export { Editable, Wysimark, createWysimark, useEditor };
931
+ export { Editable, Wysimark, createWysimark, escapeUrlSlashes, useEditor };