meteorlxy / vue-showdown

:page_with_curl: Use showdown as a vue component
https://vue-showdown.js.org
MIT License
129 stars 23 forks source link

options not working #25

Closed blairun closed 3 years ago

blairun commented 3 years ago

I'm having trouble making the options work. I've also tried loading showdown as a plugin (rather than component) with the same result. For example, the code below doesn't render the emoji as I would expect.

I'm using "vue": "2.6.12", "vue-showdown": "2.4.1",

<template>
  <div>
    <VueShowdown
      markdown="**Testing 123**  :smile"
      :options="{ emoji: true }"
    />
  </div>
</template>
<script>
import { VueShowdown } from 'vue-showdown'
export default {
  components: {
    VueShowdown,
  }
</script>

renders as: Testing 123 :smile

meteorlxy commented 3 years ago

Looks like you've missed the ending : ? i.e.

:smile -> :smile:

meteorlxy commented 3 years ago

Closing as this looks stale.