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

Add WordPress support. #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

suikan4github
Copy link

Hi.

Please kindly review this pull request. This pull request add a WordPress support to
the livescript2markdown

The WordPress support is served when format = wpquicklatex. For example,

latex2markdown(sourc-filename,'format', 'wpquicklatex')

With this parameter, the latex2markdown() generates an MD source file which
is compatible with WordPress. The WordPress writer can paste this MD source
into the Gutenberg editor.

This generated MD assumes WP QuickLaTex plugin to render the LaTeX equations
( https://wordpress.org/plugins/wp-quicklatex/ ). The inline equation format
is $ ... $. And the display equation format is
[
...\
...\
...
]

In addition to the above format, the [latex] short code is embedded at the
top of the MD source file.

The figures are left as a broken link. Thus, the WordPress writer can drag and
drop the figure files to the broken file marks of the Gutenberg editor.

Note, the Enlighter seems to ignore the language mark of the code block.

Tested versions
WordPress : 5.4.1-ja
WP QuickLaTeX : 3.8.6
Enlighter : 4.2
Gutenberg : 8.1.0

The WordPress support is served when format = wpquicklatex. For example,

latex2markdown(sourc-filename,'format', 'wpquicklatex')

With this parameter, the latex2markdown() generate a MD source file which
is compatible with WordPress. The WordPress writer can paste this MD source
into the Gutenberg editor.

This generated MD assumes WP QuickLaTex plugin to render the LaTeX equations
( https://wordpress.org/plugins/wp-quicklatex/ ). The inline equation format
is $ ... $. And the display equation format is
\[
...\\
...\\
...
\]

In addition to above format, the [latex] short code is embeded at the
top of MD source file.

The figures are left as broken link. Thus, the WordPress writer can drag and
drop the figure files to the broken file marks of the Gutenberg editor.

Note, the Enlighter seems to  ignores the language mark of the code block.

Tested versions
WordPress     : 5.4.1-ja
WP QuickLaTeX : 3.8.6
Enlighter     : 4.2
Gutenberg     : 8.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant