kvanttt / markconv Goto Github PK
View Code? Open in Web Editor NEW:memo: Convert GitHub to Habr or Dev Markdown with additional features
License: Apache License 2.0
:memo: Convert GitHub to Habr or Dev Markdown with additional features
License: Apache License 2.0
Integer value
Hash-based comparison not always works as expected.
Some web-services (GitLab) does not support comments in Markdown
<!-- Comment line -->
Anchor elements only supported in habrahabr markdown for compatibility reasons (now relative links are supported):
<anchor>title</anchor>
# Header
There are two methods of processing such elements:
* [Header](#header)
...
# Header
Implement the first as a start point.
Throw a warning if the local image at link ![Image title](path-to-file.jpg)
does not exists.
Maybe https://github.com/lunet-io/markdig is the best choice.
It's much more convenient in comparison with external files such as ImagesMap:
<!-- map: GitHub.png https://habrastorage.org/webt/v3/gk/id/v3gkidocqqefcthmlywi_c5bjww.png -->
Use third-party library (Command Line Parser Library, Fluent Command Line Parser) if required.
It's useful for questions to interview.
Use whitespace(s) as separator:
Sample:
Images/Alignment-Sample.jpg https://hsto.org/storage3/20b/eb7/170/20beb7170a61ec7cf9f4c02f8271f49c.jpg
Extend ListItemRegex.
Try to get response or content from links and throw a warning if failed.
An article can have links that point to previous or following articles. Converter should support not only images map, but url map too.
Actual functionality cover not only Habrahabr issues.
Suggested names:
Habrahabr generates a relative link from entire header text instead of rendered text unlike GitHub, GitLab: [Header With Link](https://github.com/)
-> [Header With Link](#header-with-linkhttpsgithubcom)
.
This is also a workaround for https://github.com/limonte/dear-habr/issues/97
Handle a directory as an -i
parameter
It improves visual testing of different markdown features on different services (GitHub, Visual Code, Habrahabr).
Add build status badges to README
See this: https://github.com/limonte/dear-habr/issues/91
Nested spoilers also should be supported.
Transform all elements to a common form:
+
and -
to *
.#
in headers.-----
headers to # Header
format.Get content info from headers
Reference: https://docs.dev.to/frontend/liquid-tags/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.