You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:
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:
Can anyone help me to figure out the right approach?
The text was updated successfully, but these errors were encountered: