egoist / aimer-deprecated

The UI Development Framework
MIT License
41 stars 2 forks source link

babel-plugin-aimer #3

Open egoist opened 7 years ago

egoist commented 7 years ago

automatically transform markdown to html and highlight code blocks / example:

aimer.add({
  readme: 'some markdown',
  example: 'some code'
})
mblarsen commented 6 years ago

You could use a template tag function. But I guess you want it simpler?

const { markdown as md } from 'aimer' // or any markdown lib

aimer.add({
  readme: md`some markdown`,
  example: 'some code'
})
egoist commented 6 years ago

@mblarsen yeah, to make it simpler, currently you can already use babel-plugin-markdown or babel-macros