Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifications to make work with my WP export #7

Merged
merged 2 commits into from Jul 4, 2019

Conversation

@ct-martin
Copy link
Contributor

ct-martin commented Jul 4, 2019

Had a couple changes I needed to make so things came out of my WP export correctly. Here's to hoping someone else might find them useful.

Quick explanation of changes:

  • Turn on code fencing with ```
    • Make a custom rule to also do this for <pre> blocks since WP didn't mark it as code and turndown didn't mark it
    • This change might not be helpful to everyone but since I have a lot of code snippets I needed it in my case
  • Trim titles b/c somehow they got a ton of whitespace added to them
  • Fallback to wp:post_id if it gets a blank wp:post_name

Thank you for making this useful script!

@palaniraja palaniraja merged commit db8cf18 into palaniraja:master Jul 4, 2019
@palaniraja

This comment has been minimized.

Copy link
Owner

palaniraja commented Jul 4, 2019

Thank you for your contribution. I've merged to master.

I'm glad it was helpful in your migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.