install plugin
yarn add growi-plugin-attachment-refs
build client app (see official documents)
ref tag$ref(file.txt)
$ref(file.txt, page=/somewhere/page)
page : Target page path of reference filerefs tag$refs(/somewhere/page, regexp=/^file.*\.txt$/)
regexp : Regular Expression to retrieveformat : File format specificationrefimg tag$refimg(pict.png, width=50%, alt=Pic)
<img src="/attachment/xxxxx" width="50%" alt="Pic">
width : widthheight : heightmax-width : max-widthmax-height : max-heightalt : alt textrefsimg tag$refsimg(/somewhere/page, regexp=/^.*\.png$/, max-width=200)
<ul>
<li><img src="/attachment/xxxxx" style="max-width: 200"></li>
<li><img src="/attachment/yyyyy" style="max-width: 200"></li>
<li><img src="/attachment/zzzzz" style="max-width: 200"></li>
</ul>
width : widthheight : heightmax-width : max-widthmax-height : max-heightregexp optionformat option
