View custom processor's output only
It is possible to view unmodified output from the custom processor?
I'd like to view f.ex. self-contained docs from Pandoc's output.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 08 Feb, 2015 03:04 PM
Do you mean unstyled? Marked doesn't run any other processor if a custom one is defined…
2 Posted by nken on 08 Feb, 2015 03:07 PM
I mean without any styling information from Marked; only the styles contained in the html produced from pandoc, preferably using the stylesheet referenced there. I can specify the stylesheet manually if Marked doesn't get the reference from the resulting html file.
Support Staff 3 Posted by Brett on 08 Feb, 2015 03:21 PM
Just create an empty CSS file and add it to the custom styles. Select it as the default style.
4 Posted by nken on 08 Feb, 2015 03:36 PM
Thanks - it changes only the primary css, I like to view 'raw' output from the processor.
Here's what Marked shows in the inspector:
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" id="primaryCSS" type="text/css" href="/../Temp2/empty.css?v=100347">
<link rel="stylesheet" id="mktocstyle" type="text/css" href="/Applications/Marked%202.app/Contents/Resources/tocstyle.css?v=100347"><style>#generated-toc-clone li.missing,#mkreplaced-toc li.missing{list-style-type:none!important}#generated-toc-clone li, #mkreplaced-toc li{list-style-type:upper-roman}#generated-toc-clone li li, #mkreplaced-toc li li{list-style-type:decimal}#generated-toc-clone li li li,#mkreplaced-toc li li li{list-style-type:decimal-leading-zero}#generated-toc-clone li li li li,#mkreplaced-toc li li li li{list-style-type:lower-greek}#generated-toc-clone li li li li li,#mkreplaced-toc li li li li li{list-style-type:disc}#generated-toc-clone li li li li li li,#mkreplaced-toc li li li li li li{list-style-type:square}</style>
<style>@media print{#generated-toc-clone,#generated-toc{display:none!important}}
</style>
<base href="/../"></head>
<body class="normal empty zoomIn noRequireCmd" style="height: 686px; width: 1247px;">
<div id="wrapper">
<ins id="firstdiff"></ins>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="generator" content="pandoc">
<title></title>
<style type="text/css">code{white-space: pre;}</style>
<p><strong>Marked</strong> is a previewer for Markdown files. Use it with your favorite text editor and it updates every time you save. With robust features for previewing, reviewing and exporting beautiful documents, you can work in plain text while reveling in rich formatting.</p>
</div>
<div id="generated-toc" class="generate_from_h1 generate_for_page" style="display: block; bottom: -786px;"><p><span class="hidden"><a href="#aftertoc" style="opacity: 1;"></a></span></p><p id="toggle-container"><a id="generated_toc_d_toggle" href="#" style="opacity: 0.4;"></a></p><ul style="display: block;"></ul><p id="aftertoc"></p></div>
<script>var loadMathJax=false;var mathJaxScript=null;</script><script src="/Applications/Marked 2.app/Contents/Resources/marked.min.js"></script>
</body></html>
What I like to see is the the 'raw' HTML (which 'Copy HTML' gives):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<p><strong>Marked</strong> is a previewer for Markdown files. Use it with your favorite text editor and it updates every time you save. With robust features for previewing, reviewing and exporting beautiful documents, you can work in plain text while reveling in rich formatting.</p>
</body>
</html>
Support Staff 5 Posted by Brett on 08 Feb, 2015 03:38 PM
Marked is always going to wrap the output of a Markdown file in its own
markup. It's the only way its features can function. If you open the
file with an HTML extension, it will treat it as a full document and not
apply anything, but many of its features won't work, and it won't run
the custom processor on file change.
-Brett
6 Posted by nken on 08 Feb, 2015 03:41 PM
Thanks again - now I understand it better. I've been using Marked only since yesterday.
I appreciate the custom processor function very much!
nken closed this discussion on 22 Feb, 2015 07:02 PM.