Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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