markdowndata 0.0.4__py3-none-any.whl → 0.0.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
- from typing import Union, List, IO
1
+ from typing import List
2
+ from .content_parser import parse_content_block
2
3
  from .section_tree import split_sections, build_section_tree
3
4
  from .utils import Node
4
5
 
@@ -19,6 +20,10 @@ class MarkDataParser:
19
20
  # Split the text into Section objects based on markdown headers
20
21
  sections = split_sections(text)
21
22
 
23
+ # If no sections are found, parse the content block directly
24
+ if not sections:
25
+ return parse_content_block(text)
26
+
22
27
  # Build a hierarchical tree of sections and subsections
23
28
  section_tree = build_section_tree(sections)
24
29
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: markdowndata
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Tool to convert markdown tables into json objects
5
5
  License: MIT
6
6
  Author: Gordon Bean
@@ -1,9 +1,9 @@
1
1
  markdowndata/__init__.py,sha256=YWWuimxElvXp_jFOYzSAQ7zhtaGU2-jFmKYJq9Mtqp4,171
2
2
  markdowndata/content_parser.py,sha256=FdapNfkvCj71K5lUSGQh0H1jS5vF36-l1EImsX28J2o,5387
3
- markdowndata/process_markdown.py,sha256=cJ-E6t8-3VXQ2Pb1wmBej1H3XqXrugZRytwLsX-vi1E,2005
3
+ markdowndata/process_markdown.py,sha256=ajJBMp2J5ipPUf4r3nxbl2JFdwKWV-82YL79RmWVrDA,2182
4
4
  markdowndata/section_tree.py,sha256=X4kPqHCa_2hkiq6roOHUc22G3pNIQjpUv_ni_J14XXQ,2060
5
5
  markdowndata/utils.py,sha256=jVTKEGZiLCKdv1cS-73iMf_GaXT6cBc3cl9tp_fjKOw,2040
6
- markdowndata-0.0.4.dist-info/LICENSE,sha256=K-k1T7XcwAVVmLsHhfWMye6r7p45xz3xwv5S5FBSyZE,1074
7
- markdowndata-0.0.4.dist-info/METADATA,sha256=4U4oGRdC4LwBqBA32pqs89AFeMzCHK8PBUG4l-VT1jU,633
8
- markdowndata-0.0.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
9
- markdowndata-0.0.4.dist-info/RECORD,,
6
+ markdowndata-0.0.5.dist-info/LICENSE,sha256=K-k1T7XcwAVVmLsHhfWMye6r7p45xz3xwv5S5FBSyZE,1074
7
+ markdowndata-0.0.5.dist-info/METADATA,sha256=4-ewjm9G3G8jmK0eU6DzWlnLtR7XGzxtICghQGj1cDw,633
8
+ markdowndata-0.0.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
9
+ markdowndata-0.0.5.dist-info/RECORD,,