Commit Graph

372 Commits

Author SHA1 Message Date
Tzu-ping Chung
23aec6afa4 More strict same-line judgement on cmd+left v0.2.3 2014-08-19 12:01:44 +08:00
Tzu-ping Chung
fe67d4dcf6 Update Prism to e29996a 2014-08-18 18:10:58 +08:00
Tzu-ping Chung
265b4b04bd Collect public.html content on preview copy
WebView doesn't seem to register public.html contents on copy, only
Rich Text and Safari Web Archive. This results in format loss when
copy-pasting preview contents to browsers other than Safari, e.g.
Google Chrome (which takes Rich Text) and FireFox (plain text only).

Worked around by injecting public.html format when needed. Fix #115.
2014-08-17 14:37:51 +08:00
Tzu-ping Chung
42c56e2a68 Merge enhencements by @JanX2
Close #64
2014-08-16 15:23:21 +08:00
Tzu-ping Chung
a3461bb52c Add @JanX2 as contributor 2014-08-16 15:22:59 +08:00
Jan Weiß
6ed7aac26e Disable non-contiguous layout for editor
This causes large documents to not display in the editor until it was
scrolled.
2014-08-16 15:19:21 +08:00
Jan Weiß
25c8d0d3cb Setting project to use spaces for indentation.
Matching the majority of the source files.
2014-08-16 15:17:22 +08:00
Tzu-ping Chung
fb5110573e Merge branch 'fix_116-reload-refresh'
Fix #116
2014-08-16 15:13:27 +08:00
Tzu-ping Chung
ec0be3e10d Refactor notification handler to separate methods 2014-08-16 15:12:57 +08:00
Tzu-ping Chung
597007befb Trigger UI updates on reload button pressed
The rendering methods are called, but the UI does not update. Maybe due
to caching? Need to investigate.
2014-08-16 15:05:05 +08:00
Tzu-ping Chung
5efd2459ea Merge branch 'mathjax-flicker'
Conflicts:
	MacDown/Code/Document/MPDocument.m
2014-08-16 15:04:28 +08:00
Tzu-ping Chung
30b03e77e8 Provide defaults to export accessory view
Fix #118
2014-08-15 10:30:18 +08:00
Tzu-ping Chung
572cd6747d Fix CSS null style name bug
This and the previous commit fix #119
2014-08-14 18:55:04 +08:00
Tzu-ping Chung
e57b8cd413 Trim trailing newline in assets
See #119
2014-08-14 18:38:07 +08:00
Tzu-ping Chung
5f7f407ebe Limit pod versions and switch to official Sparkle 2014-08-13 10:11:14 +08:00
Tzu-ping Chung
2d75a5f5dd Use submodule and build script to manage Prism assets 2014-08-12 23:49:21 +08:00
Tzu-ping Chung
25cfd89a86 Fix printing by disabling updates during jobs
Fix #104
2014-08-11 19:52:02 +08:00
Tzu-ping Chung
3fa9d7d002 Refactor file name and title detection 2014-08-11 12:48:04 +08:00
Tzu-ping Chung
457a37a4ef Refactor exportPdf: 2014-08-11 12:38:21 +08:00
Tzu-ping Chung
a2201ad6f1 Add logic to copy files later added to the project 2014-08-10 16:51:56 +08:00
Tzu-ping Chung
2c3bba42eb Merge pull request #110
from KevinSalter/add-solarized-themes

Conflicts:
	MacDown/Localization/en.lproj/Credits.rtf
2014-08-10 16:32:10 +08:00
Tzu-ping Chung
307a71365b Add @KevinSalter as contributor 2014-08-10 16:27:57 +08:00
Tzu-ping Chung
6c3cfeec3d Add license for Solarized styles/themes 2014-08-10 16:26:54 +08:00
Tzu-ping Chung
83f0ba723f Add Solarized HTML styles 2014-08-10 16:23:23 +08:00
Tzu-ping Chung
5e1c306fab Fix file permission for GitHub.css 2014-08-10 16:23:07 +08:00
Tzu-ping Chung
7badd5d067 Generate new renderers instead of reusing
Hoedown does not clear renderer states before using it, so we shouldn't
reuse the renderer. The states are pretty internal, so we shouldn't
clear them ourselves, either.

Fix #111
2014-08-09 01:56:24 +08:00
Tzu-ping Chung
f2c6fea75b Merge pull request #42 from yangjian/master
Conflicts:
	MacDown/Localization/en.lproj/Credits.rtf
