You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
258 B
13 lines
258 B
3 years ago
|
require "markd"
|
||
|
require "dir"
|
||
|
|
||
|
begin
|
||
|
Dir.mkdir "dist"
|
||
|
rescue
|
||
|
end
|
||
|
|
||
|
articles = Dir.entries "articles"
|
||
|
articles = articles.select { |i| i != "." && i != ".." }
|
||
|
puts articles
|
||
|
|
||
|
#print Markd.to_html(text, Markd::Options.new(smart: true, safe: false));
|