This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
UILabel *label1 = [UILabel new]; | |
UILabel *label2 = [UILabel new]; | |
UILabel *label3 = [UILabel new]; | |
UILabel *label4 = [UILabel new]; | |
[label1 setTranslatesAutoresizingMaskIntoConstraints:NO]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *plaintext = @"**text to render**"; | |
struct sd_markdown *markdown; | |
struct html_renderopt html_options; | |
unsigned int render_flags = HTML_HARD_WRAP; | |
unsigned int extensions = MKDEXT_NO_INTRA_EMPHASIS | | |
MKDEXT_TABLES | | |
MKDEXT_FENCED_CODE | | |
MKDEXT_AUTOLINK | |