Currently, I am in the process of learning Vue and working on a simple wiki page project. The raw article data is stored in a JSON file written using custom markup. For example, the following markup:
The ''sun'' is {r=black black}
should be translated as follows:
<p>The <b>sun</b> is <Ref path="/black">black</p>
I have managed to achieve this using regular expressions and string manipulation techniques. However, I cannot use this processed string as a template option because it only works with static inputs. If it were pure HTML, I could have utilized the v-html directive or similar methods.
My current template fetches the JSON file and interprets my custom markup based on preset criteria. It then generates a string containing Vue markup, which unfortunately cannot be assigned to the 'template' options due to its restriction to static strings and inability to recognize variables.
I attempted assigning the template options with a pre-compiled Vue markup or utilizing a runtime compiler mechanism. Yet, I may be misunderstanding something. Any suggestions on how I can proceed?