Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is more like a DSL with Markdown embedded for the textual parts, but still cool.

An actual Markdown syntax extension for forms would be interesting. [_____] for text fields?



MDX is great for this, you can intermix JS/TS, JSX, and Markdown

https://mdxjs.com/

You can write any components normally and pass them in to be available in MDX. You can make forms and much more


Whats the appeal of Markdown anyway when we are not using Notepad? My ide has same number of keystrokes for `<h3>` and `###`? Might as well go all in on JSX.


You forgot to close your h3 tag, so 2x. Changing it is also more keystrokes

Most non technical people are comfortable writing markdown, especially when there is a rich text editor. They are not going to write JSX. Markdown is focused on the textual content, not the presentation


Almost literally what you describe: https://createhtmlform.com/ Apparently not open source though.


I thought about the ____ syntax, but found it quite hard to fit in extra parameters in a nice way.


Yeah I'm curious if the Markdown form syntax here is totally new or if other people have done something similar. I'm building an app that extends Markdown with Excel-like formulas (think function calls, not arithmetic) and have considered having formulas that instantiate form elements.


Sounds like a really interesting app!


Yeah, is anyone familiar with other DSLs for form/survey building and logic?

For my work, where we produce lots of surveys and reuse parts of them/run near duplicates monthly, I've been curious to see if there's any dual code and GUI options out there to allow for survey programming to be version controlled and forked, etc.


> Yeah, is anyone familiar with other DSLs for form/survey building and logic?

This would be one: https://github.com/leemeichin/ask_awesomely

That's a client library for interacting with now defunct Typeform I/O, so it won't work anymore. But maybe the DSL itself could be an inspiration, or you could wrangle a fork of the library to create the forms locally.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: