Skip to content

Commit

Permalink
Merge branch 'release/3.0.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed Aug 13, 2024
2 parents 0b7795e + e1baea0 commit 092c66e
Show file tree
Hide file tree
Showing 12 changed files with 9,322 additions and 41 deletions.
67 changes: 31 additions & 36 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["myst_parser", "sphinx_prompt"]
extensions = ["myst_parser", "sphinx_prompt", "sphinx_copybutton"]

# Add any paths that contain templates here, relative to this directory.
templates_path = []
Expand Down
Binary file added docs/images/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9,186 changes: 9,186 additions & 0 deletions docs/images/help.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/pandoc-latex-tip-sample.pdf
Binary file not shown.
Binary file added docs/images/pandoc-latex-tip-standard.pdf
Binary file not shown.
Binary file added docs/images/pandoc-latex-tip-standard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions docs/images/pandoc-latex-tip-standard.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
pandoc-latex-tip:
- classes: [note]
icons: [fa-circle-info]
color: royalblue
- classes: [tip]
icons: [far-lightbulb]
- classes: [warning]
icons: [fa-triangle-exclamation]
color: darkorange
- classes: [caution]
icons: [fa-fire-flame-curved]
color: orangered
- classes: [important]
icons: [fa-circle-exclamation]
color: darkred
---

::: note
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero
quis lectus elementum fermentum.

Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum
felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo
nisl.
:::

::: tip
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero
quis lectus elementum fermentum.

Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum
felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo
nisl.
:::

::: warning
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero
quis lectus elementum fermentum.

Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum
felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo
nisl.
:::

::: caution
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero
quis lectus elementum fermentum.

Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum
felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo
nisl.
:::

::: important
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet libero
quis lectus elementum fermentum.

Fusce aliquet augue sapien, non efficitur mi ornare sed. Morbi at dictum
felis. Pellentesque tortor lacus, semper et neque vitae, egestas commodo
nisl.
:::
21 changes: 19 additions & 2 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,25 @@ The following LaTeX packages are required:
- ``etoolbox``
- ``changepage``

Extensions
----------
Example
-------

Demonstration: Using
`pandoc-latex-tip-standard.txt <https://raw.githubusercontent.com/chdemko/pandoc-latex-tip/develop/docs/images/pandoc-latex-tip-standard.txt>`__
as input gives output file in
`pdf <https://raw.githubusercontent.com/chdemko/pandoc-latex-tip/develop/docs/images/pandoc-latex-tip-standard.pdf>`__.

.. prompt:: bash

pandoc --filter pandoc-latex-tip pandoc-latex-tip-standard.txt \
-o pandoc-latex-tip-standard.pdf


Extension
=========

Introduction
------------

``pandoc-latex-tip`` can be extended by adding collections of
``CSS`` and ``TTF`` files.
Expand Down
4 changes: 3 additions & 1 deletion pandoc_latex_tip/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class IconFont:
"""
Base class that represents web icon font.
This class has been gratly inspired by the code found
This class has been greatly inspired by the code found
in https://github.com/Pythonity/icon-font-to-png
Arguments
Expand Down Expand Up @@ -213,6 +213,7 @@ def export_icon(
self.css_icons[icon],
font=font,
fill=color,
anchor="lt",
)

# Get bounding box
Expand All @@ -228,6 +229,7 @@ def export_icon(
self.css_icons[icon],
font=font,
fill=255,
anchor="lt",
)

# Create a solid color image and apply the mask
Expand Down
20 changes: 19 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ myst-parser = "^2.0"
Sphinx = "^7.2.6"
sphinx-rtd-theme = "^2.0.0"
sphinx-prompt = "^1.8.0"
sphinx-copybutton = "^0.5.2"

[tool.poetry.scripts]
pandoc-latex-tip = "pandoc_latex_tip:app"
Expand Down

0 comments on commit 092c66e

Please sign in to comment.