[Markdown] Mark ImagePsiElementFactory with @ApiStatus.Internal

GitOrigin-RevId: 5e4971714adb9788d4bf40532d277aec46cd93b6
This commit is contained in:
Ivan Posti
2023-10-17 15:02:19 +02:00
committed by intellij-monorepo-bot
parent a9c0652d81
commit 7f34739d2b

View File

@@ -3,8 +3,10 @@ package org.intellij.plugins.markdown.images.editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.intellij.plugins.markdown.lang.psi.MarkdownPsiElementFactory
import org.jetbrains.annotations.ApiStatus
internal object ImagePsiElementFactory {
@ApiStatus.Internal
object ImagePsiElementFactory {
fun createImage(project: Project, description: String?, path: String, title: String?): PsiElement {
val text = ImageUtils.createMarkdownImageText(description.orEmpty(), path, title.orEmpty())
return MarkdownPsiElementFactory.createFile(project, text).firstChild.firstChild