Skip to content

Commit

Permalink
Merge pull request #91 from timvink/90-check-ignore
Browse files Browse the repository at this point in the history
Add example to test ignore content for printing
  • Loading branch information
timvink authored Oct 25, 2023
2 parents f99ea63 + 69e3957 commit 32e6b7b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 13 additions & 0 deletions tests/fixtures/projects/basic/docs/ignore_content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ignored content

This paragraph is not ignored for printing.

<p class='print-site-plugin-ignore'>this paragraph should not print or show up on HTML print page</p>

This is there again

This paragraph will not be part of the print site page.
{: .print-site-plugin-ignore }

You can also use HTML to hide things from printing:
<span class="print-site-plugin-ignore">hello this should not be visible</span>
5 changes: 3 additions & 2 deletions tests/fixtures/projects/basic/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ site_name: Test
plugins:
- print-site:
add_to_navigation: true
exclude:


markdown_extensions:
- attr_list

0 comments on commit 32e6b7b

Please sign in to comment.