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

let Message support markdown, text included; allow textcard btntxt to be omitted #251

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

hophacker
Copy link
Contributor

@hophacker hophacker commented Jan 28, 2019

Wechat has supported markdown, which is much easier to write complex messages than other media types such as textcard, text.

Another reason of its importance is that, unlike textcard, text in which will be omitted once it's becoming a bit longer, one could write very very long text with markdown.

This commit added support for markdown. (Test included)

Besides that, this commit enables sending textcard without btntxt cause wechat corp provides default value 详情 if btntxt is omitted. (Test included)

All tests passed
Doc for markdown media type

@hophacker
Copy link
Contributor Author

image
This is what markdown message looks like.

@Eric-Guo Eric-Guo merged commit 8883ced into Eric-Guo:master Jan 29, 2019
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

Successfully merging this pull request may close these issues.

2 participants