diff --git a/pyproject.toml b/pyproject.toml index b0bf723..f119e99 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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"] \ No newline at end of file diff --git a/src/md2bbcode/main.py b/src/md2bbcode/main.py index ec3d30a..a6a8fa0 100644 --- a/src/md2bbcode/main.py +++ b/src/md2bbcode/main.py @@ -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