Chapter 71

Library

The Library is the themes, syntax profiles, macros, style guides and backdrops you add. Built-in items are read-only; duplicate one to change it.

Syntax Profiles#

Lists each profile as Built-in or Custom.

ControlWhat it does
Import…Adds a profile .json file someone shared.
NewStarts a profile from scratch.
Edit, Duplicate, deletePer profile. Built-in profiles can be duplicated but not edited or deleted.
Not LoadedA profile that could not load is listed here with the reason: it uses a file extension another profile already has, it is not a profile this version can read, or it contains a pattern that could make the editor stop responding. It is still in your profiles folder.

Profile editing is in Chapter 74.

CommonMark Options#

Switches for optional CommonMark syntax. Enable only what your source uses.

SectionControls
Syntax supportHighlight (==key==), Subscript (H~2~O), Superscript (X^2^), Inline math ($…$).
Additional syntaxAuto links (bare URLs), GitHub-style alerts, YAML front matter (a block of --- lines at the very top is dimmed and left out of Preview and every export), Diagrams and charts (Mermaid, Vega-Lite).
Smart punctuationConvert: Convert on Input, Convert on Rendering, or Off. Then Smart quotes, Smart dashes, Smart ellipsis.
Code fencesDisplay line numbers, Auto-wrap long lines, and Indent size (in spaces).

Format ▸ Highlight, Subscript, Superscript and Inline Math are greyed out until their option is on.

Themes#

A Theme page lists Application Themes (JSON: the app's light or dark appearance, accent, sidebar, bars and editor) and Render Themes (CSS: Preview, HTML, PDF, image and print output, and Word styles). Each is labelled Built-in or Custom, with Light, Dark or Automatic.

ControlWhat it does
NewCreates a theme of either kind.
Import Theme…Adds a .json Application Theme, a .css Render Theme, or a .zip package holding either or both.
Open Theme FolderReveals the folder holding your themes.
Edit, Duplicate, Export, deletePer theme. Built-in themes are read-only.

Theme editing is in Chapter 75.

Macros#

Lists macro collections. Built-in collections are read-only.

ControlWhat it does
New Collection, Import Macros…Start a collection or import a .json collection.
A collection's menuRename…, Duplicate Collection, Export Collection…, Delete Collection.
New, Edit, Duplicate, deletePer macro.

Macro editing is in Chapter 76. An imported collection with an unsafe trigger is refused.

Style Guides#

Lists style guides, each with its rule count and areas.

ControlWhat it does
Import Style Guide…Adds a guide .json file.
A guide's menuDuplicate Style Guide, Export Style Guide…, Delete Style Guide…. Deleting removes it from this device, after you confirm, so export it first if you want a copy.
"Builds on …"A guide can build on another. If that guide is missing, it cannot be used.

A style guide is a .json file of named rules. You can also ask the assistant to write one (Assistant ▸ Help ▸ A style guide), and Help ▸ Style guides explains the format.

Rendering Libraries#

Math, diagrams and charts are drawn on this device by bundled libraries. This page lists each library and its version; choose one to read its bundled notices.

Location#

Your library lives in a folder named "Pilcrow Library" inside the folder you choose. A folder in iCloud Drive keeps it in sync between your devices. Preferences, API keys and crash-recovery copies always stay on this device.

ControlWhat it does
KeptWhere the library is now: "On this device" or "In the folder name".
Choose Folder…Moves the library to a folder. If the folder already holds a Pilcrow library, Pilcrow will not merge two: you can Use What Is There. Otherwise Move My Library Here (checks every file, then removes the old copy) or Copy My Library Here (keeps the old one).
Use This DeviceBrings the library back to this device.

If the chosen folder cannot be reached, Pilcrow uses the library on this device for now, changing and deleting nothing, and uses the folder again when it is available.

Import (iPad)#

On iPad, Import adds items to the library: Import Theme…, Import Syntax Profile…, Import Macro Collection…, Import Style Guide…. On Mac, use File ▸ Import (Chapter 53).