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

Proc-macro translates quote in markdown to HTML flagment #1

Merged
merged 7 commits into from
Mar 8, 2023
Merged

Conversation

termoshtt
Copy link
Owner

@termoshtt termoshtt commented Mar 7, 2023

Design

This proc-macro translates following markdown given as document

Head

```p5doc:200x100
p5.js user code
```

Tail

into

Head

<script src="https://cdn.jsdelivr.net/npm/p5@1.6.0/lib/p5.js"></script> <script> function setup() { var canvas = createCanvas(200, 100); canvas.parent("id-for-this-flagment"); } function draw() { p5.js user code } </script>

Tail

Limitation

TODO

  • Determine ID for the parent of <canvas>
  • Generate setup() code from p5doc:200x100 part
  • Generate draw() header and footer codes

@termoshtt termoshtt marked this pull request as ready for review March 8, 2023 12:54
@termoshtt termoshtt merged commit 407dcad into main Mar 8, 2023
@termoshtt termoshtt deleted the p5doc branch March 8, 2023 12:58
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.

1 participant