reggi / evalmd

:fishing_pole_and_fish: Evaluates javascript code blocks from markdown files.
MIT License
47 stars 5 forks source link

typescript, tsx, jsx support #14

Open reggi opened 5 years ago

reggi commented 5 years ago

Syntax block support for

How about we pipe these code blocks to another Unix command?

Add flag array to command.

Example,

--type=ts --type=typescript

Then we can pass all the code blocks in chunks into the ts-node command.

Kinda wanna support bash and go and rust blocks.

reggi commented 5 years ago

@ljharb thoughts?

ljharb commented 5 years ago

If it won’t require any extra work from evalmd consumers, then sure, that seems fine. I’d prioritize js and jsx to start tho.

ljharb commented 1 month ago

In general, I think that probably #27 would be better - iow, just use eslint's config, which will/can include the ability to define a parser that can handle whatever the user likes.