Read CSS file named “markdown-style.css” in the iCloud “Drafts5” folder, and use it as the style for a Markdown preview.
// read stylesheet from file in iCloud var fm = FileManager.create(false); var css = fm.read("markdown-style.css"); // place in template tag draft.setTemplateTag("css", css);
<!DOCTYPE html> <html dir="auto"> <head> <title>Preview</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> [[css]] </style> </head> <body> %%[[draft]]%% </body> </html>
After Success Nothing Notification Info Log Level Error
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.