hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.91k stars 16.65k forks source link

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

Open ooker777 opened 4 months ago

ooker777 commented 4 months ago

Investigating https://github.com/hakimel/reveal.js/issues/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 commented 3 months ago

I also have no clue why this is is necessary lol