We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 823545a commit 18578fdCopy full SHA for 18578fd
utils/documentCompiler.ts
@@ -49,10 +49,13 @@ const utilityTagCompiler = (contents: string) => {
49
50
const assetTagComipler = (contents: string) => {
51
return contents
52
- .replace(/<사진 \{(.*?)\}>(.*?)<\/사진>/g, '<img style="width: $1" src="$2" />')
+ .replace(
53
+ /<사진 \{(.*?)\}>(.*?)<\/사진>/g,
54
+ '<img style="max-width: 100%; width: $1" src="$2" />',
55
+ )
56
.replace(
57
/<비디오 \{(.*?)\}>(.*?)<\/비디오>/g,
- '<video style="width: $1" src="$2" controls /></video>',
58
+ '<video style="max-width: 100%; width: $1" src="$2" controls /></video>',
59
);
60
};
61
0 commit comments