Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (29 sloc) 1004 Bytes
//
// MarkdownDelegate.h
// MarkEdit
//
// Created by bodhi on 1/04/10.
// Copyright 2010 Apple Inc. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "MarkdownDocument.h"
@class OGRegularExpression;
@interface MarkdownDelegate : NSObject <NSTextStorageDelegate> {
NSTextView *text;
NSDictionary *blockquoteAttributes, *metaAttributes,
*codeAttributes, *strongAttributes, *emAttributes,
*blankAttributes, *h1Attributes, *h2Attributes,
*defaultAttributes, *hrAttributes;
NSMutableDictionary *references;
NSString *MarkdownCodeSection;
OGRegularExpression *imageNoAttachment;
OGRegularExpression *attachedImage;
OGRegularExpression *attachmentNoImage;
OGRegularExpression *inlinePattern, *linkRegex, *image, *setex, *blank, *indented, *bareLink;
IBOutlet MarkdownDocument *document;
NSArray *mainOrder, *lineBlocks;
NSDictionary *blocks;
bool newReferences;
}
@property (assign) IBOutlet NSTextView *text;
@end