Skip to content

Commit

Permalink
Merge pull request #281 from cosmocode/hideExportLinksInPdf
Browse files Browse the repository at this point in the history
Hide pdf-export-link in pdf
  • Loading branch information
splitbrain committed Jun 13, 2017
2 parents 04e9a88 + cda2996 commit 9b07603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/exportlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function handle($match, $state, $pos, Doku_Handler $handler) {
* @return boolean rendered correctly? (however, returned value is not used at the moment)
*/
public function render($mode, Doku_Renderer $renderer, $data) {
if($mode == 'xhtml') {
if($mode == 'xhtml' && !is_a($renderer,'renderer_plugin_dw2pdf')) {
$renderer->internallink($data['link'],$data['title']);
return true;
}
Expand Down

0 comments on commit 9b07603

Please sign in to comment.