| 
				
					 | 
			9 年之前 | |
|---|---|---|
| .. | ||
| Text | 9 年之前 | |
| LICENSE | 9 年之前 | |
| README.md | 9 年之前 | |
| ptolemy-reader-slackdown.cabal | 9 年之前 | |
ptolemy-slackdown-readerThis module implements a ptolemy reader for the limited
Markdown-like language understood by Slack and other chat
services. This understands only a few basic inline markup
constructs:
*asterisks* for bold text_underscores_ for emphasized text~tildes~ for ~strikethrough text~backticks for inline codeIt also understands two block-level constructs, but these
can be turned off using the SlackdownOpts value passed to
the parser:
> become a blockquoteAmong other things, this is a good idea for situations where the full generality of Markdown is probably unnecessary. You don't want your blog comments or chat messages to include H2 headers or horizontal rules, but some bold and italic text would be fine!
Right now this is largely untested, and it badly needs QuickCheck or fuzzing, because it should absolutely be the case that every possible string parses as something, even if that something just doesn't include markup. This is certainly not the case right now.