Open thesteff opened 7 years ago
Having a similar issue. I wanted to added a HTML link to open a website in a new window. Standard not supported by Markdown hence regular HTML. This does not work, i am routed to a non-existing page. Anything missing in my installation or something to configure or still a bug?
Same as @thesteff. html tags are interpreted in plain text in the preview panel.
I am on nextcloud 12.0.3 (from wonderfall/nextcloud docker image) with Markdown Editor 2.0.1
All html tags are displayed instead of interpreted. Versions are Nextcloud 13.0.0 and files_markdown 2.0.1
Here is a quick and dirty workaround to enable HTML tags in Notes v2.3.2.
WARNING: USE AT YOUR OWN RISK! Do it ONLY if you understand what you do. This is your decision to apply this workaround, not mine. I cannot be held responsible for any damage to your NextCloud installation.
I successfully tested it on my NextCloud 13 installation running on ArchLinux.
/usr/share/webapps/nextcloud/apps/files_markdown
)js/Renderer.ts
file and insert html:true,
to line 79. You should get something like this:
78 this.md = new MarkdownIt({
79 html:true, // <= Do not forget the comma at the end of the line!
80 linkify: true
81 });
npm install
to install the tools required to rebuild the files_markdown app (it is expected that the npm
command is installed on your NextCloud server. If not, it is up to you to know how to install it).node_modules/.bin/webpack
command to rebuild the app.Note that enabling HTML tags in markdown could be a security risk. Note also that this change will probably be lost as soon as you will update your Notes app to a new version.
EDIT: typo
I'm glad @gbcreation posted a workaround, but I would really love to have this feature in the app without my intervention after every update.
Is there an ETA for this feature? I'm really missing that.
Just for now: @gbcreation is npm install
absolutely necessary or is there another way without it?
I'm not sure if I really want to have that feature. You can pass code that gets executed in so many ways and it's hard to catch them all. If this is provided, I think it should be an option that defaults to false.
Would be nice to have this option as a parameter
I think this feature is still broken? It is still listed as a feature this provides though.
Hi !
I've tried to test the example code from your home page project but the html tags aren't previewed correctly. When I code this part :
<h2 id="overview">Overview</h2>
The preview panel shows<h2 id="overview">Overview</h2>
Is there a thing to config to make the preview panel interpret html or something else ? Thanks !