Skip to content

Commit 958d758

Browse files
authored
Markdown: Make Table/LaTeX objects subtypes of MarkdownElement (JuliaLang#58916)
These objects satisfy the requirements of the `MarkdownElement` interface (such as implementing `Markdown.plain`), so they should be subtypes of `MarkdownElement`. This is convenient when defining functions for `MarkdownElement` in other packages.
1 parent 3e2f90f commit 958d758

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/Markdown/src/GitHub/table.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is a part of Julia. License is MIT: https://julialang.org/license
22

3-
mutable struct Table
3+
mutable struct Table <: MarkdownElement
44
rows::Vector{Vector{Any}}
55
align::Vector{Symbol}
66
end

stdlib/Markdown/src/IPython/IPython.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is a part of Julia. License is MIT: https://julialang.org/license
22

3-
mutable struct LaTeX
3+
mutable struct LaTeX <: MarkdownElement
44
formula::String
55
end
66

0 commit comments

Comments
 (0)