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

Would it be possible to filter the Markdown (plain text) to remove some "markdown-isms"? #57

Closed
walterdavis opened this issue Sep 28, 2021 · 2 comments

Comments

@walterdavis
Copy link

It would be nice if there was a way to filter out some (but not all) of the Markdown syntax from the plain text that gets sent in the mail. For example:

## This is a call to action

Please [click here](http://example.com) to learn more.

* Reasons why
* Reasons why
* Reasons why

might become

This is a call to action

Please click here: http://example.com to learn more.

* Reasons why
* Reasons why
* Reasons why

It's a subtle thing, and it would take some design thinking to ensure that we don't strip away too much of the meaning (inline stuff like bold and italic would need to remain, I think) but it could make the text reading experience better.

Or, am I missing something, and this is already happening? I have used this in a couple of projects in the past, and it always seemed to me that the raw Markdown was being served (with its ERB context filled in, naturally).

Thoughts?

@schneems
Copy link
Member

schneems commented Oct 2, 2021

You can configure your handler for text here https://github.com/codetriage/maildown#configure-markdown-renderer it might be possible to configure this behavior there (but I don’t know)

@schneems
Copy link
Member

It's been awhile If you figured this out please post back to let others know.

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