4 ms·
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. [____
by rafram 2y ago
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?
- bthallplz 2y agoYeah, 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.
- diggan 2y ago> Yeah, is anyone familiar with other DSLs for form/survey building and logic? This would be one: https://github.com/leemeichin/ask_awesomely 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.
- lukasb 2y agoYeah 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.
- nbbaier 2y agoSounds like a really interesting app!
- verdverm 2y agoMDX is great for this, you can intermix JS/TS, JSX, and Markdown https://mdxjs.com/ 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
- aitchnyu 2y agoWhats 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.
- verdverm 2y agoYou 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
- nine_k 2y agoAlmost literally what you describe: https://createhtmlform.com/ https://createhtmlform.com/ Apparently not open source though.
- darkhorse13 2y agoI thought about the ____ syntax, but found it quite hard to fit in extra parameters in a nice way.