2014-08-08 17:01:35 +08:00
Tzu-ping Chung
41be1d6d79 Add @yangjian as contributor 2014-08-08 17:00:45 +08:00
Tzu-ping Chung
78490ae1f3 Change method name and group export items in menu 2014-08-08 16:57:48 +08:00
Kevin Salter
521ac36497 Add Solarized Light and Dark themes (ported from Mou) 2014-08-07 17:52:10 -07:00
Tzu-ping Chung
08ddf8e9b3 Fix flickering during MathJax setup
When MathJax is on, delay window refreshing until it's done rendering.
This is implemented by adding a WebScripting object to the preview, and
register a MathJax signal handler that invokes the window refreshing
code via the WebScripting object.
2014-08-07 01:50:34 +08:00
Tzu-ping Chung
85332dab13 Add a "limit editor width" switch
This makes the editor not to go too wide when editing on a extremely
wide geometry (e.g. fullscreen with preview hidden), increasing
readibility.

Fix #108
2014-08-06 22:24:05 +08:00
Tzu-ping Chung
d48f15c7cf Fix regression: list items don't autocomplete
Fix #109
2014-08-06 18:34:40 +08:00
Tzu-ping Chung
9413e4428a Fix for M13OrderedDictionary 1.0.3 update 2014-08-06 17:24:03 +08:00
Tzu-ping Chung
048d3c5276 Extract file name from front-matter if available
Still falls back to the old -titleString solution if front-matter
support is disabled, or no "title" key exists.

Fix #105
2014-08-06 17:09:25 +08:00
Tzu-ping Chung
6bb2c4b084 Refactor front-matter extraction into category 2014-08-06 17:02:37 +08:00
Tzu-ping Chung
a2f88f48cb Fix incorrect line jump detection logic
Really fix #103.
2014-08-05 17:47:23 +08:00
Tzu-ping Chung
bf6b2d3e75 Fix regression on menu validation
-validateMenuItem: takes precedence over -validateUserInterfaceItem:
and would make the latter useless. Fixed by merging the former into
-validateUserInterfaceItem:.
v0.2.2
2014-08-05 16:37:07 +08:00
Tzu-ping Chung
b06740c09c Remove dead code 2014-08-05 15:09:39 +08:00
Tzu-ping Chung
d97a6807e5 Fix trailing whitespace on list item clearance 2014-08-04 10:36:15 +08:00
Tzu-ping Chung
3e31a257bd Revert "Disable underscore emph when MathJax on"
This reverts commit e0884a4443.

Reopen #8
2014-08-02 21:56:23 +08:00
Tzu-ping Chung
e237db1789 Prevent row jump on cmd-left when the line wraps
Fix #103
2014-08-02 21:52:55 +08:00
Tzu-ping Chung
5477620d1b Merge branch 'fix_75-preview-toggle-menu-item'
Conflicts:
	MacDown/Code/Document/MPDocument.m
2014-08-01 11:51:37 +08:00
Tzu-ping Chung
1ec349b486 Merge pull request #98 from xcodejam/master
Conflicts:
	MacDown/Code/Document/MPDocument.m
2014-08-01 11:32:53 +08:00
Tzu-ping Chung
0b0c59775e Add @wenbi as contributor 2014-08-01 11:31:31 +08:00
Tzu-ping Chung
5c55cd6607 Use ivar instead of static local to track state 2014-08-01 11:22:34 +08:00
Tzu-ping Chung
e0884a4443 Disable underscore emph when MathJax is on
Implemented by always turning underline extension on (which is the
ONLY way to distinguish _this_ and *this*) when MathJax is on, and
use a custom renderer callback with an extra HTML_* flag.

This is pretty hacky, but at least it works. Is it possible to
convice Hoedown to add functionality in substituting parsing
callbacks? Might worth a try, need to choose the word, though. :)

Fix #8
2014-07-31 01:57:25 +08:00
Tzu-ping Chung
0c4ff1cddd Merge branch 'toc'
Fix #63
2014-07-30 15:44:08 +08:00
Tzu-ping Chung
539003e591 Use [TOC] as TOC placeholder
Only bare [TOC] (case insensitive) inside standalone <p> tag is
supported now. Don't know what the world would want; let's open
things when they are requested.
2014-07-30 15:43:06 +08:00
Tzu-ping Chung
f6e0c10535 Experimental TOC rendering support
See #63

This implementation does NOT render TOC at a specific tag, but
just prepends the TOC portion in front of the content (but after
front-matter). The TOC syntax might be more difficult. Still
considering options.
2014-07-30 15:22:53 +08:00