10
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PlantUML の note 内で#や*をエスケープする方法

Posted at

PlantUMLのnote/endnote内ではCreole記法が使用できるが、それによって行頭の#*がリストと解釈されて、そのまま表示ができない。
私はBTSのチケットを書こうとして少し困った。

@startuml
Bob -> Alice : hello
note left
  # orderd list
  ## sub list
  * unorderd list
  ** sub list
  This is **bold**
  This is //italics//
  This is ""monospaced""
  This is --stroked--
  This is __underlined__
  This is ~~waved~~
endnote
@enduml

image.png

エスケープする方法

公式サイトに書かれている通り、前にチルダ(~)を置く。

@startuml
Bob -> Alice : hello
note left
  ~# orderd list
  ~## sub list
  ~* unorderd list
  ~** sub list
  This is ~**bold**
  This is ~//italics//
  This is ~""monospaced""
  This is ~--stroked--
  This is ~__underlined__
  This is ~~~waved~~
endnote
@enduml

image.png

波型の下線で修飾できることを初めて知ったが、チルダの役割が競合しているからかエスケープできないようだ。

10
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?