-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested List and Inline markdown issues #1500
Comments
There are a couple of things here.
Anyways, so you are pointing out two things that are clearly documented in Python Markdown's documentation.
"""Example."""
import markdown
print(f'Markdown Version: {markdown.__version__}')
print('-----')
MD = """
diam**Test**
diam **Test**
"""
extensions = []
extension_configs = {}
print(markdown.markdown(MD, extensions=extensions, extension_configs=extension_configs)) <p>diam<strong>Test</strong></p>
<p>diam <strong>Test</strong></p> If you have something specific you'd like to demonstrate, please create a minimal, reproducible example. You can use the script above as a template if it is easier. |
I'm sorry to have caused you confusion. Since I was using markdown rendering in both Github and VsCode with only two spaces for sublists, in addition middleWorld, e.g. bolding is rendered without additional spaces, I found these differences when using MkDocs, if these formats above are Python Markdown specifications, that Indeed not an issue. It just bothers me that when I build my MKDocs site using GitHub as well as the regular markdown editing style (which uses only two spaces, and compiles the middle word without spaces), they don't display correctly. The following two writing formats, the first using the Python Markdown specification and the second the regular writing style, make no difference in the GitHub page and VSCode, but not in MakeDocs. You can see the link to the first time I asked the question, where the MakeDocs material points to Python Markdown as the issue:squidfunk/mkdocs-material#7841 (comment).
|
|
I have found that some inline lists and bold fonts are not represented correctly in mkdocs material, but are displayed correctly in the traditional Markdown compiler.
A markdown of the form shown here will display the correct hierarchy and bolding correctly in both material and traditional markdown compilers:
Nulla et rhoncus turpis. Mauris ultricies elementum leo. Duis efficitur
accumsan nibh eu mattis. Vivamus tempus velit eros, porttitor placerat nibh
lacinia sed. Aenean in finibus diam Test.
However, when I remove some redundant-looking spaces (which is what most markdown editor plugins usually do), the traditional compiler displays it correctly, but material no longer displays the correct list hierarchy and bolding:
Nulla et rhoncus turpis. Mauris ultricies elementum leo. Duis efficitur
accumsan nibh eu mattis. Vivamus tempus velit eros, porttitor placerat nibh
lacinia sed. Aenean in finibus diamTest.
The Issue was from : squidfunk/mkdocs-material#7841 (comment)
The text was updated successfully, but these errors were encountered: