summaryrefslogtreecommitdiffstats
path: root/markdown_it/rules_core/inline.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown_it/rules_core/inline.py')
-rw-r--r--markdown_it/rules_core/inline.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/markdown_it/rules_core/inline.py b/markdown_it/rules_core/inline.py
new file mode 100644
index 0000000..c3fd0b5
--- /dev/null
+++ b/markdown_it/rules_core/inline.py
@@ -0,0 +1,10 @@
+from .state_core import StateCore
+
+
+def inline(state: StateCore) -> None:
+ """Parse inlines"""
+ for token in state.tokens:
+ if token.type == "inline":
+ if token.children is None:
+ token.children = []
+ state.md.inline.parse(token.content, state.md, state.env, token.children)