Markdown Preview 0.0.48
This release changes the vertical gaps and the type sizes in the preview and in the editor. It also lets you select text in a Finder preview, keep a preview window in front of other applications, and print and export diagrams correctly.
Added
- Always on Top keeps a preview window in front of other applications. Use the item in the View menu, or press ⌃⌘T. A toolbar button is also available in Customize Toolbar. The setting applies to all the tabs in one window. The application does not keep the setting after you quit it (#266).
- You can select and copy text in a Finder preview. The Quick Look extension now uses a
WKWebViewview. Therefore the selection belongs to the preview, and ⌘C copies the text that you select. Before this release, ⌘C copied the Markdown file. The text cursor and the link cursor are also correct now. Local images, the resource limits, and external links do not change (#273). - The application applies strikethrough to a completed task item. A task item with
- [x]shows dim text with strikethrough. A task item with- [ ]does not change. If you click the checkbox in the preview, the style changes immediately (#283).
Changed
- The headings have new sizes. The size of the H1 heading and the size of the H2 heading were almost equal. This made the structure of a document difficult to read. The six heading levels now use these sizes: 1.802em, 1.602em, 1.424em, 1.266em, 1.125em, and 1em. Only the H1 heading uses weight 700. The preview and the editor use the same sizes (#281).
- The list bullets are larger. The
•character was very small. The application now makes the character transparent, and draws a circle with a diameter of 0.4em in its position. The character keeps its space in the margin. If you copy the text, the character stays in the copy. The gap between the circle and the text is 0.5em in the preview and in the editor. The application draws the circle with a border and not with a background color. Therefore a PDF export keeps the circle when it does not print background colors (#282). - The gaps above and below a horizontal rule are equal. A horizontal rule had a large margin above it and below it. The margin of the next block increased the gap below it to approximately 51 px, and the gap above it was approximately 39 px. The horizontal rule now has a margin of 12 px above it only, and the next block supplies the gap below it. Both gaps are now equal to the usual gap between two paragraphs (#280).
Fixed
- A blank line makes a smaller gap. One blank line in the source text made a gap of 22.8 px. Therefore the usual gap between two paragraphs was approximately 35 px. One blank line now makes a gap of 4 px, and the gap between two paragraphs is approximately 16 px. Other Markdown applications use approximately the same gap. Each additional blank line adds one more line of height. Therefore you keep larger gaps if you write them in the source text. The gaps above the headings do not change from release 0.0.47 (#279, #271).
- The application renders all the diagrams before it prints or exports a document. The application renders a diagram when you scroll near to it. But a print operation or an export operation uses the full document at one time. Therefore a diagram that you did not scroll to showed an empty box and its source text. File ▸ Print… and File ▸ Export… now wait until all the diagrams are complete. A print operation also uses the light theme for the diagrams, because the application puts the theme in the diagram when it renders it. The application returns to the theme on the screen after the print panel closes. A diagram also stays on one page (#275, #274).
- Strikethrough needs two tilde characters. The application applied strikethrough to text between two single tilde characters, for example
~text~. This was not correct for text that contains paths, version numbers, or approximate values. The application now applies strikethrough only to text between two double tilde characters, for example~~text~~. A single tilde character stays as text (#278).
Contributors
Thank you to the external contributors of this release:
- @kud — added the Always on Top function (#266)
- @Avi7ii — added text selection and correct cursors to Finder previews (#273)
- @Cuzeth — reported and corrected the diagram export problem (#275, #274)
- @ray-zzzzz — changed strikethrough to use two tilde characters (#278)
- @t9mike — reported the large gaps above paragraphs and headings (#271)