flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

Namespaces in embedded HTML blocks not supported?

Open alexkrapf opened this issue 4 years ago • 3 comments

I'm trying to embed an element like this

<ns:elem attr=""> ... </ns:elem>

in my document (surrounded by blank lines) and the parser does not recognize this as an HTML block even when HTML_BLOCK_START_ONLY_ON_BLOCK_TAGS is set to false. It works with a non-namespace elem tag. Is there any way to configure the parser to accept tags with namespaces?

BTW: thank you for flexmark! It's great to work with.

alexkrapf avatar Oct 22 '21 19:10 alexkrapf

Next release I added an option to allow namespaces in element tags: Parser.HTML_ALLOW_NAME_SPACE, default false . Also changed deep HTML parser to always allow namespaces in tags.

Next release is being prepared now. Should be out today or tomorrow.

vsch avatar Jan 30 '22 13:01 vsch

Hi Vladimir,

Thank you so much for all the work you’re doing. It’s a daunting task to try to learn your entire framework, so I don’t know if I can add a lot of value, but let me know if you would like me to help a bit with some small tasks.

Regards,

Alex

On Jan 30, 2022, at 8:57 AM, Vladimir Schneider @.***> wrote:

Next release I added an option to allow namespaces in element tags: Parser.HTML_ALLOW_NAME_SPACE, default false . Also changed deep HTML parser to always allow namespaces in tags.

Next release is being prepared now. Should be out today or tomorrow.

— Reply to this email directly, view it on GitHub https://github.com/vsch/flexmark-java/issues/482#issuecomment-1025149231, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3CYQS2FMRP64YDVDLE3O3UYU7TVANCNFSM5GRHGNLA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.

alexkrapf avatar Jan 30 '22 18:01 alexkrapf

I have to agree with you on the statement:

... It’s a daunting task to try to learn your entire framework, ...

I have been busy with non-programming projects for over a year and coming back to the framework is a serious effort since I have forgotten a lot of the details. Tasks which used to take minutes now take hours, as I have to study the code to remember how it should be done.

The latest stumbling block is figuring out changes to Maven and Nexus repository manager so I can stage the Maven release of the next version.

vsch avatar Feb 01 '22 22:02 vsch