app/controllers/discourse-media-wiki-import/import_controller.rb
##
# Converts the MediaWiki XML text to the HTML format used in Discourse.
#
Converts the MediaWiki XML text to the HTML format used in Discourse.
Converts the MediaWiki XML text to the HTML format used in Discourse .
def convert_mediawiki_to_html(wiki_page_text:, wiki_page_topic_map:, site_domain:, templates:)
      convert_gallery_markup(wiki_page_text: wiki_page_text)
      parser = WikiParser.new({ :data => wiki_page_text, :noedit => true, :site_domain => site_domain, :templates => templates })
      html = parser.to_html()
      html = convert_wiki_links(html: html, wiki_page_topic_map: wiki_page_topic_map)
      return html
    end
def convert_mediawiki_to_html ( wiki_page_text : , wiki_page_topic_map : , site_domain : , templates : ) convert_gallery_markup ( wiki_page_text : wiki_page_text ) parser = WikiParser . new ( { :data => wiki_page_text , :noedit => true , :site_domain => site_domain , :templates => templates } ) html = parser . to_html ( ) html = convert_wiki_links ( html : html , wiki_page_topic_map : wiki_page_topic_map ) return html end
Converts the MediaWiki XML text to the HTML format used in Discourse.
Converts the MediaWiki XML text to the HTML format used in Discourse .
wiki_page_text
wiki_page_topic_map
site_domain
templates