Commit 133ddc36 authored by nanahira's avatar nanahira

better format

parent 284e7400
Pipeline #19397 passed with stage
in 44 seconds
...@@ -119,18 +119,21 @@ export default class YGOCardPlugin ...@@ -119,18 +119,21 @@ export default class YGOCardPlugin
if (!this.config.usePuppeteer || !this.puppeteer) { if (!this.config.usePuppeteer || !this.puppeteer) {
return card.getDisplayString(this.config); return card.getDisplayString(this.config);
} }
const url = card.getPic(this.config);
const { name, id, desc } = card;
const metaText = card.getMetaText(this.config);
return ( return (
<html> <html>
<body> <body>
<div> <div>
<image src={card.getPic(this.config)} /> <image src={url} />
</div> </div>
<div> <div>
{card.name} {card.id} {name} {id}
</div> </div>
<div> <div>
<p>{card.getMetaText(this.config)}</p> <p>{metaText}</p>
<p>{card.desc}</p> <p>{desc}</p>
</div> </div>
</body> </body>
</html> </html>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment