Author Topic: Markdown import and if not a grep for search and replace  (Read 2511 times)

kosson

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Scribus User
Markdown import and if not a grep for search and replace
« on: September 02, 2017, 07:39:09 pm »
Dear friends,

I have started writing a programming book that was previously written as Markdown fragments. Bringing Markdown into Scribus is pretty straight forward, but I would love to be able to remove all the Markdown cruft using a decent Search and Replace with GREP functionality.  Also added to search it would be such a nice thing to have character formating as well.

It is very tiresome to remove all the syntactic markup Markdown has.

Thank you.

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2418
  • Karma: 35
    • the graphics lab
Re: Markdown import and if not a grep for search and replace
« Reply #1 on: September 02, 2017, 08:51:44 pm »
hi

for now there is no markdown import.

but you can get most supported formatting by going through html and odt.

you find attached a pdf created after

- copying the html rendering of https://markdown-it.github.io/
- pasting it into libreoffice
- saving to odt
- loading the odt into a scribus text frame.

this might or not meet your needs...

ciao
a.l.e

kosson

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Scribus User
Re: Markdown import and if not a grep for search and replace
« Reply #2 on: September 05, 2017, 09:02:01 am »
Indeed, this is the right solution for my case. Thank you.

I would love to have something to make rules, just as in case of formating, to get automatic replacing of marked up text fragments. And this would be the proper moment to regret, I don't know Python...
In any case, a Grep search tot the Find / Replace functionality would be so welcomed.

P.S. This should be closed.

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2418
  • Karma: 35
    • the graphics lab
Re: Markdown import and if not a grep for search and replace
« Reply #3 on: September 05, 2017, 09:17:47 am »
a good set of character and paragraph styles can help you replace the search and replace...

FilBot3

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
  • I love to use Scribus, LaTeX and Pandoc!
    • FilBot3 Blog
Re: Markdown import and if not a grep for search and replace
« Reply #4 on: April 30, 2020, 05:54:08 am »
You could also use something called Pandoc https://pandoc.org/demos.html to take your Markdown formatted file and convert it to docx then import it into Scribus. You could use Pandoc to convert it to a lot of formats you could import into Scribus or other programs.

 

palmate