Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

markdownImages.ts

13 lines389 Bytes

1import {
2 normalizeMarkdownLinkDestination,
3 splitMarkdownLinkSearchAndHash,
4} from "@t3tools/shared/markdownLinks";
5​
6export {
7 classifyMarkdownImageSource,
8 type MarkdownImageSource,
9} from "@t3tools/shared/markdownLinks";
10​
11export function markdownImageSourceFragment(source: string): string {
12 return splitMarkdownLinkSearchAndHash(normalizeMarkdownLinkDestination(source)).hash;