Closed crgeary closed 6 years ago
@chrisgeary92 odd, looks like it needs to be an html string to work properly. Also, I believe the url's are either being escaped or parsed differently.
This should all be resolved when #254 is merged.
Awesome, thanks for the quick response! 👍
This should now be resolved as of 0.5.0.
- Do you want to request a feature or report a bug?
BUG
- What is the current behavior?
Editor components that contain URLs (and mailto:, tel:) links do not render previews correctly. An image has been included below as an example.
- If the current behavior is a bug, please provide the steps to reproduce.
Add the following editor component, and try to add a Hugo button shortcode that contains a URL and it should prevent the preview from rendering correctly. Screenshot above.
Example shortcode:
{{% button href="https://google.com" %}}
Alternatively, clone chrisgeary92/netlify-cms-editor-issue, update the repo in
config.yml
and try it out.- What is the expected behavior?
Expecting the
toPreview
function to be shown in the preview.Input:
Expected output: