decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.81k stars 3.04k forks source link

editor: bare markdown links do not render as one might expect in the preview panel #1004

Closed fool closed 1 year ago

fool commented 6 years ago

- Do you want to request a feature or report a bug?

feature - but some might think it a bug.

- What is the current behavior?

currently, when you use a bare link like https://a.b in markdown, it renders as an unclickable https//a.b in the preview pane of the editor. However, most markdown viewers (github, as well as hugo and other SSG's) will render that as a clickable link. The editor does not and this is not a huge inconvenience or arguably even a misbehavior - but it does diminish the "WYSIWYG" experience vs what I believe might be the common real-world behavior.

- What is the expected behavior?

It'd be great if bare links (https://a.b NOT [document](https://a.b)) were clickable and styled as such in the preview pane.

- Please mention your CMS, node.js, and operating system version.

1.0.3/v6.12.3/Ubuntu 14.04 (netlify defaults)

- Please link or paste your config.yml below if applicable.

No type or widget customization in our yml.

erquhart commented 6 years ago

Yeah that was disabled here: https://github.com/netlify/netlify-cms/commit/fddbf8f7f02c96fa4818cc5d2638e32531cc2491

Good point, SSG's are going to generally convert, so we should too.

verythorough commented 6 years ago

I think you'd want to be sure that the preview could be configured not to convert, though, too.

tech4him1 commented 6 years ago

Good point, SSG's are going to generally convert, so we should too.

@erquhart Do you have any specific examples? I'd expect my MD to come out without extra formatting 😄.

erquhart commented 6 years ago

Hugo is one, and I've seen others (which I'm assuming is why Remark does this automatically). GitHub does it automatically too: https://www.olddvdscreensaver.com

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

martinjagodic commented 1 year ago

Closing as stale and/or outdated.