markdown example

line break LF (WordPressのファイルは、LFで改行ですよね)changelog.txtをコピー ペーストすると、markdownはHTMLに変換されます。

== Changelog ==

= 14.6.1 =

Changelog

Fixes

Global Styles

  • Fix the upgrader_process_complete hook for wp_theme_has_theme_json. (45881)
  • Update wp_theme_has_theme_json to use WP_Object_Cache. (45543)

Bug Fixes

  • Tag Processor: Prevent bugs from pre-PHP8 strspn/strcspn behavior. (45822)

Contributors

The following contributors merged PRs in this release:

@oandregal @dmsnell


改行コードが、CR/LFの場合だと(githubは改行はCR/LFですよね)、以下のようにPreformatted blockとして張り付きます。markdownをHTML変換 としては張り付かなくなるという事を言いたかったです。

== Changelog ==

= 14.6.1 =

## Changelog

### Fixes

#### Global Styles
- Fix the `upgrader_process_complete` hook for `wp_theme_has_theme_json`. ([45881](https://github.com/WordPress/gutenberg/pull/45881))
- Update `wp_theme_has_theme_json` to use `WP_Object_Cache`. ([45543](https://github.com/WordPress/gutenberg/pull/45543))

### Bug Fixes
- Tag Processor: Prevent bugs from pre-PHP8 strspn/strcspn behavior. ([45822](https://github.com/WordPress/gutenberg/pull/45822))

## Contributors

The following contributors merged PRs in this release:

@oandregal @dmsnell

3か月ほど前から、この現象に出会っていましたが、やはり改行コードでパース結果が異なるのは望ましくないと考えて、連絡しました。

Jetpack の Markdown が有効ならない | WordPress.org 日本語

ただ、少し気になる事がこの投稿を書いているときに起きました。CR/LFの改行コードでmarkdownが正常にhtml変換できてしまいました。最新のGutenbergの変更によるものかどうかは今のところ分かりません。

Note

I expect that when RAW text on the web is pasted into an editor, it is converted to a preformatted block because the RAW data is enclosed in pre tags:

この意味が、いまいちわかりませんでした。the RAW data is enclosed in pre tags: