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

Why does the markdown plugin only accept markdown text returned from the route /true? #3654

Open
ooker777 opened this issue Jul 9, 2024 · 1 comment

Comments

@ooker777
Copy link

ooker777 commented Jul 9, 2024

Investigating #3653 I realize that I need to create a route true. Only in that then I can inject markdown text:

const markdown = `
## Slide 1
A paragraph with some text and a [link](https://hakim.se).
---
## Slide 2
---
## Slide 3
`;
export const handler = () => {
  return new Response(markdown);
};

Why is it designed like that?

@baba43
Copy link

baba43 commented Aug 4, 2024

I also have no clue why this is is necessary lol

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

No branches or pull requests

2 participants