Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/pandocPublic

Soft line breaks become hard in GitHub-flavored markdown (gfm+hard_line_breaks) #5195

Closed
@Rufflewind

Description

@Rufflewind

I recently noticed what I think is a change in Pandoc's behavior aroundgfm.

$ pandoc -f markdown_strict -t gfm+hard_line_breaks <<EOFThe quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.EOFThe quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.

I don't think this is correct, as it would imply these paths do not yield the same result:

markdown_strict -> gfm+hard_line_breaks -> htmlmarkdown_strict -> html

In contrast, this problem doesnot occur withmarkdown_strict -> markdown_strict+hard_line_breaks:

$ pandoc -f markdown_strict -t markdown+hard_line_breaks <<EOFThe quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog.EOFThe quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

This I would think ought to be the correct output of any-t <writer>+hard_line_breaks.

$ pandoc --versionpandoc 2.5Compiled with pandoc-types 1.17.5.4, texmath 0.11.1.2, skylighting 0.7.5Default user data directory: /home/rf/.pandocCopyright (C) 2006-2018 John MacFarlaneWeb:  http://pandoc.orgThis is free software; see the source for copying conditions.There is no warranty, not even for merchantability or fitnessfor a particular purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp