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

A better markdown builtin cell #7

Open
asg017 opened this issue May 2, 2021 · 0 comments
Open

A better markdown builtin cell #7

asg017 opened this issue May 2, 2021 · 0 comments
Labels
Milestone

Comments

@asg017
Copy link
Owner

asg017 commented May 2, 2021

Currently, Dataflow uses htl for the html and svg builtin cells, which offers much more functionality than the current builtin html and svg cells in the standard library.

However, it still uses the default markdown builtin md, which I find a little bit awkward. I'm not too sure how to improve it, but here's a few things I've always found annoying with the md builtin, which would be nice to fix:

// #1 tables

md`|These|columns|are|annoying|to|type
|-|-|-|-|-|-
${data.map(d=>{
  returning a string that gets concatenating into markdown which compiles to html, how weird
  return `|${d.i}|${d.hate}|${d.this}`
} )}`

// #2 no plugins, like checkboxes or anything

md`todo list

- [ ] this don't work
${customCheckbox("you have to build your own custom html component")}
`

Then again, markdown parsing doesn't sound too fun, it would probably be backwards incompatible, and doesnt feel too high of a priority

@asg017 asg017 added this to the v1 milestone May 2, 2021
@asg017 asg017 added the wish label May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant