Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render HTML within MD with HTML-allowing plugins? #26

Closed
fthommen opened this issue Aug 26, 2023 · 2 comments
Closed

Render HTML within MD with HTML-allowing plugins? #26

fthommen opened this issue Aug 26, 2023 · 2 comments

Comments

@fthommen
Copy link

You write "Since DW do not parses raw HTML without htmlok config, HTML blocks is passed." (https://github.com/clockoon/dokuwiki-plugin-commonmark). However even with plugins which allow HTML (htmlok or Config:HTMLOk), HTML is not parsed. We use extensively HTML e.g. to create structured lists within Markdown tables (which is compatible with GitLab flavoured MD) and we hoped to be able to integrate these pages in DW.

Such a block could look like

| X | Y |
| ----------- | ----------------- |
| <ul><li>A<li>B<ul><li>Ba<li>Bb</ul><li>C</ul> | me |

and render in Gitlab/MD like

X Y
  • A
  • B
    • Ba
    • Bb
  • C
me

but looks like this in DW with the Config:HTMLOk plugin and the Commonmark plugin:
image

Are there plans to render (raw) HTML in the future?

@clockoon
Copy link
Owner

It is my mistake to remove HTML tags during parse, not just pass through. I will fix it shortly.

@clockoon
Copy link
Owner

The issue is fixed in 8f24791, and README have been updated for reflecting DW's HTML policy change in 93775a6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants