Scribusoid

Author Topic: Markdown import and if not a grep for search and replace  (Read 178 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: 1273
  • Karma: 18
    • 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: 1273
  • Karma: 18
    • 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...

 

palmate