Skip to content

New line and line-brack doesn't work in cnfluance. #11999

@sargis2000

Description

@sargis2000

Describe the bug

When I try to build Confluence pages using sphinxcontrib.confluencebuilder, it ignores new lines and line breaks in .md files. I used 'myst-parser' and 'm2r' for including Markdown files, but both have the same issue.

I contacted the Atlassian Development team, and they said the problem is not on their side. They suggested that I contact the Sphinx development team.

How to Reproduce

# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "PrjName"
copyright = "2023, Sargis"
author = "Sargis"
release = "1.0"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
    "sphinx.ext.todo",
    "sphinx.ext.autodoc",
    "sphinx.ext.napoleon",
    "sphinxcontrib.confluencebuilder",
    'm2r',
#  '"myst_parser"'
]

templates_path = ["_templates"]
exclude_patterns = []
autodoc_mock_imports = ["exc"]

napoleon_google_docstring = True
napoleon_use_ivar = True
confluence_cleanup_from_root = True
confluence_publish = True
confluence_space_key = "Myspace"
confluence_parent_page = "Root Page"
confluence_server_url = "my-url"
confluence_ask_user = True
confluence_ask_password = True
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "alabaster"
html_static_path = ["_static"]
source_suffix = [".rst", ".md"]

# index.rst

Documentation!
=========================================

.. toctree::
   :maxdepth: 10
   :caption: Modules:

   my_libs/index
   envvars.md
   googlestyledocstrings.md



Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

Environment Information

My requirements versions

alabaster==0.7.13
astroid==3.0.2
Babel==2.14.0
black==23.12.1
certifi==2023.11.17
cfgv==3.4.0
charset-normalizer==3.3.2
click==8.1.7
dill==0.3.7
distlib==0.3.8
docutils==0.20.1
filelock==3.13.1
identify==2.5.33
idna==3.6
imagesize==1.4.1
importlib-metadata==7.0.1
isort==5.13.2
Jinja2==3.1.2
m2r==0.3.1
markdown-it-py==3.0.0
MarkupSafe==2.1.3
mccabe==0.7.0
mdit-py-plugins==0.4.0
mdurl==0.1.2
mistune==0.8.4
mypy-extensions==1.0.0
myst-parser==2.0.0
nodeenv==1.8.0
packaging==23.2
pathspec==0.12.1
platformdirs==4.1.0
pre-commit==3.6.0
pydocstyle==6.3.0
Pygments==2.17.2
pylint==3.0.3
PyYAML==6.0.1
requests==2.31.0
snowballstemmer==2.2.0
Sphinx==7.2.6
sphinxcontrib-applehelp==1.0.7
sphinxcontrib-confluencebuilder==2.4.0
sphinxcontrib-devhelp==1.0.5
sphinxcontrib-htmlhelp==2.0.4
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.6
sphinxcontrib-serializinghtml==1.1.9
tomli==2.0.1
tomlkit==0.12.3
typing_extensions==4.9.0
urllib3==2.1.0
virtualenv==20.25.0
zipp==3.17.0

Sphinx extensions

extensions = [
    "sphinx.ext.todo",
    "sphinx.ext.autodoc",
    "sphinx.ext.napoleon",
    "sphinxcontrib.confluencebuilder",
    'm2r',
#  '"myst_parser"'
]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions