neoformat icon indicating copy to clipboard operation
neoformat copied to clipboard

Add formatter for MDX files

Open anmonteiro opened this issue 6 years ago • 3 comments

https://mdxjs.com (Markdown + JSX)

anmonteiro avatar Sep 23 '19 02:09 anmonteiro

Looks good!

Could you also update ‘docs/neoformat.txt’ and the ’README.md’?

Thanks

sbdchd avatar Sep 23 '19 12:09 sbdchd

Thanks for the review. I'm happy to do that but I couldn't get this working yet because the filetype I get is actually markdown.mdx (compounded filetype).

As per the documentation:

When a dot appears in the value then this separates two filetype names. Example: /* vim: set filetype=c.doxygen : */ ~

Does neoformat support compound filetypes like the above?

anmonteiro avatar Sep 23 '19 21:09 anmonteiro

Yeah I don’t think it does. I think the only solution currently is to set the file type to just be ‘mdx’

sbdchd avatar Sep 26 '19 12:09 sbdchd