Compare commits
3 commits
45a3517060
...
7375a12c91
Author | SHA1 | Date | |
---|---|---|---|
7375a12c91 | |||
cd39e1ea52 | |||
435cccfb1c |
2 changed files with 4 additions and 6 deletions
|
@ -4,12 +4,11 @@
|
|||
import { getFirstMarkInSelection } from "../ps-utils";
|
||||
import { readable, type Writable } from "svelte/store";
|
||||
import { nanoid } from "nanoid";
|
||||
import { linkFloatingUi, selectionFloatingUi } from "./floatingUi";
|
||||
import { selectionFloatingUi } from "./floatingUi";
|
||||
import {
|
||||
autoPlacement,
|
||||
shift,
|
||||
offset,
|
||||
type ComputePositionConfig,
|
||||
} from "@floating-ui/dom";
|
||||
|
||||
export let state: EditorState;
|
||||
|
|
|
@ -308,15 +308,14 @@ export const schema = new Schema({
|
|||
{
|
||||
tag: "a[href]",
|
||||
priority: 100,
|
||||
// TODO: untested
|
||||
getAttrs(dom) {
|
||||
dom = dom as HTMLElement;
|
||||
const href = dom.getAttribute("href");
|
||||
if (
|
||||
href &&
|
||||
/[useandom\-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict]{21}/.test(
|
||||
href,
|
||||
)
|
||||
(/^[useandom\-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict]{21}$/.test(
|
||||
href
|
||||
) || href === 'index')
|
||||
) {
|
||||
return {
|
||||
id: href,
|
||||
|
|
Loading…
Reference in a new issue