Skip to content

Commit

Permalink
removing relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Redbot committed Oct 18, 2024
1 parent c2bb8f6 commit 8aaee90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
17 changes: 1 addition & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ md2ast = "md2bbcode.md2ast:main"
html2bbcode = "md2bbcode.html2bbcode:main"

[project.urls]
Homepage = "https://github.com/RedGuides/md2bbcode"
Repository = "https://github.com/RedGuides/md2bbcode.git"
Issues = "https://github.com/RedGuides/md2bbcode/issues"
Documentation = "https://github.com/RedGuides/md2bbcode#readme"
Expand All @@ -48,21 +47,7 @@ include = [
"src/md2bbcode/renderers/*.py",
"bb_codes.xml"
]
exclude = ["__pycache__/**"]

[tool.hatch.build.targets.wheel]
include = [
"README.md",
"LICENSE",
"src/md2bbcode/*.py",
"src/md2bbcode/renderers/*.py",
"bb_codes.xml"
]
exclude = ["__pycache__/**"]
packages = ["src/md2bbcode"]

[tool.hatch.envs.default]
dependencies = [
"mistune>=3.0.2",
"beautifulsoup4"
]
include = ["bb_codes.xml"]
4 changes: 2 additions & 2 deletions src/md2bbcode/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from mistune.plugins.spoiler import spoiler

# local
from .renderers.bbcode import BBCodeRenderer
from .html2bbcode import process_html
from md2bbcode.renderers.bbcode import BBCodeRenderer
from md2bbcode.html2bbcode import process_html

def convert_markdown_to_bbcode(markdown_text, domain):
# Create a Markdown parser instance using the custom BBCode renderer
Expand Down

0 comments on commit 8aaee90

Please sign in to comment.