Skip to content

All Heading Levels Converted to H2 in Asciidoc #1456

@iyaja

Description

@iyaja

The asciidoc exporter converts all heading levels specified in markdown cells to H2.

To reproduce the issue:

  1. Install nbconvert
  2. Create notebook with markdown cells
  3. Add markdown headers with different header levels in markdown cells
  4. nbconvert --to asciidoc notebook_name.ipynb

This error can be reproduced on https://jupyter.org/try as well.

As an example, here is a notebook with multiple markdown header levels:
image

Here is what it is converted to in asciidoc:

== This is a H1

== This is a H2

== This is a H3

== This is a H4

== This is a H5

== This is a H6

Nbconvert version: 6.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions