From 0877750536a2603d43ab47ed7884ca416d048fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Attali?= Date: Sun, 27 Oct 2019 20:15:03 +0100 Subject: [PATCH 1/5] format with clang formatter --- .clang-format | 1 + GeneratePreviewForURL.m | 26 ++-- GenerateThumbnailForURL.m | 76 +++++------ Readme.markdown | 10 +- discount-config/README.markdown | 2 +- discount-config/config.h | 9 +- discount-config/mkdio.h | 113 ++++++++-------- discount-wrapper.c | 27 ++-- discount-wrapper.h | 2 +- main.c | 220 +++++++++++++++----------------- markdown.h | 2 +- markdown.m | 22 ++-- sample.md | 37 +++--- sample.xhtml | 12 +- 14 files changed, 264 insertions(+), 295 deletions(-) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..c3ea599 --- /dev/null +++ b/.clang-format @@ -0,0 +1 @@ +ColumnLimit: 120 diff --git a/GeneratePreviewForURL.m b/GeneratePreviewForURL.m index 2f500c3..722855e 100644 --- a/GeneratePreviewForURL.m +++ b/GeneratePreviewForURL.m @@ -1,6 +1,6 @@ -#import -#import #include "markdown.h" +#import +#import /* ----------------------------------------------------------------------------- Generate a preview for file @@ -8,23 +8,21 @@ This function's job is to create preview for designated file -------------------------------------------------------------------------- */ -OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, - CFURLRef url, CFStringRef contentTypeUTI, - CFDictionaryRef options) -{ - @autoreleasepool { - NSData *data = renderMarkdown((__bridge NSURL*) url); +OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, + CFStringRef contentTypeUTI, CFDictionaryRef options) { + @autoreleasepool { + NSData *data = renderMarkdown((__bridge NSURL *)url); if (data) { - NSDictionary *props = [[NSDictionary alloc] init]; - QLPreviewRequestSetDataRepresentation(preview, (__bridge CFDataRef)data, kUTTypeHTML, (__bridge CFDictionaryRef)props); + NSDictionary *props = [[NSDictionary alloc] init]; + QLPreviewRequestSetDataRepresentation(preview, (__bridge CFDataRef)data, kUTTypeHTML, + (__bridge CFDictionaryRef)props); } return noErr; - } + } } -void CancelPreviewGeneration(void* thisInterface, QLPreviewRequestRef preview) -{ - // implement only if supported +void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview) { + // implement only if supported } diff --git a/GenerateThumbnailForURL.m b/GenerateThumbnailForURL.m index e3b5e08..58dd971 100644 --- a/GenerateThumbnailForURL.m +++ b/GenerateThumbnailForURL.m @@ -1,7 +1,7 @@ -#import +#include "markdown.h" #import +#import #import -#include "markdown.h" /* ----------------------------------------------------------------------------- Generate a thumbnail for file @@ -10,63 +10,49 @@ possible -------------------------------------------------------------------------- */ -//The minimum aspect ratio (width / height) of a thumbnail. -#define MINIMUM_ASPECT_RATIO (1.0/2.0) - +// The minimum aspect ratio (width / height) of a thumbnail. +#define MINIMUM_ASPECT_RATIO (1.0 / 2.0) -OSStatus GenerateThumbnailForURL(void *thisInterface, - QLThumbnailRequestRef thumbnail, - CFURLRef url, CFStringRef contentTypeUTI, - CFDictionaryRef options, CGSize maxSize) -{ - @autoreleasepool { - NSData *data = renderMarkdown((__bridge NSURL*) url); +OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, + CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize) { + @autoreleasepool { + NSData *data = renderMarkdown((__bridge NSURL *)url); if (data) { - NSRect viewRect = NSMakeRect(0.0, 0.0, 600.0, 800.0); - float scale = maxSize.height / 800.0; - NSSize scaleSize = NSMakeSize(scale, scale); - CGSize thumbSize = NSSizeToCGSize( - NSMakeSize((maxSize.width * (600.0/800.0)), - maxSize.height)); + NSRect viewRect = NSMakeRect(0.0, 0.0, 600.0, 800.0); + float scale = maxSize.height / 800.0; + NSSize scaleSize = NSMakeSize(scale, scale); + CGSize thumbSize = NSSizeToCGSize(NSMakeSize((maxSize.width * (600.0 / 800.0)), maxSize.height)); - WebView* webView = [[WebView alloc] initWithFrame: viewRect]; - [webView scaleUnitSquareToSize: scaleSize]; - [[[webView mainFrame] frameView] setAllowsScrolling:NO]; - [[webView mainFrame] loadData: data - MIMEType: @"text/html" - textEncodingName: @"utf-8" - baseURL: nil]; + WebView *webView = [[WebView alloc] initWithFrame:viewRect]; + [webView scaleUnitSquareToSize:scaleSize]; + [[[webView mainFrame] frameView] setAllowsScrolling:NO]; + [[webView mainFrame] loadData:data MIMEType:@"text/html" textEncodingName:@"utf-8" baseURL:nil]; - while([webView isLoading]) { - CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, true); - } + while ([webView isLoading]) { + CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, true); + } - [webView display]; + [webView display]; - CGContextRef context = - QLThumbnailRequestCreateContext(thumbnail, thumbSize, false, NULL); + CGContextRef context = QLThumbnailRequestCreateContext(thumbnail, thumbSize, false, NULL); - if (context) { - NSGraphicsContext* nsContext = - [NSGraphicsContext - graphicsContextWithGraphicsPort: (void*) context - flipped: [webView isFlipped]]; + if (context) { + NSGraphicsContext *nsContext = [NSGraphicsContext graphicsContextWithGraphicsPort:(void *)context + flipped:[webView isFlipped]]; - [webView displayRectIgnoringOpacity: [webView bounds] - inContext: nsContext]; + [webView displayRectIgnoringOpacity:[webView bounds] inContext:nsContext]; - QLThumbnailRequestFlushContext(thumbnail, context); + QLThumbnailRequestFlushContext(thumbnail, context); - CFRelease(context); - } + CFRelease(context); + } } return noErr; - } + } } -void CancelThumbnailGeneration(void* thisInterface, QLThumbnailRequestRef thumbnail) -{ - // implement only if supported +void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbnail) { + // implement only if supported } diff --git a/Readme.markdown b/Readme.markdown index d88f5b9..651761e 100644 --- a/Readme.markdown +++ b/Readme.markdown @@ -10,12 +10,12 @@ Introduction ------------ QLMarkdown is a simple QuickLook generator for Markdown files. It renders a -preview of the selected Markdown file using [Discount][Discount] -- a C implementation of +preview of the selected Markdown file using [Discount][Discount] -- a C implementation of John Gruber's Markdown.pl script. To update to the latest version of discount run `./discount-config/update-discount.sh` -For more information on Markdown see +For more information on Markdown see . @@ -39,7 +39,7 @@ To uninstall: `$ brew cask uninstall qlmarkdown` - **Note:** *QuickLook doesn't allow selecting text by default. If you want to select the text in the markdown preview, you will + **Note:** *QuickLook doesn't allow selecting text by default. If you want to select the text in the markdown preview, you will need to enable text selection in QuickLook by running the following command in Terminal:* `defaults write com.apple.finder QLEnableTextSelection -bool TRUE; killall Finder` @@ -53,7 +53,7 @@ Downloads Source code is available at . -You can download the [latest](https://github.com/toland/qlmarkdown/releases/latest) release from +You can download the [latest](https://github.com/toland/qlmarkdown/releases/latest) release from License @@ -79,7 +79,7 @@ Version 1.1 - Feb 11, 2009 * Adding a little bit of CSS styling. (mdk) * Replace the Perl markdown renderer with a native C one (discount). (mdk) * Conform to public plain-text. Will make spotlight index the file - contents. (mdk) + contents. (mdk) * Added support for .md file extension (sant0sk1) Version 1.0 - July 15, 2008 diff --git a/discount-config/README.markdown b/discount-config/README.markdown index c45c5ed..0bf73c3 100644 --- a/discount-config/README.markdown +++ b/discount-config/README.markdown @@ -17,7 +17,7 @@ Discount is included as a [fake submodule][]. To upgrade or test other versions rm -rf discount/ git clone git://github.com/Orc/discount.git discount -The discount folder will contain a .git folder following the clone however this folder is not included in the enclosing repository and will not be propagated by a push or clone. +The discount folder will contain a .git folder following the clone however this folder is not included in the enclosing repository and will not be propagated by a push or clone. ## Config files ## diff --git a/discount-config/config.h b/discount-config/config.h index fb5e40b..0bbf57b 100644 --- a/discount-config/config.h +++ b/discount-config/config.h @@ -1,13 +1,12 @@ #ifndef __AC_MARKDOWN_D #define __AC_MARKDOWN_D 1 - #define OS_DARWIN 1 #define USE_EXTRA_DL 1 #define USE_DISCOUNT_DL 1 #define WITH_FENCED_CODE 1 -#define while(x) while( (x) != 0 ) -#define if(x) if( (x) != 0 ) +#define while (x) while ((x) != 0) +#define if (x) if ((x) != 0) #define DWORD unsigned int #define WORD unsigned short #define BYTE unsigned char @@ -17,7 +16,7 @@ #define INITRNG(x) srandom((unsigned int)x) #define HAVE_BZERO 1 #define HAVE_RANDOM 1 -#define COINTOSS() (random()&1) +#define COINTOSS() (random() & 1) #define HAVE_STRCASECMP 1 #define HAVE_STRNCASECMP 1 #define HAVE_FCHDIR 1 @@ -25,4 +24,4 @@ #define PATH_FIND "/usr/bin/find" #define PATH_SED "/usr/bin/sed" -#endif/* __AC_MARKDOWN_D */ +#endif /* __AC_MARKDOWN_D */ diff --git a/discount-config/mkdio.h b/discount-config/mkdio.h index 91d7fca..8a94457 100644 --- a/discount-config/mkdio.h +++ b/discount-config/mkdio.h @@ -9,15 +9,15 @@ typedef unsigned int mkd_flag_t; /* line builder for markdown() */ -MMIOT *mkd_in(FILE*,mkd_flag_t); /* assemble input from a file */ -MMIOT *mkd_string(const char*,int,mkd_flag_t); /* assemble input from a buffer */ +MMIOT *mkd_in(FILE *, mkd_flag_t); /* assemble input from a file */ +MMIOT *mkd_string(const char *, int, mkd_flag_t); /* assemble input from a buffer */ /* line builder for github flavoured markdown */ -MMIOT *gfm_in(FILE*,mkd_flag_t); /* assemble input from a file */ -MMIOT *gfm_string(const char*,int,mkd_flag_t); /* assemble input from a buffer */ +MMIOT *gfm_in(FILE *, mkd_flag_t); /* assemble input from a file */ +MMIOT *gfm_string(const char *, int, mkd_flag_t); /* assemble input from a buffer */ -void mkd_basename(MMIOT*,char*); +void mkd_basename(MMIOT *, char *); void mkd_initialize(); void mkd_with_html5_tags(); @@ -25,91 +25,90 @@ void mkd_shlib_destructor(); /* compilation, debugging, cleanup */ -int mkd_compile(MMIOT*, mkd_flag_t); -void mkd_cleanup(MMIOT*); +int mkd_compile(MMIOT *, mkd_flag_t); +void mkd_cleanup(MMIOT *); /* markup functions */ -int mkd_dump(MMIOT*, FILE*, int, char*); -int markdown(MMIOT*, FILE*, mkd_flag_t); +int mkd_dump(MMIOT *, FILE *, int, char *); +int markdown(MMIOT *, FILE *, mkd_flag_t); int mkd_line(char *, int, char **, mkd_flag_t); -typedef int (*mkd_sta_function_t)(const int,const void*); -void mkd_string_to_anchor(char *, int, mkd_sta_function_t, void*, int); -int mkd_xhtmlpage(MMIOT*,int,FILE*); +typedef int (*mkd_sta_function_t)(const int, const void *); +void mkd_string_to_anchor(char *, int, mkd_sta_function_t, void *, int); +int mkd_xhtmlpage(MMIOT *, int, FILE *); /* header block access */ -char* mkd_doc_title(MMIOT*); -char* mkd_doc_author(MMIOT*); -char* mkd_doc_date(MMIOT*); +char *mkd_doc_title(MMIOT *); +char *mkd_doc_author(MMIOT *); +char *mkd_doc_date(MMIOT *); /* compiled data access */ -int mkd_document(MMIOT*, char**); -int mkd_toc(MMIOT*, char**); -int mkd_css(MMIOT*, char **); +int mkd_document(MMIOT *, char **); +int mkd_toc(MMIOT *, char **); +int mkd_css(MMIOT *, char **); int mkd_xml(char *, int, char **); /* write-to-file functions */ -int mkd_generatehtml(MMIOT*,FILE*); -int mkd_generatetoc(MMIOT*,FILE*); -int mkd_generatexml(char *, int,FILE*); -int mkd_generatecss(MMIOT*,FILE*); +int mkd_generatehtml(MMIOT *, FILE *); +int mkd_generatetoc(MMIOT *, FILE *); +int mkd_generatexml(char *, int, FILE *); +int mkd_generatecss(MMIOT *, FILE *); #define mkd_style mkd_generatecss -int mkd_generateline(char *, int, FILE*, mkd_flag_t); +int mkd_generateline(char *, int, FILE *, mkd_flag_t); #define mkd_text mkd_generateline /* url generator callbacks */ -typedef char * (*mkd_callback_t)(const char*, const int, void*); -typedef void (*mkd_free_t)(char*, void*); +typedef char *(*mkd_callback_t)(const char *, const int, void *); +typedef void (*mkd_free_t)(char *, void *); void mkd_e_url(void *, mkd_callback_t); void mkd_e_flags(void *, mkd_callback_t); -void mkd_e_free(void *, mkd_free_t ); +void mkd_e_free(void *, mkd_free_t); void mkd_e_data(void *, void *); /* version#. */ extern char markdown_version[]; void mkd_mmiot_flags(FILE *, MMIOT *, int); -void mkd_flags_are(FILE*, mkd_flag_t, int); - -void mkd_ref_prefix(MMIOT*, char*); +void mkd_flags_are(FILE *, mkd_flag_t, int); +void mkd_ref_prefix(MMIOT *, char *); /* special flags for markdown() and mkd_text() */ -#define MKD_NOLINKS 0x00000001 /* don't do link processing, block tags */ -#define MKD_NOIMAGE 0x00000002 /* don't do image processing, block */ -#define MKD_NOPANTS 0x00000004 /* don't run smartypants() */ -#define MKD_NOHTML 0x00000008 /* don't allow raw html through AT ALL */ -#define MKD_STRICT 0x00000010 /* disable SUPERSCRIPT, RELAXED_EMPHASIS */ -#define MKD_TAGTEXT 0x00000020 /* process text inside an html tag; no - * , no , no html or [] expansion */ -#define MKD_NO_EXT 0x00000040 /* don't allow pseudo-protocols */ -#define MKD_NOEXT MKD_NO_EXT /* ^^^ (aliased for user convenience) */ -#define MKD_CDATA 0x00000080 /* generate code for xml ![CDATA[...]] */ -#define MKD_NOSUPERSCRIPT 0x00000100 /* no A^B */ -#define MKD_NORELAXED 0x00000200 /* emphasis happens /everywhere/ */ -#define MKD_NOTABLES 0x00000400 /* disallow tables */ -#define MKD_NOSTRIKETHROUGH 0x00000800 /* forbid ~~strikethrough~~ */ -#define MKD_TOC 0x00001000 /* do table-of-contents processing */ -#define MKD_1_COMPAT 0x00002000 /* compatibility with MarkdownTest_1.0 */ -#define MKD_AUTOLINK 0x00004000 /* make http://foo.com link even without <>s */ -#define MKD_SAFELINK 0x00008000 /* paranoid check for link protocol */ -#define MKD_NOHEADER 0x00010000 /* don't process header blocks */ -#define MKD_TABSTOP 0x00020000 /* expand tabs to 4 spaces */ -#define MKD_NODIVQUOTE 0x00040000 /* forbid >%class% blocks */ -#define MKD_NOALPHALIST 0x00080000 /* forbid alphabetic lists */ -#define MKD_NODLIST 0x00100000 /* forbid definition lists */ -#define MKD_EXTRA_FOOTNOTE 0x00200000 /* enable markdown extra-style footnotes */ -#define MKD_NOSTYLE 0x00400000 /* don't extract \n" + "\n" "\n" "\n" "\n" @@ -32,7 +34,8 @@ "", styles, url, [NSString stringWithUTF8String:output]]; - free(output); - return [html dataUsingEncoding:NSUTF8StringEncoding]; +// free(output); + + return html; } } From b2205d7bc53e71641cace50c5f2fa02b28790a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Attali?= Date: Sun, 27 Oct 2019 20:52:10 +0100 Subject: [PATCH 4/5] update theme with sindresorhus/github-markdown-css --- styles.css | 751 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 517 insertions(+), 234 deletions(-) diff --git a/styles.css b/styles.css index 62e4cdd..f617fa8 100644 --- a/styles.css +++ b/styles.css @@ -1,14 +1,67 @@ +/* + * github-markdown-css + * https://github.com/sindresorhus/github-markdown-css + */ + @font-face { font-family: octicons-link; - src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy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CJ7Au3AHj+LO13FMmm6cl7785vven0kBjHCBhfpYuNa5Ph1c0e2Xu3jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) + format("woff"); +} + +body .octicon { + display: inline-block; + fill: currentColor; + vertical-align: text-bottom; +} + +body .anchor { + float: left; + line-height: 1; + margin-left: -20px; + padding-right: 4px; +} + +body .anchor:focus { + outline: none; +} + +body h1 .octicon-link, +body h2 .octicon-link, +body h3 .octicon-link, +body h4 .octicon-link, +body h5 .octicon-link, +body h6 .octicon-link { + color: #1b1f23; + vertical-align: middle; + visibility: hidden; +} + +body h1:hover .anchor, +body h2:hover .anchor, +body h3:hover .anchor, +body h4:hover .anchor, +body h5:hover .anchor, +body h6:hover .anchor { + text-decoration: none; +} + +body h1:hover .anchor .octicon-link, +body h2:hover .anchor .octicon-link, +body h3:hover .anchor .octicon-link, +body h4:hover .anchor .octicon-link, +body h5:hover .anchor .octicon-link, +body h6:hover .anchor .octicon-link { + visibility: visible; } body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; + color: #24292e; line-height: 1.5; - color: #333; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, + Segoe UI Emoji, Segoe UI Symbol; font-size: 16px; line-height: 1.5; word-wrap: break-word; @@ -16,113 +69,139 @@ body { } body .pl-c { - color: #969896; + color: #6a737d; } body .pl-c1, body .pl-s .pl-v { - color: #0086b3; + color: #005cc5; } body .pl-e, body .pl-en { - color: #795da3; + color: #6f42c1; } -body .pl-smi, -body .pl-s .pl-s1 { - color: #333; +body .pl-s .pl-s1, +body .pl-smi { + color: #24292e; } body .pl-ent { - color: #63a35c; + color: #22863a; } body .pl-k { - color: #a71d5d; + color: #d73a49; } -body .pl-s, body .pl-pds, +body .pl-s, body .pl-s .pl-pse .pl-s1, body .pl-sr, body .pl-sr .pl-cce, -body .pl-sr .pl-sre, -body .pl-sr .pl-sra { - color: #183691; +body .pl-sr .pl-sra, +body .pl-sr .pl-sre { + color: #032f62; } +body .pl-smw, body .pl-v { - color: #ed6a43; + color: #e36209; } -body .pl-id { - color: #b52a1d; +body .pl-bu { + color: #b31d28; } body .pl-ii { - color: #f8f8f8; - background-color: #b52a1d; + background-color: #b31d28; + color: #fafbfc; +} + +body .pl-c2 { + background-color: #d73a49; + color: #fafbfc; +} + +body .pl-c2:before { + content: "^M"; } body .pl-sr .pl-cce { - font-weight: bold; - color: #63a35c; + color: #22863a; + font-weight: 700; } body .pl-ml { - color: #693a17; + color: #735c0f; } body .pl-mh, body .pl-mh .pl-en, body .pl-ms { - font-weight: bold; - color: #1d3e81; -} - -body .pl-mq { - color: #008080; + color: #005cc5; + font-weight: 700; } body .pl-mi { + color: #24292e; font-style: italic; - color: #333; } body .pl-mb { - font-weight: bold; - color: #333; + color: #24292e; + font-weight: 700; } body .pl-md { - color: #bd2c00; - background-color: #ffecec; + background-color: #ffeef0; + color: #b31d28; } body .pl-mi1 { - color: #55a532; - background-color: #eaffea; + background-color: #f0fff4; + color: #22863a; +} + +body .pl-mc { + background-color: #ffebda; + color: #e36209; +} + +body .pl-mi2 { + background-color: #005cc5; + color: #f6f8fa; } body .pl-mdr { - font-weight: bold; - color: #795da3; + color: #6f42c1; + font-weight: 700; } -body .pl-mo { - color: #1d3e81; +body .pl-ba { + color: #586069; } -body .octicon { - display: inline-block; - vertical-align: text-top; - fill: currentColor; +body .pl-sg { + color: #959da5; +} + +body .pl-corl { + color: #032f62; + text-decoration: underline; +} + +body details { + display: block; +} + +body summary { + display: list-item; } body a { background-color: transparent; - -webkit-text-decoration-skip: objects; } body a:active, @@ -132,9 +211,6 @@ body a:hover { body strong { font-weight: inherit; -} - -body strong { font-weight: bolder; } @@ -147,10 +223,6 @@ body img { border-style: none; } -body svg:not(:root) { - overflow: hidden; -} - body code, body kbd, body pre { @@ -189,12 +261,11 @@ body input { } body a { - color: #4078c0; + color: #0366d6; text-decoration: none; } -body a:hover, -body a:active { +body a:hover { text-decoration: underline; } @@ -203,28 +274,28 @@ body strong { } body hr { + background: transparent; + border: 0; + border-bottom: 1px solid #dfe2e5; height: 0; margin: 15px 0; overflow: hidden; - background: transparent; - border: 0; - border-bottom: 1px solid #ddd; } -body hr::before { - display: table; +body hr:before { content: ""; + display: table; } -body hr::after { - display: table; +body hr:after { clear: both; content: ""; + display: table; } body table { - border-spacing: 0; border-collapse: collapse; + border-spacing: 0; } body td, @@ -232,60 +303,73 @@ body th { padding: 0; } +body details summary { + cursor: pointer; +} + body h1, body h2, body h3, body h4, body h5, body h6 { - margin-top: 0; margin-bottom: 0; + margin-top: 0; } body h1 { font-size: 32px; +} + +body h1, +body h2 { font-weight: 600; } body h2 { font-size: 24px; - font-weight: 600; } body h3 { font-size: 20px; +} + +body h3, +body h4 { font-weight: 600; } body h4 { font-size: 16px; - font-weight: 600; } body h5 { font-size: 14px; +} + +body h5, +body h6 { font-weight: 600; } body h6 { font-size: 12px; - font-weight: 600; } body p { - margin-top: 0; margin-bottom: 10px; + margin-top: 0; } body blockquote { margin: 0; } -body ul, -body ol { - padding-left: 0; - margin-top: 0; +body ol, +body ul { margin-bottom: 0; + margin-top: 0; + padding-left: 0; } body ol ol, @@ -293,10 +377,10 @@ body ul ol { list-style-type: lower-roman; } -body ul ul ol, -body ul ol ol, +body ol ol ol, body ol ul ol, -body ol ol ol { +body ul ol ol, +body ul ul ol { list-style-type: lower-alpha; } @@ -304,42 +388,132 @@ body dd { margin-left: 0; } -body code { - font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; +body code, +body pre { + font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace; font-size: 12px; } body pre { - margin-top: 0; margin-bottom: 0; - font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; + margin-top: 0; } -body .octicon { - vertical-align: text-bottom; +body input::-webkit-inner-spin-button, +body input::-webkit-outer-spin-button { + -webkit-appearance: none; + appearance: none; + margin: 0; } -body input { - -webkit-font-feature-settings: "liga" 0; - font-feature-settings: "liga" 0; +body .border { + border: 1px solid #e1e4e8 !important; } -body::before { - display: table; - content: ""; +body .border-0 { + border: 0 !important; +} + +body .border-bottom { + border-bottom: 1px solid #e1e4e8 !important; +} + +body .rounded-1 { + border-radius: 3px !important; +} + +body .bg-white { + background-color: #fff !important; +} + +body .bg-gray-light { + background-color: #fafbfc !important; +} + +body .text-gray-light { + color: #6a737d !important; +} + +body .mb-0 { + margin-bottom: 0 !important; +} + +body .my-2 { + margin-bottom: 8px !important; + margin-top: 8px !important; +} + +body .pl-0 { + padding-left: 0 !important; } -body::after { +body .py-0 { + padding-bottom: 0 !important; + padding-top: 0 !important; +} + +body .pl-1 { + padding-left: 4px !important; +} + +body .pl-2 { + padding-left: 8px !important; +} + +body .py-2 { + padding-bottom: 8px !important; + padding-top: 8px !important; +} + +body .pl-3, +body .px-3 { + padding-left: 16px !important; +} + +body .px-3 { + padding-right: 16px !important; +} + +body .pl-4 { + padding-left: 24px !important; +} + +body .pl-5 { + padding-left: 32px !important; +} + +body .pl-6 { + padding-left: 40px !important; +} + +body .f6 { + font-size: 12px !important; +} + +body .lh-condensed { + line-height: 1.25 !important; +} + +body .text-bold { + font-weight: 600 !important; +} + +body:before { + content: ""; display: table; +} + +body:after { clear: both; content: ""; + display: table; } -body>*:first-child { +body > :first-child { margin-top: 0 !important; } -body>*:last-child { +body > :last-child { margin-bottom: 0 !important; } @@ -348,62 +522,51 @@ body a:not([href]) { text-decoration: none; } -body .anchor { - float: left; - padding-right: 4px; - margin-left: -20px; - line-height: 1; -} - -body .anchor:focus { - outline: none; -} - -body p, body blockquote, -body ul, -body ol, body dl, +body ol, +body p, +body pre, body table, -body pre { - margin-top: 0; +body ul { margin-bottom: 16px; + margin-top: 0; } body hr { + background-color: #e1e4e8; + border: 0; height: 0.25em; - padding: 0; margin: 24px 0; - background-color: #e7e7e7; - border: 0; + padding: 0; } body blockquote { + border-left: 0.25em solid #dfe2e5; + color: #6a737d; padding: 0 1em; - color: #777; - border-left: 0.25em solid #ddd; } -body blockquote>:first-child { +body blockquote > :first-child { margin-top: 0; } -body blockquote>:last-child { +body blockquote > :last-child { margin-bottom: 0; } body kbd { + background-color: #fafbfc; + border: 1px solid #c6cbd1; + border-bottom-color: #959da5; + border-radius: 3px; + box-shadow: inset 0 -1px 0 #959da5; + color: #444d56; display: inline-block; - padding: 3px 5px; font-size: 11px; line-height: 10px; - color: #555; + padding: 3px 5px; vertical-align: middle; - background-color: #fcfcfc; - border: solid 1px #ccc; - border-bottom-color: #bbb; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #bbb; } body h1, @@ -412,51 +575,24 @@ body h3, body h4, body h5, body h6 { - margin-top: 24px; - margin-bottom: 16px; font-weight: 600; line-height: 1.25; -} - -body h1 .octicon-link, -body h2 .octicon-link, -body h3 .octicon-link, -body h4 .octicon-link, -body h5 .octicon-link, -body h6 .octicon-link { - color: #000; - vertical-align: middle; - visibility: hidden; -} - -body h1:hover .anchor, -body h2:hover .anchor, -body h3:hover .anchor, -body h4:hover .anchor, -body h5:hover .anchor, -body h6:hover .anchor { - text-decoration: none; -} - -body h1:hover .anchor .octicon-link, -body h2:hover .anchor .octicon-link, -body h3:hover .anchor .octicon-link, -body h4:hover .anchor .octicon-link, -body h5:hover .anchor .octicon-link, -body h6:hover .anchor .octicon-link { - visibility: visible; + margin-bottom: 16px; + margin-top: 24px; } body h1 { - padding-bottom: 0.3em; font-size: 2em; - border-bottom: 1px solid #eee; } +body h1, body h2 { + border-bottom: 1px solid #eaecef; padding-bottom: 0.3em; +} + +body h2 { font-size: 1.5em; - border-bottom: 1px solid #eee; } body h3 { @@ -472,28 +608,32 @@ body h5 { } body h6 { + color: #6a737d; font-size: 0.85em; - color: #777; } -body ul, -body ol { +body ol, +body ul { padding-left: 2em; } -body ul ul, -body ul ol, body ol ol, -body ol ul { - margin-top: 0; +body ol ul, +body ul ol, +body ul ul { margin-bottom: 0; + margin-top: 0; +} + +body li { + word-wrap: break-all; } -body li>p { +body li > p { margin-top: 16px; } -body li+li { +body li + li { margin-top: 0.25em; } @@ -502,77 +642,77 @@ body dl { } body dl dt { - padding: 0; - margin-top: 16px; font-size: 1em; font-style: italic; - font-weight: bold; + font-weight: 600; + margin-top: 16px; + padding: 0; } body dl dd { - padding: 0 16px; margin-bottom: 16px; + padding: 0 16px; } body table { display: block; - width: 100%; overflow: auto; + width: 100%; } body table th { - font-weight: bold; + font-weight: 600; } -body table th, -body table td { +body table td, +body table th { + border: 1px solid #dfe2e5; padding: 6px 13px; - border: 1px solid #ddd; } body table tr { background-color: #fff; - border-top: 1px solid #ccc; + border-top: 1px solid #c6cbd1; } body table tr:nth-child(2n) { - background-color: #f8f8f8; + background-color: #f6f8fa; } body img { - max-width: 100%; - box-sizing: content-box; background-color: #fff; + box-sizing: content-box; + max-width: 100%; } -body code { - padding: 0; - padding-top: 0.2em; - padding-bottom: 0.2em; - margin: 0; - font-size: 85%; - background-color: rgba(0,0,0,0.04); - border-radius: 3px; +body img[align="right"] { + padding-left: 20px; +} + +body img[align="left"] { + padding-right: 20px; } -body code::before, -body code::after { - letter-spacing: -0.2em; - content: "\00a0"; +body code { + background-color: rgba(27, 31, 35, 0.05); + border-radius: 3px; + font-size: 85%; + margin: 0; + padding: 0.2em 0.4em; } body pre { word-wrap: normal; } -body pre>code { - padding: 0; - margin: 0; - font-size: 100%; - word-break: normal; - white-space: pre; +body pre > code { background: transparent; border: 0; + font-size: 100%; + margin: 0; + padding: 0; + white-space: pre; + word-break: normal; } body .highlight { @@ -586,89 +726,180 @@ body .highlight pre { body .highlight pre, body pre { - padding: 16px; - overflow: auto; + background-color: #f6f8fa; + border-radius: 3px; font-size: 85%; line-height: 1.45; - background-color: #f7f7f7; - border-radius: 3px; + overflow: auto; + padding: 16px; } body pre code { + background-color: transparent; + border: 0; display: inline; - max-width: auto; - padding: 0; + line-height: inherit; margin: 0; + max-width: auto; overflow: visible; - line-height: inherit; + padding: 0; word-wrap: normal; - background-color: transparent; - border: 0; } -body pre code::before, -body pre code::after { - content: normal; +body .commit-tease-sha { + color: #444d56; + display: inline-block; + font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace; + font-size: 90%; } -body .pl-0 { - padding-left: 0 !important; +body .blob-wrapper { + border-bottom-left-radius: 3px; + border-bottom-right-radius: 3px; + overflow-x: auto; + overflow-y: hidden; } -body .pl-1 { - padding-left: 3px !important; +body .blob-wrapper-embedded { + max-height: 240px; + overflow-y: auto; } -body .pl-2 { - padding-left: 6px !important; +body .blob-num { + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + color: rgba(27, 31, 35, 0.3); + cursor: pointer; + font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace; + font-size: 12px; + line-height: 20px; + min-width: 50px; + padding-left: 10px; + padding-right: 10px; + text-align: right; + user-select: none; + vertical-align: top; + white-space: nowrap; + width: 1%; } -body .pl-3 { - padding-left: 12px !important; +body .blob-num:hover { + color: rgba(27, 31, 35, 0.6); } -body .pl-4 { - padding-left: 24px !important; +body .blob-num:before { + content: attr(data-line-number); } -body .pl-5 { - padding-left: 36px !important; +body .blob-code { + line-height: 20px; + padding-left: 10px; + padding-right: 10px; + position: relative; + vertical-align: top; } -body .pl-6 { - padding-left: 48px !important; +body .blob-code-inner { + color: #24292e; + font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace; + font-size: 12px; + overflow: visible; + white-space: pre; + word-wrap: normal; } -body .full-commit .btn-outline:not(:disabled):hover { - color: #4078c0; - border: 1px solid #4078c0; +body .pl-token.active, +body .pl-token:hover { + background: #ffea7f; + cursor: pointer; } body kbd { + background-color: #fafbfc; + border: 1px solid #d1d5da; + border-bottom-color: #c6cbd1; + border-radius: 3px; + box-shadow: inset 0 -1px 0 #c6cbd1; + color: #444d56; display: inline-block; - padding: 3px 5px; - font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; + font: 11px SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace; line-height: 10px; - color: #555; + padding: 3px 5px; vertical-align: middle; - background-color: #fcfcfc; - border: solid 1px #ccc; - border-bottom-color: #bbb; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #bbb; } -body :checked+.radio-label { +body :checked + .radio-label { + border-color: #0366d6; position: relative; z-index: 1; - border-color: #4078c0; +} + +body .tab-size[data-tab-size="1"] { + -moz-tab-size: 1; + tab-size: 1; +} + +body .tab-size[data-tab-size="2"] { + -moz-tab-size: 2; + tab-size: 2; +} + +body .tab-size[data-tab-size="3"] { + -moz-tab-size: 3; + tab-size: 3; +} + +body .tab-size[data-tab-size="4"] { + -moz-tab-size: 4; + tab-size: 4; +} + +body .tab-size[data-tab-size="5"] { + -moz-tab-size: 5; + tab-size: 5; +} + +body .tab-size[data-tab-size="6"] { + -moz-tab-size: 6; + tab-size: 6; +} + +body .tab-size[data-tab-size="7"] { + -moz-tab-size: 7; + tab-size: 7; +} + +body .tab-size[data-tab-size="8"] { + -moz-tab-size: 8; + tab-size: 8; +} + +body .tab-size[data-tab-size="9"] { + -moz-tab-size: 9; + tab-size: 9; +} + +body .tab-size[data-tab-size="10"] { + -moz-tab-size: 10; + tab-size: 10; +} + +body .tab-size[data-tab-size="11"] { + -moz-tab-size: 11; + tab-size: 11; +} + +body .tab-size[data-tab-size="12"] { + -moz-tab-size: 12; + tab-size: 12; } body .task-list-item { list-style-type: none; } -body .task-list-item+.task-list-item { +body .task-list-item + .task-list-item { margin-top: 3px; } @@ -680,3 +911,55 @@ body .task-list-item input { body hr { border-bottom-color: #eee; } + +body .pl-0 { + padding-left: 0 !important; +} + +body .pl-1 { + padding-left: 4px !important; +} + +body .pl-2 { + padding-left: 8px !important; +} + +body .pl-3 { + padding-left: 16px !important; +} + +body .pl-4 { + padding-left: 24px !important; +} + +body .pl-5 { + padding-left: 32px !important; +} + +body .pl-6 { + padding-left: 40px !important; +} + +body .pl-7 { + padding-left: 48px !important; +} + +body .pl-8 { + padding-left: 64px !important; +} + +body .pl-9 { + padding-left: 80px !important; +} + +body .pl-10 { + padding-left: 96px !important; +} + +body .pl-11 { + padding-left: 112px !important; +} + +body .pl-12 { + padding-left: 128px !important; +} From 230f98461fe4ac729a4ece8fdb1e00126097100e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Attali?= Date: Sun, 27 Oct 2019 21:02:58 +0100 Subject: [PATCH 5/5] set version to 1.3.7 and allow free output --- Info.plist | 4 ++-- QLMarkdown.xcodeproj/project.pbxproj | 4 ++++ markdown.m | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Info.plist b/Info.plist index 6107982..ba74ceb 100644 --- a/Info.plist +++ b/Info.plist @@ -35,9 +35,9 @@ CFBundleName ${PRODUCT_NAME} CFBundleShortVersionString - 1.3.5 + $(MARKETING_VERSION) CFBundleVersion - 1.3.5 + $(CURRENT_PROJECT_VERSION) CFPlugInDynamicRegisterFunction CFPlugInDynamicRegistration diff --git a/QLMarkdown.xcodeproj/project.pbxproj b/QLMarkdown.xcodeproj/project.pbxproj index ec02962..bdd1b5d 100644 --- a/QLMarkdown.xcodeproj/project.pbxproj +++ b/QLMarkdown.xcodeproj/project.pbxproj @@ -338,11 +338,13 @@ CLANG_ENABLE_OBJC_ARC = YES; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1.3.7; GCC_DYNAMIC_NO_PIC = NO; GCC_PRECOMPILE_PREFIX_HEADER = NO; HEADER_SEARCH_PATHS = "./discount-config"; INFOPLIST_FILE = Info.plist; INSTALL_PATH = /Library/QuickLook; + MARKETING_VERSION = 1.3.7; PRODUCT_BUNDLE_IDENTIFIER = com.fiatdev.QLMarkdown; PRODUCT_NAME = QLMarkdown; WRAPPER_EXTENSION = qlgenerator; @@ -354,11 +356,13 @@ buildSettings = { CLANG_ENABLE_OBJC_ARC = YES; COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1.3.7; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_PRECOMPILE_PREFIX_HEADER = NO; HEADER_SEARCH_PATHS = "./discount-config"; INFOPLIST_FILE = Info.plist; INSTALL_PATH = /Library/QuickLook; + MARKETING_VERSION = 1.3.7; PRODUCT_BUNDLE_IDENTIFIER = com.fiatdev.QLMarkdown; PRODUCT_NAME = QLMarkdown; WRAPPER_EXTENSION = qlgenerator; diff --git a/markdown.m b/markdown.m index 3b8defa..e40108d 100644 --- a/markdown.m +++ b/markdown.m @@ -34,7 +34,7 @@ "", styles, url, [NSString stringWithUTF8String:output]]; -// free(output); + free(output); return html; }