Skip to content

New issue with current Pandoc devel  #2306

Description

@cderv

Activity

  1. added
    bug
    on Feb 14, 2022
  2. self-assigned this
    on Feb 14, 2022
  3. cderv commented on Feb 14, 2022

    @cderv
    CollaboratorAuthor

    Seems like current Pandoc devel write HTML for the TOC Now:

    old[1:10] vs new[1:10]
      "Test"
      "================"
      ""
    - "-   [1 A](#1-a)"
    + "-   <a href=\"#1-a\" id=\"toc-1-a\">1 A</a>"
    - "    -   [1.1 B](#11-b)"
    + "    -   <a href=\"#11-b\" id=\"toc-11-b\">1.1 B</a>"
    - "-   [2 C](#2-c)"
    + "-   <a href=\"#2-c\" id=\"toc-2-c\">2 C</a>"
    - "    -   [2.1 D](#21-d)"
    + "    -   <a href=\"#21-d\" id=\"toc-21-d\">2.1 D</a>"
      ""
      "# 1 A"
      ""
    
  4. cderv commented on Feb 14, 2022

    @cderv
    CollaboratorAuthor

    It seems to be an expected change. See context in jgm/pandoc#7907

    With current devel

    ❯ ./pandoc --to gfm -f markdown --toc -s
    # Head
    
    Content
    ^Z
    -   <a href="#head" id="toc-head">Head</a>
    
    # Head
    
    Content

    before

    ❯ pandoc --to gfm -f markdown --toc -s
    # Head
    
    Content
    ^Z
    -   [Head](#head)
    
    # Head
    
    Content

    I wonder if there is a way to deactivate this somehow if desired to get clean markdown TOC 🤔

  5. cderv commented on Feb 14, 2022

    @cderv
    CollaboratorAuthor

    Seems like we can't opt-out jgm/pandoc@01ec1ac

  6. yihui commented on Feb 15, 2022

    @yihui
    Collaborator
  7. cderv commented on Feb 16, 2022

    @cderv
    CollaboratorAuthor
  8. github-actions commented on Oct 4, 2022

    @github-actions

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

  9. locked as resolved and limited conversation to collaborators on Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions