Okay, I thought I’d ask here before SO.
Basically, I’m thinking of creating a small dictionary for my pupils, Wiki-like but less complicated (Wikipedia tends to throw in everything and the kitchen sink). The content will be strictly limited to stuff we covered in our lessons.
As a result, I’d like to use some kind of Markdown - I don’t need the full monty and can cover that part with Regular Expressions. Since I’ll be the only one to use that, I can live with inadequacies. That’s not the problem, either.
My problem comes from the fact that I want to use cross-references. Say, it’s an explanation of “voltage” and the text mentions “current”. Thus I’d like to link to the explanation of “current”.
With a bog-standard page, no problem, the result would look like:
<a href="/dictionary/current">Current</a>
However, I’m using React-Router and a normal hyperlink leads to a complete page-refresh.
A normal link with React-Router looks like this:
<Link to="/dictionary/current">Current</Link>
Is there some way I can easily incorporate this into dynamic content, i.e. content which I’m pulling from the database.
Someone do this before?