Skip to content

Commit dd0c5bc

Browse files
committed
Use requirejs instead of embedded: false
1 parent 4a7b991 commit dd0c5bc

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

lib/rubydown.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ def to_html
2727
end
2828
end
2929

30-
class Plotly::Plot
31-
def to_html
32-
html=create_html(@data, layout: @layout, embedded: false)
33-
html.render
34-
end
35-
end
36-
3730
module Rubydown
3831
class RbMarkPlot < Numo::Gnuplot
3932
def plot(*args)

templates/template.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
display: none;
1717
}
1818
</style>
19+
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
1920
</head>
2021
<body>
2122
<article class='markdown-body'>

0 commit comments

Comments
 (0)