How can I render child row to present markdown?
How can I render child row to present markdown?
Hi, I have been using DataTables and Editor more and more extensively. Recently I have installed a Table where I need to show large text data using markdown. The child row functions properly. However, I am unable to format it to render data for markdown. I have read all available sources, but I can not compile a proper script. Please, help!
Many thanks!
Miklos
This question has an accepted answers - jump to answer
Answers
Hi Miklos,
Two options:
If you are able to link to an example, I should be able to give a more specific answer.
Allan
Many thanks Allan for your quick reply! I will give it a try and report back.
I love DataTables and Editor, although I am an absolutely amateur, so it will not be easy for you to guide me through..
Dear Allan,
Had no time to accomplish so far, just to read the info you have sent. Many thanks.
Below is my code, maybe this clarifies my trouble. I truly appreciate your help.
Awesome - thank you. I would suggest that line 43 in the above is where you could do the Markdown formatting - something like:
where
markdown()
is a function from an external library. I've usedmarkdown-it
before and found it to be very effective.Allan
And here is the link:
https://mutetek.laparo.hu/page-6/page-9/opdescript.html
Many thanks, I go ahead and give it a try. You are providing an awesome support, thanks. TwoThumbsUp!
OK, now the child row is frozen. Table loads, but that is it.
Dear Allan, after reading a lot, I am getting a little bit closer. Which default JS file have you used from the the package author (jsdelivr.com)?
Dear Allan, I have solved it.
I have found the solution here:
https://stackoverflow.com/questions/1867669/markdown-live-preview-in-textarea
It is now working perfect.
Thank you for your suggestion, it pushed me forward to achieve what I needed.
I love the Editor and Datatables. Many thanks, Miklos
Hi Miklos,
Awesome - delighted to hear that you've got it working
Allan