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

Convert textile to markdown #44

merged 3 commits into from Jan 25, 2020

Convert textile to markdown #44

merged 3 commits into from Jan 25, 2020


Copy link

shuhei commented Jan 25, 2020

To make it easier to implement more features using the marked custom renderer...

  • Convert textile to markdown
  • Render width and height of external images

Conversion script:

Image size encoding

Several external image tags have size information (width/height). They are useful to avoid page jump. However, markdown standard syntax doesn't support image size. GitHub markdown supports it though.

As a hack, the size is encoded with the format of =widthxheight at the end of title (e.g. ![alt](src "title =300x200")). I will never use image title in this repository anyway, but the custom marked renderer for image removes the image size from title if it's provided.

@shuhei shuhei merged commit 4fe9911 into source Jan 25, 2020
1 check passed
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.