Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Is it possible to append + prepend <span> tags without using Widgets?

オープン
#772 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

The issue names MatchDecorator and WidgetType but no repository files or tests; start by checking the repository’s CodeMirror decoration examples and the relevant CodeMirror documentation. Done would be a clear explanation of how the shown markup can be produced, or a specific request for a supported way to achieve it.

索引モデルが issue の本文から書いたものです。

説明

I want to achieve this with codemirror

https://prnt.sc/m9ean50m9p2E

https://prnt.sc/HDSz9jvvBi33

as you can see in the second image, the html code is:

<div class="cm-line">
    testing 
	<span class="wa-marker">*</span>
	<span class="wa-bold">line</span>
	<span class="wa-marker">*</span>
</div>

I have tried using MatchDecorator, but it can only wrap ONE <span> tag around the MATCH

How is it possible that this example managed to prepend + append <span class="wa-marker">*</span> around the BOLD <span> tag?
Clearly they are not using WidgetType because there are no .cm-widgetBuffer <img>

How is it possible that they can achieve this?

they are using codemirror too

主要言語
TypeScript
スター
2.3k
フォーク
162
平均マージ
2時間 41分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

uiwjs/react-codemirror のほかの issue

uiwjs/react-codemirror の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。