-
Why laika convert Is there any specific reason for this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello and welcome. I think you'd need to provide more context or a full example of what you are doing. This does not happen in normal use cases and I cannot reproduce it either. And assuming that this is supposed to be Markdown, this would be link syntax and it is not clear how you use it and what it is supposed to link to. |
Beta Was this translation helpful? Give feedback.
-
Hi, of course, sorry for not being specific. I try to transform short statements which are user inputs in Md to HTML.
and I'm getting an error:
What I want for errors is just ignore them and take the raw text in that case so I'm adding custom config:
and the result of the transformation is
I'm not very familiar with this tool yet. So maybe I'm doing something wrong. |
Beta Was this translation helpful? Give feedback.
-
Ah, now I understand, thanks for adding some context. What you are doing is not strictly wrong, but quite unusual and therefore not one of the use cases supported out of the box. The Now what you want is neither fail on errors nor render them as errors, but treat them as basic text input, which is quite unusual. This is still possible, but you would need to dig a bit deeper in Laika's extension APIs, in particular "Overriding Renderers": https://planet42.github.io/Laika/latest/04-customizing-laika/06-overriding-renderers.html. You would need to match on |
Beta Was this translation helpful? Give feedback.
Ah, now I understand, thanks for adding some context. What you are doing is not strictly wrong, but quite unusual and therefore not one of the use cases supported out of the box. The
failOnMessages
setting you are using is mostly intended to be used for "Visual Debugging", meaning instead of aborting the transformation with an error, it will render the errors in place instead, e.g. when using the preview server of the sbt plugin. More details on how this is meant to be used can be found here: https://planet42.github.io/Laika/latest/02-running-laika/03-configuration.html#visual-debuggingNow what you want is neither fail on errors nor render them as errors, but treat them as basic text inp…