Crates.io | markdowny |
lib.rs | markdowny |
version | 0.5.0 |
source | src |
created_at | 2022-05-27 21:09:45.696295 |
updated_at | 2024-11-11 19:24:05.75407 |
description | Markdown parser with focus on error reporting, and with support for hairy templates, HTML, HTML-attributes, HTML-spans, HTML-blocks specified in Markdown. |
homepage | https://www.bitpowder.com/libs/indigo/ |
repository | https://gitlab.com/bitpowder/indigo-ng |
max_upload_size | |
id | 595319 |
size | 154,058 |
A Markdown parser with strict error handling, generating an AST that can be easily adjusted and converted to text or HTML. It supports some additional syntax:
[
and ]
;[[
and ]]
;[[[
and ]]]
;[[[[
and ]]]]
;{#id; style: value; .classname}
.div
with a newline after are assumed to contain block elements. HTML tags without a newline after are assumed to not contain block elements.!![description](image-src)
is a block level image (not wrapped in <p>
)This library also has a resolve_markdown()
function that does a number of things:
syntect
feature is enabled);latex2mathml
feature is enabled);figure_type #reference_key: caption
, figure type can be listing
/figure
/etc, #reference_key
can be used in links);?
, if link body contains ?
, replace by actual number).vim.api.nvim_create_autocmd('FileType', {
pattern = 'markdown',
callback = function(args)
vim.lsp.start({
cmd = { 'markdowny-lsp' },
name = 'markdowny',
})
end,
})