Closed
Description
I'm writing a REST API documentation.
So my idea is to have all of the response in JSON format and require them in .md files.
For example:
{{ require('./get_customer.json') }}
This works pretty great so far and the only limitation is that it doesn't apply the code highlight.
Because vuepress parse .md to html and then use vue-loader to process the code.
As far as I understand, I have 2 options:
- Client processing: I'll use client js and when the page is rendered, apply the highlight js
- Server processing: because vuepress has prismjs built-in, I can create a vue component and has the server renders it.
Can anyone help me to figure out the right approach?
Metadata
Metadata
Assignees
Labels
No labels