Skip to content

Commit

Permalink
Merge pull request #128 from scalameta/footnote
Browse files Browse the repository at this point in the history
Fix #127, disable footnote extension.
  • Loading branch information
olafurpg authored Jan 1, 2019
2 parents b79702f + 42dde32 commit f64b4b4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion mdoc/src/main/scala/mdoc/internal/markdown/Markdown.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.vladsch.flexmark.ast.NodeVisitor
import com.vladsch.flexmark.ast.VisitHandler
import com.vladsch.flexmark.formatter.internal.Formatter
import com.vladsch.flexmark.html.HtmlRenderer
import com.vladsch.flexmark.html.HtmlRenderer.HtmlRendererExtension
import com.vladsch.flexmark.parser.Parser
import com.vladsch.flexmark.util.options.DataKey
import com.vladsch.flexmark.util.options.MutableDataSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ object MdocExtensions {
AutolinkExtension.create(),
TablesExtension.create(),
EmojiExtension.create(),
FootnoteExtension.create(),
StrikethroughExtension.create(),
TocExtension.create(),
InsExtension.create(),
Expand Down
17 changes: 17 additions & 0 deletions tests/unit/src/test/scala/tests/markdown/FootnoteSuite.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package tests.markdown

class FootnoteSuite extends BaseMarkdownSuite {
check(
"basic",
"""
|Paragraph with a footnote reference[^1]
|
|[^1]: Footnote text added at the bottom of the document
|
""".stripMargin,
"""|Paragraph with a footnote reference[^1]
|
|[^1]: Footnote text added at the bottom of the document
""".stripMargin
)
}

0 comments on commit f64b4b4

Please sign in to comment.