Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackExchange Markdown #175

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

StevenClontz
Copy link
Member

No description provided.

Copy link

cloudflare-workers-and-pages bot commented Oct 9, 2024

Deploying topology with  Cloudflare Pages  Cloudflare Pages

Latest commit: 84b5891
Status: ✅  Deploy successful!
Preview URL: https://2c1704ad.topology.pages.dev
Branch Preview URL: https://scam-stackexchange-markdown.topology.pages.dev

View logs

@StevenClontz
Copy link
Member Author

StevenClontz commented Oct 18, 2024

For {{prefix:ref}}: https://github.com/pi-base/web/blob/main/packages/core/src/Ref.ts

Something like:

import { format } from 'Ref.ts'

format({
  "kind": prefix,
  "id": id,
})

Comment on lines +1 to +2
<script lang="ts">
export let source: string
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import format on line 2

Comment on lines +14 to +17
s = s.replace(doublecurlies, (prefix, id) => {
// Perform replacement based on prefix and id
return `${prefix}, ${id}`
})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return format(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants