Projets
Voir sur GitHub
NimbusKit/markdown
À propos
Un analyseur Markdown pour NSAttributedString.
Outils de développementProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalA Markdown NSAttributedString Parser
This is a Markdown => NSAttributedString parser built on top of a flex parser. It takes an NSString and returns an NSAttributedString with markdown tags replaced by CoreText formatting attributes.
Adding it to your Project
- Drag all of the files from the src/ directory into your project.
- Import NSAttributedStringMarkdownParser.h in your project.
- Create an instance of the parser object and pass it the string you wish to parse.
- Plug the resulting NSAttributedString into your favorite NSAttributedString label implementation.
NSAttributedString Labels
Nimbus: https://github.com/jverkoey/nimbus TTTAttributedLabel: https://github.com/mattt/TTTAttributedLabel
Supported Features
*italics*
**bold**
***bold italic***
~~strikethrough~~
# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6
Header 1
========
Header 2
--------
http://google.com urls
[Text] (http://google.com "alt text") urls
Example
NSAttributedStringMarkdownParser* parser = [[NSAttributedStringMarkdownParser alloc] init];
NSAttributedString* string = [parser attributedStringFromMarkdownString:
@"This is __rad__."];
See the Catalog application included with the project for more examples.
Explorer des projets similaires
Chargement…