Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ project(MD4C
LANGUAGES C
)

if(IDF_TARGET)
idf_component_register(
SRC_DIRS "src"
INCLUDE_DIRS "src"
)
return() # Stops executing the desktop configurations below when building for ESP32
endif()

option(BUILD_MD2HTML_EXECUTABLE "Whether to compile the md2html executable" ON)


Expand Down
17 changes: 17 additions & 0 deletions idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: "0.5.3"
description: "Fast, SAX-like Markdown parser implementation in C compliant with the CommonMark specification."
url: "https://github.com/mity/md4c"
maintainers:
- "Martin Mitáš <https://github.com/mity>"
targets:
- esp32
- esp32s2
- esp32s3
- esp32c2
- esp32c3
- esp32c6
- esp32h2
- esp32p4
- linux
dependencies:
idf: ">=5.3"
38 changes: 38 additions & 0 deletions library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "md4c",
"version": "0.5.3",
"description": "Fast, SAX-like Markdown parser implementation in C compliant with the CommonMark specification.",
"keywords": [
"markdown",
"parser",
"commonmark",
"html",
"text"
],
"authors": [
{
"name": "Martin Mitáš",
"url": "https://github.com/mity"
}
],
"license": "MIT",
"homepage": "https://github.com/mity/md4c",
"repository": {
"type": "git",
"url": "https://github.com/mity/md4c"
},
"build": {
"includeDir": "src",
"srcDir": "src"
},
"frameworks": [
"arduino",
"espidf"
],
"platforms": [
"espressif32",
"espressif8266",
"ststm32",
"raspberrypi"
]
}
11 changes: 11 additions & 0 deletions library.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name=md4c
version=0.5.3
author=Martin Mitáš
maintainer=Martin Mitáš
sentence=Fast, SAX-like Markdown parser implementation in C.
paragraph=A highly optimized Markdown parser compliant with the latest version of the CommonMark specification. Easy to stream and parse documents directly on embedded devices.
category=Data Processing
url=https://github.com/mity/md4c
architectures=*
includes=md4c.h
license=MIT