aimer-deprecated icon indicating copy to clipboard operation
aimer-deprecated copied to clipboard

babel-plugin-aimer

Open egoist opened this issue 6 years ago • 2 comments

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

aimer.add({
  readme: 'some markdown',
  example: 'some code'
})

egoist avatar Nov 01 '17 05:11 egoist

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'
})

mblarsen avatar Nov 01 '17 10:11 mblarsen

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

egoist avatar Nov 01 '17 13:11 egoist