Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
embed-codimd
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jon r
embed-codimd
Commits
96ee91b6
Commit
96ee91b6
authored
6 years ago
by
jon r
Browse files
Options
Downloads
Patches
Plain Diff
replace degrowth.net instance URL
parent
258ebc6e
No related branches found
No related tags found
No related merge requests found
Pipeline
#44
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugin.rb
+2
-2
2 additions, 2 deletions
plugin.rb
with
2 additions
and
2 deletions
plugin.rb
+
2
−
2
View file @
96ee91b6
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
class
Onebox::Engine::CodimdOnebox
class
Onebox::Engine::CodimdOnebox
include
Onebox
::
Engine
include
Onebox
::
Engine
# we only want to match for a specific codimd domain
# we only want to match for a specific codimd domain
matches_regexp
%r{
\A
https://pad
\.
libreho
\.
s
t/}
matches_regexp
%r{
\A
https://pad
\.
degrowth
\.
ne
t/}
def
to_html
def
to_html
"<iframe name='embed_readwrite' src='
#{
@url
}
' style='border-width:0' frameborder='0' scrolling='no' width='100%' height=600></iframe><br><a href='
#{
@url
}
' target='_blank'>
Goto
this
P
ad</a>"
"<iframe name='embed_readwrite' src='
#{
@url
}
' style='border-width:0' frameborder='0' scrolling='no' width='100%' height=600></iframe><br
/
><a href='
#{
@url
}
' target='_blank'>
Visit
this
p
ad
.
</a>"
end
end
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment