[0233/title-comment] コメント文をタイトルに表示する機能を実装 #734
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
変更内容
譜面内に下記のように記載することでコメントエリアがタイトル画面に表示され、
その中にコメントが表示されます。
改行すると
<br>
タグが自動で付加される仕様です。タグも使用可能にしています。<br>
を入れたくない場合は下記のように指定できるようにしました。※デフォルトは
true
(自動改行タグ挿入が有効)です。ダンおに本体の外部に置きたい場合は下記の譜面ヘッダーを指定します。
※デフォルトは
false
(コメントをタイトル画面内に配置する)です。外部化する場合、html側で次の指定を行います。
指定した箇所が、コメント部に置き換えられます。
変更理由
<br>
を入れている可能性があるため。その他コメント
(特にシングルクォート、バッククォートには要注意)
ダブルクォートは譜面データの区切り文字には使用されていないため、必須ではありません。