File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 254254</template >
255255
256256<script >
257+ import Vue from " vue"
257258import moment from " @nextcloud/moment"
259+ import VueShowdown from " vue-showdown"
258260
259261import api from " cookbook/js/api-interface"
260262import helpers from " cookbook/js/helper"
@@ -268,6 +270,13 @@ import RecipeNutritionInfoItem from "./RecipeNutritionInfoItem.vue"
268270import RecipeTimer from " ./RecipeTimer.vue"
269271import RecipeTool from " ./RecipeTool.vue"
270272
273+ // Markdown for Vue
274+ // Used by RecipeTool, RecipeInstruction, and RecipeIngredient
275+ Vue .use (VueShowdown, {
276+ // set default flavor for Markdown
277+ flavor: " vanilla" ,
278+ })
279+
271280export default {
272281 name: " RecipeView" ,
273282 components: {
Original file line number Diff line number Diff line change 66 */
77
88// Markdown
9- import VueShowdown from "vue-showdown"
10- import moment from 'moment'
9+ import moment from "moment"
1110
1211import { generateUrl } from "@nextcloud/router"
1312
@@ -56,12 +55,6 @@ if (__webpack_use_dev_server__ || false) {
5655 Vue . prototype . $window = window
5756 Vue . prototype . OC = OC
5857
59- // Markdown for Vue
60- Vue . use ( VueShowdown , {
61- // set default flavor for Markdown
62- flavor : "vanilla" ,
63- } )
64-
6558 // Pass translation engine to Vue
6659 Vue . prototype . t = window . t
6760
You can’t perform that action at this time.
0 commit comments