2 Export as PDF questions

m_conn's Avatar

m_conn

03 Dec, 2013 03:35 PM

I have a couple of questions when exporting as a PDF from Marked:

  1. is there a way to export to PDF and keep markdown generated hyperlinks active?
  2. Is there a method of stripping the CSS formatting when exporting to PDF? My reason for asking this is that several of the CSS styles I like to use are great for previewing a document have a background or border that exports to the PDF which I don't like.

Thanks.

  1. Support Staff 1 Posted by Brett on 03 Dec, 2013 03:41 PM

    Brett's Avatar

    I've been removing some of the borders and what not for print styles,
    which ones are problematic? I'll update them. All you need to do is
    create a print block (which you can do in the "Additional CSS" field of
    Style preferences, or in a custom style):

    Example:

    @media print {
    #wrapper {
    border: none;
    }
    }

    As far as hyperlinks, external links should work fine, but internal
    (intra-document) links like table of contents and anchored links can't
    function due to a webkit bug. Which are you having issues with?

    -Brett

  2. 2 Posted by m_conn on 03 Dec, 2013 03:52 PM

    m_conn's Avatar

    I've been liking your Grump style. I'll try adding that print block.

    It's actually external hyperlinks giving me issues. I have them formatted as inline markdown links in nvALT which is converting fine in Marked. They check fine on Marked validation and will open the URL when clicked, but on export to PDF the hyperlink is stripped.

  3. Support Staff 3 Posted by Brett on 03 Dec, 2013 03:55 PM

    Brett's Avatar

    I like Grump, too :). Think I should include it as a default once I get
    the bugs worked out of it?

    I'll add a print block to Grump (I think I actually already did, might
    check the repo).

    I'm not seeing the issue with hyperlinks locally. There _is_ an option
    to hide the link highlights (printing prefs), but the linked text would
    still open an external browser when clicked. Can you post a test
    Markdown file and the related PDF export for me to peek at?

  4. m_conn closed this discussion on 07 Jan, 2014 12:10 AM.

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