diff --git a/mistune.py b/mistune.py
index 5b05fcb..175ff01 100644
--- a/mistune.py
+++ b/mistune.py
@@ -503,7 +503,7 @@ class InlineLexer(object):
         'linebreak', 'strikethrough', 'text',
     ]
     inline_html_rules = [
-        'escape', 'autolink', 'url', 'link', 'reflink',
+        'escape', 'inline_html', 'autolink', 'url', 'link', 'reflink',
         'nolink', 'double_emphasis', 'emphasis', 'code',
         'linebreak', 'strikethrough', 'text',
     ]

nested html links are broken with parse_block_html 
this is a variant of #81

    example_in = '<div><a href="https://example.com">Example.com</a></div>'
    mistune.markdown(example_in, escape=False, parse_block_html=True)

will generate:

    <div><a href="<a href="https://example.com"&gt;Example.com">https://example.com"&gt;Example.com</a></a></div>

if escape is toggled to True, it is also broken:

   '&lt;div&gt;&lt;a href="&lt;a href="https://example.com"&gt;Example.com"&gt;https://example.com"&gt;Example.com&lt;/a&gt;&lt;/a&gt;&lt;/div&gt;

diff --git a/tests/test_extra.py b/tests/test_extra.py
index c1d37d9..3cb9799 100644
--- a/tests/test_extra.py
+++ b/tests/test_extra.py
@@ -116,6 +116,21 @@ def test_parse_block_html():
     assert '<strong>' not in ret
 
 
+def test_parse_nested_html():
+    ret = mistune.markdown(
+        '<div><a href="http://example.org">**foo**</a></div>',
+        parse_block_html=True, escape=False
+    )
+    assert '<div><a href="http://example.org">' in ret
+    assert '<strong>' not in ret
+
+    ret = mistune.markdown(
+        '<div><a href="http://example.org">**foo**</a></div>',
+        parse_block_html=True, parse_inline_html=True, escape=False
+    )
+    assert '<div><a href="http://example.org"><strong>' in ret
+
+
 def test_trigger_more_cases():
     markdown = mistune.Markdown(
         inline=mistune.InlineLexer,

pip install -e .
parse_log_pytest
pytest
nose pytest
apt-get update apt-get install -y gcc
3.9
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
-e git+https://github.com/lepture/mistune.git@cef69acaa506567595e95ab6ecea25a806de622e#egg=mistune
nose==1.3.7
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/pytest_1738938843180/work
tomli @ file:///opt/conda/conda-bld/tomli_1657175507142/work

name: mistune
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - exceptiongroup=1.2.0=py39h06a4308_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - packaging=24.2=py39h06a4308_0
  - pip=25.0=py39h06a4308_0
  - pluggy=1.5.0=py39h06a4308_0
  - pytest=8.3.4=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tomli=2.0.1=py39h06a4308_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - nose==1.3.7
prefix: /opt/conda/envs/mistune

tests/test_extra.py::test_parse_nested_html
tests/test_extra.py::test_escape tests/test_extra.py::test_linebreak tests/test_extra.py::test_safe_links tests/test_extra.py::test_skip_style tests/test_extra.py::test_use_xhtml tests/test_extra.py::test_parse_inline_html tests/test_extra.py::test_block_html tests/test_extra.py::test_parse_block_html tests/test_extra.py::test_trigger_more_cases tests/test_extra.py::test_not_escape_block_tags tests/test_extra.py::test_not_escape_inline_tags tests/test_extra.py::test_hard_wrap_renderer
mistune.py
mistune.py