لقد صادفت للتو هذا:
تطبيق مجموعة من التحويلات المستندة إلى التعبيرات العادية، مثل استبدال علامات BBCode بـ Markdown
تم آخر تحديث له في عام 2016، ولست متأكدًا مما إذا كان لا يزال خيارًا ذا صلة.
هل هذا لا يزال ذا صلة؟ في نص استيراد Drupal، أرى شيئًا مثل:
create_posts(results, total: total_count, offset: offset) do |row|
topic_mapping = topic_lookup_from_imported_post_id("nid:#{row['nid']}")
def create_permalinks
puts '', 'creating permalinks...'
Topic.listable_topics.find_each do |topic|
begin
tcf = topic.custom_fields
if tcf && tcf['import_id']
node_id = tcf['import_id'][/nid:(\d+)/, 1]
slug = "/topic/#{node_id}"
Permalink.create(url: slug, topic_id: topic.id)
end