프로젝트
GitHub에서 보기
NimbusKit/markdown
소개
Markdown NSAttributedString 파서입니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
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.
관련 프로젝트 살펴보기
불러오는 중…