mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 13:08:40 +08:00
Renders a source forum's post markup (BBCode, HTML, MediaWiki, TextFormatter XML) into Discourse Markdown via the Markbridge gem. With an embed collector given at construction via embeds:, the embeds that can only be resolved at import time (uploads, attributed quotes, mentions by default) are not rendered inline: each is recorded on the collector and replaced by a placeholder token in the output. Links can be opted in with defer: by a converter that classifies internal URLs itself.
19 lines
519 B
Ruby
Vendored
19 lines
519 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
Gem::Specification.new do |s|
|
|
s.name = "migrations-converters"
|
|
s.version = "0.0.1"
|
|
s.summary = "Discourse migrations: public converter implementations"
|
|
s.authors = ["Discourse Team"]
|
|
s.required_ruby_version = ">= 3.4"
|
|
|
|
s.files = Dir["lib/**/*"]
|
|
|
|
s.add_dependency "migrations-core"
|
|
s.add_dependency "activesupport"
|
|
s.add_dependency "colored2"
|
|
s.add_dependency "i18n"
|
|
s.add_dependency "markbridge", ">= 0.3.1"
|
|
s.add_dependency "pg"
|
|
s.add_dependency "zeitwerk"
|
|
end
|